5

In the past I just used \newcommand{\sectionname}[1]{Task~#1} to make the sections have a different name. Now it seems to have stopped working.

I am using babel with the ngerman option. I have already tried \addto\captionsngerman and am now trying with KOMA.

My MWE:

\documentclass{scrartcl}

\usepackage{ucs} % Unicode
\usepackage[utf8x]{inputenc} % "utf8x" benutzt "ucs"-Paket, besser als "UTF8"
\usepackage{lmodern} % für Schriftart mit Umlauten
\usepackage[ngerman]{babel}

\renewcommand{\thepart}{\arabic{part}}
\renewcommand{\thesubsection}{\alph{subsection}}
\renewcommand{\thesubsubsection}{\roman{subsubsection}}

\newcaptionname{ngerman}{\sectionname}{Task~\thesection}
\newcaptionname{ngerman}{\subsectionname}{\thesubsection)}
\newcaptionname{ngerman}{\subsubsectionname}{\thesubsubsection)}

\begin{document}
    \section{}
    \subsection{}
    \subsubsection{}
\end{document}

I want the sections to just say "Task 1, Task 2, ...", the subsections "a), b), ..." and the subsubsections to say "i), ii), iii), iv), ...".

I have the feeling I am missing something simple here.

Thanks for your time!

closed as unclear what you're asking by user31729, user13907, egreg, Svend Tveskæg, Jesse Dec 25 '15 at 11:50

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I am not completely familiar with scrartcl etc. but I don't think captionname is what you want to change. You have to change the counter output rather – user31729 Nov 24 '15 at 13:36
  • You may find this TeX.SX post useful, though it doesn't directly answer your question. – Arun Debray Nov 24 '15 at 14:15
  • There are packages dedicated for exam sheets, like exsheets. The fact that you can do \newcaptionname tells you that it isn't defined before, so it isn't used anywhere. If you don't want to use a dedicated package, you could declare a new sectioning command just for the task and subtasks instead of using sections/subsections. – Johannes_B Nov 24 '15 at 14:27
  • Going through source code, I can't find anything that uses \sectionname. The only times it shows up are \let\sectionname=\@empty and \let\sectionname=\appendixname. You might try \renewcommand{\thesection}{Task~\arabic{section} – John Kormylo Nov 24 '15 at 14:43
0
\documentclass[numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc}
\usepackage{lmodern} % für Schriftart mit Umlauten
\usepackage[ngerman]{babel}

\renewcommand{\thepart}{\arabic{part}}
\renewcommand\thesection{Task~\arabic{section}}
\renewcommand\thesubsection{\alph{subsection})}
\renewcommand\thesubsubsection{\roman{subsection})}

\begin{document}
    \section{}
    \subsection{}
    \subsubsection{}
\end{document}

Not the answer you're looking for? Browse other questions tagged or ask your own question.