迷你页面居中时出现奇怪的 Unicode 字符

迷你页面居中时出现奇怪的 Unicode 字符

我需要一个稍微居中的框来强调引文。我不知道在哪里找到的,但我目前的方法如下:

\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}

在此处输入图片描述

相关内容