我们可以用下列方法书写西里尔字母 Ш。
%definition of Sha
\usepackage[OT2,T1]{fontenc}
\DeclareSymbolFont{cyrletters}{OT2}{wncyr}{m}{n}
\DeclareMathSymbol{\Sha}{\mathalpha}{cyrletters}{"58}
我怎样在乳胶中写入 Ж?
感谢您的帮助。
参见下面是我的代码的第一部分。
\documentclass[11pt,english]{smfart}
\usepackage[T1]{fontenc}
\usepackage[english,francais]{babel}
\usepackage{amssymb,url,xspace,smfthm} %Definition of Sha
\usepackage[OT2,T1]{fontenc}
\DeclareSymbolFont{cyrletters}{OT2}{wncyr}{m}{n}
\DeclareMathSymbol{\Sha}{\mathalpha}{cyrletters}{"58}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{lem}{Lemma}
\newtheorem{cor}{Cor}
\usepackage{amsmath,amssymb,amsfonts,amscd}
\usepackage[dvipdfmx]{graphicx}
\usepackage{tikz}
\usepackage{enumitem}
\usepackage{tikz-cd}
\usepackage{mathtools}
\tolerance 400 \pretolerance 200
答案1
你从终端运行,pdflatex nfssfont
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/nfssfont.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-03-14>
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo))
No auxiliary output files.
**********************************************
* NFSS font test program version <v2.2e>
*
* Follow the instructions
**********************************************
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
Input external font name, e.g., cmr10
(or <enter> for NFSS classification of font):
\currfontname=
*** NFSS classification ***
Font encoding [T1]:
\encoding=OT2
(/usr/local/texlive/2024/texmf-dist/tex/latex/cyrillic/ot2enc.def
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ot2enc.dfu))
Font family [cmr]:
\family=wncyr
Font series [m]:
\series=
Font shape [n]:
\shape=
Font size [10pt]:
\size=
(/usr/local/texlive/2024/texmf-dist/tex/latex/cyrillic/ot2wncyr.fd)
Now type a test command or \help for help [ \table \bye ]:
\action=
[1{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )</us
r/local/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/
local/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/loc
al/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/loca
l/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/local
/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cyrillic/wncyr10.pfb>
Output written on nfssfont.pdf (1 page, 86081 bytes).
Transcript written on nfssfont.log.
当=
没有任何内容时,说明你按了“回车”。现在预览一下生成的PDF。
现在您可以轻松找到所需的信息:字符“哲”在插槽中"11
。
\documentclass[11pt,english]{smfart}
\usepackage[OT2,T1]{fontenc}
\usepackage[english,francais]{babel}
\usepackage{url,xspace,smfthm}
%\usepackage{amsthm}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathtools}
%\usepackage{amscd}% <--- why?
\usepackage[dvipdfmx]{graphicx}
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{enumitem}
\DeclareSymbolFont{cyrletters}{OT2}{wncyr}{m}{n}
\DeclareMathSymbol{\Sha}{\mathalpha}{cyrletters}{"58}
\DeclareMathSymbol{\Zhe}{\mathalpha}{cyrletters}{"11}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{lem}{Lemma}
\newtheorem{cor}{Cor}
\begin{document}
$\Sha+\Zhe$
\end{document}
我认为您不应该加载amsthm
,因为sfmthm
它的作用相同。我还重新组织了序言,先放包,再放设置:这样更易于维护,而且您可以更轻松地发现重复的调用(您有几个)。