emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ox-ascii, bug?] aligning text withing footnotes


From: Rasmus
Subject: Re: [O] [ox-ascii, bug?] aligning text withing footnotes
Date: Sun, 08 Mar 2015 03:18:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Rasmus <address@hidden> writes:
>
>> No.  In a normal paragraph when I do
>>
>> para1\\
>>      para2
>>
>> The whitespace indentation is respected.  All I'm saying that when I do
>> something equivalent in a footnote the amount of characters removed from
>> the first list (typically 3: "fn:") should also be removed from subsequent
>> lines.  E.g.
>>
>> [fn:1] http://orgmode.org/\\
>>        http://www.gnu.org/software/emacs/
>>
>> Becomes:
>>
>> [1] http://orgmode.org/\\
>>        http://www.gnu.org/software/emacs/
>>
>> But 
>>
>> [fn:1] http://orgmode.org/ long text here
>> http://www.gnu.org/software/emacs/
>>
>> Becomes 
>>
>> [1] http://orgmode.org/ long text here
>> http://www.gnu.org/software/emacs/
>
> It is difficult to know the indentation of the first line from the parse
> tree. Both
>
>   [fn:1] http://orgmode.org/
>
> and
>
>   [fn:1]       http://orgmode.org
>
> will appear as "http://orgmode.org"; anyway. We could compute it by
> subtracting footnote's beginning position from paragraph's. However, we
> cannot trust such positions as they might be fake, or even not there
> (elements inserted right into the parse tree).

What I want to do is simpler.  I want to subtract the length between [1]
and [fn:1] from every line between :begin and :end of the
footnote-definition.  Differences other than the three character
difference between [fn:1] and [1] I don't care about.

–Rasmus

-- 
When in doubt, do it!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]