emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan BISSON <bissonjonathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Latex export : newlines in footnotes.
Date: Tue, 29 May 2012 11:52:41 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120529T134937-964@post.gmane.org> (raw)
In-Reply-To: 4FC3EC0E.6050109@gmail.com

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.

      reply	other threads:[~2012-05-29 11:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 21:20 Latex export : newlines in footnotes Jonathan BISSON
2012-05-29 11:52 ` Jonathan BISSON [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20120529T134937-964@post.gmane.org \
    --to=bissonjonathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).