Styles, numbering and odd pages

Edit : I removed and replaced the attached file with an anonymous one, which I meant to do before but forgot lol. Answer below was based on file 1 but 1 and 2 are really similar so it shouldn’t be a problem for understanding.

Hi everyone ! Thank you for taking the time to reply. English is not my main language - i will do my best but please do forgive any blunder from me.

Before going on with my question and issue notice the example attached document and the information about my software downbelow.

Ask-LO_numbering.odt (22.5 KB)

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

I am a college student and have made a very basic usage of libreoffice writer (LO) for years, browsing forums and this site for help whenever needed. I am now trying to create a template document for academic assignment that synthesizes all I have learned. This template will be shared in a workshop that introduces LO to users struggling with basic text formatting.

Is it possible to have a page number one to start on an even page ?
Can we modify the field “number of pages” to exclude title pages ?

The template structure is as follows :

  • first page
  • chapter x title page
  • body of the text
    (repeat with as many chapters as there are)
  • appendices

When going to the appendices the numbering resets to 1 and change style for roman numerals. The issue is that resetting to 1 makes my text go to an odd page (right page) and adds a blank even page (can be seen when switching document display). Refer to pages 9-i (11-13 considering the document as a whole). The page 12 is added automatically.

I know this page isn’t displayed when exporting to .pdf but I have no need for it and it counts in the total page number. Is it possible to delete this ? Is this a problem steaming from my styles setup ?

I have several other questions which I couldn’t find answers to, should I do another post ?

Thanks so much
Have fun on libreoffice.

1 Like

Yes please one post per theme question.

1 Like

Unfortunately, no. It is even worse than you think. In Writer, odd pages are hard-wired to right-hand page and even pages to left-hand side. This is particularly troublesome for RTL languages like Hebrew and Arabic.

One could imagine to “declare” the document single-sided (where page parity does not matter at all) but this is impossible presently.

Yes and no.

There is no built-in function for it. A possible workaround in simplest cases, i.e. some unnumbered front material followed by a single sequence of numbered pages, is to put a reference after the last word and to cross-reference its page number. If you have front+main discourse+annexes with a different numbering, you separate the size of the main topic and the size of the annexes using the same technique twice.

Issues with your template

Cover page

Your cover layout is bound to fail if you modify the page style in the slightest way, e.g. margins or font face.

You vertically spaced your data with empty paragraphs. And you are not consistent: top spacing is Default Paragraph Style, then they are TITRE DU DOCUMENT.

To illustrate this: Garamond font is not installed on my Fedora Linux computer; it is replaced by some serif one. But metrics is not the same and the two lines which are supposed to be at bottom of page one are now at top of page 2.

Vertical spacing is part of the semantic significance of a paragraph style. You should then have your TITRE DU DOCUMENT or built-in Title for middle information and some other “Academic Context” for the bottom lines. You tune spacing through Indents & Spacing Above and Below parameters.

You should never use Default Paragraph Style for any text in your document. Due to the hierarchical organisation of styles, all styles inherit from it. It is very handy to set default custom parameters (such as font face and language) to be shared by all others. Modifying these settings are instantly forwarded to the others (unless they are overridden).

Fortunately, you are not aware of this tree-like structure and inheritance rule and you created your custom styles independent from Default Character style (DFS). Otherwise, the tab stop you added to DFS would have been present everywhere.

Chapters

Instead of using the built-in Heading n collection, you recreated one as TITRE DE CHAPITRE, SECTION/1, SECTION/2, SECTION/3. They are all independent except SECTION/3 which inherit from SECTION/2. This is inconsistent and will cause you problems when you tune your layout.

You added some dummy manual list numbering to your styles. This creates a conflict with Tools>Heading Numbering which can now no longer be used. Don’t do this. In addition, you don’t benefit from automatic numbering. "Chapitre " and " : " (non-breaking space-colon-ordinary space) can be inserted automatically as “separators” around the number.

You have a negative first line indents on your outline levels 2, 3 and 4. They send start of text in the margin. Though you can technically do it, margins are theoretically no-print areas (at least where the main discourse is concerned - you can send notes or graphics into the margins though, provided it remains an exception).

Global relationship between styles

You should try to use built-in styles. They provide a good example of a consistent organisation where styles are logically dependent from some “master” (e.g. all Heading n inherit from Heading; or all "usefulé styles for the main topic inherit from Body Text). This careful hierarchy allows to control formatting from a very small number of “key” styles and avoids pitfalls.

For example, all your heading styles are forced to Garamond but you left CORPS DE TEXTE in Times New Roman. And your DFS is Liberation Serif here. If you kept the factory hierarchy, you only had to configure DFS and Heading for Garamond and all your document would be switched to Garamond without the need to track usage in every style.

Similarly, your recreated page styles but they were not fully configured. Overflow of your PREMIERE PAGE switches to Default Page Style and not to your PAGE PAR DEFAUT.

Reuse of the "template"

A Writer template is a document with .ott extension. It is created with File>Templates>Save as Template and can be edited with File>Templates>Edit Template.

There are many good reasons to use an .ott, among which the main ones:

  • there is no risk to overwrite the template when saving because Writer changes the extension to .odt as soon as you create a new document
  • when you change your styles in the template, your documents are automatically updated next time you open them

And an advanced one: provided you wrote your text exclusively with styles without any trace of direct formatting, you can dramatically change the layout of the document by assigning another template to it, without caring to change or check anything in text.

This magic is possible is you educate your mind to think about styles as a semantic meta markup where styles (paragraph, character, page and even list) denotes the value or significance of the styled object, not its visual appearance. Appearance is an independent aspect handled in style configuration. You then realise that the most important job for the author is to assign styles. Formatting can be deferred to later time.

3 Likes

Oh my god ! thank you so much for this detailed answer, you really went above and beyond. I will need some time to process and apply all this information but it will be a precious help.