Difference between revisions of "Report style"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
[[File:2020_hcc_rapport_features.png|900px]] | [[File:2020_hcc_rapport_features.png|900px]] | ||
− | The source code has been cleaned up and commented on ( | + | The source code has been cleaned up and commented on (still some mix of english and french), in the hope that it will help. |
Several features are used. | Several features are used. | ||
Line 53: | Line 53: | ||
** {{cmd|definefontsynonym}} | ** {{cmd|definefontsynonym}} | ||
** {{cmd|definetypeface}} | ** {{cmd|definetypeface}} | ||
− | ** {{code|1=rscale}} and a short code to get x-height ratio between two fonts with | + | ** {{code|1=rscale}} and a short code to get x-height ratio between two fonts with |
− | |||
− | |||
== Report style 02 == | == Report style 02 == |
Revision as of 21:29, 29 November 2020
Report style 01
Here is a "try to look nice and dynamique" report, inspired by initial PDF material. It was used to learn to use ConTeXt and MetaFun (pdftotext > markdown > pandoc > manual work):
Here is some visual to give an idea:
The source code has been cleaned up and commented on (still some mix of english and french), in the hope that it will help.
Several features are used.
- headings with rules "across the page", slightly different design for right and left page, in order to bring dynamic:
- numbering with decreasing font size with increasing level of sectioning
- \setuphead
- \definestructureseparatorset
- \defineconversion
- \definestructureconversionset
sectionconversionset
prefixconversionset
sectionsegments
sectionstopper
- "encadré" environment to "highlight specific content", compatible with page breaks
- \definehead with
before
andaftersection
and... - Dedicated numbering, added to the table of content
- \definehead and
sectionresetset
,bodypartlabel
- \setuplist
- \setupreferencestructureprefix
- \definehead and
- A large colored rule on the left to highlight the text (pushed on the right)
- \definetextbackground
- MetaPost / MetaFun to draw around the text (as background)
for i=1 upto nofmultipars
if multilocs[i] == 3:
- Local footnotes
- \definenote
- \setupnotation
numberconversion
- \definehead with
- Structuration
- Fonts (GaramondPro and AvenirNext)
- \definefontfeature
- \starttypescript
- \definefontsynonym
- \definetypeface
rscale
and a short code to get x-height ratio between two fonts with
Report style 02
TODO: this page needs more work (See: To-Do List) |