How can we change "chapter" ?

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

How can we change "chapter" ?

ayca1903
When we have book type document, on pdf 0 level sections' names start with like Chapter 1, Chapter 2. We are writing book in Turkish, so we want to change "Chapter" with another word which is Turkish. Maybe we can delete it. How can we do that, delete or change?
Reply | Threaded
Open this post in threaded view
|

Re: How can we change "chapter" ?

mojavelinux
Administrator
You can set the chapter-label attribute as follows:

:chapter-label: <value>

If you don't want it to appear, set the value to blank.

-Dan

On Thu, May 12, 2016 at 11:58 PM, ayca1903 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
When we have book type document, on pdf 0 level sections' names start with like Chapter 1, Chapter 2. We are writing book in Turkish, so we want to change "Chapter" with another word which is Turkish. Maybe we can delete it. How can we do that, delete or change?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-can-we-change-chapter-tp4667.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



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

Re: How can we change "chapter" ?

ayca1903
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How can we change "chapter" ?

Jeremie Bresson
In reply to this post by mojavelinux
I think this belongs to the user-manual
https://github.com/asciidoctor/asciidoctor.org/pull/584

Additional question:
Is there a reason why the HTML backend do not take into consideration the "chapter-label" attribute?
Reply | Threaded
Open this post in threaded view
|

Re: How can we change "chapter" ?

mojavelinux
Administrator
This attribute is not yet documented because Asciidoctor PDF is still considered alpha and subject to change. I do think we can document it now in the README or theming-guide for Asciidoctor PDF. I've added it to the following issue:

The reason this label was added is to mimic the DocBook toolchain PDF output (when using fo) by default. The AsciiDoc Python HTML output never used a chapter label, so we didn't include it in the HTML output. In other words, it's an output-specific customization. But I haven't thought much deeper about it than that.

It probably should be changed to be blank by default since it often surprises people (and we don't want to aim for the element of least surprise).

-Dan

On Fri, May 13, 2016 at 12:01 PM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I think this belongs to the user-manual
https://github.com/asciidoctor/asciidoctor.org/pull/584

Additional question:
Is there a reason why the HTML backend do not take into consideration the "chapter-label" attribute?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-can-we-change-chapter-tp4667p4671.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



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

Re: How can we change "chapter" ?

mojavelinux
Administrator
In reply to this post by Jeremie Bresson

On Fri, May 13, 2016 at 1:39 PM, Dan Allen <[hidden email]> wrote:
This attribute is not yet documented because Asciidoctor PDF is still considered alpha and subject to change. I do think we can document it now in the README or theming-guide for Asciidoctor PDF. I've added it to the following issue:

The reason this label was added is to mimic the DocBook toolchain PDF output (when using fo) by default. The AsciiDoc Python HTML output never used a chapter label, so we didn't include it in the HTML output. In other words, it's an output-specific customization. But I haven't thought much deeper about it than that.

It probably should be changed to be blank by default since it often surprises people (and we don't want to aim for the element of least surprise).

-Dan

On Fri, May 13, 2016 at 12:01 PM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I think this belongs to the user-manual
https://github.com/asciidoctor/asciidoctor.org/pull/584

Additional question:
Is there a reason why the HTML backend do not take into consideration the "chapter-label" attribute?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-can-we-change-chapter-tp4667p4671.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen