From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: ox-latex and small caps links Date: Tue, 21 Apr 2015 16:59:49 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkktS-00020o-DD for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 23:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkktN-0001GP-G8 for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 23:00:06 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:56357) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YkktN-0001CT-9d for emacs-orgmode@gnu.org; Tue, 21 Apr 2015 23:00:01 -0400 In-Reply-To: (David Dynerman's message of "Tue, 21 Apr 2015 20:41:27 -0500") 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: David Dynerman Cc: emacs-orgmode@gnu.org Aloha David, David Dynerman writes: >> ,--------------------------------------------- >> | Code within @@latex:some code@@ a paragraph. >> `--------------------------------------------- > > This works great! Thanks Tom! Good news. > It might be nice to document this somehwere, to make the transition a > little easier when 8.3 rolls out and the old [[latex:textsc][Hello]] > links cause export errors. I just tested the latex link type and it seems to work fine here with a recent Org mode from master. I executed the source code block and then exported the following buffer to LaTeX. ,------------------------------------------------------------------------------ | #+LATEX_CLASS: article | #+DATE: \today | | * Test link type | This is [[latex:textsc][small caps]]. | | * Link type :noexport: | #+begin_src emacs-lisp | (org-add-link-type | "latex" nil | (lambda (path desc format) | (cond | ((eq format 'html) | (format "%s" path desc)) | ((eq format 'latex) | (format "\\%s{%s}" path desc))))) | #+end_src `------------------------------------------------------------------------------ The LaTeX output looks fine: ,----------------------------- | \begin{document} | | \tableofcontents | | \section{Test link type} | \label{sec-1} | This is \textsc{small caps}. | \end{document} `----------------------------- Did your recent Org mode upgrade lose the latex link type somehow? All the best, Tom -- Thomas S. Dye http://www.tsdye.com