Skip to content

Commit

Permalink
Adapt PDF.adoc to generation with Weasyprint
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarpons committed Jan 10, 2019
1 parent 10e9910 commit 4668b85
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions modules/ROOT/pages/PDF.adoc
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
// (1/4) CHANGE TOC POSITION AND LEVELS, IF NEEDED. ALSO :sectnums:
ifndef::env-site,env-github[]
include::_attributes.adoc[]
endif::[]

= {doctitle}
include::{partialsdir}/README.adoc[tag=metadata]
:doctitle: {_title}
:page-layout: pdf
:toc: macro
:revdate: {localdatetime}

ifndef::env-site,env-github[]
:toc: left
endif::[]
:toclevels: 2
// [.my-authors-class]
Autors: {authors}

[.my-revnumber-class]#v{revnumber}#, [.my-revdate-class]#{revdate}#

= {doctitle}

:sectnums!:
[.page-second]
--
[discrete.no-toc]
=== Resum

[abstract]
{_summary}
--

:toclevels: 3
toc::[]

:leveloffset: +1
// (2/4) ADD BELOW THE LIST OF *UNNUMBERED* (e.g. PREAMBLE) CHAPTERS OR
// SECTIONS. IMPORTANT: PUT A BLANK LINE BETWEEN INCLUDES.

:!sectnums:

// Non-numbered sections here

:sectnums:
// (3/4) ADD BELOW THE LIST OF REGULAR CHAPTERS OR SECTIONS. IMPORTANT: PUT A
// BLANK LINE BETWEEN INCLUDES.

include::index.adoc[]

// (4/4) ADD BELOW THE LIST OF APPENDIXES. IMPORTANT: PUT A BLANK LINE BETWEEN
// INCLUDES.

0 comments on commit 4668b85

Please sign in to comment.