the following is the error when I was trying to run pdflatex using the KOMA script template. Anyone can tell me where I can fix? Thank you.
New to latex.
! LaTeX Error: Command \footheight already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.120 \newlength{\footheight}
?
Last edited by cgnieder on Thu Sep 10, 2015 4:12 pm, edited 1 time in total.
Hello, just to follow up with this post. I recently updated to Koma script v3.20. After than when I recompile the .tex file, it give me all sorts of warning message. In particular, the page orientation (or paper size) is changed. I couldn't figure out how to revert it the original version. Any suggestions?
Attachments
Screen Shot 2016-08-23 at 20.19.02.png (41.59 KiB) Viewed 9665 times
Screen Shot 2016-08-23 at 20.18.51.png (17.94 KiB) Viewed 9665 times
Please open a new topic for each new question. If you just attach to the end of an old and solved topic, there's not a good chance that people read it. Don't worry, here is space for a million topics.
barometer wrote:Any suggestions?
Sure, one of a hundred things can be wrong. Hard to say if you don't post code and don't show those warning texts you get.
% -*- program: pdflatex -*-
\documentclass[
paper=128mm:96mm,
fontsize=12pt,
pagesize,
parskip=half-,
]{scrartcl}
\usepackage[ % Page margins settings
includeheadfoot,
top=3.5mm,
bottom=3.5mm,
left=5.5mm,
right=5.5mm,
headsep=6.5mm,
footskip=8.5mm,
]{geometry}
\usepackage[automark]{scrlayer-scrpage}% activates pagestyle scrheadings automatically
\automark{section}
\automark*{subsection}
\clearpairofpagestyles
\ihead{\rightmark}
\usepackage{lipsum}
\begin{document}
\section{This should appear in the header untill it reaches a subsection}
\lipsum[1]
\clearpage
\subsection{Once subsection is reached this should appear in header}
\lipsum[3]
\end{document}
The warnings I got are:
W: /usr/local/texlive/2015/texmf-dist/tex/latex/koma-script/typearea.sty:0 Maybe no optimal type area settings!(typearea) The maximum limit of line width is about 45%(typearea) larger than the heuristically detected line width.
W: /usr/local/texlive/2015/texmf-dist/tex/latex/koma-script/typearea.sty:0 page content and margins higher than paper.
The problem at the very top was fixed in the template a few days after reporting here.
The warning you receive can be ignored. You can avoid it if you substitute the second line in your example with papersize={128mm,96mm}, as an option for package geometry.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.