MediaWiki:PDFCreator/TrainingBookPDF: Unterschied zwischen den Versionen

Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
 
Margit Link-Rodrigue (Diskussion | Beiträge)
Update pdf template
 
(99 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
pdfcreator_template_footer
Zeile 3: Zeile 3:
<tr>
<tr>
<td>
<td>
<span></span>
<span>{{#time:d.m.Y|now}}</span>
</td>
<td>
<span></span>
</td>
</td>
<td>
<td>
pdfcreator_template_intro
Zeile 1: Zeile 1:
<div class="pdfcreator-intro">
<div class="pdfcreator-covertop">
<div class="pdfcreator-intro-title">{{{title}}}</div>
  <table>
<tr>
<td>
<div class="logo">
{{{logo}}}
</div>
</td>
<td class="bslink">
</td>
</tr>
</table>
</div>
<div class="pdfcreator-bgcover">[[Datei:deckblatt.png]]</div>
<div>
<div class="pdfcreator-intro-title">{{#if: {{#show:{{FULLPAGENAME}}|?Display title of}}| {{#show:{{FULLPAGENAME}}|?Display title of}}|{{{title}}}}}</div>
</div>
</div>
pdfcreator_template_styles
Zeile 13: Zeile 13:
background: transparent;
background: transparent;
border-bottom: 0.1mm solid black;
border-bottom: 0.1mm solid black;
margin-top:0.5cm;
}
}
.pdfcreator-runningheaderfix > table td {
 
vertical-align: center;
text-align: center;
}
.pdfcreator-runningheaderfix > table td:first-child {
.pdfcreator-runningheaderfix > table td:first-child {
width: 25%;
width: 30%;
text-align: left;
text-align: left;
}
}
.pdfcreator-runningheaderfix > table td:last-child {
.pdfcreator-runningheaderfix > table td:last-child {
width: 75%;
width: 70%;
text-align: right;
text-align: right;
padding-top:0.4pt;
}
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo {
 
display: block;
width: 100%;
height: 2cm;
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo p {
padding: 0;
margin: 0;
line-height: 0;
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo img {
width: auto;
height: 1cm;
margin-top:1cm
}
.pdfcreator-runningheaderfix > table h1.title {
.pdfcreator-runningheaderfix > table h1.title {
font-size: 10pt;
font-size: 9pt;
font-weight: normal;
font-weight: normal;
max-height: 2.4em;
line-height: 1.2em;
overflow: hidden;
overflow: hidden;
text-align: right;
text-align: right;
Zeile 63: Zeile 46:
background: transparent;
background: transparent;
max-height: 99%;
max-height: 99%;
border-top: 0.1mm solid black;
/*border-top: 0.1mm solid black;*/
}
}
.pdfcreator-runningfooterfix > table td {
.pdfcreator-runningfooterfix > table td {
Zeile 89: Zeile 72:
@page {
@page {
size: A4 portrait;
size: A4 portrait;
margin: 2.5cm 1.75cm 1.5cm 1.75cm;
margin: 2.2cm 1.75cm 1.5cm 1.75cm;


@top-left {
@top-left {
Zeile 157: Zeile 140:
.pdfcreator-intro-title {
.pdfcreator-intro-title {
position: absolute;
position: absolute;
top: 17.5cm;
top: 12.5cm;
left: 1.75cm;
left: 1.5cm;
width: 17.5cm;
width: 17.5cm;
max-height: 6.5cm;
max-height: 6.5cm;
overflow: hidden;
overflow: hidden;
font-size: 40px;
font-size: 18pt !important;
color: #3E5389;
color: #444;
font-weight: 900;
font-weight: 700;
line-height: 1.3em;
line-height: 1.3em;
}
/*** CUSTOMIZINGS *** /
/* cover logo */
.pdfcreator-covertop .logo img {
width: auto !important;
height: 1cm !important;
margin-top: 0.5cm;
margin-left:1.75cm
}
/* position and resize logo */
.pdfcreator-runningheaderfix>table .pdfcreator-runningheader-logo img {
width: auto !important;
height: 0.8cm !important;
margin-top: 0.1cm;
}
/* remove border of header */
.pdfcreator-runningheaderfix>table {
border-bottom: none !important;
}
/*smaller font sizes and larger line-height in content */
.pdfcreator-page-content th,
.pdfcreator-page-content td,
.pdfcreator-page-content div,
.pdfcreator-page-content li,
.pdfcreator-page-content pre,
.pdfcreator-page-content p {
font-size: 9pt;
line-height: 1.8em;
}
/*larger margin between paragraphs*/
.pdfcreator-page-content p {
margin-bottom:1.2em
}
/* smaller bullet points in lists*/
.pdfcreator-page-content ul {
list-style-type: none !important;
list-style: none !important;
padding-left: 1.2em;
}
.pdfcreator-page-content ul li {
list-style-type: none !important;
position: relative;
}
.pdfcreator-page-content ul li::before {
content: "\2022";
/* Unicode bullet (•) */
position: absolute;
left: -1em;
font-size: 1em;
/* fully controllable */
}
.pdfcreator-page-content .toc ul li::before {
content: "";
/* remove custom bullet from TOC */
}
/* style h1 page title */
.pdfcreator-page-content .firstHeading {
display:none
}
/* style h2 headings */
.pdfcreator-page-content h2 {
    font-size:1.4em;
border-bottom: none;
margin: 2em 0;
}
/* style h3, h4, */
.pdfcreator-page-content h3, .pdfcreator-page-content h4 {
    font-size:1.2em;
border-bottom: none;
margin: 2em 0;
}
/* style h5, h6 headings */
.pdfcreator-page-content h5, .pdfcreator-page-content h6 {
    font-size:1em;
border-bottom: none;
margin: 2em 0;
}
/* TOC styling */
.toc {
border: none;
padding: 0;
margin: 1em 0;
}
/* syntaxhighlight and preformatted text with smaller font size */
.mw-highlight pre,
pre, code {
font-size: 8.5pt !important;
line-height: 1.5em !important;
}
/*wikitable print color white */
.wikitable {
background-color: #fff;
width:98%
}
.wikitable tr th {
background-color: #f1f3f9
}
.wikitable > caption {
font-weight:normal;
font-size:0.85em;
text-align:left}
/*avoid orphans */
h2,
h3,
h4 {
-fs-keep-with-next: always;
margin-top: 1.2em;
}
p {
-fs-page-break-min-height: 5em;
line-height: 1.5;
}
}
pdfcreator_template_options
Zeile 1: Zeile 1:
{}
{
"suppress-links": false,
"embed-page-toc": true
}

Aktuelle Version vom 29. Juli 2026, 15:05 Uhr