MediaWiki:PDFCreator/Onboarding Handbuch: Unterschied zwischen den Versionen

Meryam Sahin (Diskussion | Beiträge)
Update pdf template
Meryam Sahin (Diskussion | Beiträge)
Update pdf template
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
pdfcreator_template_intro
Zeile 2: Zeile 2:
<div class="pdfcreator-intro-cover-cnt">
<div class="pdfcreator-intro-cover-cnt">
<div class="pdfcreator-intro-title">{{{book-title}}}</div>
<div class="pdfcreator-intro-title">{{{book-title}}}</div>
<div class="pdfcreator-intro-text"></div>
<div class="pdfcreator-intro-text">{{{book-subtitle}}}</div>
</div>
</div>
</div>
</div>
pdfcreator_template_footer
Zeile 2: Zeile 2:
<table>
<table>
<tr>
<tr>
<td>
<td><span>{{int:pdfcreator-pdf-export-time}}: {{#time: d.m.Y|now}}</span></td>
<span>{{int:pdfcreator-pdf-export-time}}: {{#time: d.m.Y|now}}</span>
<td><span></span></td>
</td>
<td><span>{{int:pdfcreator-pdf-param-currentpagenumber-label}} {{{currentpagenumber}}} {{int:pdfcreator-pdf-param-totalpagescount-label}} {{{totalpagescount}}}</span></td>
<td>
<span></span>
</td>
<td>
<span>{{int:pdfcreator-pdf-param-currentpagenumber-label}} {{{currentpagenumber}}} {{int:pdfcreator-pdf-param-totalpagescount-label}} {{{totalpagescount}}}</span>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
pdfcreator_template_styles
Zeile 2: Zeile 2:
  * Running header styles.
  * Running header styles.
  */
  */
.pdfcreator-runningheaderfix {
.pdfcreator-runningheaderfix {
position: running( topleft );
position: running( topleft );
margin: 0 -1.75cm 0 -1.75cm;
margin: 0 -1.75cm 0 -1.75cm;
Zeile 8: Zeile 8:
height: 2.3cm;
height: 2.3cm;
}
}
.pdfcreator-runningheaderfix > table {
.pdfcreator-runningheaderfix > table {
width: 100%;
width: 100%;
Zeile 15: Zeile 14:
border-bottom: 0.1mm solid black;
border-bottom: 0.1mm solid black;
}
}
.pdfcreator-runningheaderfix > table td {
.pdfcreator-runningheaderfix > table td {
vertical-align: middle;
vertical-align: middle;
text-align: center;
text-align: center;
}
}
.pdfcreator-runningheaderfix > table td:first-child {
.pdfcreator-runningheaderfix > table td:first-child {
width: 25%;
width: 25%;
text-align: left;
text-align: left;
}
}
.pdfcreator-runningheaderfix > table td:last-child {
.pdfcreator-runningheaderfix > table td:last-child {
width: 75%;
width: 75%;
text-align: right;
text-align: right;
}
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo {
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo {
display: block;
display: block;
Zeile 36: Zeile 31:
height: 2cm;
height: 2cm;
}
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo p {
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo p {
padding: 0;
padding: 0;
Zeile 42: Zeile 36:
line-height: 0;
line-height: 0;
}
}
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo img {
.pdfcreator-runningheaderfix > table .pdfcreator-runningheader-logo img {
width: auto;
width: auto;
height: 1.5cm;
height: 1.5cm;
}
}
.pdfcreator-runningheaderfix > table h1.title {
.pdfcreator-runningheaderfix > table h1.title {
font-size: 9pt;
font-size: 9pt;
Zeile 66: Zeile 58:
height: 1.3cm;
height: 1.3cm;
}
}
.pdfcreator-runningfooterfix > table {
.pdfcreator-runningfooterfix > table {
width: 100%;
width: 100%;
Zeile 73: Zeile 64:
border-top: 0.1mm solid black;
border-top: 0.1mm solid black;
}
}
.pdfcreator-runningfooterfix > table td {
.pdfcreator-runningfooterfix > table td {
width: 32%;
width: 32%;
Zeile 80: Zeile 70:
text-align: center;
text-align: center;
}
}
.pdfcreator-runningfooterfix > table td p {
.pdfcreator-runningfooterfix > table td p {
font-size: 9pt !important;
font-size: 9pt !important;
line-height: 1.2em;
line-height: 1.2em;
}
}
.pdfcreator-runningfooterfix > table td:first-child {
.pdfcreator-runningfooterfix > table td:first-child {
width: 32%;
width: 32%;
text-align: left;
text-align: left;
}
}
.pdfcreator-runningfooterfix > table td:last-child {
.pdfcreator-runningfooterfix > table td:last-child {
width: 32%;
width: 32%;
Zeile 99: Zeile 86:
  * The default page definition.
  * The default page definition.
  */
  */
@page { /* stylelint-disable-line plugin/no-unsupported-browser-features */
@page {
size: a4 portrait;
size: A4 portrait;
margin: 2.5cm 1.75cm 1.5cm 1.75cm;
margin: 2.5cm 1.75cm 1.5cm 1.75cm;


@top-left {
@top-left {
content: element( topleft ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( topleft );
}
}


@top-center {
@top-center {
content: element( topcenter ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( topcenter );
}
}


@top-right {
@top-right {
content: element( topright ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( topright );
}
}


@bottom-left {
@bottom-left {
content: element( bottomleft ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( bottomleft );
}
}


@bottom-center {
@bottom-center {
content: element( bottomcenter ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( bottomcenter );
}
}


@bottom-right {
@bottom-right {
content: element( bottomright ); /* stylelint-disable-line plugin/no-unsupported-browser-features */
content: element( bottomright );
}
}
}
}
Zeile 131: Zeile 118:
  * The "coverpage" definition.
  * The "coverpage" definition.
  */
  */
@page coverpage { /* stylelint-disable-line plugin/no-unsupported-browser-features */
@page coverpage {
margin: 0cm 0cm 0cm 0cm; /* stylelint-disable-line length-zero-no-unit */
margin: 0cm 0cm 0cm 0cm;


@top-left {
@top-left {
Zeile 163: Zeile 150:
background-size: 21cm;
background-size: 21cm;
width: 21cm;
width: 21cm;
height: 29.7cm;
height: 21cm;
background-repeat: no-repeat;
background-repeat: no-repeat;
}
}
Zeile 169: Zeile 156:
.pdfcreator-intro-cover-cnt {
.pdfcreator-intro-cover-cnt {
position: absolute;
position: absolute;
top: 12.5cm;
top: 23cm;
left: 1.75cm;
left: 0cm;
width: 17.5cm;
width: 21cm;
max-height: 6.5cm;
text-align: center;
overflow: hidden;
}
}


.pdfcreator-intro-title {
.pdfcreator-intro-title {
font-size: 40px; /* stylelint-disable-line declaration-property-unit-disallowed-list */
font-size: 34px;
color: #3e5389;
color: #3C72A0;
font-weight: 900;
font-weight: 900;
line-height: 1.3em;
border-top: 2px solid #f7f9fc;
padding-top: 1cm;
width: 15cm;
margin: 0 auto;
}
}


.pdfcreator-intro-text {
.pdfcreator-intro-text {
font-size: 30px; /* stylelint-disable-line declaration-property-unit-disallowed-list */
font-size: 20px;
font-weight: 700; /* stylelint-disable-line font-weight-notation */
font-weight: 500;
line-height: 1.3em;
line-height: 1.3em;
color: #3C72A0;
margin-top: 0.35cm;
opacity: 0.90;
}
/*** CUSTOMIZINGS *** /
/* position and resize logo */
.pdfcreator-runningheaderfix>table .pdfcreator-runningheader-logo img {
width: auto !important;
height: 1cm !important;
margin-top: 0.5cm;
}
/* 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: 9.5pt;
line-height: 1.8em;
}
/* 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 h2 headings */
.pdfcreator-page-content h2 {
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 {
font-size: 8.5pt !important;
line-height: 1.5em !important;
}
/*wikitable print color white */
.wikitable {
background-color: #fff
}
.wikitable tr th {
background-color: #f7f9fc
}
/*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:
{
{
"embed-page-toc": true,
"embed-page-toc": false,
"nsPrefix": true,
"attachments": true,
"attachments": true,
"suppress-links": false
"suppress-links": false,
"no-redirect": false,
"coverBackground": ""
}
}

Aktuelle Version vom 18. November 2026, 11:39 Uhr