我想将引文缩进居中。以下是代码和结果:
\begin{minipage}{0.7\textwidth}
\centering
“What I like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.”
\\―Karl Lagerfeld
\\“A good snapshot keeps a moment from running away.”
\\― Eudora Welty
\end{minipage}
\\Photography is the strongest way to keep memories. In today’s world it is really easy....
我想根据页面大小将引文居中。我该如何修改?问候,
答案1
您不应使用\\
来新建段落。请改用空行 (或\par
)。
引文放在宽度为 的小页面中0.7\textwidth
,文本居中。但您还需要将小页面置于页面中央。(我也已将其替换\textwidth
为\linewidth
)。
\documentclass{article}
\begin{document}
\begin{center}
\begin{minipage}{0.75\linewidth}
\centering
``What I like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.''
---Karl Lagerfeld
``A good snapshot keeps a moment from running away.''
---Eudora Welty
\end{minipage}%
\end{center}
Photography is the strongest way to keep memories. In today’s world it is really easy....
\end{document}
答案2
替代方法:使用quote
环境而不是小页面。
\documentclass{article}
\begin{document}
\begin{quote}
\centering
“What I like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.”
―Karl Lagerfeld
“A good snapshot keeps a moment from running away.”
― Eudora Welty
\end{quote}
Photography is the strongest way to keep memories. In today’s world it is really easy....
\end{document}
答案3
该quoting
软件包可让您完全控制同名环境。或者,根据实际情况,您可以使用该epigraph
软件包:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[showframe]{geometry}
\usepackage{quoting}
\quotingsetup{leftmargin=0.22\linewidth, rightmargin=0.22\linewidth, indentfirst=false}
\usepackage{epigraph}
\setlength{\epigraphwidth}{0.65\linewidth}
\renewcommand{\epigraphflush}{center}
\usepackage{lipsum}
\begin{document}
%\lipsum[11]
\begin{quoting}
“What I like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.”
\centering―Karl Lagerfeld
\end{quoting}
\begin{quoting}
“A good snapshot keeps a moment from running away.”
\centering― Eudora Welty
\end{quoting}
Photography is the strongest way to keep memories. In today’s world it is really easy…
\newpage
\epigraph{“What I like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.”}
{― Karl Lagerfeld}
\epigraph{“A good snapshot keeps a moment from running away.”}
{― Eudora Welty}
Photography is the strongest way to keep memories. In today’s world it is really easy…
\end{document}