Skip to Content.
Sympa Menu

texmacs-users - Re: [texmacs-users] Help with Table of Contents: removing blank pages in book style

Subject: mailing-list for TeXmacs Users

List archive

Chronological Thread  
  • From: Giovanni Piredda <address@concealed>
  • To: address@concealed
  • Subject: Re: [texmacs-users] Help with Table of Contents: removing blank pages in book style
  • Date: Fri, 01 May 2026 17:15:10 +0000

Hi Murilo,

glad that it worked.

On 5/1/26 18:36, Murilo Zulian Colla wrote:
now chapters don't start on new pages. Is it possible to fix that?

Please try this set of macros to replace the only one of the first post; we need to replace the whole set that makes the Table of Contents work with the same macros with different names, I think, in order to be able to use a macro different from chapter-title at the end of the chain. Maybe someone sees a better way, this is the way that I see; I did it in this way so that I don't have to analyze what each macro does, and I am leaving as they are macros that potentially have some effect when defining the table of contents (for example chapter-header).

<assign|render-table-of-contents|<\macro|name|body>
<with|chapter-toc|<macro|name|>|section-toc|<macro|name|>|<compound|principal-section*-tc|<arg|name>>>

  <with|par-first|0fn|par-par-sep|0fn|<arg|body>>
</macro>>

<assign|principal-section*-tc|<macro|title|<if|<sectional-short-style>|<section*-tc|<arg|title>>|<chapter*-tc|<arg|title>>>>>

<assign|chapter*-tc|<macro|title|<assign|chapter-numbered|false><assign|chapter-prefix|<macro|>><compound|chapter-clean><compound|chapter-header|<arg|title>><compound|chapter-toc|<arg|title>><compound|chapter-unnumbered-title-tc|<arg|title>>>>

<assign|chapter-unnumbered-title-tc|<macro|title|<compound|chapter-title-tc|<arg|title><compound|chapter-post-sep>>>>

<assign|chapter-title-tc|<macro|name|<no-indent><new-line><no-indent><vspace*|5fn><with|math-font-series|bold|font-series|bold|<really-huge|<arg|name>>><vspace|2fn><no-page-break><no-indent*>>>


exactly how do you know which variables
to change?

There is a way to inspect the code starting from the document. Please take a look at

https://texmacs.github.io/notes/docs/macro-editor.html

and in case let me know if it makes sense.





Archive powered by MHonArc 2.6.24.

Top of Page