Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Title Page in Article Template #433

Open
Marttico opened this issue Oct 2, 2024 · 4 comments
Open

Missing Title Page in Article Template #433

Marttico opened this issue Oct 2, 2024 · 4 comments
Labels

Comments

@Marttico
Copy link

Marttico commented Oct 2, 2024

I'm using the article template for my report, which previously included a title page. However, in the latest version of RinohType, I've noticed that the title page has been removed. It seems this change was made because the article template was too similar to the book template. Unfortunately, the book template adds blank pages after each chapter, making it less suitable for my use case.

Is there a way to reintroduce the title page in the article template, or to get rid of these blank pages in the book template?

My current template looks a like this:

[TEMPLATE_CONFIGURATION]
name = Eindverslag configuration
template = article

language = nl

[VARIABLES]
paper_size = A4

I use the following command to render it:
rinoh Eindverslag.rst -t my_book.rtt

@brechtm
Copy link
Owner

brechtm commented Oct 2, 2024

The default book template configuration is set to start chapters on odd (right-hand) pages, inserting blank pages when necessary. The easiest way to achieve your goal is to use the book template and override the setting for the page_break property of the chapter style by supplying your own stylesheet that inherits from the sphinx stylesheet (the default for the book template):

[STYLESHEET]
name=My custom template
base=sphinx
description=Some tweaks to the stylesheet used by the Book template

[chapter]
page_break=none

@Marttico
Copy link
Author

Marttico commented Oct 7, 2024

Thanks @brechtm ! This seems to work for most blank pages, however it does seem to still have a page break after the title page and before the Table of Contents of my document. Any idea on how I could fix that?

@brechtm
Copy link
Owner

brechtm commented Oct 8, 2024

I assumed this could be fixed by setting the page_break property on the table of contents section style, but this doesn't to have the expect result. This might be a bug, but I can't make any promises as to when I would be able to look into it, I'm afraid.

@brechtm brechtm added the bug label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@brechtm @Marttico and others