emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: emacs-orgmode@gnu.org, Aidan Gauland <aidalgol@no8wireless.co.nz>
Subject: Re: Bug: Impossible to have right bracket in footnotes [7.01trans]
Date: Tue, 31 Aug 2010 16:12:59 +0200	[thread overview]
Message-ID: <4C7D0DEB.9060001@christianmoe.com> (raw)
In-Reply-To: <83y6bnoyf4.fsf@yahoo.it>

This is a two-part problem.

1. Right square bracket in inline footnote prematurely terminates the
    footnote.

    IMO this is not a bug, it's an inherent and quite reasonable
    limitation on the inline footnote format, and is easily solved by
    falling back on the block footnote syntax.

    #+BEGIN_EXAMPLE
    ** A heading
    This is a broken footnote.[fn:somebook]

    [fn:somebook] Some book at [42-24].
    #+END_EXAMPLE

2. A number in square brackets is interpreted as a footnote marker
    (even inside another footnote).

    In ASCII export, as in Aidan's example, this doesn't matter because
    footnote markers are exported in ... square brackets. But in other
    export formats it's an occasional pain.

    Some workarounds for this problem, involving =fn:nil= or invisible
    zero-space characters, were recently posted on the list:
    http://comments.gmane.org/gmane.emacs.orgmode/28191


Cheers,
Christian


Giovanni Ridolfi wrote:
> Aidan Gauland <aidalgol@no8wireless.co.nz> writes:
> 
>> Emacs  : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
>>  of 2010-08-29 on dimension8
>> Package: Org-mode version 7.01trans
> 
>> It is impossible to have closing brackets in a footnote, because they
>> are treated as the closing bracket for the foot note.  
>> Example...
>>
>> * A heading
>> This is a broken footnote.[fn:: Some book at [42-24].]
>>
>> This will export to (as ASCII, for example)...
>>
>> 1 A heading
>> ~~~~~~~~~~~~
>> This is a broken footnote.[1].]
>>
>> This will export to (as ASCII, for example)...
>>
>> [1] Some book at [42-24
>>
>> This is how I am required to cite books for my academic essays, so this
>> is a pretty serious bug for me (and no doubt other students, as well).
>>
> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
> Org-mode version
>          7.01trans-commit-1d1439f91e63e71f39e93622a0af439762522c00
> 
> Also escaping the brackets does not work Example:
> 
> ** A heading
> This is a broken footnote.[fn:: Some book at \[42-24\].]
> 
>  Exports to:
> 
> 1 A heading 
> ~~~~~~~~~~~~
> This is a broken footnote.[1].]
> [1] Some book at \[42-24\
> 
> 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
> 


-- 

Christian Moe
E-mail:  mail@christianmoe.com
Website: http://christianmoe.com

  parent reply	other threads:[~2010-08-31 14:12 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 [this message]
2010-08-31 12:09 ` Carsten Dominik
2010-08-31 14:13   ` Giovanni Ridolfi
2010-08-31 14:20     ` Scot Becker
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=4C7D0DEB.9060001@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=aidalgol@no8wireless.co.nz \
    --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).