all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* #+LABEL: in HTML export
@ 2010-03-28 20:29 Thomas S. Dye
  2010-03-29 12:20 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas S. Dye @ 2010-03-28 20:29 UTC (permalink / raw)
  To: emacs-orgmode list


[-- Attachment #1.1: Type: text/plain, Size: 1153 bytes --]

Aloha all,

I am working to create a single org-mode file that exports (almost)  
identically to HTML and LaTeX.  I haven't found a way to do this for  
cross-references to figures.  I'm wondering if it would be difficult  
to change the behavior of the LaTeX exporter to recognize and  
appropriately export the argument to #+LABEL:?

This line above an org-mode table:

#+LABEL: tab:xrf

is correctly and usefully exported to LaTeX as:

\label{tab:xrf}

A link in the org-mode file like this:

  [[tab:xrf][(table 2)]]

behaves as expected in the pdf file compiled from the LaTeX export.   
In situations where it is not difficult to live without LaTeX's cross- 
referencing facility, this is great.  (I know that it is possible to  
put \ref{tab:xrf} in the org-mode file and that this works beautifully  
in the LaTeX export, but it does nothing in the HTML export.)

The #+LABEL: tab:xrf doesn't appear in HTML export from the same org- 
mode file.  If it could appear there, perhaps like this:

<a name="tab:xrf" id="tab:xrf"></a>

then one org-mode file would correctly export these cross-references  
to both LaTeX and HTML.

All the best,
Tom


[-- Attachment #1.2: Type: text/html, Size: 1677 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-04-04  6:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-28 20:29 #+LABEL: in HTML export Thomas S. Dye
2010-03-29 12:20 ` Carsten Dominik
2010-04-02 22:51   ` Baoqiu Cui
2010-04-03  6:33     ` Carsten Dominik
2010-04-03  7:15       ` Baoqiu Cui
2010-04-03  9:23         ` Carsten Dominik
2010-04-03 16:46           ` Baoqiu Cui
2010-04-04  6:53             ` Carsten Dominik

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.