![迷你页面居中时出现奇怪的 Unicode 字符](https://linux22.com/image/294750/%E8%BF%B7%E4%BD%A0%E9%A1%B5%E9%9D%A2%E5%B1%85%E4%B8%AD%E6%97%B6%E5%87%BA%E7%8E%B0%E5%A5%87%E6%80%AA%E7%9A%84%20Unicode%20%E5%AD%97%E7%AC%A6.png)
我需要一个稍微居中的框来强调引文。我不知道在哪里找到的,但我目前的方法如下:
\begin{center}
\begin{minipage}{0.9\textwidth}
How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes?
\end{minipage}
\end{center}
这产生了预期的结果,但我遇到了一个问题,即在框左侧出现了一些奇怪的unicode字符:
有人知道是什么原因导致了这种行为吗?
答案1
您的文本中有一个不可见的字符。将光标放在前面\begin{minipage}
,您会注意到您可以执行一次退格而不会产生任何可见效果。就是这样...没有 就不会出现问题\usepackage[T1]{fontenc}
。这就是为什么我们总是需要一个完整的最小工作示例(仅用于下一次)。
这是您的方法以及更好的方法csquotes
:
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{csquotes}
\begin{document}
\blindtext
\begin{center}
\begin{minipage}{0.9\textwidth}
How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes?
\end{minipage}
\end{center}
\blindtext
\blockquote{How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes?
%%% empty line needet in order to force this to get set in display mode. Or you reduce the `parthreshold` option of csquotes
}
\blindtext
\end{document}