diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-07-27 19:52:30 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-07-27 19:52:30 +0200 |
commit | df12f144a2cb09cec29a95df26bdfc5ccad58aff (patch) | |
tree | f25cb74e040f21e898e270c1299899b51b34bba7 /doc/context/sources/general/manuals/followingup | |
parent | c73351bc5e590d5a7ebd2b0f13f895a447d25794 (diff) | |
download | context-df12f144a2cb09cec29a95df26bdfc5ccad58aff.tar.gz |
2021-07-27 19:27:00
Diffstat (limited to 'doc/context/sources/general/manuals/followingup')
3 files changed, 26 insertions, 46 deletions
diff --git a/doc/context/sources/general/manuals/followingup/followingup-expressions.tex b/doc/context/sources/general/manuals/followingup/followingup-expressions.tex index f5bce052c..321496c97 100644 --- a/doc/context/sources/general/manuals/followingup/followingup-expressions.tex +++ b/doc/context/sources/general/manuals/followingup/followingup-expressions.tex @@ -196,6 +196,30 @@ The normal expansion rules apply, so one can use macros and other symbolic numbers. The only difference in handling dimensions is that we don't support \type {true} units but these are obsolete in \LUAMETATEX\ anyway. +In the end I decided to also add an extra conditional so that we can say: + +\starttyping +\ifexpression (\scratchcounterone > 5) and (\scratchcountertwo > 5)\relax + nop +\else + yes +\fi +\stoptyping + +which looks more natural. Actually, this is an nowadays alias because we have two +variants: + +\starttyping +\ifnumexpression ... \relax ... \else ... \fi +\ifdimexpression ... \relax ... \else ... \fi +\stoptyping + +where the later is equivalent to + +\starttyping +\ifboolean\dimexpression ... \relax ... \else ... \fi +\stoptyping + \stopsection \startsection[title={Tracing}] diff --git a/doc/context/sources/general/manuals/followingup/followingup-fonts.tex b/doc/context/sources/general/manuals/followingup/followingup-fonts.tex index fbf0158cb..a4a16878f 100644 --- a/doc/context/sources/general/manuals/followingup/followingup-fonts.tex +++ b/doc/context/sources/general/manuals/followingup/followingup-fonts.tex @@ -614,7 +614,6 @@ dimensions of a glyph. {\getbuffer} - \stopsection \startsection[title={Implementation}] @@ -653,51 +652,6 @@ enable, or not. \stopcomponent -% sample file - -\setuplayout[topspace=1cm,header=1cm] \setuplayout[middle] - -\setupbodyfont[pagella,10pt] - -\setupalign[verytolerant,stretch] - -\setupwhitespace[big] - -\starttext - -\startbuffer -\definetweakedfont[bfe][xscale=2000,yscale=6000,style=bf] - -\setuphead[chapter][style=\bfe] - -\dostepwiserecurse {10} {2020} {10} { - \title{Here we go #1!} - \start - \glyphxscale#1\relax - \glyphyscale#1\relax - \setupinterlinespace - \samplefile{ward}% - \start - \bf - \samplefile{ward}% - \glyphxscale\numexpr(#1*2)/3\relax - \glyphyscale#1\relax - \samplefile{ward}% - \par - \stop - \def\TEST{y = \sqrt{x^2 + 1}^3}% - \dontleavehmode - \ruledhbox{\glyphxscale #1 \glyphyscale #1 $\left{\TEST\right}$} - \ruledhbox{\glyphxscale #1 \glyphyscale \numexpr#1*3\relax $\left{\TEST\right}$} - \ruledhbox{\glyphxscale \numexpr#1/2\relax \glyphyscale \numexpr#1*2\relax $\left{\TEST\right}$} - \par - \stop - \page -} -\stopbuffer - -\getbuffer - % As often there is a musical timestamp to this text: discovering Julia Hofer % (bass, came there via checking out (of course) Leland Sklar, and now i have to % watch a bunch of Victor Wooten videos too) and Neon Vine's (play and combine diff --git a/doc/context/sources/general/manuals/followingup/followingup.tex b/doc/context/sources/general/manuals/followingup/followingup.tex index 6d7c63bf6..353b3ddd8 100644 --- a/doc/context/sources/general/manuals/followingup/followingup.tex +++ b/doc/context/sources/general/manuals/followingup/followingup.tex @@ -4,6 +4,8 @@ \dontcomplain +% \enableexperiments[fonts.compact] + \startdocument \component followingup-titlepage |