Sie sind hier

ERROR: Argument of \strip@prefix has an extra }.

Hi!

Writing this in English, hope that's OK.
I've packaged koma-script from Texlive 2017 on GuixSD (https://guix.info) and while the scrartcl documentclass works flawlessly, the following sample fails:¹

\documentclass[a4paper]{scrlttr2}
\usepackage[utf8]{inputenc}
 
\title{A very simple document}
\author{Oliver Klee}
\date{\today\ (a very good day)}
 
\begin{document}
 
This is an example of how to create line breaks and paragraphs:
 
Three Rings for the Elven-kings under the sky,\\
Seven for the Dwarf-lords in their halls of stone,\\
Nine for Mortal Men doomed to die,\\
One for the Dark Lord on his dark throne
 
\end{document}

with the error message:¹

ERROR: Argument of \strip@prefix has an extra }.
 
--- TeX said ---
<inserted text> 
                \par 
l.12 \begin{document}
 
--- HELP ---
From the .log file...
 
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Any idea what's going on?

[Admin-Edit:]

  1. <code>…</code> tags added (see Textformatinfos)
  2. Moved because to not reproducible with current KOMA-Script release.

Bild von Markus Kohm

I don't know which KOMA-Script version this is (you could find it out in the log-file, i.e. using \listfiles), but I cannot remember any version that had this problem. However, your KOMA-Script is outdated. You should do an update. With current KOMA-Script or current official release I get no such error message.

BTW: You should not use \\ in justified text. So I would recommend to use either:

\documentclass[a4paper]{scrlttr2}
\usepackage[utf8]{inputenc}
 
\title{A very simple document}% does not make much sense for scrlttr2
\author{Oliver Klee}% does not make much sense fot scrlttr2
\setkomavar{date}{\today\ (a very good day)}
 
\begin{document}
 
This is an example of how to create verses:
\begin{verse}
Three Rings for the Elven-kings under the sky,\\
Seven for the Dwarf-lords in their halls of stone,\\
Nine for Mortal Men doomed to die,\\
One for the Dark Lord on his dark throne
\end{verse}
\end{document}

or

\documentclass[a4paper]{scrlttr2}
\usepackage[utf8]{inputenc}
 
\title{A very simple document}% does not make much sense for scrlttr2
\author{Oliver Klee}% does not make much sense for scrlttr2
\setkomavar{date}{\today\ (a very good day)}
 
\begin{document}
 
This is an example of how to create line breaks without paragraphs in left aligned text:
\begin{flushleft}
Three Rings for the Elven-kings under the sky,\\
Seven for the Dwarf-lords in their halls of stone,\\
Nine for Mortal Men doomed to die,\\
One for the Dark Lord on his dark throne
\end{flushleft}
\end{document}

BTW: scrlttr2 without letter environment does not make much sense.

Comments for "ERROR: Argument of \strip@prefix has an extra }." abonnieren