From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Emphasis etc. in #+CAPTION: Date: Sun, 28 Mar 2010 09:14:05 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0726308799==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nvxw8-0006cU-QI for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 15:14:16 -0400 Received: from [140.186.70.92] (port=54430 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvxw5-0006b8-48 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 15:14:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nvxw3-00017r-Nh for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 15:14:13 -0400 Received: from outbound-mail-359.bluehost.com ([66.147.249.253]:51725) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nvxw3-00017b-Cd for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 15:14:11 -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 1Nvxvz-00034n-7l for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 13:14:08 -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 --===============0726308799== Content-Type: multipart/alternative; boundary=Apple-Mail-6--561330419 --Apple-Mail-6--561330419 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Aloha all, I see in the Org Manual that: > You can make words *bold*, /italic/, _underlined_, =3Dcode=3D and =20 > ~verbatim~, and, if you must, =E2=80=98+strike-through+=E2=80=99. = Text in the =20 > code and verbatim string is not processed for Org-mode specific =20 > syntax, it is exported verbatim. So a caption like this doesn't export italicized a, b, c, and d =20 (presumably because this is a code string): > #+CAPTION: Pumice collected from p=C4=81hoehoe flows at Manini`=C5=8Dwal= i: /=20 > a/, pieces that sink in fresh water; /b/, pieces without obvious =20 > crystallization or coating (Category A); /c/, pieces with obvious =20 > crystallization but no coating (Category B); /d/, pieces with =20 > obvious coating (Category C). The scale is 1 cm. Is there a common work-around for this that will produce correct LaTeX =20= and HTML using the org-mode exporters? And, this is just a question and not a feature request or a request =20 for changes to org-mode, would it be hard to change org-mode's =20 behavior so that markup like /a/ in the #+CAPTION: string exports =20 correctly marked-up text to LaTeX and HTML? All the best, Tom --Apple-Mail-6--561330419 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Aloha all,

I = see in the Org Manual that:

You can make words *bold*, /italic/, = _underlined_, =3Dcode=3D and ~verbatim~, and, if you must, =E2=80=98+strike-through+=E2=80=99. Text in the code and verbatim string is not processed for Org-mode specific syntax, it is exported verbatim.

So a = caption like this doesn't export italicized a, b, c, and d (presumably = because this is a code string):

#+CAPTION: Pumice collected from p=C4=81hoehoe flows = at Manini`=C5=8Dwali: /a/, pieces that sink in fresh water; /b/, pieces = without obvious crystallization or coating (Category A); /c/, pieces = with obvious crystallization but no coating (Category B); /d/, pieces = with obvious coating (Category C).  The scale is 1 = cm. 

Is there a common = work-around for this that will produce correct LaTeX and HTML using the = org-mode exporters?

And, this is just a = question and not a feature request or a request for changes to org-mode, = would it be hard to change org-mode's behavior so that markup like /a/ = in the #+CAPTION: string exports correctly marked-up text to LaTeX and = HTML?

All the = best,
Tom

