## LaTeX forum ⇒ Presentations and Posters ⇒ a question regarding template KOMA script

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
refmac5
Posts: 1
Joined: Wed Sep 09, 2015 8:27 pm

### a question regarding template KOMA script

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.

Tags:

Stefan Kottwitz
Posts: 9102
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

Indeed, that template brings that error immediately, without any change. But you can safely remove that line

\newlength{\footheight}

then the document can be compiled. You can find the line as line number 120, as the message said. That length is indeed already defined.

For our readers, here is the link to the template: KOMA-Script Presentation.

Have fun with LaTeX! If there's any problem, or if you would have any question to LaTeX, let us know.

Stefan

barometer
Posts: 3
Joined: Tue Aug 23, 2016 2:16 pm
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 2607 times
Screen Shot 2016-08-23 at 20.18.51.png (17.94 KiB) Viewed 2607 times

Stefan Kottwitz
Posts: 9102
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

barometer wrote:just to follow up with this post.

Why?
Same error message?

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.

Perhaps open a new topic with code (minimal working example) and warning messages?

Stefan

barometer
Posts: 3
Joined: Tue Aug 23, 2016 2:16 pm
Hi, sorry about etiquette. Here is a mwe. I am simply using the codes from the sample you cited
% -*- 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.

Johannes_B
Site Moderator
Posts: 3854
Joined: Thu Nov 01, 2012 4:08 pm
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.

barometer
Posts: 3
Joined: Tue Aug 23, 2016 2:16 pm
Thanks for the update. I've solved this issue