emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Sébastien Brisard" <sebastien.brisard@m4x.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ox-html] Why are dedicated targets automatically renamed?
Date: Tue, 02 Feb 2016 17:38:12 +0100	[thread overview]
Message-ID: <87si1bjcej.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAGRH7HpgdJ==dkwi64Dae36z2s2sZvA1g-PyYQU0Oich4jApdg@mail.gmail.com> ("Sébastien Brisard"'s message of "Mon, 1 Feb 2016 20:59:05 +0100")

Hello,

Sébastien Brisard <sebastien.brisard@m4x.org> writes:

> Oh really? It does work, though. I use this feature on my blog to link
> to bibrefs that are in another page. Links like
>
>  [[file:../pages/references.org::#TARI2008][Tariel et al., 2008]]
>
> get exported correctly. Only, the HTML target name is orgtargetXX.
> Which means that if I add a new bibliographic reference in the
> references.org file, I need to reexport the whole website, rather than
> the pages that have changed.
>
> But, if I understand correctly, I should not be using this kind of
> links anyway?

If you do, you're on your own. We cannot ensure this will always work.

> Yeah, I have explored a solution using custom IDs. They don't work
> with lists, though (I use description lists for my references). Then I
> need to define every new bib entry as a header. It's doable, and if
> you confirm that what I do at the moment should not be working at all,
> then I will switch to this option.

You could insert your own targets with #+HTML or @@html:...@@
directives, e.g.,

  #+HTML: <a id="myid"></a>
  Text

Another option is to implement `org-latex-prefer-user-labels' for HTML
back-end, if you want to.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-02-02 16:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21  6:45 [ox-html] Why are dedicated targets automatically renamed? Sébastien Brisard
2016-01-31 21:52 ` Nicolas Goaziou
2016-02-01 19:59   ` Sébastien Brisard
2016-02-02 16:38     ` Nicolas Goaziou [this message]
2016-02-03  7:27       ` Sébastien Brisard
  -- strict thread matches above, loose matches on Subject: below --
2016-10-18 15:46 D. C. Toedt
2016-10-20 16:51 ` Nicolas Goaziou

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87si1bjcej.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastien.brisard@m4x.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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