Przeglądaj źródła

* Removed blank space that was left behind if the author or date fields were empty.

git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@71 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 17 lat temu
rodzic
commit
2bae245570
1 zmienionych plików z 5 dodań i 4 usunięć
  1. +5
    -4
      tufte-common.sty

+ 5
- 4
tufte-common.sty Wyświetl plik

@@ -245,6 +245,7 @@
\hypersetup{pdftitle={\thetitle}}% set the PDF metadata title
}

\def\@author{}% default author is empty (suppresses LaTeX's ``no author'' warning)
\renewcommand*{\author}[2][]{%
\gdef\@author{#2}%
\begingroup%
@@ -765,13 +766,13 @@
% FIXME fails with \thanks
\sffamily
\par{\Large\allcaps{\@title}}
\par{\large\allcaps{\@author}}
\par{\large\allcaps{\@date}}
\ifthenelse{\equal{\@author}{}}{}{\par{\large\allcaps{\@author}}}
\ifthenelse{\equal{\@date}{}}{}{\par{\large\allcaps{\@date}}}
\endgroup}
{\begingroup
\par{\Large\textit{\@title}}
\par{\large\textit{\@author}}
\par{\large\textit{\@date}}
\ifthenelse{\equal{\@author}{}}{}{\par{\large\textit{\@author}}}
\ifthenelse{\equal{\@date}{}}{}{\par{\large\textit{\@date}}}
\endgroup}
\par
\thispagestyle{plain}% suppress the running head


Ładowanie…
Anuluj
Zapisz