From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: LaTeX export: inline markup underscore problem Date: Mon, 11 Apr 2011 17:34:02 -1000 Message-ID: <898A07CA-797A-478B-9A08-ADDBA0834BBF@tsdye.com> References: <1112.1302466080@alphaville.dokosmarshall.org> <63F0C433-3616-4517-A1CF-D758F3B88086@tsdye.com> <9082.1302486279@alphaville.dokosmarshall.org> <15EA52A3-0CA5-4219-A22E-A29B4B1D38A3@tsdye.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 eggs.gnu.org ([140.186.70.92]:46182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9UMk-0006ht-7k for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 23:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9UMj-0003L7-46 for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 23:34:10 -0400 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:56972) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q9UMi-0003Ky-UT for emacs-orgmode@gnu.org; Mon, 11 Apr 2011 23:34:09 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mauro Rovezzi Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Aloha Mauro, It appears that the new link type is not defined. Have you executed the source block, define-citep-link? Also, version 6.21 is probably too old for at least some of the LaTeX export. It is probably not worth the trouble to try to set things up for that version of Org-mode. hth, Tom On Apr 11, 2011, at 8:54 AM, Mauro Rovezzi wrote: > Hello Thomas, > > On Mon, Apr 11, 2011 at 6:58 PM, Thomas S. Dye wrote: >> Aloha Mauro, >> On my system I define a citep link: >> >> #+source: define-citep-link >> #+begin_src emacs-lisp :results silent >> (org-add-link-type >> "citep" 'ebib >> (lambda (path desc format) >> (cond >> ((eq format 'html) >> (format "(%s)" path)) >> ((eq format 'latex) >> (if (or (not desc) (equal 0 (search "citep:" desc))) >> (format "\\citep{%s}" path) >> (format "\\citep[%s]{%s}" desc path) >> ))))) >> #+end_src >> >> then the following Org-mode source: >> >> Hawaiian archaeology's response to the late Roger Green's call for an >> investigation of diachronic settlement patterns >> [[citep:green84:_settl_patter_studies_ocean]] has been slow and >> difficult. >> >> exports as: >> >> Hawaiian archaeology's response to the late Roger Green's call for an >> investigation of diachronic settlement patterns >> \citep{green84:_settl_patter_studies_ocean} has been slow and >> difficult. >> >> Perhaps you could post a minimal example that doesn't work for you? >> Note that this solution doesn't depend on ebib. It is perfectly OK >> to enter >> the bibliography key by hand if you prefer. > > Yes, I did the same but I get different behavior. If I put the same > code in a .org file (the current file where the citation is or the > #+SETUPFILE), the LaTeX export is > \hyperref[citep:green84:_settl_patter_studies_ocean] > {citep:green84:_settl_patter_studies_ocean}, > while if I put the same in my .emacs, it is exported as > \texttt{cite:green84:_settl_patter_studies_ocean}. This happens in Org > version 6.21b (Ubuntu 10.10 version). while in the last version from > Git it transforms to > \hyperref[citep-green84-_settl_patter_studies_ocean] > {citep:green84:_settl\_patter\_studies\_ocean} > > Well, something is going weird... > >> On your other observation: >> I don't use underscores in headlines, so hadn't run across the >> limitation in the cross references that you mention. I don't know >> if there is any way around this. >> If you do find a way, please feel free to add the solution to the >> LaTeX >> export tutorial. > > OK, but for this is easier to just change the labels and remove > underscores, so this is definitely a minor point. > > Anyway, thanks a lot for your help! > M.