瀏覽代碼

* Fixed a bug which prevented the use of \title and \author in the document proper.

(Thanks to Uwe Stöhr and Joachim Osnabryg for reporting this bug!)


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@139 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 16 年之前
父節點
當前提交
18ebe7a376
共有 3 個檔案被更改,包括 6 行新增2 行删除
  1. 二進制
      sample-book.pdf
  2. 二進制
      sample-handout.pdf
  3. +6
    -2
      tufte-common.def

二進制
sample-book.pdf 查看文件


二進制
sample-handout.pdf 查看文件


+ 6
- 2
tufte-common.def 查看文件

@@ -556,7 +556,9 @@
\ifthenelse{\isempty{#1}}% \ifthenelse{\isempty{#1}}%
{\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title
{\renewcommand{\plaintitle}{#1}}% use provided plain-text title {\renewcommand{\plaintitle}{#1}}% use provided plain-text title
\@ifpackageloaded{hyperref}{\hypersetup{pdftitle={\plaintitle}}}{}% set the PDF metadata title
\ifthenelse{\isundefined{\hypersetup}}
{}% hyperref isn't 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{}% default author is empty (suppresses LaTeX's ``no author'' warning)
@@ -570,7 +572,9 @@
\ifthenelse{\isempty{#1}} \ifthenelse{\isempty{#1}}
{\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author
{\renewcommand{\plainauthor}{#1}}% use provided plain-text author {\renewcommand{\plainauthor}{#1}}% use provided plain-text author
\@ifpackageloaded{hyperref}{\hypersetup{pdfauthor={\plainauthor}}}{}% set the PDF metadata author
\ifthenelse{\isundefined{\hypersetup}}
{}% hyperref isn't loaded; do nothing
{\hypersetup{pdfauthor={\plainauthor}}}% set the PDF metadata author
} }


\renewcommand*{\date}[1]{% \renewcommand*{\date}[1]{%


Loading…
取消
儲存