* Latex export : newlines in footnotes.
@ 2012-05-28 21:20 Jonathan BISSON
2012-05-29 11:52 ` Jonathan BISSON
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan BISSON @ 2012-05-28 21:20 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
Hello,
When I try to export my org file using latest git (1 month ago version
got this problem too) to a tex file, I have problems with footnotes.
* Orgfile
Hello [fn:foo: bar]
-> Latex Output
Hello \footnote{bar
}
So I got a newline after bar, which causes big troubles in tables as the
latex exporter puts the closing } at the end of the table, not a the end
of the current cell.
Any clue on how to get rid of this new line, and get the closing element
at the right place ?
Thanks !
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Latex export : newlines in footnotes.
2012-05-28 21:20 Latex export : newlines in footnotes Jonathan BISSON
@ 2012-05-29 11:52 ` Jonathan BISSON
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan BISSON @ 2012-05-29 11:52 UTC (permalink / raw)
To: emacs-orgmode
Jonathan BISSON <bissonjonathan <at> gmail.com> writes:
>
> Hello,
>
> When I try to export my org file using latest git (1 month ago version
> got this problem too) to a tex file, I have problems with footnotes.
>
> * Orgfile
>
> Hello [fn:foo: bar]
>
> -> Latex Output
>
> Hello \footnote{bar
> }
>
> So I got a newline after bar, which causes big troubles in tables as the
> latex exporter puts the closing } at the end of the table, not a the end
> of the current cell.
>
> Any clue on how to get rid of this new line, and get the closing element
> at the right place ?
>
> Thanks !
>
>
In function org-export-latex-preprocess (file org-latex.el)
I relace the (setq def …) on the beginning of the function by :
(setq def
(concat (replace-regexp-in-string "\n" "" def)
(if (string-match "ORG-LIST-END-MARKER\\'" def)
"\n" " ")))
And now the footnotes are exported correctly.
I can't find where in org-export-footnotes-seen the things are added with a \n
inside. If anyone can take a look at this.
Thanks,
J.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-29 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 21:20 Latex export : newlines in footnotes Jonathan BISSON
2012-05-29 11:52 ` Jonathan BISSON
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.