emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: emacs-orgmode@gnu.org, Aidan Gauland <aidalgol@no8wireless.co.nz>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Bug: Impossible to have right bracket in footnotes [7.01trans]
Date: Tue, 31 Aug 2010 15:20:47 +0100	[thread overview]
Message-ID: <AANLkTinfd9ixZkBi+i4EG4-JuuCsTvm1gjVM_37n_6mu@mail.gmail.com> (raw)
In-Reply-To: <83occiq38c.fsf@yahoo.it>


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

Giovanni,

Thanks for that.  I have the same problem, since I put citations in my
footnotes in the format \cite[50]{Ridolfi_2011_Autobiography}.  This is
great.  It's also a nice model for a few other petty troubles I want to
postprocess away.

Scot



On Tue, Aug 31, 2010 at 3:13 PM, Giovanni Ridolfi <giovanni.ridolfi@yahoo.it
> wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
> > unfortunately this is difficult to fix in a good way.
> > I do want to go back to footnotes, because I think there are many
> > things that do not yet work satisfactorily.  And then I also hope to
> > address the issue you raised.  For the time being, unfortunately, I do
> > not have a solution for you.
>
> I have a workaround.
> If the author uses the a special code for [ and ], e.g.
> #91; and #93; then the note is exported correctly.
> --------------------------------------------------------
> ** example
> This is not anymore a broken footnote.[fn:: Some book at #91; 42-24 #93;.]
>
> Exports to:
> This is not anymore broken footnote.[1]
> [1] Some book at #91; 42-24 #93;.
> ----------------------------------------------------------
>
> But then the file have to be post-processed to substitute #91; and #93;
>
> Place these lines in .emacs, or evaluate them (goto the last ") " and hit
> C-x C-e)
> for the current session :
> ----------------------------------------------------------------------
> (add-hook 'org-export-html-final-hook  'gio/replace-square-brackets)
> (add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets)
>
> (defun gio/replace-square-brackets ()
> "Replace #91; with [ and #93; with ] "
> (interactive)
> (setq a "#91;")  ; use "\[" for LaTeX export
> (setq a1  "[")
> (setq b "#93;")  ; use "\]" for LaTeX export
> (setq b1  "]")
> (ignore-errors (goto-char 1) (setq p (point))
> (while (< p (point-max))
> (re-search-forward a nil nil) (replace-match a1)  (setq p (point)) )  )
> ;;
> (ignore-errors (goto-char 1) (setq p (point))
> (while (< p (point-max))
> (re-search-forward b nil nil) (replace-match b1)  (setq p (point)) )  )
> (save-buffer) )
> ----------------------------------------------------------
> Tested for  HTML, ASCII.
>
> For the LaTeX export  the line:
>      This is not anymore a broken footnote.[fn:: Some book at #91;
>      42-24#93;.]
> exports to:
>
>      This is not anymore a broken footnote.\footnote{Some book at \[
>      42-24 \]. }
>
>
> So the LaTeX seems to convert directly the #9?; character.
>
> Not tested for docbook.
>
> HTH
> Giovanni
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 3649 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

  reply	other threads:[~2010-08-31 15:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31  8:38 Bug: Impossible to have right bracket in footnotes [7.01trans] Aidan Gauland
2010-08-31 10:43 ` Giovanni Ridolfi
2010-08-31 12:11   ` Andreas Röhler
2010-08-31 14:12   ` Christian Moe
2010-08-31 12:09 ` Carsten Dominik
2010-08-31 14:13   ` Giovanni Ridolfi
2010-08-31 14:20     ` Scot Becker [this message]
2010-09-01  0:19     ` Aidan Gauland
2010-08-31 22:19   ` Alan L Tyree
2010-09-01  0:29     ` Aidan Gauland
2010-09-01 10:21       ` Scot Becker
2010-09-02  8:15     ` Carsten Dominik
2010-09-02 10:04       ` Alan Tyree
2010-09-03  3:38   ` Samuel Wales

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=AANLkTinfd9ixZkBi+i4EG4-JuuCsTvm1gjVM_37n_6mu@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=aidalgol@no8wireless.co.nz \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    /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).