From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: #+LABEL: in HTML export Date: Sun, 28 Mar 2010 10:29:18 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============2081719783==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nvz6s-0007eH-Kp for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 16:29:26 -0400 Received: from [140.186.70.92] (port=55672 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvz6r-0007dN-7P for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 16:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nvz6p-00074E-Vm for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 16:29:25 -0400 Received: from outbound-mail-360.bluehost.com ([66.147.249.254]:56127) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nvz6p-000746-MU for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 16:29:23 -0400 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1Nvz6m-0005sf-Rh for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 14:29:21 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode list --===============2081719783== Content-Type: multipart/alternative; boundary=Apple-Mail-7--556817867 --Apple-Mail-7--556817867 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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: then one org-mode file would correctly export these cross-references to both LaTeX and HTML. All the best, Tom --Apple-Mail-7--556817867 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=3D"tab:xrf" = id=3D"tab:xrf"></a>

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

All the = best,
Tom

= --Apple-Mail-7--556817867-- --===============2081719783== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============2081719783==--