Login  Register

content-margin for header not working

Posted by cwempe on Apr 22, 2020; 12:47pm
URL: https://discuss.asciidoctor.org/content-margin-for-header-not-working-tp7944.html

Hello,

I just started using AsciiDoc(tor).
I am using VScode with the AsciDoc extension and "asciidoctor-pdf" to generate a pdf.

I try to imitate the word template our university is providung to match the CI.

On of the last settings I need to adapt is the margin for the header (running-content).

The original template wants the page number at the top right of the page.
But slightly more to the right than the page margin.


I thought this should work:


page:
  margin: [20mm, 19.7mm, 24mm, 32.8mm]
header:
  recto:
    content-margin: [inherit, 16.9mm, inherit, inherit]
    left:
      content: '{chapter-title}'
    center:
      content: ''
    right:
      content: '{page-number}'


I tried other variations of this and also "margin:", but nothing changed.

Any idea what I am doing wrong?
Is this even supposed to work or am I trying the impossible?