TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I'm trying out this code from here, but I keep getting this image: enter image description here What is happening? I copy-and-pasted the code.

share|improve this question
Please be more specific. Which code did you copy and paste? The string hrule (in lowercase) doesn't appear on the linked site. – Caramdir Apr 2 '11 at 5:09
@Caramdir -- sorry, I changed it to hrule because it wasn't working. But I copy and pasted the "University of Beer" stuff – wrongusername Apr 2 '11 at 5:10
up vote 4 down vote accepted

You forgot the third line



\textsc{\LARGE University of Beer}\\[1.5cm]
\textsc{\Large Final year project}\\[0.5cm]

% Title
\HRule \\[0.4cm]
{ \huge \bfseries Lager brewing techniques}\\[0.4cm]

\HRule \\[1.5cm]

% Author and supervisor
\begin{flushleft} \large
John \textsc{Smith}
\begin{flushright} \large
\emph{Supervisor:} \\
Dr.~Mark \textsc{Brown}

% Bottom of the page
{\large \today}


enter image description here

share|improve this answer
The option pdftex to \documentclass and to the graphicx package is unnecessary. To say it more clearly, it must never be given, with an up-to-date TeX environment. – egreg Apr 2 '11 at 9:31
@egreg I keep the OP's code intact from the link but I agree with you – Alain Matthes Apr 2 '11 at 9:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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