* Tableofcontents
@ 2024-01-12 10:24 Horst Leps
2024-01-12 14:26 ` Tableofcontents Ihor Radchenko
2024-01-12 16:53 ` Tableofcontents Tory S. Anderson
0 siblings, 2 replies; 13+ messages in thread
From: Horst Leps @ 2024-01-12 10:24 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
(I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1)
Since a few days: Orgmode export to Latex only creates one Latex run, so that the table of contents remains empty and no longer shows any sections. - What to do? Horst
[-- Attachment #2: Type: text/html, Size: 1958 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Tableofcontents
2024-01-12 10:24 Tableofcontents Horst Leps
@ 2024-01-12 14:26 ` Ihor Radchenko
[not found] ` <AS4P189MB1966EA15B1B44B6909D6145AC46F2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
2024-01-12 16:53 ` Tableofcontents Tory S. Anderson
1 sibling, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2024-01-12 14:26 UTC (permalink / raw)
To: Horst Leps; +Cc: emacs-orgmode@gnu.org
Horst Leps <horstleps@outlook.de> writes:
> (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1)
>
> Since a few days: Orgmode export to Latex only creates one Latex run, so that the table of contents remains empty and no longer shows any sections. - What to do? Horst
Thanks for reporting!
What is your value of `org-latex-pdf-process'?
Did you do any changes in Emacs config recently? Or changed LaTeX installation?
--
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>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Tableofcontents
2024-01-12 10:24 Tableofcontents Horst Leps
2024-01-12 14:26 ` Tableofcontents Ihor Radchenko
@ 2024-01-12 16:53 ` Tory S. Anderson
2024-01-13 12:27 ` Tableofcontents Ihor Radchenko
1 sibling, 1 reply; 13+ messages in thread
From: Tory S. Anderson @ 2024-01-12 16:53 UTC (permalink / raw)
To: Horst Leps; +Cc: emacs-orgmode@gnu.org
Horst Leps <horstleps@outlook.de> writes:
> (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1)
> Since a few days: Orgmode export to Latex only creates one Latex run, so that the table of contents remains empty and no longer shows any sections. -
> What to do? Horst
I don't run the cutting-edge org, but I often have to run my export twice to get things like page numbers correct. Maybe it's not ideal, but if you run the export a second time does it change the result?
- Tory
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: AW: AW: Tableofcontents
[not found] ` <AS4P189MB19667F61F50FDF30A0339015C46F2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
@ 2024-01-13 12:25 ` Ihor Radchenko
2024-01-13 15:30 ` Tableofcontents Horst Leps
0 siblings, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2024-01-13 12:25 UTC (permalink / raw)
To: Horst Leps; +Cc: emacs-orgmode
Horst Leps <horstleps@outlook.de> writes:
> Running 'pdflatex -interaction nonstopmode -recorder "orgmode.tex"'
> ------------
I can see a number of errors, likely originating from incorrect ox-latex
configurations for custom packages (or #+LATEX_HEADER lines in the org
file) and incorrect usage of some latex environments in the Org file.
I am not sure why you started seeing this recently, but something is
clearly off about the file you are trying to export.
> This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Homebrew) (preloaded format=pdflatex)
> restricted \write18 enabled.
> entering extended mode
> ...
> ! LaTeX Error: Option clash for package babel.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.21 \usepackage
> {alphabeta}
> ...
> ! LaTeX Error: Option clash for package url.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.29 \usepackage
> {etoolbox}
> ...
> ! LaTeX Error: Unknown option `scrheadings' for package `scrlayer-scrpage'.
> ...
> Package hyperref Warning: Option `pagecolor' is not available anymore.
> ...
> ! Undefined control sequence.
> l.75 \toprule
>
> ! Undefined control sequence.
> <recently read> \midrule
>
> l.77 \midrule
>
> ! Undefined control sequence.
> <recently read> \bottomrule
>
> l.79 \bottomrule
>
>
> ! LaTeX Error: Environment latex undefined.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.83 \begin{latex}
>
>
> ! LaTeX Error: Environment stylePi undefined.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.84 \begin{stylePi}
>
>
> ! LaTeX Error: \begin{document} ended by \end{latex}.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.90 \end{latex}
>
--
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>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Tableofcontents
2024-01-12 16:53 ` Tableofcontents Tory S. Anderson
@ 2024-01-13 12:27 ` Ihor Radchenko
2024-01-13 16:18 ` Tableofcontents Tory S. Anderson
2024-01-16 19:12 ` #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Horst Leps
0 siblings, 2 replies; 13+ messages in thread
From: Ihor Radchenko @ 2024-01-13 12:27 UTC (permalink / raw)
To: Tory S. Anderson; +Cc: Horst Leps, emacs-orgmode@gnu.org
webdev@toryanderson.com (Tory S. Anderson) writes:
> I don't run the cutting-edge org, but I often have to run my export twice to get things like page numbers correct. Maybe it's not ideal, but if you run the export a second time does it change the result?
When available, Org mode uses latexmk, which takes care about running
LaTeX as many times as necessary.
In this particular case, latexmk is used. The problem is with LaTeX
throwing critical errors. Critical enough to not produce pdf in one of
the iterations.
--
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>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Tableofcontents
2024-01-13 12:25 ` AW: AW: Tableofcontents Ihor Radchenko
@ 2024-01-13 15:30 ` Horst Leps
0 siblings, 0 replies; 13+ messages in thread
From: Horst Leps @ 2024-01-13 15:30 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Ihor Radchenko schrieb:
You're right. I deleted all unnecessary latex header entries from the
orgmode file and then a complete table of contents was created. I have
to rebuild the latex header.
Thanks.
Horst
> Horst Leps <horstleps@outlook.de> writes:
>
>> Running 'pdflatex -interaction nonstopmode -recorder "orgmode.tex"'
>> ------------
> I can see a number of errors, likely originating from incorrect ox-latex
> configurations for custom packages (or #+LATEX_HEADER lines in the org
> file) and incorrect usage of some latex environments in the Org file.
>
> I am not sure why you started seeing this recently, but something is
> clearly off about the file you are trying to export.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Tableofcontents
2024-01-13 12:27 ` Tableofcontents Ihor Radchenko
@ 2024-01-13 16:18 ` Tory S. Anderson
2024-01-16 19:12 ` #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Horst Leps
1 sibling, 0 replies; 13+ messages in thread
From: Tory S. Anderson @ 2024-01-13 16:18 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Horst Leps, emacs-orgmode@gnu.org
I was unaware of latexmk; installing now! Thanks! sad that the original problem is not helped by it, though.
Ihor Radchenko <yantar92@posteo.net> writes:
> webdev@toryanderson.com (Tory S. Anderson) writes:
>
>> I don't run the cutting-edge org, but I often have to run my export twice to get things like page numbers correct. Maybe it's not ideal, but if you run the export a second time does it change the result?
>
> When available, Org mode uses latexmk, which takes care about running
> LaTeX as many times as necessary.
>
> In this particular case, latexmk is used. The problem is with LaTeX
> throwing critical errors. Critical enough to not produce pdf in one of
> the iterations.
^ permalink raw reply [flat|nested] 13+ messages in thread
* #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
2024-01-13 12:27 ` Tableofcontents Ihor Radchenko
2024-01-13 16:18 ` Tableofcontents Tory S. Anderson
@ 2024-01-16 19:12 ` Horst Leps
2024-01-16 19:27 ` Ihor Radchenko
2024-01-16 19:46 ` Juan Manuel Macías
1 sibling, 2 replies; 13+ messages in thread
From: Horst Leps @ 2024-01-16 19:12 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi,
------------------------------
#+latex_class: koma-article
#+TITLE: Zu einer aktuellen ACCCC
#+SUBTITLE: Der Klassiker und einige moderne und aktuelle Texte
#+DATE: \today
#+AUTHOR: HL
#+LATEX_HEADER: \usepackage[utf8]{inputenc}
#+LATEX_HEADER: \usepackage[LGR,T1]{fontenc}
#+LATEX_HEADER: \usepackage[greek,german]{babel}
#+latex: \newpage
Ach, unsere Freunde die Griechen:
* Otto
Abc
* Emil
Ganz links
-------------
Makes:
-------------
% Created 2024-01-16 Tue 20:00
% Intended LaTeX compiler: pdflatex
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage[germanb]{babel}
\usepackage[utf8]{inputenc}
\usepackage[LGR,T1]{fontenc}
\usepackage[greek,german]{babel}
\author{HL}
\date{\today}
\title{Zu einer aktuellen ACCCC\\\medskip
\large Der Klassiker und einige moderne und aktuelle Texte}
\hypersetup{
pdfauthor={HL},
pdftitle={Zu einer aktuellen ACCCC},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.3.50.1 (Org mode 9.3.6)},
pdflang={Germanb}}
\begin{document}
\maketitle
\tableofcontents
\newpage
Ach, unsere Freunde die Griechen:
\section{Otto}
\label{sec:orge3c9696}
Abc
\section{Emil}
\label{sec:org283cbcf}
Ganz links
\end{document}
-------------------
makes:
-------------------
! 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.
2. There is an error in my Orgmode code because it exports {babel} once
too many
Horst
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
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-16 19:46 ` Juan Manuel Macías
1 sibling, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2024-01-16 19:27 UTC (permalink / raw)
To: Horst Leps; +Cc: emacs-orgmode@gnu.org
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?
--
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>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
2024-01-16 19:12 ` #+LATEX_HEADER: \usepackage[greek,german]{babel} ?? Horst Leps
2024-01-16 19:27 ` Ihor Radchenko
@ 2024-01-16 19:46 ` Juan Manuel Macías
1 sibling, 0 replies; 13+ messages in thread
From: Juan Manuel Macías @ 2024-01-16 19:46 UTC (permalink / raw)
To: Horst Leps; +Cc: emacs-orgmode@gnu.org
Horst Leps writes:
> % Created 2024-01-16 Tue 20:00
> % Intended LaTeX compiler: pdflatex
> \documentclass{scrartcl}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{graphicx}
> \usepackage{grffile}
> \usepackage{longtable}
> \usepackage{wrapfig}
> \usepackage{rotating}
> \usepackage[normalem]{ulem}
> \usepackage{amsmath}
> \usepackage{textcomp}
> \usepackage{amssymb}
> \usepackage{capt-of}
> \usepackage{hyperref}
> \usepackage[germanb]{babel}
> \usepackage[utf8]{inputenc}
> \usepackage[LGR,T1]{fontenc}
> \usepackage[greek,german]{babel}
> \author{HL}
The document loads babel twice:
\usepackage[germanb]{babel} <==
\usepackage[utf8]{inputenc}
\usepackage[LGR,T1]{fontenc}
\usepackage[greek,german]{babel} <==
Hence the 'option class for package babel' error. You have loaded babel
in your org document with the [greek,german] option and (probably, in
the class you are loading) babel is already loaded as well.
Try:
#+LaTeX_Header: \PassOptionsToPackage{greek,german}{babel}
Best regards,
Juan Manuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
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
0 siblings, 2 replies; 13+ messages in thread
From: Horst Leps @ 2024-01-17 17:14 UTC (permalink / raw)
To: Ihor Radchenko, Mailingliste Orgmode,
Pedro Andres Aranda Gutierrez
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?
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
2024-01-17 17:14 ` Horst Leps
@ 2024-01-17 17:24 ` Horst Leps
2024-01-18 12:12 ` Ihor Radchenko
1 sibling, 0 replies; 13+ messages in thread
From: Horst Leps @ 2024-01-17 17:24 UTC (permalink / raw)
To: Ihor Radchenko, Mailingliste Orgmode,
Pedro Andres Aranda Gutierrez
Horst Leps schrieb:
https://www.leps.de/wp-content/uploads/rathaus8-ex3/rathaus8-ex3.pdf
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: #+LATEX_HEADER: \usepackage[greek,german]{babel} ??
2024-01-17 17:14 ` Horst Leps
2024-01-17 17:24 ` Horst Leps
@ 2024-01-18 12:12 ` Ihor Radchenko
1 sibling, 0 replies; 13+ messages in thread
From: Ihor Radchenko @ 2024-01-18 12:12 UTC (permalink / raw)
To: Horst Leps; +Cc: Mailingliste Orgmode, Pedro Andres Aranda Gutierrez
Horst Leps <horstleps@outlook.de> writes:
> 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}")))
Thanks!
I just checked your first example, and we at least do not duplicate
\usepackage[...]{babel} when using the latest Org mode main.
So, there is no bug on the latest Org as far as I can tell.
> 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.
Good to hear!
--
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>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2024-01-18 12:10 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-01-17 17:24 ` Horst Leps
2024-01-18 12:12 ` Ihor Radchenko
2024-01-16 19:46 ` Juan Manuel Macías
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).