From c44a9d2f89620e439f335029689e7f0dff9516b7 Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Mon, 1 Aug 2016 13:39:31 +0200 Subject: 2016-08-01 13:07:00 --- .../general/manuals/math/math-framing-001.tex | 113 +++++++++++++++++++++ .../sources/general/manuals/math/math-mkiv.tex | 58 +++++++++++ .../general/manuals/math/math-spacing-001.tex | 73 +++++++++++++ 3 files changed, 244 insertions(+) create mode 100644 doc/context/sources/general/manuals/math/math-framing-001.tex create mode 100644 doc/context/sources/general/manuals/math/math-mkiv.tex create mode 100644 doc/context/sources/general/manuals/math/math-spacing-001.tex (limited to 'doc/context/sources/general/manuals/math') diff --git a/doc/context/sources/general/manuals/math/math-framing-001.tex b/doc/context/sources/general/manuals/math/math-framing-001.tex new file mode 100644 index 000000000..5081b8ad2 --- /dev/null +++ b/doc/context/sources/general/manuals/math/math-framing-001.tex @@ -0,0 +1,113 @@ +\setuplayout[topspace=5mm,bottomspace=5mm,height=middle,header=1cm,footer=0cm] + +\starttext + +\startbuffer[sample] + \enabletrackers[formulas.framed] \showboxes + \startformula + e = mc^2 + \stopformula + \par + \startformula + e = mc^2 + \stopformula + \startformula + e = mc^2 + \stopformula + \startformula + e \dorecurse{12} { = mc^2 } + \stopformula + \startplaceformula + \startformula + e = mc^2 + \stopformula + \stopplaceformula + \startplaceformula + \startformula + e \dorecurse{12} { = mc^2 } + \stopformula + \stopplaceformula +\stopbuffer + +\startbuffer[setup-b] +\setupformula + [option=frame] +\stopbuffer + +\startbuffer[setup-d] +\setupformulaframed + [frame=on, + %toffset=10pt, + %boffset=10pt, + foregroundcolor=white, + background=color, + backgroundcolor=gray] +\stopbuffer + +\startbuffer[setup-c] +\setupformula + [frame=number] +\stopbuffer + +\startbuffer[all] +\start + \typebuffer[setup-a] + \getbuffer[setup-a] + \getbuffer[sample] + \typebuffer[setup-b] + \typebuffer[setup-d] + \getbuffer[setup-b] + \getbuffer[setup-d] + \getbuffer[sample] + \typebuffer[setup-c] + \getbuffer[setup-c] + \getbuffer[sample] + \page +\stop +\stopbuffer + +\startbuffer + \startbuffer[setup-a] + \setupformula + [align=flushleft] + \stopbuffer + \getbuffer[all] + \startbuffer[setup-a] + \setupformula + [align=flushleft,location=left] + \stopbuffer + \getbuffer[all] + + \startbuffer[setup-a] + \setupformula + [align=middle] + \stopbuffer + \getbuffer[all] + \startbuffer[setup-a] + \setupformula + [align=middle,location=left] + \stopbuffer + \getbuffer[all] + + \startbuffer[setup-a] + \setupformula + [align=flushright] + \stopbuffer + \getbuffer[all] + \startbuffer[setup-a] + \setupformula + [align=flushright,location=left] + \stopbuffer + \getbuffer[all] +\stopbuffer + +\getbuffer + +\startbuffer[setup-b] +\setupformula + [option={tight,frame}] +\stopbuffer + +\getbuffer + +\stoptext diff --git a/doc/context/sources/general/manuals/math/math-mkiv.tex b/doc/context/sources/general/manuals/math/math-mkiv.tex new file mode 100644 index 000000000..c20f12049 --- /dev/null +++ b/doc/context/sources/general/manuals/math/math-mkiv.tex @@ -0,0 +1,58 @@ +% language=uk + +% author : Hans Hagen +% copyright : PRAGMA ADE & ConTeXt Development Team +% license : Creative Commons Attribution ShareAlike 4.0 International +% reference : pragma-ade.nl | contextgarden.net | texlive (related) distributions +% origin : the ConTeXt distribution +% +% comment : Because this manual is distributed with TeX distributions it comes with a rather +% liberal license. We try to adapt these documents to upgrades in the (sub)systems +% that they describe. Using parts of the content otherwise can therefore conflict +% with existing functionality and we cannot be held responsible for that. Many of +% the manuals contain characteristic graphics and personal notes or examples that +% make no sense when used out-of-context. + +\environment math-layout + +\startproduct math-mkiv + +\startdocument + +\component math-titlepage + +\startfrontmatter + \component math-contents + \component math-introduction +\stopfrontmatter + +\startbodymatter + \component math-spacing + \component math-framing + \component math-numbering + \component math-combining +\stopbodymatter + +\stopdocument + +\stopproduct + +% when we compare these tables with the one that the ff loader produces we notice +% some differences: this is because (deduced from source) that ff does some kind +% of interpolation for missing heights for the last kern (for n=2 adding 100 and +% for adding 1 the max height) ... this is probably a side effect if missing specs +% here we don't do that +% \enabledirectives[fontgoodies.mathkerning] + +% \startTEXpage[offset=2mm] +% \startcombination[4*2] +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [modern]$V_i^i = W_i^i$\hss}} {\infofont modern} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [cambria]$V_i^i = W_i^i$\hss}} {\infofont cambria} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont[lucidaot]$V_i^i = W_i^i$\hss}} {\infofont lucida} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [dejavu]$V_i^i = W_i^i$\hss}} {\infofont dejavu} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [pagella]$V_i^i = W_i^i$\hss}} {\infofont pagella} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [termes]$V_i^i = W_i^i$\hss}} {\infofont termes} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [bonum]$V_i^i = W_i^i$\hss}} {\infofont bonum} +% {\hbox to 50pt{\hss\showboxes\switchtobodyfont [schola]$V_i^i = W_i^i$\hss}} {\infofont schola} +% \stopcombination +% \stopTEXpage diff --git a/doc/context/sources/general/manuals/math/math-spacing-001.tex b/doc/context/sources/general/manuals/math/math-spacing-001.tex new file mode 100644 index 000000000..a0ccda449 --- /dev/null +++ b/doc/context/sources/general/manuals/math/math-spacing-001.tex @@ -0,0 +1,73 @@ +\doifmodeelse {with-struts} { + \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x \strut x }}} +} { + \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x x }}} +} + +\setuplayout + [width=middle, + height=middle, + backspace=1mm, + topspace=1cm] + +\setupbodyfont + [17.3pt] + +\starttext + +\Line + +\startformula + x +\stopformula + +\Line + +\startformula + y +\stopformula + +\Line + +\startformula + \strut x +\stopformula + +\Line + +\startformula \startalign + \NC c - a = \NC b \NR + \NC d + c - b = \NC a \NR +\stopalign \stopformula + +\Line + +\startformula \startalign + \NC c - a = \NC b \NR + \NC d + c - b = \NC a \NR +\stopalign \stopformula + +\Line + +\startformula +\mframed + [offset=1mm,loffset=3mm,roffset=3mm] { + a + b = c + } +\stopformula + +\Line + +\startformula +\mframed + [offset=1mm,loffset=3mm,roffset=3mm] { + \startalign + \NC c - a = \NC b \NR + \NC d + c - b = \NC a \NR + \stopalign + } +\stopformula + +\Line + +\stoptext -- cgit v1.2.3