all messages for Emacs-related lists mirrored at yhetil.org
 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.