emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Minor nit - LaTeX header contents and footnotes
@ 2009-08-20 21:14 Nick Dokos
  2009-08-21  5:52 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2009-08-20 21:14 UTC (permalink / raw)
  To: emacs-orgmode

I define a LaTeX macro at the top of my document, like so:

,----
| ...
| #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
| #+LATEX_HEADER:   #1\ignorespaces
| #+LATEX_HEADER: }
| ...
`----

and export - I get the following inserted:

,----
| ...
| \begin{document}
| 
| 
| 
| 
| 
| \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
| ...
`----

Obviously, the macro argument spec is mistaken for a footnote.
 
Work-around: add a space like so:

#+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%

HTH,
Nick

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

* Re: Minor nit - LaTeX header contents and footnotes
  2009-08-20 21:14 Minor nit - LaTeX header contents and footnotes Nick Dokos
@ 2009-08-21  5:52 ` Carsten Dominik
  2010-02-12 13:16   ` Ruud Brekelmans
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2009-08-21  5:52 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:

> I define a LaTeX macro at the top of my document, like so:
>
> ,----
> | ...
> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> | #+LATEX_HEADER:   #1\ignorespaces
> | #+LATEX_HEADER: }
> | ...
> `----
>
> and export - I get the following inserted:
>
> ,----
> | ...
> | \begin{document}
> |
> |
> |
> |
> |
> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
> | ...
> `----
>
> Obviously, the macro argument spec is mistaken for a footnote.
>
> Work-around: add a space like so:
>
> #+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%
>
> HTH,
> Nick
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Minor nit - LaTeX header contents and footnotes
  2009-08-21  5:52 ` Carsten Dominik
@ 2010-02-12 13:16   ` Ruud Brekelmans
  2010-02-12 17:00     ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Ruud Brekelmans @ 2010-02-12 13:16 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1388 bytes --]

I still find similar behavior when exporting to LaTeX with:

#+BEGIN_LaTeX
\newcommand{\norm}[1]{\lVert#1\rVert}
#+END_LaTeX


Best regards,
Ruud


On 21 August 2009 06:52, Carsten Dominik <carsten.dominik@gmail.com> wrote:

> Fixed, thanks.
>
> - Carsten
>
>
> On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:
>
>  I define a LaTeX macro at the top of my document, like so:
>>
>> ,----
>> | ...
>> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
>> | #+LATEX_HEADER:   #1\ignorespaces
>> | #+LATEX_HEADER: }
>> | ...
>> `----
>>
>> and export - I get the following inserted:
>>
>> ,----
>> | ...
>> | \begin{document}
>> |
>> |
>> |
>> |
>> |
>> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
>> | ...
>> `----
>>
>> Obviously, the macro argument spec is mistaken for a footnote.
>>
>> Work-around: add a space like so:
>>
>> #+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%
>>
>> HTH,
>> Nick
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 2317 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Minor nit - LaTeX header contents and footnotes
  2010-02-12 13:16   ` Ruud Brekelmans
@ 2010-02-12 17:00     ` Eric S Fraga
  2010-02-13 13:54       ` Ruud Brekelmans
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2010-02-12 17:00 UTC (permalink / raw)
  To: Ruud Brekelmans; +Cc: emacs-orgmode

On Fri, 12 Feb 2010 14:16:06 +0100, Ruud Brekelmans <ruud.brekelmans@gmail.com> wrote:
> 
> [1.1  <text/plain; ISO-8859-1 (7bit)>]
> I still find similar behavior when exporting to LaTeX with:
> 
> #+BEGIN_LaTeX
> \newcommand{\norm}[1]{\lVert#1\rVert}
> #+END_LaTeX
> 
> 
> Best regards,
> Ruud
> 
> 
> On 21 August 2009 06:52, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> 
> > Fixed, thanks.
> >
> > - Carsten
> >
> >
> > On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:
> >
> >  I define a LaTeX macro at the top of my document, like so:
> >>
> >> ,----
> >> | ...
> >> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> >> | #+LATEX_HEADER:   #1\ignorespaces
> >> | #+LATEX_HEADER: }
> >> | ...
> >> `----


This doesn't solve the problem directly but putting spaces around the 1 works:

--8<---------------cut here---------------start------------->8---
#+BEGIN_LaTeX
\newcommand{\norm}[ 1 ]{\lVert#1\rVert}
#+END_LaTeX
--8<---------------cut here---------------end--------------->8---

(and also works with the header version).

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

* Re: Minor nit - LaTeX header contents and footnotes
  2010-02-12 17:00     ` Eric S Fraga
@ 2010-02-13 13:54       ` Ruud Brekelmans
  2010-02-16  4:53         ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Ruud Brekelmans @ 2010-02-13 13:54 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 432 bytes --]

> This doesn't solve the problem directly but putting spaces around the 1
> works:
>
> --8<---------------cut here---------------start------------->8---
> #+BEGIN_LaTeX
> \newcommand{\norm}[ 1 ]{\lVert#1\rVert}
> #+END_LaTeX
> --8<---------------cut here---------------end--------------->8---
>
> (and also works with the header version).
>

Yes, it's not a big deal, but the header version doesn't have this problem
anymore.

Ruud

[-- Attachment #1.2: Type: text/html, Size: 690 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Minor nit - LaTeX header contents and footnotes
  2010-02-13 13:54       ` Ruud Brekelmans
@ 2010-02-16  4:53         ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-02-16  4:53 UTC (permalink / raw)
  To: Ruud Brekelmans; +Cc: emacs-orgmode


On Feb 13, 2010, at 2:54 PM, Ruud Brekelmans wrote:

>
> This doesn't solve the problem directly but putting spaces around  
> the 1 works:
>
> --8<---------------cut here---------------start------------->8---
> #+BEGIN_LaTeX
> \newcommand{\norm}[ 1 ]{\lVert#1\rVert}
> #+END_LaTeX
> --8<---------------cut here---------------end--------------->8---
>
> (and also works with the header version).
>
> Yes, it's not a big deal, but the header version doesn't have this  
> problem anymore.

Yes, this kind of code belongs into the header, I think, most of the  
time.
Still, I have improved this situation, your example above no longer  
causes
the bracket to be interpreted as a footnote.

- Carsten

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

end of thread, other threads:[~2010-02-16  4:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 21:14 Minor nit - LaTeX header contents and footnotes Nick Dokos
2009-08-21  5:52 ` Carsten Dominik
2010-02-12 13:16   ` Ruud Brekelmans
2010-02-12 17:00     ` Eric S Fraga
2010-02-13 13:54       ` Ruud Brekelmans
2010-02-16  4:53         ` Carsten Dominik

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