diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-06-09 21:01:42 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-06-09 21:01:42 +0200 |
commit | c558f97f6e47f6d2604fdea3bcd808794a6e41a7 (patch) | |
tree | aa6369aa586b5c8b938c21e91e2149dd432af545 /doc | |
parent | 3d8b4fe968e7b195ef57a952108b3632ecbf10b4 (diff) | |
download | context-c558f97f6e47f6d2604fdea3bcd808794a6e41a7.tar.gz |
2021-06-09 20:33:00
Diffstat (limited to 'doc')
-rw-r--r-- | doc/context/sources/general/magazines/mag-1105-mkiv.tex | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/context/sources/general/magazines/mag-1105-mkiv.tex b/doc/context/sources/general/magazines/mag-1105-mkiv.tex index b068f517b..a9b1aadcc 100644 --- a/doc/context/sources/general/magazines/mag-1105-mkiv.tex +++ b/doc/context/sources/general/magazines/mag-1105-mkiv.tex @@ -192,3 +192,25 @@ The result is: \stoplinecorrection \stopdocument + +% \protected\def\guessbestwidth#1#2#3% +% {\beginlocalcontrol +% \begingroup +% \hsize#1\relax +% \setbox\scratchboxone\hbox\bgroup#3\egroup +% \doloop {% +% \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup +% \scratchcounter\boxlines\scratchboxtwo +% \ifdim\boxlinenw\scratchboxtwo\scratchcounter<\boxlinewd\scratchboxtwo\scratchcounter +% \advance\hsize-#2\relax +% \else +% \exitloop +% \fi +% }% +% \normalexpanded{\endgroup\endlocalcontrol\dimexpr\the\hsize\relax}} +% +% \hsize \guessbestwidth{10cm}{1mm}{\input{ward}} +% +% \input{ward} +% +% \the\guessbestwidth{10cm}{1mm}{\input{ward}} |