emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread

* Re: Tableofcontents
@ 2024-01-13  6:23 Pedro Andres Aranda Gutierrez
       [not found] ` <AS4P189MB1966115EFED439E2F447DFEFC46E2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
  0 siblings, 1 reply; 8+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-01-13  6:23 UTC (permalink / raw)
  To: horstleps; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

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

Hi,

I'm running on master and my ox-latex config starts like this:

(use-package ox-latex
  :ensure nil
  :after org
  :commands (org-beamer-export-to-pdf org-latex-export-to-pdf)
  :custom
  (org-latex-listings 'listings)
  ;; Make sure you have bibtex integrated in the production loop
  (org-latex-pdf-process
   '("latexmk -bibtex -pdflatex='pdflatex --shell-escape
--interaction=nonstopmode' -pdf -f %f"))
...

And that gets me all the runs that are needed to get toc, acronyms, etc.

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: 1524 bytes --]

^ permalink raw reply	[flat|nested] 8+ 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
  0 siblings, 1 reply; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread

* Re: Tableofcontents
  2024-01-13 12:27   ` Tableofcontents Ihor Radchenko
@ 2024-01-13 16:18     ` Tory S. Anderson
  0 siblings, 0 replies; 8+ 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] 8+ messages in thread

* AW: Tableofcontents
       [not found]   ` <CAO48Bk8b1OP30P-=wzSYuOMkZPZa7cgnP1VGDBgYF2DJTPWwDA@mail.gmail.com>
