.png)
我知道,我有一個非常神秘的問題,但我們在這裡:我引用並引用了一個名為出埃及記– 公司自己的拼字:εxodus,IE:
ε [希臘小寫字母 EPSILON (
\varepsilon
)] + “odus”
% !TeX program = lualatex
% !BIB TS-program = biber
% !TeX encoding = UTF-8
% !TeX spellcheck = de_DE
\documentclass[
fontsize=12pt,
oneside,
a4paper,
titlepage,
numbers=noenddot,
% draft,
]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{lmodern} % font <--- may be important
\usepackage{csquotes}
\usepackage[style=numeric,
sortcites=true,
sorting=none,
defernumbers=true,
backref=true,
backend=biber]{biblatex}
\begin{filecontents}{mybib2.bib}
@online{exodusHomepage,
title = {$\varepsilon$xodus},
subtitle = {{varepsilon The privacy audit platform for Android applications}},
titleaddon = {Startseite},
% date = {2020-08-29},
urldate = {2020-08-29},
language = {english},
url = {https://reports.exodus-privacy.eu.org/en}
}
@online{exodusHomepageLunar,
title = {$\epsilon$xodus},
subtitle = {{epsilon The privacy audit platform for Android applications}},
titleaddon = {Startseite},
% date = {2020-08-29},
urldate = {2020-08-29},
language = {english},
url = {https://reports.exodus-privacy.eu.org/en}
}
\end{filecontents}
\addbibresource{mybib2.bib}
\begin{document}
\noindent
Exodus/exodus:\\
% all commented lines cannot compile or so
% companies own spelling: εxodus\cite{exodusHomepage}\\
% companies own spelling: {\epsilon}xodus\cite{exodusHomepageLunar}\\
% companies own spelling: {\varepsilon}xodus\cite{exodusHomepage}\\
companies own spelling: $\epsilon$xodus\cite{exodusHomepageLunar} (wrong lunar letter actually)\\
companies own spelling: $\varepsilon$xodus\cite{exodusHomepage}
\printbibliography
\end{document}
(雖然GREEK LUNATE EPSILON SYMBOL
(\varepsilon
)看起來更好,恕我直言,但是……它實際上/語義上是錯誤的,所以我不能使用它。)
我們可以正確排版/改進嗎?
答案1
答案2
您的字體可能包含拉丁文小寫字母 epsilon, ɛ (U+025B)。
在 LuaLaTeX 或 XeLaTeX 中,您可能會編寫類似的內容
\newcommand\exodus{{\textepsilon}xodus}
\newcommand\textepsilon{^^^^025b}
或者,如果您需要從其他字體載入符號,
\newcommand\textepsilon{{\greekfont ^^^^025b}}
您也可以使用希臘文 ε 代碼點。
除非您目前的字體包含該字形,否則您將看不到任何內容。預設拉丁現代羅馬沒有任何希臘字母。
您還應該添加命令\tracinglostchars=2
。這會告訴您問題是什麼。如果沒有它,TeX 將默默地在日誌檔案中記錄一條警告。
在傳統的 8 位元編碼中,您可以從textgreek
或載入文字模式符號tipa
。
微量元素
此版本適用於 LuaLaTeX 或 XeLaTeX。
\documentclass{article}
\tracinglostchars=2
\usepackage{fontspec}
\setmainfont[Scale=1.0]{CMU Sans Serif}
\newcommand\exodus{{\textepsilon}xodus}
\newcommand\textepsilon{^^^^025b}
\begin{document}
\exodus
\end{document}
這是 PDFTeX 相容版本
\documentclass{article}
\tracinglostchars=2
\usepackage[LGR,T1]{fontenc}
\newcommand\exodus{{\fontencoding{LGR}\selectfont\textepsilon}xodus}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
\exodus
\end{document}
預計到達時間:更改字體
根據要求,這裡是一個不改變主要字體的版本。
\documentclass{article}
\tracinglostchars=2
\usepackage{fontspec}
\newfontfamily\logofont{CMU Sans Serif}[Scale=MatchLowercase, Ligatures={Common,TeX}]
\newcommand\exodus{{\logofont{\textepsilon}xodus}}
\newcommand\textepsilon{^^^^025b}
\begin{document}
A company named \exodus
\end{document}
使用 8 位元字體的舊版本類似,只不過它\logofont
被定義為類似\fontfamily{DejaVuSans-TLF}\selectfont
.