emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Rasmus Pank Roulund <rasmus.pank@gmail.com>
Cc: Lawrence Mitchell <wence@gmx.li>, emacs-orgmode@gnu.org
Subject: Re: Questions on LaTeX Exporter
Date: Mon, 07 Mar 2011 11:50:33 +0000	[thread overview]
Message-ID: <87tyffdu9i.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <87ipvvp4md.fsf@gmail.com> (Rasmus Pank Roulund's message of "Mon, 07 Mar 2011 12:11:22 +0100")

Rasmus Pank Roulund <rasmus.pank@gmail.com> 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)

  reply	other threads:[~2011-03-07 11:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 20:50 Questions on LaTeX Exporter Rasmus
2011-03-05 23:25 ` Thomas S. Dye
2011-03-06 13:21   ` Rasmus
2011-03-06 22:39     ` Thomas S. Dye
2011-03-07  9:46       ` Lawrence Mitchell
2011-03-07 11:11         ` Rasmus Pank Roulund
2011-03-07 11:50           ` Eric S Fraga [this message]
2011-03-07 12:10             ` Rasmus Pank Roulund
2011-03-07 12:30               ` suvayu ali
2011-03-07 12:49                 ` Rasmus Pank Roulund
2011-03-07 13:01                   ` Suvayu Ali
2011-03-07 16:30         ` Thomas S. Dye
2011-03-07  9:25     ` Eric S Fraga
2011-03-07 14:00 ` Lawrence Mitchell
2011-03-07 16:18   ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyffdu9i.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus.pank@gmail.com \
    --cc=wence@gmx.li \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).