rinohtype icon indicating copy to clipboard operation
rinohtype copied to clipboard

Overriding a property of a base page template in a template configuration has no effect

Open brechtm opened this issue 5 years ago • 3 comments

Take for example this template configuration:

[TEMPLATE_CONFIGURATION]
name = My Article
template = article

[page]
left_margin = 0cm
header_text = 'HEADER'

The changes made to page, which serves as the base for contents_page for example, have no effect.

  • [ ] write test reproducing this
  • [ ] fix the bug

brechtm avatar Sep 07 '20 15:09 brechtm

Any news on this? I'm trying to customize the document margins (like in the example above), and it doesn't work.

fjean avatar Nov 02 '22 22:11 fjean

Sorry, no progress yet. For now, you can adjust the margins in each of the page sections (e.g. contents_page) individually.

brechtm avatar Nov 06 '22 18:11 brechtm

Thanks @brechtm, indeed it works by setting the margins for each section.

[TEMPLATE_CONFIGURATION]
name = My Article
template = article

[VARIABLES]
left_margin = 2.0cm

[title_page]
left_margin = $(left_margin)

[front_matter_page]
left_margin = $(left_margin)

[contents_page]
left_margin = $(left_margin)

fjean avatar Nov 10 '22 00:11 fjean