\titleUL 命令定义

\titleUL 命令定义

我实在无法理解为什么\titleUL编译时不起作用。这是我的代码:

\documentclass{book}
\usepackage[english]{babel}
\usepackage{graphicx, imakeidx, afterpage}
\usepackage{mathtools, amsthm, epigraph, etoolbox, amssymb}
%\renewcommand{\qedsymbol}{$\blacksquare$}
\usepackage[utf8]{inputenc}
\usepackage{draftwatermark}
\usepackage[hidelinks]{hyperref}
\usepackage[toc]{glossaries}
\usepackage[intoc]{nomencl}

%----------------WATER MARK AND TITLE--------------
\newcommand*{\titleUL}{\begingroup
\drop=0.1\textheight
\vspace*{\drop}
\begin{center}
{\LARGE\textsc{UNIVERSIDAD NACIONAL AUT\'ONOMA DE M\'EXICO}\\[\drop]
% University logo
{\LARGE \plogo}\\[\drop]
\rule{\textwidth}{1pt}\par
\vspace{0.5\baselineskip}
{\huge\bfseries Encyclop\ae dia Formul\ae\\
\large --- in N pages, with T tables ---}\\
[0.5\baselineskip]
\rule{\textwidth}{1pt}\par
\vfill
{\Large\textsc{The\EncFortnote{\texttt{email address}} Candidate}}
\vfill
City, Country
\vfill
{\large The Date}
\end{center}%
\endgroup}
}
\setcounter{page}{0}
%-------------------------------------------------
\SetWatermarkText{DRAFT}
\SetWatermarkScale{5}
\makeindex[columns=2, intoc]
\makeglossaries

\begin{document}

\titleUL

%-------------------COVER PAGE page 0-------------------%

%------------------------------------------------------
\frontmatter
\newpage            % false page i.
\newpage            % false page ii.
%--------------------TITLE PAGE iii------------------------%
\author{Karl Ruprecht Kr\"{o}nen}   % agregar adscripcion e.g. Ph.D. FRS.
\title{Encyclop\ae dia Formul\ae}
% nombre de la casa editora
% nombre del resivor tecnico con sus adscripciones
\date{}
\maketitle
\end{document}

答案1

我认为这是目标:

封面

这是根据 Peter Wilson 的titlepages.tex作为其套餐的一部分提供标题页

我并没有真正改变代码。我可能不会这样做,但它确实有效。我已将页面样式设置为空,以避免页码看起来很奇怪。并且我省略了我认为我们这里不需要的分组。

\documentclass[a4paper]{article}
\usepackage{geometry,url}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}
\newdimen\drop
\newcommand*{\titleUL}{%
  \drop=0.1\textheight
  \vspace*{\drop}
  \begin{center}
    {\LARGE\textsc{THE UNIVERSITY}}\\[\drop]
    % University logo
    {\LARGE \plogo}\thispagestyle{empty}\\[\drop]

    \rule{\textwidth}{1pt}\par
    \vspace{0.5\baselineskip}
    {\huge\bfseries Conundrums: An Investigation of Mind Puzzles\\
      \large --- in N pages, with T tables ---}\\[0.5\baselineskip]
    \rule{\textwidth}{1pt}\par

    \vfill

    % fake a footnote reference here
    {\Large\textsc{The\textsuperscript{1} Candidate}}

    \vfill

    City, Country

    \vfill

    {\large The Date}
  \end{center}

  % faked footnote
  \vspace{-0.5\baselineskip}
  \noindent\rule{0.4\textwidth}{0.4pt} \\
  \textsuperscript{1} \url{email.address}
}
\begin{document}
  \titleUL
\end{document}

相关内容