如何将字母结尾的部分居中对齐

如何将字母结尾的部分居中对齐

我试图模仿以下结尾,例如,如下面摘录所示:

在此处输入图片描述

以下 MWE 对结束的第一部分进行了近似;但是,第二部分(似乎既左对齐又居中)给我带来了最大的麻烦。

梅威瑟:

\documentclass[12pt]{article}
\begin{document}

Our Blessed Saviour for His goodness to our Confraternity, and for our salvation through His Blood.

\vspace*{10pt}

\begin{flushright}
  \begin{tabular}{@{} l @{}}
    Your affectionate Servant and Father \\
    {\scshape{Frederick William Faber,}} \\
    Priest of the Oratory.
  \end{tabular}
\end{flushright}

\begin{flushleft}
\begin{center}
\begin{small}
The London Oratory. \\
Feast of the Conversion of St. Paul. \\
1860.
\end{small}
\end{center}
\end{flushleft}
\end{document}

产生

在此处输入图片描述

有人能建议我如何让以“伦敦演讲厅”开头的三行诗句与上面的摘录相似吗?谢谢。

答案1

您把 放tabular错地方了。

\documentclass[12pt]{article}
\usepackage{baskervillef}

\begin{document}

Our Blessed Saviour for His goodness to our Confraternity,
and for our salvation through His Blood.

\vspace*{10pt}

\begin{flushright}
  Your affectionate Servant and Father\hspace*{1em} \\[1ex]
  \textsc{Frederick William Faber,}\hspace*{2em} \\[1ex]
  Priest of the Oratory.\hspace*{2em}
\end{flushright}

\begin{flushleft}\footnotesize
\begin{tabular}{@{}c@{}}
The London Oratory. \\
Feast of the Conversion of St. Paul. \\
1860.
\end{tabular}
\end{flushleft}

\end{document}

在此处输入图片描述

答案2

有什么办法吗?通过在环境中包装文本minipage

\documentclass[12pt]{article}
\begin{document}

Our Blessed Saviour for His goodness to our Confraternity, and for our salvation through His Blood.

\vspace*{10pt}

\begin{flushright}
  \begin{tabular}{@{} l @{}}
    Your affectionate Servant and Father \\
    {\scshape{Frederick William Faber,}} \\
    Priest of the Oratory.
  \end{tabular}
\end{flushright}

\begin{flushleft}
\begin{minipage}{0.5\textwidth} %Here!
\begin{center}
\begin{small}
The London Oratory. \\
Feast of the Conversion of St. Paul. \\
1860.
\end{small}
\end{center}
\end{minipage}
\end{flushleft}
\end{document}

答案3

只是为了好玩:我也尝试过\hangindent\handafter,但使用\rightskip更容易。

\documentclass{article}
\usepackage{showframe}
\begin{document}

\vbox{\raggedleft
\rightskip=1em
Your affectionate Servant and Father\par
\rightskip=2em
{\scshape{Frederick William Faber,}} \\
Priest of the Oratory.}

\end{document}

相关内容