From e24328b4af9c445cd5fa9c4803b02faee466b84b Mon Sep 17 00:00:00 2001 From: Bil Kleb Date: Sun, 28 Mar 2010 15:29:28 +0000 Subject: [PATCH] Toward debugging \thanks behavior w.r.t. \author and \title (issue 43), refactor to make the two as similar as possible. Also, alter comments slightly to avoid wonky vim highlighting. git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@146 516e2f36-ce3a-0410-bea4-1d4a03f5df72 --- tufte-common.def | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tufte-common.def b/tufte-common.def index 6bdf9fd..faa20a2 100644 --- a/tufte-common.def +++ b/tufte-common.def @@ -559,12 +559,12 @@ \ifthenelse{\isempty{#1}}% {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title {\renewcommand{\plaintitle}{#1}}% use provided plain-text title - \ifthenelse{\isundefined{\hypersetup}} - {}% hyperref isn't loaded; do nothing + \ifthenelse{\isundefined{\hypersetup}}% + {}% hyperref is not loaded; do nothing {\hypersetup{pdftitle={\plaintitle}}}% set the PDF metadata title } -\def\@author{}% default author is empty (suppresses LaTeX's ``no author'' warning) +\def\@author{}% suppress default latex.ltx ``no author'' warning \renewcommand*{\author}[2][]{% \gdef\@author{#2}% \begingroup% @@ -572,11 +572,11 @@ \renewcommand{\thanks}[1]{}% swallow \thanks contents \protected@xdef\thanklessauthor{#2}% \endgroup% - \ifthenelse{\isempty{#1}} + \ifthenelse{\isempty{#1}}% {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author {\renewcommand{\plainauthor}{#1}}% use provided plain-text author - \ifthenelse{\isundefined{\hypersetup}} - {}% hyperref isn't loaded; do nothing + \ifthenelse{\isundefined{\hypersetup}}% + {}% hyperref is not loaded; do nothing {\hypersetup{pdfauthor={\plainauthor}}}% set the PDF metadata author }