From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Questions on LaTeX Exporter Date: Mon, 07 Mar 2011 11:50:33 +0000 Message-ID: <87tyffdu9i.fsf@pinto.chemeng.ucl.ac.uk> References: <87ei6lpa06.fsf@gmail.com> <80B13489-D629-4DE3-A344-6A74EE38D804@tsdye.com> <4D738A76.9000002@gmail.com> <9810BB90-62BA-4957-B147-D5805A39056A@tsdye.com> <87ipvvp4md.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwYxX-0002X7-Ny for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 06:50:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwYxW-0007gD-0N for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 06:50:43 -0500 Received: from vscani-b2.ucl.ac.uk ([144.82.108.135]:60596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwYxV-0007fn-SM for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 06:50:41 -0500 In-Reply-To: <87ipvvp4md.fsf@gmail.com> (Rasmus Pank Roulund's message of "Mon, 07 Mar 2011 12:11:22 +0100") 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: Rasmus Pank Roulund Cc: Lawrence Mitchell , emacs-orgmode@gnu.org Rasmus Pank Roulund writes: >> (setq org-export-latex-hyperref-format "\\ref{%s}") then you can >> refer to sections by their numbers with "as we see in section >> [[section]]" and it works nicely. > > Wow; it works! Lawrence, in your experience, how fragile is this? The > bliss of LaTeX labels is that they are independent of the printed > headings so I can change the title and retain a sensible \ref. > > Eric, thanks for your point. I still think it less than ideal, as > illustrate by this snip. > > ,---- > | \section{Introduction} > | \label{sec-1} > | > | \label{sec:into} > `---- > > Org has a /really/ bad habit of inserting blank lines! But Latex doesn't care? =sec:into= will still be fine so I don't see why this is not suitable *and* it is not fragile as far as I can tell. I've used this approach for a long time. > Here is an > example of a "fix" from a beamer presentation: > > ,---- > | *** Stiglitz :B_quotation: > | :PROPERTIES: > | :BEAMER_env: quotation > | :END: > | \noindent > | Social capital is a concept with a short and already confused history. > | #+latex: \\\hfill\citep[pp. 59]{stiglitz99} > `---- > > And the output: > > ,---- > | \begin{quotation} % Stiglitz > | \label{sec-2_1_1} > | > | \noindent > | Social capital is a concept with a short and already confused history. > | \\\hfill\citep[pp. 59]{stiglitz99} > | \end{quotation} > `---- > > -- > Thanks, > Rasmus I am not sure what point you are trying to make in this case? In any case, you could have done: --8<---------------cut here---------------start------------->8--- *** Stiglitz :B_quotation: :PROPERTIES: :BEAMER_env: quotation :END: \noindent Social capital is a concept with a short and already confused history. \\\hfill\citep[pp. 59]{stiglitz99} --8<---------------cut here---------------end--------------->8--- (i.e. no need for the #+latex directive...) Org is smart enough to export that last line properly (well, I have just tried it and it exports fine). -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.580.g85729.dirty)