emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [ox-ascii, bug?] aligning text withing footnotes
Date: Sun, 08 Mar 2015 03:18:09 +0100	[thread overview]
Message-ID: <87bnk4i65a.fsf@gmx.us> (raw)
In-Reply-To: 87mw3o7ecn.fsf@nicolasgoaziou.fr

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Rasmus <rasmus@gmx.us> 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	other threads:[~2015-03-08  2:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 23:31 [ox-ascii, bug?] aligning text withing footnotes Rasmus
2015-03-07  1:12 ` Nicolas Goaziou
2015-03-07 11:26   ` Rasmus
2015-03-07 20:16     ` Nicolas Goaziou
2015-03-08  2:18       ` Rasmus [this message]
2015-03-08 16:21         ` Nicolas Goaziou

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=87bnk4i65a.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).