unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 33094@debbugs.gnu.org
Subject: bug#33094: latex-koma-script: scrlttr2: ERROR: Argument of \strip@prefix has an extra }.
Date: Wed, 16 Feb 2022 00:15:58 +0100	[thread overview]
Message-ID: <87fsoj67gb.fsf@elephly.net> (raw)
In-Reply-To: <87mtjst8tk.fsf@elephly.net>


Ricardo Wurmus <rekado@elephly.net> writes:

> My guess: the argument is the absolute file name of pdftex.map.  It
> doesn’t belong to any real package in the tlpdb, and I’m pretty sure we
> generate it.  However, in this case it must be missing, so that there is
> no argument to \strip@prefix.

This was wrong, but I can’t blame myself: the LaTeX errors are
incredibly useless and misleading.

I added \setcounter{errorcontextlines}{999} to the document to see some
context, but it served little more than to confuse me.  (It didn’t print
999 context lines but only 4 lines with elisions.)  It did however
indicate that the error might be related to languages.

So I changed the document to this:

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper]{scrlttr2}
\usepackage[utf8]{inputenc}

% This line is new.  Set the language!
\usepackage[british]{babel}
%\setcounter{errorcontextlines}{999}

\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}
--8<---------------cut here---------------end--------------->8---

It worked.

I don’t know why the monolithic TeX Live package doesn’t have this
problem, but at least we’ve got a workaround now: load babel and set a
default language.

I’ll also add that the texlive-latex-koma-script package in Guix is not
up to our standards.  It’s not built from source (= not generated from
dtx/ins files) and it doesn’t include all files such as documentation
and source files.  We should fix that too.

-- 
Ricardo




  reply	other threads:[~2022-02-15 23:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19 13:35 bug#33094: latex-koma-script: scrlttr2: ERROR: Argument of \strip@prefix has an extra } Pierre Neidhardt
     [not found] ` <handler.33094.B.15399561855233.ack@debbugs.gnu.org>
2018-10-19 14:07   ` bug#33094: Acknowledgement (latex-koma-script: scrlttr2: ERROR: Argument of \strip@prefix has an extra }.) Pierre Neidhardt
2022-01-19  8:38 ` bug#33094: latex-koma-script: scrlttr2: ERROR: Argument of \strip@prefix has an extra } Ricardo Wurmus
2022-02-15 23:15   ` Ricardo Wurmus [this message]
2022-02-16 11:00     ` Ricardo Wurmus
2022-02-16 12:14       ` Ricardo Wurmus
2022-05-26 12:05       ` Lars-Dominik Braun
2022-05-31 10:32         ` Ricardo Wurmus
2022-06-05 10:25           ` Lars-Dominik Braun
2022-06-05 11:00             ` Liliana Marie Prikler
2022-06-05 17:48               ` Lars-Dominik Braun
2023-08-26  9:04 ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsoj67gb.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=33094@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).