Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

For an assignment at university I have to copy a lay-out template that is provided in Word but I want to use LaTeX. For this, I need to have two lines in the footer.

How can I achieve this using scrpage2? It is possible to simply use \\ in the text, e.g.

\refoot{\upshape Course year\\ 2010/2011}

however, then the text is shifted upwards into my separation line instead of downwards.

There are the commands

\setheadwidth
\setfootwidth

available but not

\setfootheight
\setheadheight

Minimal example:

\documentclass{scrartcl}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}

\usepackage[headsepline, footsepline]{scrpage2}

\refoot{Course year\\ 2010/2011} 
\rofoot{Course year\\ 2010/2011}

\thispagestyle{scrheadings}
\pagestyle{scrheadings}

\begin{document}
 This is a sample document.
\end{document}
share|improve this question
    
Added a minimal example. –  Ingo Sep 14 '10 at 13:46
add comment

1 Answer

up vote 5 down vote accepted

in LaTeX2e the command \footheight does not longer exist. It actually did in LaTeX 2.09. To solve your problem there are two possible options.

1) You can use \raisebox and e.g. a tabular environment to get everything below the line

\documentclass{scrartcl}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{layout}

\usepackage[headsepline, footsepline]{scrpage2}

\refoot{Course year\\ 2010/2011} 
\rofoot{\raisebox{-5ex}{\begin{tabular}[t]{rr}
Course year\\
2010/2011
\end{tabular}}}

\thispagestyle{scrheadings}
\pagestyle{scrheadings}

\begin{document}

 This is a sample document.
\end{document}

2) or you draw the line yourself with \rule

\documentclass{scrartcl}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{layout}

\usepackage[headsepline]{scrpage2}

\refoot{Course year\\ 2010/2011} 
\rofoot{%
\rule{1\textwidth}{1.5pt}
\begin{tabular}[t]{rr}
Course year\\
2010/2011
\end{tabular}}

\thispagestyle{scrheadings}
\pagestyle{scrheadings}

\begin{document}

 This is a sample document.
\end{document}
share|improve this answer
    
Thank you very much! This worked indeed. I know that typographically, this solution is horrible. But what can you do about stupid university requirements...? –  Ingo Sep 17 '10 at 8:27
add comment

Your Answer

 
discard

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.