From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>,
Ihor Radchenko <yantar92@posteo.net>
Subject: Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
Date: Thu, 18 Jan 2024 07:45:47 +0100 [thread overview]
Message-ID: <CAO48Bk_0COHQ6vFDsUJ-8LjS0mXJ3f=cy8UYb-_AQ-OxiO8=gA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2108 bytes --]
Hi Just to document this discussion a bit more:
Ihor writes:
>Horst Leps <horstleps@outlook.de> writes:
>
>> #+latex_class: koma-article
>
>This is non-standard.
>What is your value of org-latex-classes?
There is a translation from koma-article to scrartcl in the
org-latex-classes, so that is not the problem.
>> Makes:
>> ...
>> \usepackage[germanb]{babel}
>> ...
>> \usepackage[greek,german]{babel}
>> ...
>> -------------------
>>
>> ! LaTeX Error: Option clash for package babel.
>> -------------------
>>
>> Only one latex run. Tableofconts Table remains empty.
>>
>> Supposition:
>>
>> 1. The Latex source contains {babel} twice, but only once is allowed.
>
>ox-latex tries hard to not duplicate babel. I am unable to reproduce
>duplication with your file (but with #+latex_class: koma-article removed)
Despite this, there is a repetition, and the clash is because ox-latex
wants ngerman wiith
#+language: de
while Horst wants to use germanb. The clash is between what ox-latex
generates and what Horst tries to add with #+LATEX_HEADER:
Actually, he also needs greek and for that I have recommended to customise
variables so that fontenc is "LGR,T1" and the parameters for babel are
"greek,AUTO", instead of trying to add a #+LATEX_HEADER:
\usepackage[LGR,T1]fontenc, because that also generates a package
option clash.
That is something we might need to explore more, if/when people need/want
to use pdflatex instead of luatex or xelatex.
>> 2. There is an error in my Orgmode code because it exports {babel} once
>> too many
>
>Does the problem persist without #+latex_class: koma-article?
Once again, yes, because it is mainly a matter of #+language.
I think we need the following
1) more docs on #+language
2) more thought on multilingual documents (#+language: gr,de)
3) more though on documents with multiple font encodings.
Best, /PA
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet
[-- Attachment #2: Type: text/html, Size: 2912 bytes --]
next reply other threads:[~2024-01-18 6:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 6:45 Pedro Andres Aranda Gutierrez [this message]
2024-01-18 12:19 ` #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Ihor Radchenko
-- strict thread matches above, loose matches on Subject: below --
2024-01-12 10:24 Tableofcontents Horst Leps
2024-01-12 16:53 ` Tableofcontents Tory S. Anderson
2024-01-13 12:27 ` Tableofcontents Ihor Radchenko
2024-01-16 19:12 ` #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Horst Leps
2024-01-16 19:27 ` Ihor Radchenko
2024-01-17 17:14 ` Horst Leps
2024-01-17 17:24 ` Horst Leps
2024-01-18 12:12 ` Ihor Radchenko
2024-01-16 19:46 ` Juan Manuel Macías
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://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO48Bk_0COHQ6vFDsUJ-8LjS0mXJ3f=cy8UYb-_AQ-OxiO8=gA@mail.gmail.com' \
--to=paaguti@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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/emacs/org-mode.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).