LaTeX forum ⇒ Presentations and Postersa 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

Postby refmac5 » Wed Sep 09, 2015 8:30 pm

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.



  1. ! LaTeX Error: Command \footheight already defined.
  2. Or name \end... illegal, see p.192 of the manual.
  3.  
  4. See the LaTeX manual or LaTeX Companion for explanation.
  5. Type H <return> for immediate help.
  6. ...
  7.  
  8. l.120 \newlength{\footheight}
  9.  
  10. ?
Last edited by cgnieder on Thu Sep 10, 2015 4:12 pm, edited 1 time in total.
Reason: added code markup

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Sep 09, 2015 8:42 pm

Welcome to the forum!

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

  1. \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
Site admin

barometer
Posts: 3
Joined: Tue Aug 23, 2016 2:16 pm

Postby barometer » Tue Aug 23, 2016 2:21 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
Screen Shot 2016-08-23 at 20.19.02.png (41.59 KiB) Viewed 2336 times
Screen Shot 2016-08-23 at 20.18.51.png
Screen Shot 2016-08-23 at 20.18.51.png (17.94 KiB) Viewed 2336 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 23, 2016 3:42 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 (Infominimal working example) and warning messages?

Stefan
Site admin

barometer
Posts: 3
Joined: Tue Aug 23, 2016 2:16 pm

Postby barometer » Wed Aug 24, 2016 8:27 am

Hi, sorry about etiquette. Here is a mwe. I am simply using the codes from the sample you cited
  1. % -*- program: pdflatex -*-
  2. \documentclass[
  3. paper=128mm:96mm,
  4. fontsize=12pt,
  5. pagesize,
  6. parskip=half-,
  7. ]{scrartcl}
  8. \usepackage[ % Page margins settings
  9. includeheadfoot,
  10. top=3.5mm,
  11. bottom=3.5mm,
  12. left=5.5mm,
  13. right=5.5mm,
  14. headsep=6.5mm,
  15. footskip=8.5mm,
  16. ]{geometry}
  17.  
  18. \usepackage[automark]{scrlayer-scrpage}% activates pagestyle scrheadings automatically
  19. \automark{section}
  20. \automark*{subsection}
  21. \clearpairofpagestyles
  22. \ihead{\rightmark}
  23.  
  24. \usepackage{lipsum}
  25. \begin{document}
  26. \section{This should appear in the header untill it reaches a subsection}
  27. \lipsum[1]
  28. \clearpage
  29. \subsection{Once subsection is reached this should appear in header}
  30. \lipsum[3]
  31. \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.

User avatar
Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Aug 24, 2016 8:37 am

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

Postby barometer » Thu Aug 25, 2016 4:07 am

Thanks for the update. I've solved this issue


Return to “Presentations and Posters”

Who is online

Users browsing this forum: No registered users and 2 guests