emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
To: Tim Cross <theophilusx@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Publish to HTML and LaTeX/PDF with cross-file links?
Date: Thu, 16 Jun 2022 11:17:49 +0200	[thread overview]
Message-ID: <87r13px8zm.fsf@informationelle-selbstbestimmung-im-internet.de> (raw)
In-Reply-To: <87h74llbbd.fsf@gmail.com> (Tim Cross's message of "Thu, 16 Jun 2022 09:55:14 +1000")

On 2022-06-16, at 09:55, Tim Cross wrote:

> Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:
>> [...]
>> More precisely: For HTML export, a link like
>> [[file:foo.org::#custom-id][elsewhere]] turns into a hyperlink to
>> “foo.html#custom-id”, which is what I want.
>> However, for LaTeX/PDF export, the hyperlink points to the source
>> file “foo.org”, which in my case is a broken link.  I would like
>> that to be “foo.pdf” (or even something pointing at the proper
>> section in the PDF file).
>> Is this (easily) possible?
> I think what you need is an export filter function for links in latex
> exports. Have a look at the docstring for variable org-export-filter-link-functions. 
> As a very basic example, the following should work
> [...]

Thank you for the suggestion!

I am still undecided which way to go.  Maybe a refactoring of code
from ox-html (to be usable across backends) would be appropriate

Best wishes

      reply	other threads:[~2022-06-16  9:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15  6:36 Publish to HTML and LaTeX/PDF with cross-file links? Jens Lechtenboerger
2022-06-15 23:55 ` Tim Cross
2022-06-16  9:17   ` Jens Lechtenboerger [this message]

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:

  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=87r13px8zm.fsf@informationelle-selbstbestimmung-im-internet.de \
    --to=lechten@wi.uni-muenster.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=theophilusx@gmail.com \


* 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


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