我們可以透過以下方式寫出西里爾字母Ш。
%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}
我認為你不應該 load amsthm
,因為sfmthm
做同樣的工作。我還重新組織了序言,先有包,後有設定:這樣可以更好地維護,並且您可以更輕鬆地發現重複的調用(您有一些)。