emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk
@ 2009-11-28 12:57 Bjørn Arild Mæland
  2009-11-28 17:54 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Bjørn Arild Mæland @ 2009-11-28 12:57 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

In the latest trunk version of org-mode
(4cbedbff1adf22e2018baf5c674b32a91c68007e) I get an error when I
export the following org file to pdf:
,----
| #+LATEX_HEADER: \usepackage{acronym}
| #+LATEX_HEADER: \acrodef{SRILM}{The SRI Language Modeling Toolkit}
|
| * Test
| \ac{SRILM} [fn:srilm]
|
| [fn:srilm] http://www.speech.sri.com/projects/srilm/
`____

The error is as follows: "org-footnote-normalize: Invalid use of `\'
in replacement text".

This works fine in 6.32b, however.

-Bjørn

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

* Re: Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk
  2009-11-28 12:57 Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk Bjørn Arild Mæland
@ 2009-11-28 17:54 ` Carsten Dominik
  2009-11-28 19:21   ` Scot Becker
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-11-28 17:54 UTC (permalink / raw)
  To: Bjørn Arild Mæland; +Cc: emacs-orgmode

Hi Bjørn,

Could you please make full backtrace?

Thanks!

- Carsten

On Nov 28, 2009, at 1:57 PM, Bjørn Arild Mæland wrote:

> Hi,
>
> In the latest trunk version of org-mode
> (4cbedbff1adf22e2018baf5c674b32a91c68007e) I get an error when I
> export the following org file to pdf:
> ,----
> | #+LATEX_HEADER: \usepackage{acronym}
> | #+LATEX_HEADER: \acrodef{SRILM}{The SRI Language Modeling Toolkit}
> |
> | * Test
> | \ac{SRILM} [fn:srilm]
> |
> | [fn:srilm] http://www.speech.sri.com/projects/srilm/
> `____
>
> The error is as follows: "org-footnote-normalize: Invalid use of `\'
> in replacement text".
>
> This works fine in 6.32b, however.
>
> -Bjørn
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk
  2009-11-28 17:54 ` Carsten Dominik
@ 2009-11-28 19:21   ` Scot Becker
  2009-11-29  0:23     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Scot Becker @ 2009-11-28 19:21 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2682 bytes --]

I noticed this this week as well.  I don't know how to do a backtrace
(though I'll look it up and try) but attached (and pasted below) is a
sample file.

Scot
(Edit: and the backtrace)

#+TITLE: Some Lorem

* Heading


If you do a \autocite{key_0000} followed by an org-footnote[fn:: You
seem to get an error.]  Does this happen for you too?

The error is "Invalid use of `\' in replacement text."

If you do a \autocite{key_0000} and break the line
like this [fn:: No trouble now.]  everything's fine.  I notice this
because I use long-lines mode.

And I just realized that I do this kind of thing with some
frequency:[fn:: See the fine discussion of this and other relevant
matters in \fullcite{bibtexkey_0000}]  Do I have any hope that that
might be made to work?  At the moment, it throws the same error.  If I
need to I can use LaTeX footnote for this kind of thing, since I
already do  live with the limitations that imposes (no HTML export).


----------------------
Backtrace:

Debugger entered--Lisp error: (error "Invalid use of `\\' in replacement text")
  replace-match("\\[1]")
  org-footnote-normalize(nil t)
  org-export-preprocess-string(#("#+TITLE: Some Lorem\n\n* Heading
\n\n\nIf you do a \\autocite{key_0000} followed by an
org-footnote[fn:: You seem to get an error.]  Blah here.\n\nThe error
is \"Invalid use of `\\' in replacement text.\"\n\nIf you do a
\\autocite{key_0000} and break the line \nlike this [fn:: No trouble
now.]  everything's fine.  I notice this because I use long-lines
mode.\n\nAnd I just realized that I do this kind of thing with some
frequency:[fn:: See the fine discussion of this and other relevant
matters in \\fullcite{bibtexkey_0000}]  Do I have any hope that that
might be made to work?  At the moment, it throws the same error.  If I
need to I can use LaTeX footnote for this kind of thing, since I
already do  live with the limitations that imposes (no HTML
export).\n\n\n\n\n\n" 0 19 (fontified nil font-lock-fontified t
:org-license-to-kill t) 19 20 (fontified nil :org-license-to-kill t)
20 21 (fontified nil) 21 23 (fontified nil) 23 31 (fontified nil) 31
34 (fontified nil) 34 138 (fontified nil) 138 347 (fontified nil) 347
746 (fontified nil) 746 751 (fontified nil)) :emph-multiline t
:for-LaTeX t :comments nil :tags not-in-toc :priority nil :footnotes t
:drawers nil :timestamps t :todo-keywords t :add-text nil
:skip-before-1st-heading nil :select-tags ("export") :exclude-tags
("noexport") :LaTeX-fragments nil)
  org-export-as-latex(nil nil nil "*Org LaTeX Export*")
  org-export-as-latex-to-buffer(nil)
  call-interactively(org-export-as-latex-to-buffer)
  org-export(nil)
  call-interactively(org-export nil nil)

