Difference between revisions of "Report style"

From Wiki
Jump to navigation Jump to search
m
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Report style 01 ==
 
== Report style 01 ==
  
* "try to look nice and dynamique" report, inspired by initial PDF material, and used to learn ConTeXt (pdftotext > markdown > pandoc > manual work):  
+
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):  
** [https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf Initial PDF ]
+
* [https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf Initial PDF ]
** [[:File:2020 hcc rapport maitriser-l-empreinte-carbone-de-la-france.zip|TEX input]]  
+
* [[:File:2020 hcc rapport maitriser-l-empreinte-carbone-de-la-france.zip|TEX input]]  
** [[:File:2020 hcc rapport maitriser-l-empreinte-carbone-de-la-france.pdf|PDF output]]
+
* [[:File:2020 hcc rapport maitriser-l-empreinte-carbone-de-la-france.pdf|PDF output]]
* several features are used
+
 
** metapost/metafun for covers and headings
+
Here is some visuals of the ConTeXt version to give an idea:
 +
 
 +
[[File:2020_hcc_rapport_features.png|900px|Report style, modern / dynamic, built with the marvelous ConTeXt (based on LuaTeX and LuaMetaTeX), inspired by french HCC report - Haut Conseil pour le Climat]]
 +
 
 +
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:
 +
** {{cmd|defineoverlay}}
 +
** {{cmd|useMPgraphic}}
 +
** {{cmd|startuseMPgraphic}}
 +
** {{cmd|signalrightpage}}
 +
** {{cmd|doifrightpageelse}}
 +
** {{cmd|startsectionblockenvironment}}
 +
* numbering with decreasing font size with increasing level of sectioning
 +
** {{cmd|setuphead}}
 +
** {{cmd|definestructureseparatorset}}
 +
** {{cmd|defineconversion}}
 +
** {{cmd|definestructureconversionset}}
 +
** {{code|1=sectionconversionset}}
 +
** {{code|1=prefixconversionset}}
 +
** {{code|1=sectionsegments}}
 +
** {{code|1=sectionstopper}}
 +
* "encadré" environment to "highlight specific content", compatible with page breaks
 +
** {{cmd|definehead}}  with {{code|1=before}} and {{code|1=aftersection}} and...
 +
** Dedicated numbering, added to the table of content
 +
*** {{cmd|definehead}}  and {{code|1=sectionresetset}},  {{code|1=bodypartlabel}}
 +
*** {{cmd|setuplist}}
 +
*** {{cmd|setupreferencestructureprefix}}
 +
** A large colored rule on the left to highlight the text (pushed on the right), compatible with page breaks
 +
*** {{cmd|definetextbackground}}
 +
*** MetaPost / MetaFun to draw around the text (as background)
 
*** {{code|1=for i=1 upto nofmultipars}}
 
*** {{code|1=for i=1 upto nofmultipars}}
 
*** {{code|1=if multilocs[i] == 3:}}
 
*** {{code|1=if multilocs[i] == 3:}}
** headings with rules "across the page", slightly different design for right and left page, in order to bring dynamic:
+
** Local footnotes
*** {{cmd|defineoverlay}}
+
*** {{cmd|definenote}}
*** {{cmd|useMPgraphic}}
+
*** {{cmd|setupnotation}}
*** {{cmd|startuseMPgraphic}}
+
*** {{code|1=numberconversion}}
*** {{cmd|signalrightpage}}
+
* Structuration
*** {{cmd|doifrightpageelse}}
+
** {{cmd|startfrontmatter}}, {{cmd|startbodymatter}}, {{cmd|startappendices}}, {{cmd|startbackmatter}}
*** {{cmd|startsectionblockenvironment}}
+
** {{cmd|component}}
** numbering with decreasing font size with increasing level of sectioning (\defineconversion, \definestructureconversionset, sectionconversionset, prefixconversionset)  
+
* Fonts (GaramondPro and AvenirNext)
** specific "encadré" environment, with
+
** {{cmd|definefontfeature}}
*** local footnotes (\definenote, \setupnotation, numberconversion
+
** {{cmd|starttypescript}}
*** dedicated numbering, added to the table of content (\setuplist, \setupreferencestructureprefix, \sectionresetset...)
+
** {{cmd|definefontsynonym}}
*** a margin in color to highlight the text pushed on the right (\definetextbackground, , , ...)
+
** {{cmd|definetypeface}}
*** metapost used to bring rules and dynamics
+
** {{code|1=rscale}} and a short code to get x-height ratio between two fonts with
 
 
  
 +
== Report style 02 ==
  
[[File:2020_hcc_rapport_features.png|800px]]
+
{{todo|this page needs more work}}
  
  
  
 
[[Category:Sample documents]]
 
[[Category:Sample documents]]

Latest revision as of 12:03, 18 December 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 visuals of the ConTeXt version to give an idea:

Report style, modern / dynamic, built with the marvelous ConTeXt (based on LuaTeX and LuaMetaTeX), inspired by french HCC report - Haut Conseil pour le Climat

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.

Report style 02


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