引号缩进问题

引号缩进问题

我想做一个报价,现在有两个问题。

  1. 我不想在开头缩进
  2. LaTeX 似乎忽略了我的~,但我希望这一行有一个缩进

在此处输入图片描述

\documentclass[11pt]{article}

\begin{document}

{
``Five years ago I would certainly have said that we don't do full-text machine translation, it's too complicated for us", recalls Frahling. "Google had developed its old system over ten years with a lot of people and messing with it just didn't make sense." \\
~~~~~~~~ -- Gereon Frahling, founder of DeepL 
}

\end{document} 

答案1

使用quote环境和\hspace*{}间距。如果出于某种原因您不想改变quote环境的边距,您可以在引文的开头添加\noindent,但您还需要一些手动垂直空间来将其与文本的其余部分区分开。但引文通常设置较窄的边距以表明它们是引文。

就我个人而言,我也不会\\在这里使用,而只是使用一个空白行,这将为您提供引文和名称行之间更好的垂直间距。

\documentclass[11pt]{article}

\begin{document}
This is some text with a regular paragraph indent.
\begin{quote}
``Five years ago I would certainly have said that we don't do full-text machine translation, it's too complicated for us", recalls Frahling. "Google had developed its old system over ten years with a lot of people and messing with it just didn't make sense." \\
\hspace*{1cm} -- Gereon Frahling, founder of DeepL 
\end{quote}
This is some more text.  If this should start a new paragraph, precede it with a blank line in the source.
\end{document} 

代码输出

相关内容