引用縮排問題

引用縮排問題

我想報價,現在有兩個問題。

  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} 

程式碼的輸出

相關內容