Difference between revisions of "Report style"

From Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
[[File:2020_hcc_rapport_features.png|900px]]
 
[[File:2020_hcc_rapport_features.png|900px]]
  
Several features are used
+
The source code has been cleaned up and commented on (as a 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:
 
* headings with rules "across the page", slightly different design for right and left page, in order to bring dynamic:
Line 28: Line 30:
 
** {{code|1=sectionsegments}}
 
** {{code|1=sectionsegments}}
 
** {{code|1=sectionstopper}}
 
** {{code|1=sectionstopper}}
* Specific "encadré" environment
+
* "encadré" environment to "highlight specific content", compatible with page breaks
 
** {{cmd|definehead}}  with {{code|1=before}} and {{code|1=aftersection}} and...
 
** {{cmd|definehead}}  with {{code|1=before}} and {{code|1=aftersection}} and...
 
** Dedicated numbering, added to the table of content  
 
** Dedicated numbering, added to the table of content  
Line 34: Line 36:
 
*** {{cmd|setuplist}}
 
*** {{cmd|setuplist}}
 
*** {{cmd|setupreferencestructureprefix}}
 
*** {{cmd|setupreferencestructureprefix}}
** A large coloreed rule on the left to highlight the text (pushed on the right)
+
** A large colored rule on the left to highlight the text (pushed on the right)
 
*** {{cmd|definetextbackground}}
 
*** {{cmd|definetextbackground}}
 
*** MetaPost / MetaFun to draw around the text (as background)
 
*** MetaPost / MetaFun to draw around the text (as background)
Line 43: Line 45:
 
*** {{cmd|setupnotation}}
 
*** {{cmd|setupnotation}}
 
*** {{code|1=numberconversion}}
 
*** {{code|1=numberconversion}}
 +
* Structuration
 +
*** {{cmd|startfrontmatter}}, {{cmd|startbodymatter}}, {{cmd|startappendices}}, {{cmd|startbackmatter}}
 +
*** {{cmd|component}}
 +
* Fonts (GaramondPro and AvenirNext)
 +
** {{cmd|definefontfeature}}
 +
** {{cmd|starttypescript}}
 +
** {{cmd|definefontsynonym}}
 +
** {{cmd|definetypeface}}
 +
** {{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:28, 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:

2020 hcc rapport features.png

The source code has been cleaned up and commented on (as a mix of english and french), in the hope that it will help.

Several features are used.


Report style 02


TODO: this page needs more work (See: To-Do List)