all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
Date: Thu, 18 Jan 2024 12:19:37 +0000	[thread overview]
Message-ID: <878r4mj0km.fsf@localhost> (raw)
In-Reply-To: <CAO48Bk_0COHQ6vFDsUJ-8LjS0mXJ3f=cy8UYb-_AQ-OxiO8=gA@mail.gmail.com>

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

>>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.

I doubt that we can easily catch option clashes like this.
People can customize things arbitrarily with #+latex_header, and we
cannot catch all the possible problems.

What we might improve is displaying compilation errors in a popup buffer
rather than almost-invisible message in the echo area.

>>> 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
> 2) more thought on multilingual documents (#+language: gr,de)
> 3) more though on documents with multiple font encodings.

Agree.
For multiple languages, see the discussion in
https://list.orgmode.org/orgmode/878r9t7x7y.fsf@posteo.net/

> 1) more docs on #+language

If you have ideas how to improve the manual, feel free to share them.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2024-01-18 12:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-18  6:45 #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Pedro Andres Aranda Gutierrez
2024-01-18 12:19 ` Ihor Radchenko [this message]
  -- 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

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

  git send-email \
    --in-reply-to=878r4mj0km.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=paaguti@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.