With the following Org file
----------------------
#
* subtree
:PROPERTIES:
:EXPORT_LATEX_HEADER: \usepackage[utf8]{inputenc}
:EXPORT_LATEX_HEADER+: \usepackage[french]{babel}
:END:
bak
----------------------
upon subtree export (C-c C-e C-s lp), I get an error, the beginning of the
backtrace of which is
Debugger entered--Lisp error: (error "Invalid use of ‘\\’ in replacement
text")
org-latex-guess-babel-language("\\documentclass[11pt]{article}\n\n\n\\usepackage[utf8]{inputenc}
\\usepackage[french]{babel}\n" (:export-options (subtree) :back-end
#s(org-export-backend :name latex :parent nil :transcoders (... ... ... .
This occurs with
GNU Emacs 30.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.43,
cairo version 1.18.2) of 2025-08-18
with either
- a void .emacs and
Org mode version 9.8.4 (9.8.4-2f6959 @
/home/cochard/.emacs.d/elpa/org-9.8.2/)
- a void .emacs and
Org mode version 9.8.2 (9.8.2-2ef390 @
/home/cochard/.emacs.d/elpa/org-9.8.2/)
- emacs -Q and
Org mode version 9.7.11 (release_9.7.11 @ /usr/share/emacs/30.2/lisp/org/)
For what it's worth: (1) the problem does not show up for every combination
of
:EXPORT_LATEX_HEADER:
:EXPORT_LATEX_HEADER+:
(2) I did not succeed in exhibiting the problem with a single
:EXPORT_LATEX_HEADER:
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | [email protected]
5 rue René Descartes | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | bureau 110, ancien bât.