- From: Giovanni Piredda <address@hidden>
- To: address@hidden
- Subject: Re: How to remove extra blank pages b/w title and abstract page
- Date: Sat, 3 Apr 2021 09:00:01 +0200
I think I know what is the reason for the 3 blank pages: abstract is
based on chapter* (with asterisk, unnumbered chapter), which inside has
chapter-unnumbered-title, which in turn is based on chapter-title, which
has a new-dpage*, which adds a double blank page.
The way to remove the double blank page is therefore to remove the
new-dpage*.
I have written the following preamble, which is giving me an abstract
with only one blank page between it and the title. Do copy and then
Paste from -> TeXmacs to put it in your preamble.
<assign|render-abstract|<\macro|body>
<surround|<no-indent>||<abstract-chapter*|<abstract-text>>>
<surround||<hflush>|<arg|body>>
</macro>>
<assign|abstract-chapter*|<macro|title|<assign|chapter-numbered|false><assign|chapter-prefix|<macro|>><compound|chapter-clean><compound|chapter-header|<arg|title>><compound|chapter-toc|<arg|title>><compound|abstract-unnumbered-title|<arg|title>>>>
<assign|abstract-title|<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*>>>
<assign|abstract-unnumbered-title|<macro|title|<compound|abstract-title|<arg|title><compound|chapter-post-sep>>>>
Said this, there is one thing that I do not understand in this code and
it may be important, and that is why it uses the compound macro (e.g.
<compound|chapter-header|<arg|title>>). I wrote the code substituting my
definitions for definitions that were already there, and leaving the
compound macro if it was wrapping something that I changed. For example
<compound|abstract-unnumbered-title|<arg|title>> in the definition of
abstract-chapter* was <compound|chapter-unnumbered-title|<arg|title>>in
the definition of chapter* (on which render-abstract is based on).
I do not know if what I did is right or wrong, and I do not know how to
reason about it. Maybe someone else can explain/correct/improve.
G.
On 03.04.21 07:45, Praveen C wrote:
Dear all
I get 3 blank pages between the title page and abstract page in the exported
pdf. One blank page seems enough.
How can I remove the extra blank pages ?
Thanks
praveen
Archive powered by MHonArc 2.6.19.