我已经下载了一份简历模板来玩这里,当我使用 XeLaTeX 输出时,一切都很顺利,除了一件事,我不明白字符串的用法
Ê Ê Ê Ê&
在此标记中
\begin{tabularx}{0.97\linewidth}{>{\raggedleft\scshape}p{2cm}X}
\gray Period & \textbf{March 2009 --- August 2010 (Part Time)}\\
\gray Employer & \textbf{Buy More} \hfill New York, USA\\
\gray Job Title & \textbf{Supermarket Clerk}\\
Ê Ê Ê Ê& Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et auctor neque. Nullam ultricies sem sit amet magna tristique imperdiet.
\end{tabularx}
使用该字符串进行输出可以使文档格式正确,但是会留下四个方形字符,删除它们会导致整个文档的格式崩溃。
这是怎么回事?我使用的字体与模板不同,因为我的操作系统 (linux mint) 上没有指定字体。
答案1
我猜你的日志说
Missing character: There is no � in font cmcsc10!
Missing character: There is no � in font cmcsc10!
Missing character: There is no � in font cmcsc10!
Missing character: There is no � in font cmcsc10!
Missing character: There is no � in font cmcsc10!
这是我从(完整)文档中得到的信息
\documentclass{article}
\usepackage{tabularx}
\usepackage{color}
\def\gray{\color[rgb]{.5,.5,.5}}
\begin{document}
\begin{tabularx}{0.97\linewidth}{>{\raggedleft\scshape}p{2cm}X}
\gray Period & \textbf{March 2009 --- August 2010 (Part Time)}\\
\gray Employer & \textbf{Buy More} \hfill New York, USA\\
\gray Job Title & \textbf{Supermarket Clerk}\\
Ê Ê Ê Ê& Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et auctor neque. Nullam ultricies sem sit amet magna tristique imperdiet.
\end{tabularx}
\end{document}
您可以添加类似
\usepackage{fontspec}
\setmainfont{TeX Gyre Adventor}
要更改字体选择,但我不确定哪种字体带有小写重音字母。(我尝试过的字体都没有)
我假设您不想要该字符串的排版,但是如果您根本不想要小写重音字母,那么就忽略它们:
\documentclass{article}
\usepackage{tabularx}
\usepackage{color}
\def\gray{\mbox{}\color[rgb]{.5,.5,.5}}
%\usepackage{fontspec}
%\setmainfont{TeX Gyre Adventor}
\begin{document}
\noindent
\begin{tabularx}{0.97\linewidth}{>{\raggedleft\scshape}p{2cm}X}
\gray Period & \textbf{March 2009 --- August 2010 (Part Time)}\\
\gray Employer & \textbf{Buy More} \hfill New York, USA\\
\gray Job Title & \textbf{Supermarket Clerk}\\
& Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et auctor neque. Nullam ultricies sem sit amet magna tristique imperdiet.
\end{tabularx}
\end{document}