metafun.tex /size: 4482 b    last modification: 2023-12-21 09:43
1% language=us runpath=texruns:manuals/metafun
2
3% author    : Hans Hagen
4% copyright : ConTeXt Development Team
5% license   : Creative Commons Attribution ShareAlike 4.0 International
6% reference : pragma-ade.nl | contextgarden.net | texlive (related) distributions
7% origin    : the ConTeXt distribution
8%
9% comment   : Because this manual is distributed with TeX distributions it comes with a rather
10%             liberal license. We try to adapt these documents to upgrades in the (sub)systems
11%             that they describe. Using parts of the content otherwise can therefore conflict
12%             with existing functionality and we cannot be held responsible for that. Many of
13%             the manuals contain characteristic graphics and personal notes or examples that
14%             make no sense when used out-of-context.
15%
16% comment   : Some chapters might have been published in TugBoat, the NTG Maps, the ConTeXt
17%             Group journal or otherwise. Thanks to the editors for corrections. Also thanks
18%             to users for testing, feedback and corrections.
19%
20% comment   : This manual was originally written for MkII and as a consequence many examples
21%             are coded in a bit different way than we would nowadays do in MkIV. But, as we
22%             try to be downward compatible, it doesn't hurt.
23%
24% comment   : I also use this manual for benchmarking ConTeXt MkIV. On my current machine (a
25%             2013 dell i7 laptop) one run takes some 18.1 seconds for LuaTeX and around 14.2
26%             seconds for LuajitTeX which is quite okay given the amount of graphics (428
27%             pages).
28%
29% comment   : This is one of the manuals that can be ordered at http://www.h2o-books.com and
30%             it's actually meant to be read on paper.
31%
32% comment   : Before I started updating the manual to lmtx (luametafun) I made sure that it
33%             processed okay in the february 2021 version of lmtx. The runtime for 448 pages
34%             (which is 20 more than the previous test) is some 16.5 seconds (just below 16
35%             with compact fonts). So we can safely conclude that we're not worse of with
36%             respect to performance. (I use the same machine.)
37%
38% comment   : June 31 2020, in the process of checking manuals with the runpath feature, the
39%             manual has 414 (some mkii and mkiv stuff has been removed) pages and processing
40%             takes 14.2 seconds (13.7 with compact fonts). With about 29 pps for the removed
41%             pages we then come to about 15.5 seconds so again we gained some (which is what
42%             I expect with the more efficient \LUA|-|\METAPOST\ interfacing). It also means
43%             that \LUAMETATEX|-|\LMTX\ is now comparable with \LUAJITTEX|-|\MKIV.
44
45\enableexperiments[fonts.compact]
46
47% \enablemode[optional]
48
49% \enablemode[screen]
50\enablemode[print]
51% \enablemode[book]
52
53% todo: check startintro .. stopintro each chapter
54
55% \showframe
56
57\startproduct metafun
58
59\environment metafun-environment
60
61\startnotmode[screen]
62    \component   metafun-titlepage-paper
63    \component   metafun-colofon-paper
64\stopnotmode
65
66\startmode[screen]
67    \environment metafun-environment-screen
68    \component   metafun-titlepage-screen
69\stopmode
70
71\startfrontmatter
72    \component   metafun-introduction
73    \component   metafun-contents
74    \component   metafun-conventions
75\stopfrontmatter
76
77\startbodymatter
78    \component   metafun-welcome
79    \component   metafun-basics
80    \component   metafun-embedding
81    \component   metafun-layout
82    \component   metafun-positioning
83    \component   metafun-backgrounds
84    \component   metafun-gadgets
85    \component   metafun-effects
86    \component   metafun-functions
87\ifcase\contextlmtxmode
88    \component   metafun-text
89\else
90    \component   metafun-text-lmtx
91\fi
92    \component   metafun-debugging
93    \component   metafun-styles
94    \component   metafun-examples
95    \component   metafun-macros
96    \component   metafun-lua
97    %component   metafun-graphics
98    \component   metafun-sneaky
99\stopbodymatter
100
101\startappendices
102  % \component   metafun-programs
103    \component   metafun-syntax
104    \component   metafun-document
105    \component   metafun-reference
106  % \component   metafun-literature
107\stopappendices
108
109\startbackmatter
110    \component   metafun-index
111\stopbackmatter
112
113\startmode[screen]
114    \component   metafun-colofon-screen
115\stopmode
116
117\startnotmode[screen]
118    \component   metafun-backpage
119\stopnotmode
120
121\stopproduct
122