
문서의 나머지 부분을 변경하지 않고 기본 글꼴이 아닌 에 \mathcal
특별히 연결된 글꼴을 변경하고 싶습니다 .cambria
어떻게 해야 합니까? newcommand
글꼴을 모두 호출하고 mathcal
그렇게 하기 위해 a를 설정하는 것은 마음에 들지 않지만 그 주위의 텍스트가 기본적으로 설정된 수학 글꼴에서 글꼴을 변경하는 것을 원하지 않습니다.
감사해요
편집: 요청에 따라 이 스레드에서 논의된 내용을 생성하고 싶습니다.
LaTeX에서 Word의 이러한 기호를 어떻게 표현합니까?전체 문서의 글꼴을 변경하지 않고, 즉 cambria
글꼴은 명령에만 적용되어야 합니다 \mathcal
.
내 생각에는 \newcommand
처럼 작동할 수 있으면서도 \mathcal
글꼴을 cambria
.
편집 2: 사용 중인 사용자는 XeLaTeX 또는 LuaLaTeX로 전환하고 수학 글꼴이 with pdflatex
와 거의 동일하도록 서문에 다음 줄을 추가해야 합니다 .pdflatex
cambria
\mathcal
%In Texmaker change the options for quickbuild to XeLaTeX + View PDF or LuaLaTeX + View PDF
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont{Cambria Math}[range=\mathcal]
\renewcommand{\boldsymbol}[1]{\symbfit{#1}} %You can continue to use \boldsymbol.
\let\mathbb\relax
\DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}
\begin{document}
%Document info
\end{document}
답변1
Cambria는 pdflatex
. XeLaTeX 또는 LuaLaTeX에 대한 간단한 설정은 다음과 같습니다.
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}% or whatever
\setmathfont{Cambria Math}[range=\mathcal]
\begin{document}
$a+b\in\mathcal{C}$
$
\mathcal{A}
\mathcal{B}
\mathcal{C}
\mathcal{D}
\mathcal{E}
\mathcal{F}
\mathcal{G}
$
\end{document}