[-- Attachment #2: newbug.org --]
[-- Type: application/octet-stream, Size: 751 bytes --]

#+TITLE: Some Lorem

* Heading 


If you do a \autocite{key_0000} followed by an org-footnote[fn:: You seem to get an error.]  Blah here.

The error is "Invalid use of `\' in replacement text."

If you do a \autocite{key_0000} and break the line 
like this [fn:: No trouble now.]  everything's fine.  I notice this because I use long-lines mode.

And I just realized that I do this kind of thing with some frequency:[fn:: See the fine discussion of this and other relevant matters in \fullcite{bibtexkey_0000}]  Do I have any hope that that might be made to work?  At the moment, it throws the same error.  If I need to I can use LaTeX footnote for this kind of thing, since I already do  live with the limitations that imposes (no HTML export).






[-- Attachment #3: 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] 5+ messages in thread

* Re: Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk
  2009-11-28 19:21   ` Scot Becker
@ 2009-11-29  0:23     ` Carsten Dominik
  2009-12-01  0:06       ` Scot Becker
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-11-29  0:23 UTC (permalink / raw)
  To: Scot Becker; +Cc: emacs-orgmode

Hi Björn, Scot,

I just fixed a bug in this are, it the problem gone now?

- Carsten

On Nov 28, 2009, at 8:21 PM, Scot Becker wrote:

> I noticed this this week as well.  I don't know how to do a backtrace
> (though I'll look it up and try) but attached (and pasted below) is a
> sample file.
>
> Scot
> (Edit: and the backtrace)
>
> #+TITLE: Some Lorem
>
> * Heading
>
>
> If you do a \autocite{key_0000} followed by an org-footnote[fn:: You
> seem to get an error.]  Does this happen for you too?
>
> The error is "Invalid use of `\' in replacement text."
>
> If you do a \autocite{key_0000} and break the line
> like this [fn:: No trouble now.]  everything's fine.  I notice this
> because I use long-lines mode.
>
> And I just realized that I do this kind of thing with some
> frequency:[fn:: See the fine discussion of this and other relevant
> matters in \fullcite{bibtexkey_0000}]  Do I have any hope that that
> might be made to work?  At the moment, it throws the same error.  If I
> need to I can use LaTeX footnote for this kind of thing, since I
> already do  live with the limitations that imposes (no HTML export).
>
>
> ----------------------
> Backtrace:
>
> Debugger entered--Lisp error: (error "Invalid use of `\\' in  
> replacement text")
>  replace-match("\\[1]")
>  org-footnote-normalize(nil t)
>  org-export-preprocess-string(#("#+TITLE: Some Lorem\n\n* Heading
> \n\n\nIf you do a \\autocite{key_0000} followed by an
> org-footnote[fn:: You seem to get an error.]  Blah here.\n\nThe error
> is \"Invalid use of `\\' in replacement text.\"\n\nIf you do a
> \\autocite{key_0000} and break the line \nlike this [fn:: No trouble
> now.]  everything's fine.  I notice this because I use long-lines
> mode.\n\nAnd I just realized that I do this kind of thing with some
> frequency:[fn:: See the fine discussion of this and other relevant
> matters in \\fullcite{bibtexkey_0000}]  Do I have any hope that that
> might be made to work?  At the moment, it throws the same error.  If I
> need to I can use LaTeX footnote for this kind of thing, since I
> already do  live with the limitations that imposes (no HTML
> export).\n\n\n\n\n\n" 0 19 (fontified nil font-lock-fontified t
> :org-license-to-kill t) 19 20 (fontified nil :org-license-to-kill t)
> 20 21 (fontified nil) 21 23 (fontified nil) 23 31 (fontified nil) 31
> 34 (fontified nil) 34 138 (fontified nil) 138 347 (fontified nil) 347
> 746 (fontified nil) 746 751 (fontified nil)) :emph-multiline t
> :for-LaTeX t :comments nil :tags not-in-toc :priority nil :footnotes t
> :drawers nil :timestamps t :todo-keywords t :add-text nil
> :skip-before-1st-heading nil :select-tags ("export") :exclude-tags
> ("noexport") :LaTeX-fragments nil)
>  org-export-as-latex(nil nil nil "*Org LaTeX Export*")
>  org-export-as-latex-to-buffer(nil)
>  call-interactively(org-export-as-latex-to-buffer)
>  org-export(nil)
>  call-interactively(org-export nil nil)
> <newbug.org>

- Carsten

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

* Re: Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk
  2009-11-29  0:23     ` Carsten Dominik
@ 2009-12-01  0:06       ` Scot Becker
  0 siblings, 0 replies; 5+ messages in thread
From: Scot Becker @ 2009-12-01  0:06 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


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

It appears so! No errors on my sample file.

Muchas gracias,

Scot

[-- Attachment #1.2: Type: text/html, Size: 90 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] 5+ messages in thread

end of thread, other threads:[~2009-12-01  0:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-28 12:57 Bug: Footnotes in combination with LaTeX fragments is broken in latest trunk Bjørn Arild Mæland
2009-11-28 17:54 ` Carsten Dominik
2009-11-28 19:21   ` Scot Becker
2009-11-29  0:23     ` Carsten Dominik
2009-12-01  0:06       ` Scot Becker

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