emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Section between #+latex: declarations not converted during export
@ 2011-03-13 13:31 Matt Lundin
  2011-03-13 19:59 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2011-03-13 13:31 UTC (permalink / raw)
  To: Org Mode

In the following example...

--8<---------------cut here---------------start------------->8---
* Testing
#+latex: \custommacro{%
[[http:www.google.com][Google]]
/The quick brown fox./
#+latex: }
--8<---------------cut here---------------end--------------->8---

...the lines between the latex declarations are not exported:

--8<---------------cut here---------------start------------->8---
\section{Testing}
\label{sec-1}

\custommacro{%
[[http:www.google.com][Google]]
/The quick brown fox./
}
--8<---------------cut here---------------end--------------->8---

I would expect this behavior with "#+begin_latex:...#+end_latex", but
not with "#+latex".

Best,
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Section between #+latex: declarations not converted during export
  2011-03-13 13:31 Section between #+latex: declarations not converted during export Matt Lundin
@ 2011-03-13 19:59 ` Nick Dokos
  2011-03-14 12:56   ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2011-03-13 19:59 UTC (permalink / raw)
  To: Matt Lundin; +Cc: nicholas.dokos, Org Mode

Matt Lundin <mdl@imapmail.org> wrote:

> In the following example...
> 
> * Testing
> #+latex: \custommacro{%
> [[http:www.google.com][Google]]
> /The quick brown fox./
> #+latex: }
> 
> ...the lines between the latex declarations are not exported:
> 
> \section{Testing}
> \label{sec-1}
> 
> \custommacro{%
> [[http:www.google.com][Google]]
> /The quick brown fox./
> }
> 
> I would expect this behavior with "#+begin_latex:...#+end_latex", but
> not with "#+latex".
> 

The opening brace in the `#+ latex:' line confuses something.
My usual workaround is to fake a closing brace in the comment:

--8<---------------cut here---------------start------------->8---
* Testing
#+latex: \custommacro{% fake it out }
[[http:www.google.com][Google]]
/The quick brown fox./
#+latex: }
--8<---------------cut here---------------end--------------->8---


which produces

--8<---------------cut here---------------start------------->8---
\section{Testing}
\label{sec-1}

\custommacro{% fake it out }
\href{http:www.google.com}{Google}
\emph{The quick brown fox.}
}
--8<---------------cut here---------------end--------------->8---

Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Section between #+latex: declarations not converted during export
  2011-03-13 19:59 ` Nick Dokos
@ 2011-03-14 12:56   ` Matt Lundin
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Lundin @ 2011-03-14 12:56 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Org Mode

Nick Dokos <nicholas.dokos@hp.com> writes:

> Matt Lundin <mdl@imapmail.org> wrote:
>
>> In the following example...
>> 
>> * Testing
>> #+latex: \custommacro{%
>> [[http:www.google.com][Google]]
>> /The quick brown fox./
>> #+latex: }
>> 
>> ...the lines between the latex declarations are not exported:
>> 
> The opening brace in the `#+ latex:' line confuses something.
> My usual workaround is to fake a closing brace in the comment:
>
> * Testing
> #+latex: \custommacro{% fake it out }
> [[http:www.google.com][Google]]
> /The quick brown fox./
> #+latex: }
>
>
> which produces
>
> \section{Testing}
> \label{sec-1}
>
> \custommacro{% fake it out }
> \href{http:www.google.com}{Google}
> \emph{The quick brown fox.}
> }

Thanks for the tip! It's simple enough to add an extra parenthesis
there.

Best,
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-14 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-13 13:31 Section between #+latex: declarations not converted during export Matt Lundin
2011-03-13 19:59 ` Nick Dokos
2011-03-14 12:56   ` Matt Lundin

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).