From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Error when exporting to LaTeX
Date: Fri, 15 Jan 2010 08:04:40 +0100 [thread overview]
Message-ID: <50EF1D2C-DF86-4644-A49E-148AA67DCAEB@gmail.com> (raw)
In-Reply-To: <87zl4hj5ty.fsf@mundaneum.com>
Hi Sebastian,
On Jan 14, 2010, at 12:15 PM, Sébastien Vauban wrote:
> Hi all,
>
> Sébastien Vauban wrote:
>>
>> Here a problem when exporting such a file:
>>
> --8<---------------cut here---------------start------------->8---
> #+MACRO: rest {\leavevmode \leaders \hrule height 0.7pt\hfill} \\
>
> Nombre de la escuela de idiomas: {{{rest}}}
> Nombre y apellidos del estudiante: {{{rest}}}
> --8<---------------cut here---------------end--------------->8---
>>
>> The `rest' macro is for filling the rest of the current line with an
>> horizontal rule.
>>
>> It needs to be enclosed between accolades.
The macro just does text replacement, so the LaTeX exporter
sees naked braces which it escapes as it should. In fact there seems
to be a bug causing the opening "{" not to be escaped - I have just
fixed that, I hope.
Org-mode buffers are not LaTeX buffers, so braces are seen as just
characters that should appear in print, unless they surround the
arguments of a LaTeX macro.
So you probably could write
#+LaTeX_HEADER: \def\same#1{#1}
#+MACRO: rest \same{{\leavevmode \leaders \hrule height 0.7pt
\hfill} \\}
Nombre de la escuela de idiomas: {{{rest}}}
Nombre y apellidos del estudiante: {{{rest}}}
However, I think it is must better and more stable to write:
#+LaTeX_HEADER: \newcommand{\rest}{{\leavevmode \leaders \hrule
height 0.7pt\hfill} \\}
Nombre de la escuela de idiomas: \rest
Nombre y apellidos del estudiante: \rest
Don't forget that LaTeX is the most powerful macro processor here,
so just use its capabilities.
HTH
- Carsten
next prev parent reply other threads:[~2010-01-15 7:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 22:54 Error when exporting to LaTeX Sébastien Vauban
2010-01-14 11:15 ` Sébastien Vauban
2010-01-15 7:04 ` Carsten Dominik [this message]
2010-01-18 12:43 ` Sébastien Vauban
2010-01-20 13:37 ` Sébastien Vauban
2010-03-20 14:59 ` Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50EF1D2C-DF86-4644-A49E-148AA67DCAEB@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.