toc-title Attribute has no effect

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

toc-title Attribute has no effect

gernotstarke
I tried to change the title of the :toc: from "Table of Contents" to
its German translation... and failed:

:toc-title: Inhaltsverzeichnis

had no effect, whereas changing

:table-caption: Tabelle

worked fine...

thx for any hints,
Gernot
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

LightGuardjp
What's the source of your document? This really should work, also which version of asciidoctor?


On Fri, Jun 6, 2014 at 2:33 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I tried to change the title of the :toc: from "Table of Contents" to
its German translation... and failed:

:toc-title: Inhaltsverzeichnis

had no effect, whereas changing

:table-caption: Tabelle

worked fine...

thx for any hints,
Gernot


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

gernotstarke


Am 06.06.2014 um 17:54 schrieb LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]>:

What's the source of your document? This really should work, also which version of asciidoctor?


On Fri, Jun 6, 2014 at 2:33 AM, gernotstarke [via Asciidoctor :: Discussion] <<a href="x-msg://12/user/SendEmail.jtp?type=node&amp;node=1788&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
I tried to change the title of the :toc: from "Table of Contents" to
its German translation... and failed:

:toc-title: Inhaltsverzeichnis

had no effect, whereas changing

:table-caption: Tabelle

worked fine...

thx for any hints,
Gernot


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787.html
To start a new topic under Asciidoctor :: Discussion, email <a href="x-msg://12/user/SendEmail.jtp?type=node&amp;node=1788&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787p1788.html
To unsubscribe from toc-title Attribute has no effect, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

LightGuardjp
I don't see :toc: in your document, I see other toc related attributes, but not that one.


On Fri, Jun 6, 2014 at 11:18 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote:


Am 06.06.2014 um 17:54 schrieb LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]>:

What's the source of your document? This really should work, also which version of asciidoctor?


On Fri, Jun 6, 2014 at 2:33 AM, gernotstarke [via Asciidoctor :: Discussion] <<a href="x-msg://12/user/SendEmail.jtp?type=node&amp;node=1788&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
I tried to change the title of the :toc: from "Table of Contents" to
its German translation... and failed:

:toc-title: Inhaltsverzeichnis

had no effect, whereas changing

:table-caption: Tabelle

worked fine...

thx for any hints,
Gernot


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787.html
To start a new topic under Asciidoctor :: Discussion, email <a href="x-msg://12/user/SendEmail.jtp?type=node&amp;node=1788&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787p1788.html
To unsubscribe from toc-title Attribute has no effect, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787p1789.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

gernotstarke
In reply to this post by LightGuardjp
I build with gradle:
/ =========== asciidoctor stuff ===============
apply plugin: 'asciidoctor'

asciidoctor {
    outputDir = new File("$buildDir/docs")
    baseDir = project.file('src/DE/asciidoc')

    // asciidoctor will convert ALL files contained in sourceDir!
    sourceDir = project.file('src/DE/asciidoc')

    options = [
        attributes: [
            toc         : 'left',
            backend     : 'html5',
            doctype     : 'book',
            icons       : 'font',
            sectlink    : true,
            sectanchors : true,
            numbered    : true,
            imagesdir   : '../images',
        ]
    ]
}


and stripped down my "real" sources a bit:

= arc42 Template

:toc-title: Inhaltsverzeichnis

// scrollable table-of-contents
:toc:


// numbering from here on
:numbered:

== Heading 1

text

== Heading 2
text

== Heading 3
text

=== h3.1

=== h3.2
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

gernotstarke
the "complete" stuff is located at https://github.com/arc42/arc42-template

Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

LightGuardjp
That all looks like it should work. Could you try with the ruby cli to see if we can narrow things down a bit?


On Fri, Jun 6, 2014 at 11:56 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote:
the "complete" stuff is located at https://github.com/arc42/arc42-template




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787p1792.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

gernotstarke
now I'm even more puzzled:

I maintain a plethora of asciidoc documents, all worked well until now...

Now they stopped generating tocs at all...

Building on another machine at least successfully generates the toc,
although toc:title still has no effect...

sorry for the hassle, I investigate a bit on OS level.
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

mojavelinux
Administrator
Simply remove the blank line after the document title and it should work.

= arc42 Template 
:toc-title: Inhaltsverzeichnis

Document-level attributes, such as toc-title, must be defined in the document header. The document header ends after the first blank line following the document title.

Since this is a common mistake, I'll file an issue to emphasize this point more in the documentation.

-Dan


On Sat, Jun 7, 2014 at 4:47 AM, gernotstarke [via Asciidoctor :: Discussion] <[hidden email]> wrote:
now I'm even more puzzled:

I maintain a plethora of asciidoc documents, all worked well until now...

Now they stopped generating tocs at all...

Building on another machine at least successfully generates the toc,
although toc:title still has no effect...

sorry for the hassle, I investigate a bit on OS level.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-title-Attribute-has-no-effect-tp1787p1794.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: toc-title Attribute has no effect

gernotstarke
In reply to this post by gernotstarke
Dan replied:

Simply remove the blank line after the document title and it should work.

= arc42 Template
:toc-title: Inhaltsverzeichnis

Document-level attributes, such as toc-title, must be defined in the document header. The document header ends after the first blank line following the document title.

Since this is a common mistake, I'll file an issue to emphasize this point more in the documentation.

-Dan