From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Latex export format control - emphasis and radio link Date: Thu, 24 Dec 2009 09:31:07 +0100 Message-ID: References: <32832d030912230627l1c0642e9k6a5dfbd6e8b14bdc@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNj6K-0005qR-Ic for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 03:31:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNj6G-0005kw-NF for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 03:31:16 -0500 Received: from [199.232.76.173] (port=41383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNj6G-0005kc-Gh for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 03:31:12 -0500 Received: from mail-fx0-f228.google.com ([209.85.220.228]:56349) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNj6G-0006JI-9x for emacs-orgmode@gnu.org; Thu, 24 Dec 2009 03:31:12 -0500 Received: by fxm28 with SMTP id 28so1015733fxm.26 for ; Thu, 24 Dec 2009 00:31:10 -0800 (PST) In-Reply-To: <32832d030912230627l1c0642e9k6a5dfbd6e8b14bdc@mail.gmail.com> 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: Baptiste Fouques Cc: emacs-orgmode@gnu.org Hi Baptiste, first of all, why don't you just use not-a-lint instead of not_a_link? Using underscore sort-of asks for problems in this context. Also, why do you want the links to be in typewriter font? This is unusual. Maybe instead of modifying org-emph-alist, you'd want to add to it and create a new emphasis with is texttt but not verbatim? Finally, > <<>> it is indeed a bug that this is not exported with escaped underscores. I have fixed this issue. - Carsten On Dec 23, 2009, at 3:27 PM, Baptiste Fouques wrote: > Hi, > > I am using Org for a while, and I actually do like it a lot. I'd like > to extend my usage a bit, but I have some difficulties with export > format. > Basically, my point is about expanding/escaping control sequences in > latex output. > > My sample org file is : > > #+TITLE: Org Test > #+AUTHOR: Baptiste Fouques > #+EMAIL: bat@m4tp.org > #+DESCRIPTION: org mode link test > #+OPTIONS: ^:nil > > * org-export-latex-emphasis-alist difficutlies > > # <<>> > > =link_radio= > > =not_a_link= > > * Radio Link format > > <<>> > > > EOF----------------- > > What I would expect as a Latex export would be : > > \section{org-export-latex-emphasis-alist difficutlies} > \label{sec-1} > > \label{link_radio} > \texttt{\hyperref[link_radio]{link\_radio}} > \texttt{not\_a\_link} > > \section{Radio Link format} > \label{sec-2} > \label{other_radio_link}other\_radio\_link > > EOF ---------------- > > But, I naturally get > ... > \texttt{[[link\_radio][link\_radio]]} {1} > ... > \label{other_radio_link}other_radio_link {2} > > which does not work at all as {1} is just a no-sense for LaTeX, and > {2} has not escaped the _ in plain text output (also the org header > has #+OPTIONS: ^:nil ). > > I can manage to get {1} quite correct, manipulating > org-export-latex-emphasis-alist : ( ... ("=" "\\texttt{%s}" nil) ... ) > ... > \texttt{\hyperref[link_radio]{link\_radio}} > ... > but then, =not_a_link= became naturally broken ( _ are no more > escaped ... ) > And I found no such parameter that can be used to manipulate radio > link export format (to get <<>> beeing exported as > \label{other_radio_link}other\_radio\_link . > > > If you could help me on this issue, I will be able to use Org mode > more widely in my everyday work (and propose it to my co-worker). > > Thanks a lot, > > ---Bat > > > _______________________________________________ > 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 - Carsten