lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Header pagination PR


From: Greg Chicares
Subject: Re: [lmi] Header pagination PR
Date: Sun, 23 Sep 2018 21:55:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 2018-09-23 14:45, Greg Chicares wrote:
[...]
> And now, to reproduce the anomaly:
> 
>   File | New | Illustration
>     "Policy": choose "sample2ipp"
>   OK
>   File | Print to PDF
> 
> Result: the font used for tables is too large, seemingly as though your
> wxDCFontChanger patch above had not been applied.

This seems to be caused by the new <header> tag, which is currently
used in one MST file only. If the whole <header>...</header> element
is removed, the font is okay, though then the header is entirely
absent for this logical page. Replacing the whole element with just
  <header>Explanatory Notes</header>
doesn't suppress the anomaly; neither does surrounding it with
  <font size="-1">
  </font>
. But if I surround it with <p>...</p> as in the demonstrative patch
below, then the header appears on the first physical page only, but not
on any continuation page; that isn't what we actually want, and nesting
'p' tags is illegal, but such a patch may be temporarily useful for
testing, as an alternative to an assertion failure.

---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
diff --git a/reg_d_indiv_notes1.mst b/reg_d_indiv_notes1.mst
index 846a02fd..5f854f59 100644
--- a/reg_d_indiv_notes1.mst
+++ b/reg_d_indiv_notes1.mst
@@ -21,12 +21,14 @@
 
 <!-- PDF !! Use such header elements elsewhere, too. -->
 
+<p>
 <header>
   {{! No header on this page, but still use the logo. }}
   <img inv_factor="0.27" src="company_logo.png"></img>
 
   <p align="center"><font size="+1"><b>Explanatory Notes</b></font></p>
 </header>
+</p>
 
 <font size="-1">
 
--------->8-------->8-------->8-------->8-------->8-------->8-------->8-------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]