emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Understanding Publish (ox-publish.el)
@ 2024-10-13 19:25 jman
  2024-10-14  8:37 ` Christian Moe
  2024-10-14 10:02 ` Dr. Arne Babenhauserheide
  0 siblings, 2 replies; 12+ messages in thread
From: jman @ 2024-10-13 19:25 UTC (permalink / raw)
  To: Emacs orgmode


Hello,

I'm trying to learn more about the publish export option or Org mode. Specifically I am using the 
function `org-latex-publish-to-pdf` to export Orgmode files into PDF.

Since this export backend is transparently using Latex, there is stuff going on behind my back that 
makes it a bit difficult debugging or customizing the formatting.

My header in the Orgmode file started as simple as:

  #+TITLE: Title of the document
  #+OPTIONS: toc:nil date:nil author:nil
  #+latex_header: \usepackage[a4paper,top=4cm,bottom=4cm]{geometry}

The Orgmode file is nothing but a long ordered list of items:

  * Title
  ** Subtitle
  (Lots of text)
  ** Subtlte II
  * Title II
  (Lots of text)
  ... more ...

and so on. After compiling to PDF, I learn that the default "template" (how is it called in Latex 
lingo? `\documentclass`?) used by `org-latex-publish-to-pdf` does not handle content exceeding the 
page length so I have to manually add some page breaks, clearly a hack:

  * Title
  ** Subtitle
  (Lots of text)
  #+latex: \clearpage
  ** Subtlte II
  #+latex: \clearpage
  * Title II
  (Lots of text)
  ... more ...

Why isn't this handled automatically for me? Is there a setting I should add in the org file? What's 
the default template used by `org-latex-publish-to-pdf`?

Second issue: I want hyperlinks to other documents to not have a border. On Latex the solution seems 
to use the hyperref package:

  +latex_header: \usepackage[hidelinks]{hyperref}

again, compiling triggers this error:

  ! LaTeX Error: Option clash for package hyperref.

This error hints at some defaults I cannot see, making the document customization difficult. Where 
are these defaults?

How can I get a feeling of what's happening when using this PDF publish option? I think I need a bit 
of a high-level overview, hope the author David O’Toole is around for some support :-)

Ideally I'm looking into a simple way to export from Orgmode to PDF, without needing to learn Latex.

Thank you for suggestions, ideas, etc.

Best,


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

end of thread, other threads:[~2024-10-26 17:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-13 19:25 Understanding Publish (ox-publish.el) jman
2024-10-14  8:37 ` Christian Moe
2024-10-14 15:40   ` jman
2024-10-14 18:47     ` jman
2024-10-14 21:06       ` Christian Moe
2024-10-15  7:13         ` jman
2024-10-15  8:11           ` Christian Moe
2024-10-15 11:54             ` Rens Oliemans
2024-10-20 13:04         ` Ihor Radchenko
2024-10-21  7:07           ` Christian Moe
2024-10-26 17:38             ` Ihor Radchenko
2024-10-14 10:02 ` Dr. Arne Babenhauserheide

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