emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??


From: Horst Leps
Subject: Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
Date: Wed, 17 Jan 2024 18:14:59 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14.2; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18

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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]