两条线之间的线

两条线之间的线

我正在尝试使用 LaTeX 制作名片。这是我目前想到的办法。唯一让我不满意的是,我希望电话号码向下移动半行,以便位于公司名称和标语之间。

picture of compiled latex file

% !TEX TS-program = xelatex
\documentclass[a4paper,9pt,oneside,portrait]{memoir}
\usepackage{fontspec}
\usepackage[newdimens]{labels}
\setmainfont[Numbers={OldStyle,Monospaced}]{Copperplate}
\setmonofont{Monaco}
\LabelCols=2%
\LabelRows=5%
\LeftPageMargin=8.0mm%
\RightPageMargin=8.0mm%
\TopPageMargin=4mm%
\BottomPageMargin=6.5mm%
\InterLabelColumn=2.0cm%
\InterLabelRow=1.0mm%
\LeftLabelBorder=4mm%
\RightLabelBorder=4mm%
\TopLabelBorder=0mm%
\BottomLabelBorder=0mm%
\numberoflabels=10%
\LabelGridtrue%  <-- or \LabelGridfalse
\newcommand{\phonenumber}{+123\textendash456\textendash789}
\newcommand{\emailaddress}{[email protected]}
\newcommand{\website}{fancywebsite.com}
%
\begin{document}
\addresslabel[\fboxsep=1mm]{%
    {\Large \phonenumber} \hfill {\LARGE CompanyName}\\   
    \hfill {\small Great Tag Line}\\
    \vspace{6ex}%
    \begin{center}
    \textsc{\huge \textbf Max POWER}  
    \end{center}
    \vspace{6ex}%

    \begin{center}
    \textsc{\LARGE{\website\\ \emailaddress}}
    \end{center}

}
\end{document}

答案1

您可以分别设置电话号码和公司名称/标语tabular,因为它们必须在中心垂直对齐:

enter image description here

\documentclass[a4paper,9pt,oneside,portrait]{memoir}
\usepackage[newdimens]{labels}

\LabelCols=2%
\LabelRows=5%
\LeftPageMargin=8.0mm%
\RightPageMargin=8.0mm%
\TopPageMargin=4mm%
\BottomPageMargin=6.5mm%
\InterLabelColumn=2.0cm%
\InterLabelRow=1.0mm%
\LeftLabelBorder=4mm%
\RightLabelBorder=4mm%
\TopLabelBorder=0mm%
\BottomLabelBorder=0mm%
\numberoflabels=10%
\LabelGridtrue%  <-- or \LabelGridfalse
\newcommand{\phonenumber}{+123\textendash456\textendash789}
\newcommand{\emailaddress}{[email protected]}
\newcommand{\website}{fancywebsite.com}

\begin{document}
\addresslabel[\fboxsep=1mm]{%
  \begin{tabular}{@{}l}
    \Large \phonenumber
  \end{tabular} \hfill 
  \begin{tabular}{r@{}}
    \LARGE CompanyName \\
    \small Great Tag Line
  \end{tabular}

  \vspace{6ex}%

  \begin{center}
    \huge\scshape\bfseries Max POWER
  \end{center}

  \vspace{6ex}%

  \begin{center}
    \LARGE\scshape \website \\ \emailaddress
  \end{center}
}
\end{document}

相关内容