@ 2024-01-14 19:44     ` Horst Leps
  0 siblings, 0 replies; 8+ messages in thread
From: Horst Leps @ 2024-01-14 19:44 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 6015 bytes --]

Hallo, Pedro, danke, auf Deutsch ist vielleicht doch einfacher😉)

Momentaner Stand:

Ich habe immer diese Einträge in der .emacs gehabt:

(require 'org)
(require 'ox-latex)
(setq org-latex-pdf-process
   '("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f"))

Hat bis vor ein paar Tagen immer alles gklappt.

Ihor hat mir geschrieben, mein latex-Header müsse Fehler haben. Also habe ich mich auf die Suche gemacht, indem ich den Header neu aufgebaut habe. Da ist mir beim Paket Babel was aufgefallen.

Geht: #+LATEX_HEADER: \usepackage{babel}
Geht nicht: #+LATEX_HEADER: \usepackage[german]{babel}

Wenn ich das [german] hinzufüge, bleibt der Latex-Lauf an genau dieser Stelle hängen:

(/opt/homebrew/Cellar/texlive/20230313_2/share/texmf-dist/tex/generic/babel/babel.sty
(/opt/homebrew/Cellar/texlive/20230313_2/share/texmf-dist/tex/generic/babel/txtbabel.def)
(/opt/homebrew/Cellar/texlive/20230313_2/share/texmf-dist/tex/generic/babel-german/germanb.ldf))

! LaTeX Error: Option clash for package babel.

Streiche ich [german], gibt es genau so viele Durchläufe wie für das Inhaltsverzeichnis erforderlich.

Wenn ich statt der org-Datei die exportierte tex-Datei nehme, dann geschieht in beiden Fällen dasselbe. Wenn ich nach Latex Babel google, dann finde ich aber da keine ähnliche Fehlermeldung im Netz.

Bei mir kann ich also einen Fehler im Latex-Header finden, der selbst bei einem minimal-Header, in dem Babel eigentlich keine Zusammenstöße haben kann, auftaucht, den andere User sonst nicht zu haben scheinen.

Horst

Hier ist die Datei:


#+TITLE: Zu einer aktuellen ...
#+SUBTITLE: Der ...
#+DATE: \today
#+AUTHOR:HL

#+LATEX_CLASS:  koma-article
#+LATEX_HEADER: \usepackage[german]{babel}



#+latex: \newpage

Ein für den Lehrstückunterricht geeignetes Unterrichtsthema lässt sich in einer Weise exemplarisch fassen, dass es durch ein Phänomen repräsentiert werden kann. Was also sind Phänomene? – Der Begriff leitet sich ab von griechisch „phainomai“, „sich zeigen“, „erscheinen“.


* Otto

/Dabei sind/ die *gängigen Auffassungen* zugrunde zu _legen und zunächst die strittigen Punkte_ zu klären, um womöglich den Wahrheitsgehalt aller Anschauungen über diese … Gegebenheiten sichtbar zu machen oder wenn nicht, dann wenigstens den der meisten und entscheidendsten. Wenn es nämlich gelingt, die strittigen Dinge zu klären und dann die plausiblen Meinungen übrigbleiben, so wäre ein ausreichender Nachweis gelungen.[fn:1] -


* Emil

Ganz links eine leere Spalte einfügen, damit ganz links auch eine senkrechte Linie kommt.

* Footnotes

[fn:1] Aristoteles: Nikomachische Ehtik, VII 1

Von: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Datum: Sonntag, 14. Januar 2024 um 17:38
An: Horst Leps <horstleps@outlook.de>
Betreff: Re: Tableofcontents
hi Horst

versuch mal folgendes
1.- Exportiere Deine org Datei als LaTeX im Emacs mit C-c C-e L l
2.- Im Verzeichnis wo Du die LaTeX Datei generierst:
 latexmk -bibtex -pdflatex='pdflatex --shell-escape --interaction=nonstopmode' -pdf -f <name ohne .tex>

Wenn es hier Probleme gibt, dann ist Dein MacTeX irgendwie nicht richtig konfiguriert.

Wenn Du damit eine PDF Datei mit Verzeichnis. etc. bekommst, versuch mit den folgenden 3 Zeilen in deiner init.el

(require 'org)
(require 'ox-latex)
(setq org-latex-pdf-process "latexmk -bibtex -pdflatex='pdflatex --shell-escape --interaction=nonstopmode' -pdf -f %f")

Gruß aus Madrid,
/PA

On Sat, 13 Jan 2024 at 11:04, Horst Leps <horstleps@outlook.de<mailto:horstleps@outlook.de>> wrote:
Hallo, thanks first

:ensure nil
  :after org
  :commands (org-beamer-export-to-pdf org-latex-export-to-pdf)
  :custom
is not part of a bracket. So when Emacs starts, it reports an error in the .emacs.

How to close the brackets?

If I write to .emacs with this brackets
((use-package ox-latex
  :ensure nil
  :after org
  :commands (org-beamer-export-to-pdf org-latex-export-to-pdf)
  :custom
  (org-latex-listings 'listings)
  ;; Make sure you have bibtex integrated in the production loop
  (org-latex-pdf-process
   '("latexmk -bibtex -pdflatex='pdflatex --shell-escape --interaction=nonstopmode' -pdf -f %f")))

makes no toc, no improvement.
Horst

Von: Pedro Andres Aranda Gutierrez <paaguti@gmail.com<mailto:paaguti@gmail.com>>
Datum: Samstag, 13. Januar 2024 um 07:23
An: horstleps@outlook.de<mailto:horstleps@outlook.de> <horstleps@outlook.de<mailto:horstleps@outlook.de>>
Cc: Org Mode List <emacs-orgmode@gnu.org<mailto:emacs-orgmode@gnu.org>>
Betreff: Re: Tableofcontents
Horst Leps <horstleps@outlook.de<mailto: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

Hi,

I'm running on master and my ox-latex config starts like this:

(use-package ox-latex
  :ensure nil
  :after org
  :commands (org-beamer-export-to-pdf org-latex-export-to-pdf)
  :custom
  (org-latex-listings 'listings)
  ;; Make sure you have bibtex integrated in the production loop
  (org-latex-pdf-process
   '("latexmk -bibtex -pdflatex='pdflatex --shell-escape --interaction=nonstopmode' -pdf -f %f"))
...

And that gets me all the runs that are needed to get toc, acronyms, etc.

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


--
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: 24845 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-14 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-13  6:23 Tableofcontents Pedro Andres Aranda Gutierrez
     [not found] ` <AS4P189MB1966115EFED439E2F447DFEFC46E2@AS4P189MB1966.EURP189.PROD.OUTLOOK.COM>
     [not found]   ` <CAO48Bk8b1OP30P-=wzSYuOMkZPZa7cgnP1VGDBgYF2DJTPWwDA@mail.gmail.com>
2024-01-14 19:44     ` AW: Tableofcontents Horst Leps
  -- strict thread matches above, loose matches on Subject: below --
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

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