diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-05-27 12:37:50 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-05-27 12:37:50 +0200 |
commit | 32381f97e98465953bfde24b4436093e70fbe70f (patch) | |
tree | 1f585cf7af509e76c64aca108cecd23acd6fb437 /tex/context/modules | |
parent | bb8ae12f4f94189fd1540b201e2aea78f485de97 (diff) | |
download | context-32381f97e98465953bfde24b4436093e70fbe70f.tar.gz |
2023-05-27 12:16:00
Diffstat (limited to 'tex/context/modules')
-rw-r--r-- | tex/context/modules/mkxl/s-math-show.mkxl | 138 | ||||
-rw-r--r-- | tex/context/modules/mkxl/s-text-tests.mkxl | 22 | ||||
-rw-r--r-- | tex/context/modules/third/mtx-install-imp-modules.lua | 18 |
3 files changed, 170 insertions, 8 deletions
diff --git a/tex/context/modules/mkxl/s-math-show.mkxl b/tex/context/modules/mkxl/s-math-show.mkxl new file mode 100644 index 000000000..456ecc60b --- /dev/null +++ b/tex/context/modules/mkxl/s-math-show.mkxl @@ -0,0 +1,138 @@ +%D \module +%D [ file=math-run, +%D version=2023.05.18, +%D title=\CONTEXT\ Math Macros, +%D subtitle=Runtime loaded commands, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\unprotect + +\permanent\tolerant\protected\gdef\showmathmargins[#1]% + {\bgroup + \par + \c_attr_visual\attributeunsetvalue + \ruledhbox to \hsize \bgroup + \setbox\scratchbox\hbox to \hsize\bgroup + \scratchheight2\lineheight + \scratchwidth \onepoint + \infofont + \ifcstok{#1}\v!all + \llap\bgroup + \setupinterlinespace + \vbox yoffset -\lineheight\bgroup + \forgetall + \setstrut + % \llap{\the \c_strc_math_n_of_lines \enspace \#l}\par + \llap{\withoutpt\d_strc_math_first_left \enspace fl}\par + \llap{\withoutpt\d_strc_math_last_left \enspace ll}\par + \llap{\withoutpt\d_strc_math_max_left \enspace ml}\par + \llap{\withoutpt\d_strc_formulas_number \enspace wd}\par + \egroup + \quad + \egroup + \fi + \ifzeropt\s_strc_formulas_margin_left\else + \bgroup\darkred + \srule \s!width \scratchwidth \s!height \scratchheight + \kern-\scratchwidth + \vrule \s!width \s_strc_formulas_margin_left + \kern-\scratchwidth + \srule \s!width \scratchwidth \s!height \scratchheight + \egroup + \fi + \ifdim\d_math_strc_hangindent>\zeropoint + \bgroup\darkred + \vrule \s!width \d_math_strc_hangindent \s!depth 2\exheight \s!height-\exheight + \kern-\d_math_strc_hangindent + \egroup + \fi + \bgroup\darkgray + \leaders\vrule\hfill + \egroup + \bgroup\darkgreen + \srule \s!width \scratchwidth \s!height \scratchheight + \egroup + \bgroup\darkgray + \leaders\vrule\hfill + \egroup + \ifdim\d_math_strc_hangindent<\zeropoint + \bgroup\darkblue + \kern\d_math_strc_hangindent + \vrule \s!width -\d_math_strc_hangindent \s!depth 2\exheight \s!height-\exheight + \egroup + \fi + \ifzeropt\s_strc_formulas_margin_right\else + \bgroup\darkblue + \srule \s!width \scratchwidth \s!height \scratchheight + \kern-\scratchwidth + \vrule \s!width \s_strc_formulas_margin_right + \kern-\scratchwidth + \srule \s!width \scratchwidth \s!height \scratchheight + \egroup + \fi + \ifcstok{#1}\v!all + \rlap\bgroup + \setupinterlinespace + \quad + \vbox yoffset -\lineheight\bgroup + \forgetall + \setstrut + \rlap{fr\enspace\withoutpt\d_strc_math_first_right}\par + \rlap{lr\enspace\withoutpt\d_strc_math_last_right }\par + \rlap{mr\enspace\withoutpt\d_strc_math_max_right }\par + \rlap + {\formulaparameter\c!location:\enspace + p=\the\c_strc_math_positioning\enspace + a=\the\c_strc_math_ragged_status\enspace + l=\the\c_strc_math_number_location\enspace + v=\the\c_strc_math_number_variant}\par + \egroup + \egroup + \fi + \global\c_strc_math_positioning\zerocount + \egroup + \ht\scratchbox1.2\exheight + \dp\scratchbox0.4\exheight + \strut + \box\scratchbox + \kern-\hsize + \hbox to \hsize \bgroup + \white + \infofont + \kern\s_strc_formulas_margin_left + \quad + [\the\s_strc_formulas_margin_left]% + \hss + [\c!split=\iftok{\formulaparameter\c!split}\emptytoks\v!yes \else\formulaparameter\c!split\fi]% + \quad + [\c!align=\iftok{\formulaparameter\c!align}\emptytoks\v!middle\else\formulaparameter\c!align\fi]% + \ifcstok{#1}\v!all\else + \quad + [\c!location=\formulaparameter\c!location]% + \fi + \hss + [\the\s_strc_formulas_margin_right]% + \quad + \kern\s_strc_formulas_margin_right + \egroup + \egroup + \par + \egroup} + +\protect + +\continueifinputfile{s-math-show.mkxl} + +\starttext + +\startformula + a + b = c +\stopformula + +\stoptext diff --git a/tex/context/modules/mkxl/s-text-tests.mkxl b/tex/context/modules/mkxl/s-text-tests.mkxl index 6766a7a09..e21c3a5b3 100644 --- a/tex/context/modules/mkxl/s-text-tests.mkxl +++ b/tex/context/modules/mkxl/s-text-tests.mkxl @@ -15,6 +15,28 @@ %D Here we collect some tests that later will become proper macros. +\starttext + \setuppapersize[S4] + \showmakeup[line] + \def\Test#1{\start\setupheadertexts[\string#1]#1\samplefile{ward}\page\stop} + + \Test\notragged + \Test\raggedleft + \Test\raggedcenter + \Test\raggedright + \Test\veryraggedleft + \Test\veryraggedcenter + \Test\veryraggedright + \Test\raggedwidecenter + \Test\centeredlastline + \Test\flushedrightlastline + \Test\ttraggedright + \Test\forgetragged + \Test\raggedslanted +\stoptext + +% fonts + \usebodyfont[bonum] \usebodyfont[cambria] \usebodyfont[concrete] diff --git a/tex/context/modules/third/mtx-install-imp-modules.lua b/tex/context/modules/third/mtx-install-imp-modules.lua index 66e986a87..bb9b661df 100644 --- a/tex/context/modules/third/mtx-install-imp-modules.lua +++ b/tex/context/modules/third/mtx-install-imp-modules.lua @@ -1,5 +1,7 @@ -- from the context garden +-- incorrectly packaged: metaducks, sudoku, aquamints + return { name = "mtx-install-imp-modules", version = "1.00", @@ -7,19 +9,19 @@ return { author = "Hans Hagen & others", copyright = "ConTeXt development team", lists = { - ["pocketdiary"] = { url = "modules", zips = { "Collection-of-calendars-based-on-PocketDiary-module.zip" } }, + ["pocketdiary"] = { url = "modules", zips = { "PocketDiary-V2.zip", "Environment-for-collating-marks.zip", "Collection-of-calendars-based-on-PocketDiary-module.zip" } }, ["collating"] = { url = "modules", zips = { "Environment-for-collating-marks.zip" } }, ["account"] = { url = "modules", zips = { "t-account.zip" } }, ["algorithmic"] = { url = "modules", zips = { "t-algorithmic.zip" } }, ["animation"] = { url = "modules", zips = { "t-animation.zip" } }, ["annotation"] = { url = "modules", zips = { "t-annotation.zip" } }, - ["aquamints"] = { url = "modules", zips = { "aquamints.zip" } }, + -- ["aquamints"] = { url = "modules", zips = { "aquamints.zip" } }, -- has top level files ["bibmod-doc"] = { url = "modules", zips = { "bibmod-doc.zip" } }, -- ["bnf-0.3"] = { url = "modules", zips = { "t-bnf-0.3.zip" } }, ["bnf"] = { url = "modules", zips = { "t-bnf.zip" } }, ["chromato"] = { url = "modules", zips = { "t-chromato.zip" } }, - ["cmscbf"] = { url = "modules", zips = { "t-cmscbf.zip" } }, - ["cmttbf"] = { url = "modules", zips = { "t-cmttbf.zip" } }, + -- ["cmscbf"] = { url = "modules", zips = { "t-cmscbf.zip" } }, -- obsolete + -- ["cmttbf"] = { url = "modules", zips = { "t-cmttbf.zip" } }, -- obsolete ["crossref"] = { url = "modules", zips = { "t-crossref.zip" } }, ["cyrillicnumbers"] = { url = "modules", zips = { "t-cyrillicnumbers.zip" } }, ["degrade"] = { url = "modules", zips = { "t-degrade.zip" } }, @@ -42,9 +44,9 @@ return { ["letter"] = { url = "modules", zips = { "t-letter.zip" } }, ["letterspace"] = { url = "modules", zips = { "t-letterspace.mkiv.zip" } }, ["lettrine"] = { url = "modules", zips = { "t-lettrine.zip" } }, - ["lua-widow-control"] = { url = "modules", zips = { "lua-widow-control.zip" } }, + ["lua-widow-control"] = { url = "modules", zips = { "lua-widow-control.zip" } }, -- we wipe the non context stuff ["mathsets"] = { url = "modules", zips = { "t-mathsets.zip" } }, - ["metaducks"] = { url = "modules", zips = { "metaducks.zip" } }, + -- ["metaducks"] = { url = "modules", zips = { "metaducks.zip" } }, -- has top level files ["pret-c.lua"] = { url = "modules", zips = { "pret-c.lua.zip" } }, ["rst"] = { url = "modules", zips = { "t-rst.zip" } }, ["rsteps"] = { url = "modules", zips = { "t-rsteps.zip" } }, @@ -52,9 +54,9 @@ return { ["simplefonts"] = { url = "modules", zips = { "t-simplefonts.zip" } }, ["simpleslides"] = { url = "modules", zips = { "t-simpleslides.zip" } }, ["stormfontsupport"] = { url = "modules", zips = { "stormfontsupport.zip" } }, - ["sudoku"] = { url = "modules", zips = { "sudoku.zip" } }, + -- ["sudoku"] = { url = "modules", zips = { "sudoku.zip" } }, -- has top level files ["taspresent"] = { url = "modules", zips = { "t-taspresent.zip" } }, - ["texshow"] = { url = "modules", zips = { "u-texshow.zip" } }, + -- ["texshow"] = { url = "modules", zips = { "u-texshow.zip" } }, ["title"] = { url = "modules", zips = { "t-title.zip" } }, ["transliterator"] = { url = "modules", zips = { "t-transliterator.zip" } }, ["typearea"] = { url = "modules", zips = { "t-typearea.zip" } }, |