tudace / tuda_latex_templates

LaTeX Templates for TU Darmstadt
LaTeX Project Public License v1.3c
213 stars 71 forks source link

\appendix changes names of figures in main text #59

Closed felixschmitt closed 5 years ago

felixschmitt commented 5 years ago

when using the \appendix command, the name of all figures in the text BEFORE the appendix changes from e.g. Abbildung 1.1. to Abbildung 1.1.. (two dots instead of one)

TeXhackse commented 5 years ago

This is a KOMA-Script Feature. If you use section-numbers containing non-numeric characters it will change that. You can adjust that using the endperiod/noendperiod/autoendperiod options of KOMA-Script.

See the KOMA-Script manual (texdoc scrguien or http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguide.pdf) for further information.

felixschmitt commented 5 years ago

would you be able to explain this a little further? unfortunately I don't know where to change this and I didn't find anything about it on the internet. a workaround would also be fine...

schoeps commented 5 years ago

Did you search for "noendperiod" in the manual?

felixschmitt commented 5 years ago

yes, my problem is that I do not know which file I have to change. I'm using Overleaf and I'm very new to latex

schoeps commented 5 years ago

It is common practice to post a minimal working example in such issues trackers which demonstrates the problem. Maybe you can do so and then someone will surely help (although it's off topic and you could use google to search for "koma" and "noenddot" or "scrarticle" etc).

See here an MWE how to use noenddot:

%!TEX TS-program = lualatex
\documentclass[pdfa=false,numbers=noenddot]{tudapub}
\begin{document}
\section{Head 1}
\subsection{Head 2}
\begin{figure}
    \caption{text}
\end{figure}
\appendix
\end{document}
TeXhackse commented 5 years ago

reopened, because the two dot thingie should not happen in any way. will have a look at tht

schoeps commented 5 years ago

However noenddot is working as expected, see above.

TeXhackse commented 5 years ago

@schoeps thx ;-)

@felixschmitt did you add any other changes on the captions? Because I can't reconstruct that.

felixschmitt commented 5 years ago

@schoeps thanks a lot, I literally didn't know that you have to put it in the \documentclass[]. Works fine now!

@TeXhackse yes I'm also using this piece of code to modify the caption, but it still seemed to make two dots without it:

%\DeclareCaptionLabelSeparator*{spaced}{\[2ex]} \captionsetup[table]{textfont=it,format=plain,justification=justified, singlelinecheck=false,labelsep=spaced,skip=0pt} \captionsetup[figure]{labelsep=period,labelfont=it,justification=justified, singlelinecheck=false}%,font=doublespacing}

felixschmitt commented 5 years ago

It is possible that I also changed something else that I don't remember, so if you can't replicate it, it might have been my fault. If so, I'm sorry but thanks a lot for the help ;)

TeXhackse commented 5 years ago

There you go, you add a period manually -> this leads to two. You do that with labelsep=period

You should not use a special package for that kind of changes. Have a look at the KOMA-Script manual, you can do everything using this or even without both. This would also help you learning how the setup works.

Just as a general advice: Try to solve such Issues using KOMA-Script. Then you would not run into such problems and blame me for your issues ;-)