7

I have this code:

\documentclass{tufte-book}

\begin{document}

    \title{Some stuff\\ \& \\Some other stuff}
    \author{Me}
    \date{Fall 2014}

    \maketitle

\end{document}

The title doesn't break into three lines; instead I get an error. Is there a way to fix this?

I also want to add an image to the cover. What's the best way? Do I need to redefine \maketitle (ugh), or is there something simpler?

1
  • Where should the image be inserted? Between author and title, before author, after title? May 22, 2014 at 21:57

1 Answer 1

7

You should set the \title, \author and \date in the preamble:

enter image description here

\documentclass{tufte-book}
\usepackage{graphicx}

\newsavebox{\titleimage}
\savebox{\titleimage}{\includegraphics[height=7\baselineskip]{example-image}}

\title[Some stuff \& Some other stuff]{%
  \setlength{\parindent}{0pt}%
  Some stuff \par \& \par Some other stuff \par \vspace{1cm}
  \usebox{\titleimage}}
\author{Me}
\date{Fall 2014}

\begin{document}

\maketitle

\end{document}

Images should also be handled specially. Above I've placed the image in a box before including it in the \title.

3
  • That works. I'm wondering, though: in a simpler title situation (i.e., no line breaks within \title), I can set \title, \author, and \date within document and it works fine. Why do the line breaks change that?
    – crmdgn
    May 22, 2014 at 23:37
  • @crmdgn: I can't do that without an error reporting that \title "Can be used only in preamble."
    – Werner
    May 22, 2014 at 23:41
  • This is getting interesting. What might explain that difference?
    – crmdgn
    May 24, 2014 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.