How to divide a long section title footnote into lines?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to divide a long section title footnote into lines?

programandala.net
Hi,

I need a very long footnote at a section title:

----
  == My titlefootnote:[Bla bla bla bla... 700 characters here!]
----

Contrary to footnotes in an ordinary paragraph, this footnote is
recognized only in one single text line, what is inconvenient to edit.

I've tried adding an optional ending heading marker, but no difference:

----
  == My titlefootnote:[Bla bla
  bla bla... 700 characters
  here!] ==
----

I've searched the documentation for a line split character or similar,
but found nothing except the opposite function: the "+" character to
force line breaks.  I've searched the forum too, no result.

Is there any way to do this? I'm using Asciidoctor version 1.5.2.

Thank you.

--
Marcos Cruz
http://programandala.net
Reply | Threaded
Open this post in threaded view
|

Re: How to divide a long section title footnote into lines?

mojavelinux
Administrator

On Sun, Nov 1, 2015 at 9:48 AM, programandala.net [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Contrary to footnotes in an ordinary paragraph, this footnote is
recognized only in one single text line, what is inconvenient to edit.

Unfortunately, that's a limitation of section titles.

What I recommend is that you define the footnote using an attribute above the section title, then reference that attribute in the footnote macro. Something like:

:footnote_1: This is a long footnote \
that can be split into multiple lines \
to make editing simpler.

== My title{empty}footnote:[pass:a[{footnote_1}]]

content

The pass macro is required to force the attribute to be resolved eagerly. (It's not currently possible to set the order of substitutions on a section title like you can with a block).

Cheers,

-Dan

--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: How to divide a long section title footnote into lines?

programandala.net
En/Je/On 2015-11-28 10:54, mojavelinux [via Asciidoctor :: Discussion]
escribió / skribis / wrote :

>    Unfortunately, that's a limitation of section titles.
>    What I recommend is that you define the footnote using an
>    attribute above the section title, then reference that
>    attribute in the footnote macro. Something like:
>    :footnote_1: This is a long footnote \
>    that can be split into multiple lines \
>    to make editing simpler.
>    == My title{empty}footnote:[pass:a[{footnote_1}]]

Thank you. It works great. As my footnote needed some text substitutions
I used `pass:a,q[]`.

--
Marcos Cruz
http://programandala.net