emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* reference #+label: in export to both LaTeX and HTML
@ 2013-11-23 20:07 Eric Schulte
  2013-11-23 20:12 ` Eric Schulte
  2013-11-23 20:13 ` Thomas S. Dye
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Schulte @ 2013-11-23 20:07 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi,

How would I reference a label in export to HTML?  For example.

#+label: mutation-ops
[[file:mut-ops.svg]]

In LaTeX export I could use \ref{mutation-ops} which would be passed
directly through to LaTeX, however this syntax is not understood by the
HTML backend.

Is there a general Org-mode construct for referencing labels?

Thanks,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

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

* Re: reference #+label: in export to both LaTeX and HTML
  2013-11-23 20:07 reference #+label: in export to both LaTeX and HTML Eric Schulte
@ 2013-11-23 20:12 ` Eric Schulte
  2013-11-23 20:13 ` Thomas S. Dye
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Schulte @ 2013-11-23 20:12 UTC (permalink / raw)
  To: Org Mode Mailing List

Eric Schulte <schulte.eric@gmail.com> writes:

> Hi,
>
> How would I reference a label in export to HTML?  For example.
>
> #+label: mutation-ops
> [[file:mut-ops.svg]]
>
> In LaTeX export I could use \ref{mutation-ops} which would be passed
> directly through to LaTeX, however this syntax is not understood by the
> HTML backend.
>
> Is there a general Org-mode construct for referencing labels?
>
> Thanks,

Sorry,

I should have spent another 5 minutes searching for the answer before
posting.  For the above example using [[mutation-ops]] gives the desired
result.

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

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

* Re: reference #+label: in export to both LaTeX and HTML
  2013-11-23 20:07 reference #+label: in export to both LaTeX and HTML Eric Schulte
  2013-11-23 20:12 ` Eric Schulte
@ 2013-11-23 20:13 ` Thomas S. Dye
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas S. Dye @ 2013-11-23 20:13 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Org Mode Mailing List

Hi Eric,

Will this work?

#+name: mutation-ops
[[file:mut-ops.svg]]

Figure [[mutation-ops]] shows ...

hth,
Tom

Eric Schulte <schulte.eric@gmail.com> writes:

> Hi,
>
> How would I reference a label in export to HTML?  For example.
>
> #+label: mutation-ops
> [[file:mut-ops.svg]]
>
> In LaTeX export I could use \ref{mutation-ops} which would be passed
> directly through to LaTeX, however this syntax is not understood by the
> HTML backend.
>
> Is there a general Org-mode construct for referencing labels?
>
> Thanks,

-- 
Thomas S. Dye
http://www.tsdye.com

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

end of thread, other threads:[~2013-11-23 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-23 20:07 reference #+label: in export to both LaTeX and HTML Eric Schulte
2013-11-23 20:12 ` Eric Schulte
2013-11-23 20:13 ` Thomas S. Dye

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