如何制作两行或多行的标题?(重新审视)

如何制作两行或多行的标题?(重新审视)

这是这个帖子。标题中有三行,第一行(“AAAA...”)和第二行(“OF”)之间有一个尴尬的间隙。如何去掉它?

附言:我展示的是第三篇标题,因此我可以链接到它来自另一篇文章

\documentclass[trimmed=true]{bookcover}
\usepackage{comment}
\usepackage{csquotes}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{keyfloat}
\usepackage{xparse}

%coverwidth=〈length〉
%coverheight=〈length〉
%spinewidth=〈length〉
%flapwidth=〈length〉
%marklength=〈length〉
%bleedwidth=〈length〉
%markthick=〈length〉
%markcolor=〈color〉
%〈10pt|11pt|12pt〉
%trimmed=〈true|false〉

\NewDocumentCommand{\booktitleA}{}{FIRST}
\NewDocumentCommand{\booktitleB}{}{SECOND}
\NewDocumentCommand{\booktitleC}{}{THIRD}
\NewDocumentCommand{\booktitleCfn}{}{precision}
\NewDocumentCommand{\booktitleD}{}{FOURTH}

\begin{document}

% One-piece background parts: <----
% bg back flap,
% bg back,
% bg spine,
% bg front,
% bg front flap >------------------
% One-piece foreground parts: <----
% back flap,
% back,
% spine,
% front,
% front flap,
% above back,
% above front,
% below back,
% below front >--------------------

\begin{bookcover}

  %\bookcovercomponent{center}{above front}{\color{blue}Remark above front} % You won't see it if [trimmed=true]
  \bookcovercomponent{center}{spine}{\rotatebox[origin=c]{90}{\bfseries\large \booktitleA~\booktitleB }}


  \bookcovercomponent{normal}{front}{


    \begin{center}
      \bfseries

    {\large \booktitleA}

    \vspace*{\fill}

    {\huge AAAAAAAAAAAAAAAAAAAAAAAAA\\ OF\\ BBBBBBBBBBBBBBBBBBB}

    \vspace*{\fill}

    {\large \booktitleC}\footnotemark[1]\\
      % https://tex.stackexchange.com/questions/509496/footnote-text-inside-a-bookcover-fails-to-display
      \begin{minipage}{0.2 \textwidth}
      \hrule
      \noindent \footnotemark[1]\scriptsize \booktitleCfn
    \end{minipage}



    \vspace*{\fill}

    \keyfig{lw=0.3,cstar={}}{example-image-a.png}

    \vspace*{\fill}

    {\huge \booktitleD}

    \end{center}
    \footnotetext{\booktitleCfn} % Try # 2

  }

\end{bookcover}

\end{document}

输出

答案1

只需将标题设置为可以轻松跨多行的对象即可,例如tabular

% ...
{\huge \begin{tabular}{c}
  AAAAAAAAAAAAAAAAAAAAAAAAA \\
             OF             \\
     BBBBBBBBBBBBBBBBBBB
  \end{tabular}}
% ...

在此处输入图片描述

相关内容