diff options
Diffstat (limited to 'doc')
41 files changed, 766 insertions, 535 deletions
diff --git a/doc/context/documents/general/leaflets/leaflet-context.pdf b/doc/context/documents/general/leaflets/leaflet-context.pdf Binary files differnew file mode 100644 index 000000000..1f7afe97f --- /dev/null +++ b/doc/context/documents/general/leaflets/leaflet-context.pdf diff --git a/doc/context/documents/general/leaflets/leaflet-luametatex.pdf b/doc/context/documents/general/leaflets/leaflet-luametatex.pdf Binary files differnew file mode 100644 index 000000000..551b9ba8e --- /dev/null +++ b/doc/context/documents/general/leaflets/leaflet-luametatex.pdf diff --git a/doc/context/documents/general/leaflets/leaflet-mixing.pdf b/doc/context/documents/general/leaflets/leaflet-mixing.pdf Binary files differnew file mode 100644 index 000000000..a023f9e88 --- /dev/null +++ b/doc/context/documents/general/leaflets/leaflet-mixing.pdf diff --git a/doc/context/documents/general/fonts/fonts-mkiv.pdf b/doc/context/documents/general/manuals/fonts-mkiv.pdf Binary files differindex d388df3e9..d388df3e9 100644 --- a/doc/context/documents/general/fonts/fonts-mkiv.pdf +++ b/doc/context/documents/general/manuals/fonts-mkiv.pdf diff --git a/doc/context/documents/general/qrcs/setup-cs.pdf b/doc/context/documents/general/qrcs/setup-cs.pdf Binary files differindex 3cd5aa523..7679fdb76 100644 --- a/doc/context/documents/general/qrcs/setup-cs.pdf +++ b/doc/context/documents/general/qrcs/setup-cs.pdf diff --git a/doc/context/documents/general/qrcs/setup-de.pdf b/doc/context/documents/general/qrcs/setup-de.pdf Binary files differindex 68ab4835c..1cd01bed1 100644 --- a/doc/context/documents/general/qrcs/setup-de.pdf +++ b/doc/context/documents/general/qrcs/setup-de.pdf diff --git a/doc/context/documents/general/qrcs/setup-en.pdf b/doc/context/documents/general/qrcs/setup-en.pdf Binary files differindex e1f854a34..479e16737 100644 --- a/doc/context/documents/general/qrcs/setup-en.pdf +++ b/doc/context/documents/general/qrcs/setup-en.pdf diff --git a/doc/context/documents/general/qrcs/setup-fr.pdf b/doc/context/documents/general/qrcs/setup-fr.pdf Binary files differindex 1bb2d1fbf..86f70bc73 100644 --- a/doc/context/documents/general/qrcs/setup-fr.pdf +++ b/doc/context/documents/general/qrcs/setup-fr.pdf diff --git a/doc/context/documents/general/qrcs/setup-it.pdf b/doc/context/documents/general/qrcs/setup-it.pdf Binary files differindex 611aadc71..7b863fabf 100644 --- a/doc/context/documents/general/qrcs/setup-it.pdf +++ b/doc/context/documents/general/qrcs/setup-it.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-cs.pdf b/doc/context/documents/general/qrcs/setup-mapping-cs.pdf Binary files differindex 99f5e258d..6c13ca4af 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-cs.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-cs.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-de.pdf b/doc/context/documents/general/qrcs/setup-mapping-de.pdf Binary files differindex 37d64abe8..1675610f4 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-de.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-de.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-en.pdf b/doc/context/documents/general/qrcs/setup-mapping-en.pdf Binary files differindex 35df67720..561220390 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-en.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-en.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-fr.pdf b/doc/context/documents/general/qrcs/setup-mapping-fr.pdf Binary files differindex 8259467fe..a99ea5ac6 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-fr.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-fr.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-it.pdf b/doc/context/documents/general/qrcs/setup-mapping-it.pdf Binary files differindex 9056f7453..db48c25d7 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-it.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-it.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-nl.pdf b/doc/context/documents/general/qrcs/setup-mapping-nl.pdf Binary files differindex 827a82fdb..8fed3b6f3 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-nl.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-nl.pdf diff --git a/doc/context/documents/general/qrcs/setup-mapping-ro.pdf b/doc/context/documents/general/qrcs/setup-mapping-ro.pdf Binary files differindex 61bf080d8..7d213c131 100644 --- a/doc/context/documents/general/qrcs/setup-mapping-ro.pdf +++ b/doc/context/documents/general/qrcs/setup-mapping-ro.pdf diff --git a/doc/context/documents/general/qrcs/setup-nl.pdf b/doc/context/documents/general/qrcs/setup-nl.pdf Binary files differindex bdd91d283..d78433474 100644 --- a/doc/context/documents/general/qrcs/setup-nl.pdf +++ b/doc/context/documents/general/qrcs/setup-nl.pdf diff --git a/doc/context/documents/general/qrcs/setup-ro.pdf b/doc/context/documents/general/qrcs/setup-ro.pdf Binary files differindex ed009f568..251dbb387 100644 --- a/doc/context/documents/general/qrcs/setup-ro.pdf +++ b/doc/context/documents/general/qrcs/setup-ro.pdf diff --git a/doc/context/sources/general/fonts/manuals-explaining-contents.tex b/doc/context/sources/general/fonts/manuals-explaining-contents.tex deleted file mode 100644 index 3e1fadabc..000000000 --- a/doc/context/sources/general/fonts/manuals-explaining-contents.tex +++ /dev/null @@ -1,11 +0,0 @@ -% language=uk - -\startcomponent manuals-explaining-contents - - \starttitle[title=Contents][color=darkgray] - - \placelist[chapter][criterium=text] - - \stoptitle - -\stopcomponent diff --git a/doc/context/sources/general/fonts/manuals-explaining-cover.tex b/doc/context/sources/general/fonts/manuals-explaining-cover.tex deleted file mode 100644 index 8b4f3e891..000000000 --- a/doc/context/sources/general/fonts/manuals-explaining-cover.tex +++ /dev/null @@ -1,199 +0,0 @@ -% language=uk - -% Please try to be original and don't just copy this cover page as I don't want -% confusion and be associated with (or responsibility for the look of) similar -% looking documents. - -\startenvironment manuals-explaining-cover - -\startsetups document:abstract - \framed [ - foregroundstyle=bold, - foregroundcolor=white, - width=7.5cm, - align={normal,tolerant}, - frame=off, - strut=no, - ] { - \getbuffer[abstract] - } -\stopsetups - -\startMPinclusions - - def DrawCoverPage (expr what) = - - numeric variant ; variant := 1 ; - - StartCover ; - - save width, height, size, anchor, offset, colors ; - - numeric width, height, size ; pair anchor, offset ; string colors[] ; - - colors[1] := "\documentvariable{cover:color:1}" ; - colors[2] := "\documentvariable{cover:color:2}" ; - colors[3] := "\documentvariable{cover:color:3}" ; - colors[4] := "\documentvariable{cover:color:4}" ; - colors[5] := "\documentvariable{cover:color:5}" ; - - fill CoverPage enlarged PaperBleed withcolor colors[5] ; - - fill Spine bottomenlarged -.5PaperHeight withcolor colors[3] ; - fill Spine topenlarged -.5PaperHeight withcolor colors[2] ; - - width := FrontPageWidth ; - height := FrontPageHeight ; - size := 4 * width / 3 ; - offset := (-1cm,1cm) ; - anchor := .5[lrcorner CoverPage,urcorner CoverPage] ; - - fill anchored.llft(lltriangle scaled size, urcorner FrontPage) withcolor colors[1] ; - fill anchored.urt (urtriangle scaled size, llcorner FrontPage) withcolor colors[2] ; - fill anchored.lrt (lrtriangle scaled size, ulcorner FrontPage) withcolor colors[3] ; - fill anchored.ulft(ultriangle scaled size, lrcorner FrontPage) withcolor colors[4] ; - - fill anchored.lrt (lrtriangle scaled size, ulcorner BackPage) withcolor colors[1] ; - fill anchored.llft(lltriangle scaled size, urcorner BackPage) withcolor colors[3] ; - fill anchored.ulft(ultriangle scaled size, lrcorner BackPage) withcolor colors[2] ; - fill anchored.urt (urtriangle scaled size, llcorner BackPage) withcolor colors[4] ; - - draw thetextext.llft( - textext("\bf \documentvariable{title}\hskip-.1em") - rotated 45 ysized .350height, - anchor shifted (6*offset+offset) - ) withcolor white ; - draw thetextext.llft( - textext("\bf \documentvariable{subtitle}") - rotated 45 ysized .275height, - anchor shifted (5*offset+offset) - ) withcolor white ; - draw thetextext.llft( - textext("\bf \documentvariable{author}") - rotated 45 ysized .200height, - anchor shifted (2*offset+offset) - ) withcolor white ; - draw thetextext.llft( - textext("\bf \documentvariable{affiliation}") - rotated 45 ysized .200height, - anchor shifted (1*offset+offset) - ) withcolor white ; - - % for the moment - - if (what = "back") or (what = "cover") : - - draw - thetextext.top( - textext("\bf \documentvariable{comment}") - xsized 4cm, - lrcorner Page shifted (-3cm,1cm) - ) withcolor white ; - - fi ; - - % till here - - width := BackPageWidth ; - - if (what = "back") or (what = "cover") : - - draw thetextext( - textext("\bf\setups[document:abstract]") - xsized .65width rotated 45, - center BackPage - ) withcolor white ; - - fi ; - - if what = "cover" : - - draw thetextext.bot( - textext("\bf \documentvariable{title}\hskip-.1em") - rotated 90 xsized .8SpineWidth, - .5[ulcorner Spine,urcorner Spine] shifted (0,-1cm) - ) withcolor white ; - - draw thetextext.top( - textext("\bf \documentvariable{author}") - rotated 90 xsized .8SpineWidth, - .5[llcorner Spine,lrcorner Spine] shifted (0,1cm) - ) withcolor white ; - - fi ; - - StopCover ; - - if what = "front" : - clip currentpicture to FrontPage ; - elseif what = "back" : - clip currentpicture to BackPage ; - else : - drawboundary CoverPage ; - fi ; - - enddef ; - -\stopMPinclusions - -\startsetups document:start - - % \startcovermatter[front] - - \setupbackgrounds[page][background=] - - \doifmodeelse {simple} { - - \startMPpage - DrawCoverPage("front") ; - \stopMPpage - - } { - - \startMPpage - DrawCoverPage("cover") ; - \stopMPpage - - } - - \page[dummy] - - \setupbackgrounds[page][background=page] - - \resetuserpagenumber - - % \stopcovermatter - -\stopsetups - -\startsetups document:stop - - \doifmodeelse {simple} { - - % \startcovermatter[back] - - \page - - \setuppagenumbering[page=] - - \setupbackgrounds[page][background=] - - \page[empty,left] - - \setupmakeup[doublesided=no,page=no] - - \startMPpage - DrawCoverPage("back") ; - \stopMPpage - - % \stopcovermatter - - } { - - % not needed as it's part of the cover page - - } - -\stopsetups - -\stopenvironment diff --git a/doc/context/sources/general/fonts/manuals-explaining-environment.tex b/doc/context/sources/general/fonts/manuals-explaining-environment.tex deleted file mode 100644 index f896c219b..000000000 --- a/doc/context/sources/general/fonts/manuals-explaining-environment.tex +++ /dev/null @@ -1,325 +0,0 @@ -\startenvironment manuals-explaining-environment - -\usemodule[abr-01] -\usemodule[visual] -\usemodule[simulate] -\usemodule[chart] -\usemodule[nodechart] - -% done - -\dontcomplain - -\definepapersize - [book] - [width=18cm, - height=24cm] - -\setuppapersize - [book] - -\startmode[oversized] - - \setuppapersize - [book] - [oversized] - - \setuplayout - [marking=on] - -\stopmode - -\setuplayout - [location=middle, - topspace=1.5cm, - bottomspace=2cm, - backspace=2cm, - cutspace=2cm, - header=0cm, - footer=0cm, - margindistance=.25cm, - margin=1.25cm, - width=middle, - height=middle] - -\setuplayout - [style=\ss] - -\usetypescript - [dejavu-condensed] - -\setupbodyfont - [ipaex,9pt] - -\setupbodyfont - [dejavu,9pt] - -\definetyping - [narrowtyping] - [typing] - [bodyfont=dejavu-condensed] - -% This is way too ugly for a manual: -% -% \setuptyping -% [indentnext=no] -% -% \setupindenting -% [medium,yes] - -\setupwhitespace - [big] - -\defineoverlay - [page] - [\useMPgraphic{page}] - -\setupbackgrounds - [page] - [background=page] - -\setuphead - [chapter,section,subsection] - [color=\namedstructureuservariable{chapter}{color}] - -\setuphead - [chapter] - [style=\bfc] - -\setuphead - [section] - [style=\bfb] - -\setuphead - [subsection] - [style=\bf, - before=\blank, - after=\blank] - -\startsetups document:chapter:inside - \definecolor[maincolor][1.0(\namedheadparameter{chapter}{color})] % this expands the color - \definecolor[halfcolor][0.5(maincolor,white)] -\stopsetups - -\setuphead - [chapter] - [insidesection=\directsetup{document:chapter:inside}] - -\setuppagenumbering - [alternative=doublesided, - location=] - -\setuplist - [aligntitle=yes] - -\setuplist - [chapter] - [pagenumber=no, - style=bold, - before={\blank\startcolor[\structurelistuservariable{color}]}, - after={\placelist[section]\stopcolor}] - -\setuplist - [chapter,section] - [width=3em] - -\startuseMPgraphic{page} - - StartPage ; - - linecap := butt ; - - if OnRightPage : - - path p ; p := ( - urcorner Page shifted (-2cm,0) -- - urcorner Page -- - urcorner Page shifted (0,-2cm) -- cycle - ) shifted (-2.5mm,-2.5mm) ; - - else : - - path p ; p := ( - ulcorner Page shifted (2cm,0) -- - ulcorner Page -- - ulcorner Page shifted (0,-2cm) -- cycle - ) shifted (2.5mm,-2.5mm) ; - - fi ; - - fill p - withpen pencircle scaled 1mm - withcolor "maincolor" ; - - draw thetextext("\bf\userpagenumber", - if OnRightPage : urcorner p shifted (-5mm,-5mm) else : ulcorner p shifted (5mm,-5mm) fi) - withcolor white ; - - if OnRightPage : - - path p ; p := ( - lrcorner Page shifted (-5cm,0) -- - lrcorner Page - ) shifted (-5mm,10mm) - - else : - - path p ; p := ( - llcorner Page shifted (5cm,0) -- - llcorner Page - ) shifted (5mm,10mm) ; - - fi ; - - draw p - withpen pencircle scaled 1mm - withcolor "maincolor" ; - - draw if OnRightPage : - thetextext.lft("\bf\getspecificstructuretitle{chapter}",lrcorner Page shifted (-5mm,5mm)) - else : - thetextext.rt ("\bf\getspecificstructuretitle{chapter}",llcorner Page shifted ( 5mm,5mm)) - fi withcolor "\namedstructureuservariable{chapter}{color}" ; - - StopPage ; -\stopuseMPgraphic - -\definecolor[orange] [r=1,g=.6,b=.1] - -\definecolor[middlegray] [s=.75] -\definecolor[darkgray] [s=.25] -\definecolor[darkred] [r=.5] -\definecolor[darkgreen] [g=.5] -\definecolor[darkblue] [b=.5] - -\definecolor[darkyellow] [.5(red,green)] -\definecolor[darkmagenta][.5(red,blue)] -\definecolor[darkcyan] [.5(green,blue)] - -\definecolor[darkorange] [.5(orange)] - -\definecolor[maincolor] [darkgray] - -\definecolor [mix-1] [r=1,g=.75,b=.25] \definecolor [darkmix-1][.5(mix-1)] -\definecolor [mix-2] [r=1,g=.25,b=.75] \definecolor [darkmix-2][.5(mix-2)] -\definecolor [mix-3] [r=.75,g=1,b=.25] \definecolor [darkmix-3][.5(mix-3)] -\definecolor [mix-4] [r=.75,g=.25,b=1] \definecolor [darkmix-4][.5(mix-4)] -\definecolor [mix-5] [r=.25,g=1,b=.75] \definecolor [darkmix-5][.5(mix-5)] -\definecolor [mix-6] [r=.25,g=.75,b=1] \definecolor [darkmix-6][.5(mix-6)] - -% \blackrule[height=1cm,width=10cm,color=mix-1] \blackrule[height=1cm,width=10cm,color=darkmix-1] -% \blackrule[height=1cm,width=10cm,color=mix-2] \blackrule[height=1cm,width=10cm,color=darkmix-2] -% \blackrule[height=1cm,width=10cm,color=mix-3] \blackrule[height=1cm,width=10cm,color=darkmix-3] -% \blackrule[height=1cm,width=10cm,color=mix-4] \blackrule[height=1cm,width=10cm,color=darkmix-4] -% \blackrule[height=1cm,width=10cm,color=mix-5] \blackrule[height=1cm,width=10cm,color=darkmix-5] -% \blackrule[height=1cm,width=10cm,color=mix-6] \blackrule[height=1cm,width=10cm,color=darkmix-6] - -% modules - -\setupsorting - [logo] - [style=] - -\setupFLOWchart - [width=6em, - height=3em, - offset=-2em, % maybe default : todo: hoffset and voffset - dx=2em, - dy=2em] - -\setupFLOWlines - [color=maincolor] - -\setupFLOWshapes - [rulecolor=maincolor] - -% tables - -\setuptabulate - [rulethickness=.5mm, - rulecolor=maincolor] - -% special commands - -\startuniqueMPgraphic{reference}{color} - fill - .5[llcorner OverlayBox,ulcorner OverlayBox] -- - .5[ulcorner OverlayBox,urcorner OverlayBox] -- - .5[urcorner OverlayBox,lrcorner OverlayBox] -- - .5[lrcorner OverlayBox,llcorner OverlayBox] -- cycle - withcolor \MPvar{color} ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{reference}{color} - path p ; p := OverlayBox enlarged -1mm ; - filldraw - ulcorner p -- - urcorner p -- - lrcorner p -- - .5[lrcorner p,llcorner p] shifted (0,-1ExHeight) -- - llcorner p -- cycle - withpen pencircle scaled 1mm - withcolor \MPvar{color} ; - setbounds currentpicture to OverlayBox enlarged 1ExHeight ; -\stopuniqueMPgraphic - -\defineoverlay - [reference] - [\uniqueMPgraphic{reference}{color=maincolor,}] - -\definecolor - [maincolor] - [red] - -\definemargindata - [appendixdata] - %[inner] - [outer] - [stack=yes] - -\definemarginframed - [appendixdata] - [width=3.5em, - height=\lineheight, % we know what goes in there - align=middle, - offset=overlay, - foregroundcolor=white, - background=reference] - -% todo: -% -% \appendixdata[reference=bla]{} -% -% whole data - -% interaction - -\setupinteraction - [state=start, - click=no, - color=, - contrastcolor=, - style=] - -% whatever - -\definestartstop - [notabene] - [before=\blank, - after=\blank, - style=\em] - -\setuphyphenation - [method=default] - - -\startbuffer[underconstruction] -\startnotabene - This document is still under construction. The functionality discussed here - will stay and more might show up. Of course there are errors, and they're all - mine. The text is not checked for spelling errors. Feel free to let me know - what should get added. -\stopnotabene -\stopbuffer - -\stopenvironment diff --git a/doc/context/sources/general/leaflets/leaflet-common.tex b/doc/context/sources/general/leaflets/leaflet-common.tex new file mode 100644 index 000000000..52cc31797 --- /dev/null +++ b/doc/context/sources/general/leaflets/leaflet-common.tex @@ -0,0 +1,80 @@ +\startenvironment leaflet-common + +%D Please don't abuse this style for your own purpose as the look and feel +%D is reserved for our own purpose. Be creative instead. + +\usemodule + [abbreviations-logos] + +\setupbodyfont + [plex,12pt] + +\setuplayout + [page] + +\setupalign + [verytolerant,stretch] + +\startluacode + function document.graphic() + local min, max, random, round = math.min, math.max, math.random, math.round + + local width = 210 + local height = 297 + local r, g, b = 3, 3, 3 + + local bitmap = graphics.bitmaps.new(width,height,"rgb",1) + local data = bitmap.data + + local graphic = tonumber(documentdata.variable("graphic")) + + if graphic == 1 then + r, g, b = 4, 3, 2 + elseif graphic == 2 then + r, g, b = 2, 3, 4 + end + + for i=1,height do + local d = data[i] + for j=1,width do + local c = random(128,255) + -- d[j] = { 0, 0, c } + d[j] = { c//r, c//g, c//b } + end + end + + graphics.bitmaps.tocontext(bitmap,"210bp","297bp") + end +\stopluacode + +\definelayer + [page] + [width=\paperwidth, + height=\paperheight] + +\setupcolors + [textcolor=white] + +\setupbackgrounds + [page] + [background=page] + +\setupmakeup + [page] + [style=\bf, + top=, + bottom=] + +\startsetups document:start + + \setlayerframed + [page] + [offset=overlay] + {\scale + [width=\textwidth, + height=\textheight] + {\ctxlua{document.graphic()}}} + +\stopsetups + +\stopenvironment diff --git a/doc/context/sources/general/leaflets/leaflet-context.tex b/doc/context/sources/general/leaflets/leaflet-context.tex new file mode 100644 index 000000000..7bab43b12 --- /dev/null +++ b/doc/context/sources/general/leaflets/leaflet-context.tex @@ -0,0 +1,129 @@ +\environment leaflet-common + +\startdocument[graphic=1] + +\startbuffer[1] + There are several ways to deploy \CONTEXT. Most common is to let it render a + document, in which case you install it on a system and use an editor to input + your document and from a console or by clicking some key trigger a run. The + input can be structured using \TEX\ macros but it can also be \XML, or some + other format that gets converted to \CONTEXT\ commands before processing. +\stopbuffer + +\startbuffer[2] + Instead you can also use \CONTEXT\ as a more hidden application, for instance + in a web service or rendering component in a larger application. In that case + the end user is not really aware that \TEX\ is being used. +\stopbuffer + +\startbuffer[3] + No matter how you use \CONTEXT, you need to install it first. You can for + instance use \TEX live or another distribution to pick up \CONTEXT, but you + can also install it using the archive (snapshot), in which case you also need + to pick up the engine (for instance \LUATEX) and a basic set of fonts. In + order to make installation easy we provide a so called standalone + distribution that has all you need. +\stopbuffer + +\startbuffer[4] + + The standalone \CONTEXT\ distribution has the following characteristics: + + \startitemize + \startitem + The installation is self contained. Apart from resources like fonts, + the \TEX\ macros, \LUA\ code and \METAPOST\ helpers are provided in + one package. + \stopitem + \startitem + There is only one binary involved: \LUAMETATEX. The source code of + this program is integral part of the \CONTEXT\ distribution (per end + 2019). A user should be able to compile the program if needed. There + is no dependency on additional libraries other than those that make + up the operating system. + \stopitem + \startitem + The core system is able to typeset documents in an efficient way. The + memory footprint is decent and performance acceptable, also on on low + power devices and virtual machines. We try not to provide bloatware. + \stopitem + \startitem + The official user interface is stable and the implementation of core + components will not change fundamentally. When something can be + improved it will be. One can use a snapshot for long term stability. + \stopitem + \startitem + Support is provided by means of a mailing list, a wiki, + documentation, meetings, etc. If needed you can consult (or hire) + support. There are enough experienced users out there to get you + going. + \stopitem + \stopitemize +\stopbuffer + +\startbuffer[5] + The first version of \CONTEXT, now tagged \MKII, has been around since 1995 + and (still) runs on top of \PDFTEX. The development of its successor \MKIV\ + started in 2005 as part of the \LUATEX\ development and still carries on. The + most recent incarnation is \LMTX, which is \MKIV\ but tuned for \LUAMETATEX, + the lean and mean successor of \LUATEX. +\stopbuffer + +% we could use a collector + +\startpagemakeup + \offinterlineskip + \vskip24pt + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[1] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hskip1cm + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[2] + \stopframed + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[3] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \setupitemize[after=] + \startframed[align=normal,width=\dimexpr\textwidth-2cm\relax,frame=off] + \getbuffer[4] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[5] + \stopframed + \hskip1cm + \egroup + \vfill + \vfill + \vfill + \hbox to \hsize \bgroup + \hskip1cm + \startframed[align=normal,width=.7\textwidth,frame=off] + \bfd \CONTEXT\ \LMTX \enspace \emdash \enspace factsheet + \stopframed + \hss + \egroup + \vskip12pt +\stoppagemakeup + +\stopdocument diff --git a/doc/context/sources/general/leaflets/leaflet-luametatex.tex b/doc/context/sources/general/leaflets/leaflet-luametatex.tex new file mode 100644 index 000000000..6532a8f9f --- /dev/null +++ b/doc/context/sources/general/leaflets/leaflet-luametatex.tex @@ -0,0 +1,106 @@ +\environment leaflet-common + +\startdocument[graphic=2] + +\startbuffer[1] + The \LUAMETATEX\ engine is a follow up on \LUATEX. It integrates the \TEX\ + text rendering engine, the \METAPOST\ graphic engine and the \LUA\ script + interpreter. The development is part of the \CONTEXT\ macro package + development. This macro package tightly integrates the three subsystems. The + \LUAMETATEX\ code is part of the \CONTEXT\ distribution. +\stopbuffer + +\startbuffer[2] + The \LUAMETATEX\ engine is lean and mean. There is for instance no backend + code present. In \CONTEXT\ this is handled in \LUA. Graphic inclusion is also + delegated to \LUA. The \TEX\ frontend is a slightly extended version of the + \LUATEX\ one. System depedencies are minimized. Where possible we stay close + to the original \TEX\ concept because that is a well documented reference. + The binary can also be used as stand alone \LUA\ engine. +\stopbuffer + +\startbuffer[3] + The \METAPOST\ library also has access to \LUA, which means that the language + can be enhanced and functionality added on demand. There are several graphic + libraries provided in \CONTEXT. This graphical language is efficient in + runtime and graphical output. In combination with \LUA\ we have a high + performance graphical subsystem that can handle a huge amount of data. + Additional text (like labels) is typeset at high quality. +\stopbuffer + +\startbuffer[4] + The \LUA\ code that comes with \CONTEXT\ contains a lot of helper code which + means that one can set up selfcontained workflows without many extra + dependencies. Documents can be encoded in \TEX, \LUA, \XML\ or whatever + suits. There is support for databases too. +\stopbuffer + +\startbuffer[5] + The \CONTEXT\ code base evolved over time. The basic functionality is quite stable. + The move from \MKII\ to \MKIV\ to \LMTX\ has been gradual. The efficiency in terms + of code and performance has been improved stepwise. Development continues and beta + releases occur on a regular basis. The \CONTEXT\ user community is quite willing + to experiment with betas that can be installed alongside stable snapshots. + + \blank + + The installation is relatively small (fonts make up much of it) and updating is + easy. We operate in the \TEX\ Directory Structure, which is a proven concept. +\stopbuffer + +\startpagemakeup + \offinterlineskip + \vskip24pt + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[1] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hskip1cm + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[2] + \stopframed + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[3] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \setupitemize[after=] + \startframed[align=normal,width=\dimexpr\textwidth-2cm\relax,frame=off] + \getbuffer[4] + \stopframed + \hskip1cm + \egroup + \vfill + \hbox to \hsize \bgroup + \hss + \startframed[align=normal,width=.7\textwidth,frame=off] + \getbuffer[5] + \stopframed + \hskip1cm + \egroup + \vfill + \vfill + \vfill + \hbox to \hsize \bgroup + \hskip1cm + \startframed[align=normal,width=.7\textwidth,frame=off] + \bfd \LUAMETATEX \enspace \emdash \enspace factsheet + \stopframed + \hss + \egroup + \vskip12pt +\stoppagemakeup + +\stopdocument diff --git a/doc/context/sources/general/leaflets/leaflet-mixing.tex b/doc/context/sources/general/leaflets/leaflet-mixing.tex new file mode 100644 index 000000000..9f14525b3 --- /dev/null +++ b/doc/context/sources/general/leaflets/leaflet-mixing.tex @@ -0,0 +1,450 @@ +%D Please don't abuse this style for your own purpose as the look and feel +%D is reserved for our own purpose. Be creative instead. + +\setupbodyfont + [plex,7pt] + +\setuppapersize + [A3,landscape] + +\setuplayout + [width=middle, + height=middle, + header=0pt, + footer=0pt, + backspace=5mm, + topspace=5mm] + +\definelayer + [page] + [width=\textwidth, + height=\textheight] + +\setupbackgrounds + [page] + [background=color, + backgroundcolor=middlegray] + +\setuptyping + [before=,after=] + +\usemodule + [abbreviations-logos] + +\startbuffer[style] + \setupbodyfont + [plex] + \setuplayout + [width=middle, + height=middle, + margin=1cm] + \setupcolors + [textcolor=white] + \usemodule + [abbreviations-logos] + \setupwhitespace + [big] + \setuphead + [chapter] + [style=\bfc] +\stopbuffer + +\startbuffer[intro] + + \starttitle[title={Using \CONTEXT}] + + The \CONTEXT\ macro package is more than just a \TEX\ processor, + various input is possible, some we show here. An example of a + method not shown here is fetching data from a database. The + various input methods can be combined, so depending on what you + need you can mix \TEX\ (for typesetting text), \METAPOST\ (for + producing graphics) or \LUA\ (as language for manipulating + data. + + All these methods are quite efficient and always have access to + the full power of the typesetting engine. + + When you use \CONTEXT\ with \LUAMETATEX, you get a reasonable + small self contained component that can be used in workflows + that need quality rendering. The ecosystem is rather future + proof too. + + The \CONTEXT\ macro package has been around for decades and + evolved from \MKII, to \MKIV\ and now \LMTX. The development + team has always been involved in the development of engines + like \PDFTEX, \LUATEX\ and \LUAMETATEX. There is an active + mailing list and there are \CONTEXT\ meetings. + + \stoptitle + +\stopbuffer + +\startbuffer[tex] +\starttext + + \starttitle[title={Some \TEX}] + + Just an example. + + \starttabulate[|c|c|] + \NC first 1 \NC last 1 \NC \NR + \NC first 2 \NC last 2 \NC \NR + \stoptabulate + + \stoptitle + +\stoptext +\stopbuffer + +\startbuffer[xml] +\startbuffer[demo] +<?xml version="1.0"?> +<document> + <title>Some XML</title> + <p>Just an example.</p> + <table> + <r> <c>first 1</c> <c>last 1</c> </r> + <r> <c>first 2</c> <c>last 2</c> </r> + </table> +</document> +\stopbuffer + +\startxmlsetups xml:basics + \xmlsetsetup{#1}{title|p|table}{xml:*} +\stopxmlsetups +\startxmlsetups xml:title + \title{\xmltext{#1}{.}} +\stopxmlsetups +\startxmlsetups xml:p + \xmlflush{#1}\par +\stopxmlsetups +\startxmlsetups xml:table + \starttabulate[|c|c|] + \xmlfilter{#1}{/r/command(xml:r)} + \stoptabulate +\stopxmlsetups +\startxmlsetups xml:r + \NC \xmlfilter{#1}{/c/command(xml:c)} \NR +\stopxmlsetups +\startxmlsetups xml:c + \xmlflush{#1} \NC +\stopxmlsetups + +\xmlregistersetup{xml:basics} + +\starttext + \xmlprocessbuffer{demo}{demo}{} +\stoptext +\stopbuffer + +\startbuffer[lua] +\startluacode + local tmp = { + { a = "first 1", b = "last 1" }, + { b = "last 2", a = "first 2" }, + } + + -- local tmp = table.load("somefile.lua") + + context.starttext() + + context.starttitle { title = "Some Lua" } + + context("Just an example.") context.par() + + context.starttabulate { "|c|c|" } + for i=1,#tmp do + local t = tmp[i] + context.NC() + context(t.a) context.NC() + context(t.b) context.NC() + context.NR() + end + context.stoptabulate() + + context.stoptitle() + + context.stoptext() +\stopluacode +\stopbuffer + +\startbuffer[mp] +\startMPpage + draw textext("\bf Some \MetaPost") + xsized 4cm + rotated(45) + withcolor "white" ; + + draw textext("\bs\strut in \ConTeXt") + xsized 5cm + shifted (0,-40mm) + withcolor "white" ; + + draw fullcircle + scaled 6cm + dashed evenly + withcolor "gray" ; +\stopMPpage +\stopbuffer + +\startbuffer[csv] +\startluacode + local tmp = [[ + first,second + first 1,last 1 + first 2,last 2 + ]] + + -- local tmp = io.loaddata("somefile.csv") + + local mycsvsplitter = utilities.parsers.rfc4180splitter() + local list, names = mycsvsplitter(tmp,true) + + context.starttext() + + context.starttitle { title = "Some CSV" } + + context("Just an example.") context.par() + + context.starttabulate { "|c|c|" } + for i=1,#list do + local l = list[i] + context.NC() + context(l[1]) context.NC() + context(l[2]) context.NC() + context.NR() + end + context.stoptabulate() + + context.stoptitle() + + context.stoptext() +\stopluacode +\stopbuffer + +\startbuffer[json] +\startluacode + require("util-jsn") + + -- local str = io.loaddata("somefile.json") + + local str = [[ { + "title": "Some JSON", + "text" : "Just an example.", + "data" : [ + { "a" : "first 1", "b" : "last 1" }, + { "b" : "last 2", "a" : "first 2" } + ] + } ]] + + local tmp = utilities.json.tolua(str) + + context.starttext() + + context.starttitle { title = tmp.title } + + context(tmp.text) context.par() + + context.starttabulate { "|c|c|" } + for i=1,#tmp.data do + local d = tmp.data[i] + context.NC() + context(d.a) context.NC() + context(d.b) context.NC() + context.NR() + end + context.stoptabulate() + + context.stoptitle() + + context.stoptext() +\stopluacode +\stopbuffer + +\startbuffer[mkxi] +% normally there is already a file: + +\startbuffer[demo] +\starttext + \starttitle[title={Some template}] + + Just an example. \blank + + \startlinecorrection + \bTABLE + <?lua for i=1,20 do ?> + \bTR + <?lua for j=1,5 do ?> + \bTD + cell (<?lua inject(i) ?>,<?lua inject(j) ?>) + is <?lua inject(variables.text or "unset") ?> + \eTD + <?lua end ?> + \eTR + <?lua end ?> + \eTABLE + \stoplinecorrection + + \stoptitle +\stoptext + +\stopbuffer + +\savebuffer[file=demo.mkxi,prefix=no,list=demo] + +% the action: + +\startluacode + document.variables.text = "set" +\stopluacode + +\input{demo.mkxi} +\stopbuffer + +\definemeasure[blobwidth] [\textwidth/4-3mm] +\definemeasure[blobscale] [\textwidth/4-3mm-4mm] +\definemeasure[blobheight][\textheight/2-2mm] + +\startbuffer[everything] + +\setlayerframed + [page] + [preset=lefttop] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkgray, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[intro]}{\typesetbuffer[style,intro][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=lefttop, + hoffset=4mm, + x=\measure{blobwidth}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkred, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[tex]}{\typesetbuffer[style,tex][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=righttop, + hoffset=4mm, + x=\measure{blobwidth}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkblue, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[xml]}{\typesetbuffer[style,xml][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=righttop] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkgreen, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[lua]}{\typesetbuffer[style,lua][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=lefttop, + voffset=4mm, + y=\measure{blobheight}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkcyan, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[mp]}{\typesetbuffer[style,mp][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=lefttop, + hoffset=4mm, + x=\measure{blobwidth}, + voffset=4mm, + y=\measure{blobheight}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkmagenta, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[csv]}{\typesetbuffer[style,csv][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=righttop, + hoffset=4mm, + x=\measure{blobwidth}, + voffset=4mm, + y=\measure{blobheight}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkyellow, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[json]}{\typesetbuffer[style,json][frame=on,width=\measure{blobscale}]}} + +\setlayerframed + [page] + [preset=righttop, + voffset=4mm, + y=\measure{blobheight}] + [align=normal, + offset=2mm, + strut=no, + frame=off, + height=\measure{blobheight}, + width=\measure{blobwidth}, + background=color, + backgroundcolor=darkorange, + foregroundcolor=white] + {\doifelsemode{verbose}{\typebuffer[mkxi]}{\typesetbuffer[style,mkxi][frame=on,width=\measure{blobscale}]}} + +\startstandardmakeup + \tightlayer[page] +\stopstandardmakeup + +\stopbuffer + +\starttext + +{\enablemode[verbose] \getbuffer[everything]} + \getbuffer[everything] + +\stoptext + diff --git a/doc/context/sources/general/fonts/fonts/fonts-appendix.tex b/doc/context/sources/general/manuals/fonts/fonts-appendix.tex index 2eab26a93..2eab26a93 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-appendix.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-appendix.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-demo-rule.lua b/doc/context/sources/general/manuals/fonts/fonts-demo-rule.lua index 667d1e43c..667d1e43c 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-demo-rule.lua +++ b/doc/context/sources/general/manuals/fonts/fonts-demo-rule.lua diff --git a/doc/context/sources/general/fonts/fonts/fonts-environment.tex b/doc/context/sources/general/manuals/fonts/fonts-environment.tex index c884d97e5..c884d97e5 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-environment.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-environment.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-extensions.tex b/doc/context/sources/general/manuals/fonts/fonts-extensions.tex index afe6fd823..afe6fd823 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-extensions.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-extensions.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-features.tex b/doc/context/sources/general/manuals/fonts/fonts-features.tex index bf9f39385..bf9f39385 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-features.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-features.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-formats.tex b/doc/context/sources/general/manuals/fonts/fonts-formats.tex index 9ad6bc9bd..9ad6bc9bd 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-formats.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-formats.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-hooks.tex b/doc/context/sources/general/manuals/fonts/fonts-hooks.tex index 7ee5dc198..7ee5dc198 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-hooks.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-hooks.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-introduction.tex b/doc/context/sources/general/manuals/fonts/fonts-introduction.tex index 0ca91ee9f..0ca91ee9f 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-introduction.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-introduction.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-lookups.tex b/doc/context/sources/general/manuals/fonts/fonts-lookups.tex index e9448b884..e9448b884 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-lookups.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-lookups.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-math.tex b/doc/context/sources/general/manuals/fonts/fonts-math.tex index 766204937..766204937 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-math.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-math.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-methods.tex b/doc/context/sources/general/manuals/fonts/fonts-methods.tex index eac86d694..eac86d694 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-methods.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-methods.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-mkiv.tex b/doc/context/sources/general/manuals/fonts/fonts-mkiv.tex index fa53492f0..fa53492f0 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-mkiv.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-mkiv.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-modes.tex b/doc/context/sources/general/manuals/fonts/fonts-modes.tex index 95cb95732..95cb95732 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-modes.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-modes.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-scripts.tex b/doc/context/sources/general/manuals/fonts/fonts-scripts.tex index aed4f0a5c..aed4f0a5c 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-scripts.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-scripts.tex diff --git a/doc/context/sources/general/fonts/fonts/fonts-tricks.tex b/doc/context/sources/general/manuals/fonts/fonts-tricks.tex index 65b210e2c..65b210e2c 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-tricks.tex +++ b/doc/context/sources/general/manuals/fonts/fonts-tricks.tex diff --git a/doc/context/sources/general/manuals/musings/musings.tex b/doc/context/sources/general/manuals/musings/musings.tex index e2787dc99..3b6327f59 100644 --- a/doc/context/sources/general/manuals/musings/musings.tex +++ b/doc/context/sources/general/manuals/musings/musings.tex @@ -16,6 +16,7 @@ \component musings-staygo \component musings-stability \component musings-roadmap + % \component musings-names \stopbodymatter \stopproduct |