diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-22 22:14:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-22 22:14:39 +0000 |
commit | fc4466b32ed330a956ac603b00fd145524cff49a (patch) | |
tree | 2c50e2b8de13aa9233b2c76dffe201558f169e86 /Master/texmf-dist/tex/context/base/mkiv/export-example.tex | |
parent | 50e2368597d5f6fe2057195d0ae6a9f2044923e4 (diff) |
context (22apr16)
git-svn-id: svn://tug.org/texlive/trunk@40691 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/export-example.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/export-example.tex | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/export-example.tex b/Master/texmf-dist/tex/context/base/mkiv/export-example.tex new file mode 100644 index 00000000000..32cb79c5ea2 --- /dev/null +++ b/Master/texmf-dist/tex/context/base/mkiv/export-example.tex @@ -0,0 +1,118 @@ +% language=uk + +\usemodule[abr-01] + +\setupexport + [%bodyfont=16pt, + width=650pt, + %align=flushleft, + hyphen=yes] + +\setupbackend + [export=yes] + +% \setupalign +% [flushleft] + +\settaggedmetadata + [title=Export Example, + author=Hans Hagen, + version=0.1] + +\setupbodyfont + [dejavu] + +\setupinteraction + [state=start] + +\setuplayout + [width=middle] + +\setupwhitespace + [big] + +\definedescription + [description] + +\enabledirectives[export.css.hyphens=yes] +\enabledirectives[export.css.textwidth=100em] + +\definehighlight[interesting][style=bold,color=red] + +\starttext + +\startchapter[title=Example] + +\startparagraph \input zapf (Zapf) \stopparagraph + +\startparagraph + Watching a \interesting {movie} after reading a review on \goto{my favourite movie + reviews site}[url(http://outlawvern.com/)] is much more fun. \footnote {Just a note.} +\stopparagraph + +\placefigure + {} + {\startcombination[3*1] + {\externalfigure[hacker.jpg][width=3cm]} {first} + {\externalfigure[hacker.jpg][width=4cm]} {second} + {\externalfigure[hacker.jpg][width=2cm]} {third} + \stopcombination} + +\startparagraph \input zapf (Zapf) \stopparagraph + +\placefigure + {} + {\externalfigure[mill.png]} + +\startparagraph \input tufte (Tufte) \stopparagraph + +\placefigure + {} + {\externalfigure[cow.pdf]} + +\startparagraph \input tufte (Tufte) \stopparagraph + +\startitemize[1] + \startitem \input ward (Ward) \stopitem + \startitem \input knuth (Knuth) \stopitem +\stopitemize + +\startitemize[2,packed] + \startitem \input zapf (Zapf) \stopitem + \startitem \input tufte (Tufte) \stopitem +\stopitemize + +\startparagraph \input zapf (Zapf) \stopparagraph + +\startdescription {Ward} \input ward \stopdescription + +\startdescription {Tufte} \input tufte \stopdescription + +\startparagraph \input knuth (Knuth) \stopparagraph + +\startformula +e = mc^2 +\stopformula + +\startparagraph +Okay, it's somewhat boring to always use the same formula, so how about +$\sqrt{4} = 2$ or travelling at \unit{120 km/h} instead of $\unit{110 km/h}$. +\stopparagraph + +\bTABLE +\bTR \bTD test \eTD \bTD test \eTD \eTR +\bTR \bTD[nx=2] test \eTD \eTR +\eTABLE + +\starttabulate[|l|r|p|] +\NC left \NC right \NC \input ward \NC \NR +\NC l \NC r \NC \input ward \NC \NR +\stoptabulate + +It looks like we're using \CONTEXT\ to produce some kind of \XML\ output. + +\typefile{export-example.tex} + +\stopchapter + +\stoptext |