
我的 LaTeX 檔案包含無法格式化的重音符號,因為該文字是自動包含的。因此,我選擇使用\texttt
和 ,\verb
以便我可以顯示所有類型的特殊字元(請參見下面的程式碼)。我的問題是字體是凍結的,有沒有辦法:(1)接受任何類型的特殊字元(%,è,à,ü..)(2)使用給定的字體(3)不必以LaTeX 方式格式化這些字體 ( \'e
, ...)
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{helvetica}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,bindingoffset=0.1in,%
left=0.15in,right=0.15in,top=0.15in,bottom=0.35in,%
footskip=0.85in]{geometry}
\begin{document}
\emph{Estimation de la masse grasse}
{\tiny\verb? *Enlevé 1cm au tour de hanche à cause short TeamCanada. Obj: diminuer % gras?}
\begin{center}
\emph{\texttt{Estimation du V02max et Répartition des plis cutanés}}
\end{center}
\end{document}
感謝您的任何提示,
答案1
\texttt
不能改善有問題的輸入的列印,因此它毫無用處。除了 之外,所有其他範例都沒有問題%
,您可以透過更改其 catcode 輕鬆避免這種情況。
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{helvet}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[a4paper,bindingoffset=0.1in,%
left=0.15in,right=0.15in,top=0.15in,bottom=0.35in,%
footskip=0.85in]{geometry}
\begin{document}
\catcode`\%=12
\emph{Estimation de la masse grasse}
*Enlevé 1cm au tour de hanche à cause short TeamCanada. Obj: diminuer % gras?
\emph{Estimation du V02max et Répartition des plis cutanés}
\end{document}
答案2
如果我理解正確的話,你需要這樣的東西:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{00E9}{\'e}
\begin{document}
é
\end{document}
您必須尋找字元編號並插入轉義版本。這就是您要找的嗎?