This commit is contained in:
mb 2022-06-27 22:04:34 +02:00
parent 905a049155
commit a2aa37fa17
3 changed files with 13 additions and 7 deletions

View File

@ -86,8 +86,8 @@ body{
letter-spacing: 0.01em;
/*hyphens: auto;*/
/*-webkit-hyphenate-limit-chars: 8 2 4;*/ /* word length, minimum number of characters before and after the hyphen -- does not work in chrome */
orphans: 0; /* Default is 2. These might trigger disappearing sentences at pagebreak? https://mattermost.pagedmedia.org/pagedmedia/pl/xsetebgcbbddzggwbbn93e5k1a */
widows: 0; /* Default is 2. These might trigger disappearing sentences at pagebreak? https://mattermost.pagedmedia.org/pagedmedia/pl/xsetebgcbbddzggwbbn93e5k1a */
orphans: 0 !important; /* Default is 2. These might trigger disappearing sentences at pagebreak? https://mattermost.pagedmedia.org/pagedmedia/pl/xsetebgcbbddzggwbbn93e5k1a */
widows: 0 !important; /* Default is 2. These might trigger disappearing sentences at pagebreak? https://mattermost.pagedmedia.org/pagedmedia/pl/xsetebgcbbddzggwbbn93e5k1a */
}
@page{
@ -97,7 +97,7 @@ body{
/*size: 576px 864px;*/
size: 152mm 229mm;
bleed: 3mm;
marks: crop;
/*marks: crop;*/
@bottom-center{
content: counter(page);
@ -109,13 +109,17 @@ body{
/*margin: 55px 18mm 80px 29.125mm;*/
/*margin: 14.758mm 18mm 21.225mm 29.125mm;*/
/* --- new margins after final trim size is 0.4mm less wide --- */
margin: 55px 17.8mm 80px 28.975mm;
/*margin: 55px 17.8mm 80px 28.975mm;*/
/* --- missing sentences debugging margins --- */
margin: 55px 17.8mm 73px 28.975mm;
}
@page:left{
/*margin: 55px 29.125mm 80px 18mm;*/
/*margin: 14.758mm 29.125mm 21.225mm 18mm;*/
/* --- new margins after final trim size is 0.4mm less wide --- */
margin: 55px 28.975mm 80px 17.8mm;
/*margin: 55px 28.975mm 80px 17.8mm;*/
/* --- missing sentences debugging margins --- */
margin: 55px 28.975mm 73px 17.8mm;
}
@page:right{
/* running header: contribution title (taken from the h2 of the contribution) */
@ -1053,7 +1057,7 @@ pre{
hyphens: none;
white-space: pre-line;
margin: calc(var(--line-height) - 1px) 0 calc(var(--line-height) - 1px) var(--second-indent);
border: 1px solid rgba(0,0,0,0.2);
border: 1px solid rgb(220,220,220);
padding: calc(var(--line-height) / 2) var(--line-height);
page-break-inside: avoid;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

View File

@ -174,7 +174,6 @@ def tweaking(html):
html = html.replace('<h2><span class="mw-headline" id="The_Industrial_Continuum_of_3D">The Industrial Continuum of 3D</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>', '<h2><span class="mw-headline" id="The_Industrial_Continuum_of_3D">The Industrial Continuum<br>of 3D</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>')
html = html.replace('<h1><span class="mw-headline" id="Depths_and_Densities:_Accidented_and_dissonant_spacetimes"><a href="#Depths_and_densities" title="Depths and densities">Depths and Densities: Accidented and dissonant spacetimes</a></span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h1>', '<h1><span class="mw-headline" id="Depths_and_Densities:_Accidented_and_dissonant_spacetimes"><a href="#Depths_and_densities" title="Depths and densities">Depths and Densities:<br>Accidented<br>and dissonant<br>spacetimes</a></span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h1>')
html = html.replace('<h2><span class="mw-headline" id="Open_Boundary_Conditions:_a_grid_for_intensive_study">Open Boundary Conditions: a grid for intensive study</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>', '<h2><span class="mw-headline" id="Open_Boundary_Conditions:_a_grid_for_intensive_study">Open Boundary Conditions:<br>a grid for intensive study</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>')
html = html.replace('T*fRP', 'T✶fRP')
html = html.replace('trans*', 'trans✶')
html = html.replace('Trans*', 'trans✶')
@ -219,6 +218,9 @@ def tweaking(html):
# print(match)
# html = html.replace(match, f'{ match }<wbr>')
html = html.replace('.png', '.jpg') # Using only jpg version of the images, June 2022
html = html.replace('.gif', '.jpg') # Using only jpg version of the images, June 2022
return html
def clean_up(html):