From: Horst Leps <horstleps@outlook.de>
To: Ihor Radchenko <yantar92@posteo.net>,
Mailingliste Orgmode <emacs-orgmode@gnu.org>,
Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Subject: Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
Date: Wed, 17 Jan 2024 18:14:59 +0100 [thread overview]
Message-ID: <AS4P189MB196663A6BBBAE51883754228C4722@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <87jzo9jcxs.fsf@localhost>
Ihor Radchenko schrieb:
Hi,
I have this part here in the .emacs:
(add-to-list 'org-latex-classes
'("koma-article"
"\\documentclass{scrartcl}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
But I changed the org header and rebuilt it from the beginning:
#+latex_class: article
#+TITLE: *Lesson piece: Our town hall*
#+SUBTITLE: Using the example of the Hamburg town hall, plus the town
halls of Lüneburg, Ahrensburg and Berlin-Marzahn -- a desk design
#+AUTHOR: Dr. Horst Leps
#+DATE: \today, \dtc
#+LATEX_HEADER: \usepackage{time}
#+LANGUAGE: de
#+HTML_DOCTYPE: html4 transitional
#+LATEX_HEADER: \usepackage[utf8]{inputenc}
#+LATEX_HEADER: \usepackage[LGR,T1]{fontenc}
#+LATEX_HEADER: \usepackage[greek,german]{babel}
#+LATEX_HEADER: \usepackage[a4paper, left=2cm, right=2cm, top=2cm]{geometry}
#+LATEX_HEADER: \usepackage{etoolbox}
#+LATEX_HEADER:
\appto\UrlBreaks{\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\
do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\
w\do\x\do\y\do\z}
#+LATEX_HEADER: \pagestyle{headings}
#+LATEX_HEADER: \usepackage{hyperref}
#+LATEX_HEADER: \hypersetup{colorlinks=true, linkcolor=blue,
pagecolor=blue, urlcolor=blue, pdfborder={0 0 0}}
#+LATEX_HEADER: \usepackage{booktabs}
First of all, I'm very happy with the result:
https://www.leps.de/wp-content/uploads/rathaus8-ex3/rathaus8-ex3.pf
Because this pdf is very large, I also use an html so that the text can
be viewed quickly. I create the HTML with latex2html because latex2html
creates a folder with complete contents:
https://www.leps.de/wp-content/uploads/rathaus8-ex3/index.html
Everything works.
Thanks!
Feedback geben
Seitenleisten
> Horst Leps <horstleps@outlook.de> writes:
>
>> #+latex_class: koma-article
>
> This is non-standard.
> What is your value of org-latex-classes?
>
>> 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)
>
>> 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?
>
next prev parent reply other threads:[~2024-01-17 17:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 10:24 Tableofcontents Horst Leps
2024-01-12 14:26 ` Tableofcontents Ihor Radchenko
[not found] ` <AS4P189MB1966EA15B1B44B6909D6145AC46F2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
[not found] ` <87zfxaoawq.fsf@localhost>
[not found] ` <AS4P189MB19667F61F50FDF30A0339015C46F2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
2024-01-13 12:25 ` AW: AW: Tableofcontents Ihor Radchenko
2024-01-13 15:30 ` Tableofcontents Horst Leps
2024-01-12 16:53 ` Tableofcontents Tory S. Anderson
2024-01-13 12:27 ` Tableofcontents Ihor Radchenko
2024-01-13 16:18 ` Tableofcontents Tory S. Anderson
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 [this message]
2024-01-17 17:24 ` Horst Leps
2024-01-18 12:12 ` Ihor Radchenko
2024-01-16 19:46 ` Juan Manuel Macías
-- strict thread matches above, loose matches on Subject: below --
2024-01-18 6:45 Pedro Andres Aranda Gutierrez
2024-01-18 12:19 ` Ihor Radchenko
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=AS4P189MB196663A6BBBAE51883754228C4722@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM \
--to=horstleps@outlook.de \
--cc=emacs-orgmode@gnu.org \
--cc=paaguti@gmail.com \
--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).