帶有 mathrm 和 mathbb 字體的捷克語

帶有 mathrm 和 mathbb 字體的捷克語

如何使用字體 \mathrm\mathbb捷克語字母 č,ě,š,ř,ž,ý,á,í....?

命令列: bibtex.exe "ideje"

[12] [13] [14] [15] [16] [17]

Package amsfonts Warning: Obsolete command \frak; \mathfrak should be used inst
ead on input line 501.

(D:\ProgramFiles\MikTexExe\tex\latex\amsfonts\ueuf.fd) [18]

LaTeX Warning: Command \v invalid in math mode on input line 529.

! Please use \mathaccent for accents in math mode.
\add@accent ...@spacefactor \spacefactor }\accent 
                                                  #1 #2\egroup \spacefactor ...
l.529   \item to tam musíš $ně
                                 kde$ použít
? 

! Emergency stop.
\add@accent ...@spacefactor \spacefactor }\accent 
                                                  #1 #2\egroup \spacefactor ...
l.529   \item to tam musíš $ně
                                 kde$ použít


Process has been killed ...

答案1

數學模式不適合對普通文字進行強調或其他格式設定。數學模式(顧名思義)是針對數學的。特別是$někde$(如果已編譯)或$n\check{e}kde$(如 Phelype Oleinik 在評論)通常會被解釋為一個數學術語,特別是變數的乘積n,(或者電子支票),k,de

比較

$this is horrible emphasis$

\emph{this is emphasis}

特別是 TeX 中使用的數學字體可能不支援與文字字體具有相同重音的相同字形集。 (數學重音的輸入和處理方式可能有所不同。)

在文字中,有多種方法可以強調或突出顯示某些單字。可以在 Nicola Talbot 的文章中找到很好的概述適合新手的 LaTeX https://www.dickimaw-books.com/latex/novices/html/fontstyle.html#44113

\documentclass[czech]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage{csquotes}

\begin{document}
$this is horrible emphasis$ % don't try this at home!

\emph{this is emphasis}

\begin{itemize}
  \item to tam musíš někde použít
  \item to tam musíš \emph{někde} použít
  \item to tam musíš \textit{někde} použít
  \item to tam musíš \textbf{někde} použít
  \item to tam musíš \textsf{někde} použít
\end{itemize}
\end{document}

“to tam musíš někde použít”,對“někde”的強調不同。首先不強調,然後 \emph(斜體),然後是斜體、粗體,最後是無襯線


來回答一下標題中的問題。標準amssymb字體\mathbb僅支援大寫字母(即 ASCII 字母)。您需要一個具有小寫字母的替代方案(更重要的是,甚至不太可能,您必須找到一個支援正確重音字母的替代方案)。不支援小寫字母。請參閱範例黑板粗體字

答案2

重複相同的預訂後,您應該確定您確實想要這樣做,以下是您可以採取的方法。

在 中unicode-math,您可以設定\mathrm字體。如果您想要將捷克語單字定義為運算符或變數名稱,您可能會喜歡設定運算符字體並使用套件\operatorname中的字體amsmath

Unicode 沒有任何用於重音黑板粗體的程式碼點,但您可以聲明自己的雙線字體。在這裡,我使用免費字體 Foglihten No01。

一個人為的例子:

\documentclass[varwidth]{standalone}
\usepackage{unicode-math}

\setmathrm{Latin Modern Roman Caps}[Scale=MatchLowercase] % For example
% Available at http://www.glukfonts.pl/font.php?font=FoglihtenNo01
\setmathfontface\mathds{FoglihtenNo01.otf}[Scale=MatchLowercase]

\begin{document}
to tam musíš \(\mathrm{ně kde}\) \\
použít \(\mathds{Ě}\)

\end{document}

捷克語數學

或者為了更戲劇化的對比:

\documentclass[varwidth]{standalone}
\usepackage{unicode-math}

\setmathrm{Latin Modern Roman Caps}[Scale=MatchLowercase] % For example
% Available at http://www.glukfonts.pl
\setmathfontface\mathds{FoglihtenNo03.otf}[Scale=1.3]

\begin{document}
to tam musíš \(\mathrm{někde}\) \\
použít \(\mathds{Ě}\)

\end{document}

Foglihten Noo3 樣本

如果您想要的是\mathbb字元上的重音,您可以將其定義為數學重音。

\documentclass[varwidth]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amssymb}

\DeclareSymbolFont{lmodern}{T1}{lmr}{m}{n}
\DeclareMathAccent{\caron}{\mathord}{lmodern}{"07}

\begin{document}
R \(\caron{\mathbb{R}}\)
\end{document}

舊字體範例

相關內容