= --Apple-Mail-6--561330419-- --===============0726308799== 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 --===============0726308799==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Emphasis etc. in #+CAPTION: Date: Sun, 28 Mar 2010 21:14:37 -0400 Message-ID: <32037.1269825277@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw4VP-0001SN-LX for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:15:07 -0400 Received: from [140.186.70.92] (port=37183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw4VO-0001SF-8z for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:15:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw4VM-0001KN-7o for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:15:06 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:56192) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw4VM-0001KJ-1x for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:15:04 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L0000GHDRGETGB4@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 20:14:38 -0500 (CDT) In-reply-to: Message from "Thomas S. Dye" of "Sun\, 28 Mar 2010 09\:14\:05 -1000." 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: "Thomas S. Dye" Cc: nicholas.dokos@hp.com, emacs-orgmode list Thomas S. Dye wrote: > I see in the Org Manual that: >=20 > You can make words *bold*, /italic/, _underlined_, =3Dcode=3D and > ~verbatim~, and, if you must, =E2=80=98+strike-through+=E2=80=99. Tex= t in the code > and verbatim string is not processed for Org-mode specific syntax, > it is exported verbatim. >=20 > So a caption like this doesn't export italicized a, b, c, and d > (presumably because this is a code string): Hi Tom, IIUC, it's not because it's a code string but simply because the caption is not processed for emphasis (or anything else for that matter - see below). I think the above text in the manual covers the generic case, but captions were probably added afterwards and they didn't get the emphasis treatment. >=20 > #+CAPTION: Pumice collected from p=C4=81hoehoe flows at Manini`=C5=8D= wali: > /a/, pieces that sink in fresh water; /b/, pieces without obvious > crystallization or coating (Category A); /c/, pieces with obvious > crystallization but no coating (Category B); /d/, pieces with > obvious coating (Category C). The scale is 1 cm. >=20 > Is there a common work-around for this that will produce correct LaTeX > and HTML using the org-mode exporters? >=20 Can't think of any workaround within org-mode. Post-processing the output to replace /a/ with \emph{a} for LaTeX and a for HTML, perhaps restricted to captions, seems possible (but ugly). > And, this is just a question and not a feature request or a request > for changes to org-mode, would it be hard to change org-mode's > behavior so that markup like /a/ in the #+CAPTION: string exports > correctly marked-up text to LaTeX and HTML? >=20 I think this is the way it works currently: in org-exp.el:org-export-attach-captions-and-attributes() sets text proper= ties on the following line (the first line of a table or the line containing a l= ink) as follows: ... (add-text-properties (point-at-bol) end (list 'org-caption cap 'org-attributes attr 'org-label label)) The various exporters then retrieve the caption with something like the following code (this is one of the three calls in org-latex.el; the other calls in this exporter, and the other exporters as well, are similar): (let* ... (caption (org-find-text-property-in-string 'org-caption raw-path)) ... This just gets the value of the given text property without further elaboration. So I'd guess it's possible to change these calls so that these values are passed through various filters (emphasis is one of them, but maybe there are others?) before the exporters get them, but it is not done today. But maybe I'm full of it, and somebody will come up with a better idea. Cheers, Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Emphasis etc. in #+CAPTION: Date: Sun, 28 Mar 2010 18:52:27 -1000 Message-ID: References: <32037.1269825277@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw6xo-0003Oh-MX for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 00:52:36 -0400 Received: from [140.186.70.92] (port=45190 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw6xm-0003Mr-S6 for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 00:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw6xl-0006ws-88 for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 00:52:34 -0400 Received: from outbound-mail-360.bluehost.com ([66.147.249.254]:51223) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nw6xl-0006wl-15 for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 00:52:33 -0400 In-Reply-To: <32037.1269825277@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode list On Mar 28, 2010, at 3:14 PM, Nick Dokos wrote: > Thomas S. Dye wrote: > >> I see in the Org Manual that: >> >> You can make words *bold*, /italic/, _underlined_, =3Dcode=3D and >> ~verbatim~, and, if you must, =E2=80=98+strike-through+=E2=80=99. = Text in the =20 >> code >> and verbatim string is not processed for Org-mode specific syntax, >> it is exported verbatim. >> >> So a caption like this doesn't export italicized a, b, c, and d >> (presumably because this is a code string): > > Hi Tom, > > IIUC, it's not because it's a code string but simply because the =20 > caption > is not processed for emphasis (or anything else for that matter - see > below). I think the above text in the manual covers the generic case, > but captions were probably added afterwards and they didn't get the > emphasis treatment. > >> >> #+CAPTION: Pumice collected from p=C4=81hoehoe flows at = Manini`=C5=8Dwali: >> /a/, pieces that sink in fresh water; /b/, pieces without obvious >> crystallization or coating (Category A); /c/, pieces with obvious >> crystallization but no coating (Category B); /d/, pieces with >> obvious coating (Category C). The scale is 1 cm. >> >> Is there a common work-around for this that will produce correct =20 >> LaTeX >> and HTML using the org-mode exporters? >> > > Can't think of any workaround within org-mode. Post-processing the > output to replace /a/ with \emph{a} for LaTeX and a for HTML, > perhaps restricted to captions, seems possible (but ugly). > >> And, this is just a question and not a feature request or a request >> for changes to org-mode, would it be hard to change org-mode's >> behavior so that markup like /a/ in the #+CAPTION: string exports >> correctly marked-up text to LaTeX and HTML? >> > > I think this is the way it works currently: > > in org-exp.el:org-export-attach-captions-and-attributes() sets text =20= > properties > on the following line (the first line of a table or the line =20 > containing a link) > as follows: > > ... > (add-text-properties (point-at-bol) end > (list 'org-caption cap > 'org-attributes attr > 'org-label label)) > > The various exporters then retrieve the caption with something like =20= > the > following code (this is one of the three calls in org-latex.el; the > other calls in this exporter, and the other exporters as well, are > similar): > > (let* > ... > (caption (org-find-text-property-in-string 'org-caption raw-=20 > path)) > ... > > This just gets the value of the given text property without further > elaboration. So I'd guess it's possible to change these calls so that > these values are passed through various filters (emphasis is one of > them, but maybe there are others?) before the exporters get them, =20 > but it > is not done today. > > But maybe I'm full of it, and somebody will come up with a better =20 > idea. > > Cheers, > Nick > Thanks Nick, That seems to work. I'll test it a bit to make certain, but right now =20= the italics in the legend look very good in place of /a/, etc., so =20 there is some progress. All the best, Tom From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Emphasis etc. in #+CAPTION: Date: Mon, 29 Mar 2010 14:20:56 +0200 Message-ID: <51553324-6E5C-40CC-9FE8-97104F3A9314@gmail.com> References: <32037.1269825277@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwDxz-0000tY-MM for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 08:21:15 -0400 Received: from [140.186.70.92] (port=51201 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwDxx-0000so-Jf for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 08:21:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwDxm-0008PK-Rx for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 08:21:13 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:59427) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwDxm-0008Ox-KC for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 08:21:02 -0400 Received: by ey-out-1920.google.com with SMTP id 4so980632eyg.34 for ; Mon, 29 Mar 2010 05:20:58 -0700 (PDT) In-Reply-To: <32037.1269825277@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode list On Mar 29, 2010, at 3:14 AM, Nick Dokos wrote: > Thomas S. Dye wrote: > >> I see in the Org Manual that: >> >> You can make words *bold*, /italic/, _underlined_, =3Dcode=3D and >> ~verbatim~, and, if you must, =E2=80=98+strike-through+=E2=80=99. = Text in the =20 >> code >> and verbatim string is not processed for Org-mode specific syntax, >> it is exported verbatim. >> >> So a caption like this doesn't export italicized a, b, c, and d >> (presumably because this is a code string): > > Hi Tom, > > IIUC, it's not because it's a code string but simply because the =20 > caption > is not processed for emphasis (or anything else for that matter - see > below). I think the above text in the manual covers the generic case, > but captions were probably added afterwards and they didn't get the > emphasis treatment. > >> >> #+CAPTION: Pumice collected from p=C4=81hoehoe flows at = Manini`=C5=8Dwali: >> /a/, pieces that sink in fresh water; /b/, pieces without obvious >> crystallization or coating (Category A); /c/, pieces with obvious >> crystallization but no coating (Category B); /d/, pieces with >> obvious coating (Category C). The scale is 1 cm. >> >> Is there a common work-around for this that will produce correct =20 >> LaTeX >> and HTML using the org-mode exporters? >> > > Can't think of any workaround within org-mode. Post-processing the > output to replace /a/ with \emph{a} for LaTeX and a for HTML, > perhaps restricted to captions, seems possible (but ugly). > >> And, this is just a question and not a feature request or a request >> for changes to org-mode, would it be hard to change org-mode's >> behavior so that markup like /a/ in the #+CAPTION: string exports >> correctly marked-up text to LaTeX and HTML? >> > > I think this is the way it works currently: > > in org-exp.el:org-export-attach-captions-and-attributes() sets text =20= > properties > on the following line (the first line of a table or the line =20 > containing a link) > as follows: > > ... > (add-text-properties (point-at-bol) end > (list 'org-caption cap > 'org-attributes attr > 'org-label label)) > > The various exporters then retrieve the caption with something like =20= > the > following code (this is one of the three calls in org-latex.el; the > other calls in this exporter, and the other exporters as well, are > similar): > > (let* > ... > (caption (org-find-text-property-in-string 'org-caption raw-=20 > path)) > ... > > This just gets the value of the given text property without further > elaboration. So I'd guess it's possible to change these calls so that > these values are passed through various filters (emphasis is one of > them, but maybe there are others?) before the exporters get them, =20 > but it > is not done today. > > But maybe I'm full of it, and somebody will come up with a better =20 > idea. Full of good analysis you are. May the force be with you. Well, it is just like Nick says. I am grabbing the caption early, before all that processing happens unfortunately. And, unfortunately, the Org exporters are not modular enough to easily fix this entirely. What I *have* done now is implement basic processing, like emphasis. But I am afraid that footnotes and link formatting, for example, do not work. Hope that make it good enough. - Carsten