PDF - Chapter indent

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

PDF - Chapter indent

ggenier
Hello,

I try to indent my chapter

For now, I have this result :


And i want this result :


I have this yml file :
#3
heading_h2:
   font-family: Century Gothic
   font-size: 16
   font-style: normal
   border-color: CEC9C9
   border-width: 0.20
   line-height: 3
   text-decoration-color: #e51519
   levels: 2

#3.1
heading_h3:
   font_family: Century Gothic
   font_size: 12
   font_style: bold
   levels: 3

#3.1.1
heading_h4:
   font_family: Century Gothic
   font_size: 12
   indent: $horizontal_rhythm * 1.5
   levels: 4

I try a lot of thigs but this chapter does not want to move :)
Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

mojavelinux
Administrator
Indenting a specific section level is not supported.

You can only indent the contents of a section using section_indent, which excludes section titles and discrete headings.


-Dan

On Mon, Jun 22, 2020 at 2:13 AM ggenier [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

I try to indent my chapter

For now, I have this result :


And i want this result :


I have this yml file :
#3
heading_h2:
   font-family: Century Gothic
   font-size: 16
   font-style: normal
   border-color: CEC9C9
   border-width: 0.20
   line-height: 3
   text-decoration-color: #e51519
   levels: 2

#3.1
heading_h3:
   font_family: Century Gothic
   font_size: 12
   font_style: bold
   levels: 3

#3.1.1
heading_h4:
   font_family: Century Gothic
   font_size: 12
   indent: $horizontal_rhythm * 1.5
   levels: 4

I try a lot of thigs but this chapter does not want to move :)


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/PDF-Chapter-indent-tp8077.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

ggenier
In reply to this post by ggenier
Ok thank you.

In ruby it is not possible too ?
Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

mojavelinux
Administrator
> In ruby it is not possible too ?

If you're asking if it's possible to extend the converter to do it, then yes, it's possible.

Another alternative is asciidoctor-web-pdf, which converts to HTML then PDF. That would allow you to use CSS to control the layout. See https://github.com/mogztter/asciidoctor-web-pdf

Best Regards,

-Dan

On Mon, Jun 22, 2020 at 8:21 AM ggenier [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Ok thank you.

In ruby it is not possible too ?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/PDF-Chapter-indent-tp8077p8079.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

Steve Litt
In reply to this post by mojavelinux
On Mon, 22 Jun 2020 01:33:43 -0700 (MST)
"mojavelinux [via Asciidoctor :: Discussion]"
<[hidden email]> wrote:

> Indenting a specific section level is not supported.
>
> You can only indent the contents of a section using section_indent,
> which excludes section titles and discrete headings.

Can't you get the job done in the CSS files or their equivalent for
however PDFs are created?
 
SteveT

Steve Litt
May 2020 featured book: Troubleshooting Techniques
     of the Successful Technologist
http://www.troubleshooters.com/techniques
Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

David Jencks
That’s the point of trying asciidoctor-web-pdf, where the pdf layout is actually controlled by css. It’s not in asciidoctor-pdf, and I believe there isn’t really an equivalent other than the actual code.

David Jencks

On Jun 22, 2020, at 11:19 PM, Steve Litt [via Asciidoctor :: Discussion] <[hidden email]> wrote:

On Mon, 22 Jun 2020 01:33:43 -0700 (MST)
"mojavelinux [via Asciidoctor :: Discussion]"
<<a href="x-msg://50/user/SendEmail.jtp?type=node&amp;node=8085&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:

> Indenting a specific section level is not supported.
>
> You can only indent the contents of a section using section_indent,
> which excludes section titles and discrete headings.

Can't you get the job done in the CSS files or their equivalent for
however PDFs are created?
 
SteveT

Steve Litt
May 2020 featured book: Troubleshooting Techniques
     of the Successful Technologist
http://www.troubleshooters.com/techniques



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/PDF-Chapter-indent-tp8077p8085.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: PDF - Chapter indent

ggenier
In reply to this post by ggenier
Thanks

I have already try in ruby without result.

I try again today and it ok.