From 2bae245570a323d357f017e9ae6925834bb3ec89 Mon Sep 17 00:00:00 2001 From: "Kevin M. Godby" Date: Sat, 20 Dec 2008 02:57:04 +0000 Subject: [PATCH] * 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 --- tufte-common.sty | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tufte-common.sty b/tufte-common.sty index d671a84..dcb79d6 100644 --- a/tufte-common.sty +++ b/tufte-common.sty @@ -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