summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/sample
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2009-08-23 11:11:32 +0000
committerTaco Hoekwater <taco@elvenkind.com>2009-08-23 11:11:32 +0000
commit8fc3039c82d48605b5ca8b2eda3f4fdd755681e1 (patch)
tree3cd9bbdd599bc4d1ac0409e167fee2136e4c0ec9 /Master/texmf-dist/tex/context/sample
parent850fc99b7cd3ae7a20065531fe866ff7bae642ec (diff)
this is context 2009.08.19 17:10
git-svn-id: svn://tug.org/texlive/trunk@14827 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/sample')
-rw-r--r--Master/texmf-dist/tex/context/sample/demo-cld.cld74
-rw-r--r--Master/texmf-dist/tex/context/sample/sample.tex8
2 files changed, 81 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/sample/demo-cld.cld b/Master/texmf-dist/tex/context/sample/demo-cld.cld
new file mode 100644
index 00000000000..7e470da6297
--- /dev/null
+++ b/Master/texmf-dist/tex/context/sample/demo-cld.cld
@@ -0,0 +1,74 @@
+-- context.enabletrackers {"tud.trace"}
+
+context.setuplayout( {
+ width = "middle",
+ height = "middle",
+})
+
+context.showframe()
+
+context.starttext()
+
+context.chapter({ "someref" }, "Hello There")
+
+context.readfile("tufte","","not found")
+
+context.startitemize({ "packed" })
+ for i=1,10 do
+ context.startitem()
+ context("this is item %i",i)
+ context.stopitem()
+ end
+context.stopitemize()
+
+context.startchapter({ title = "test" }, { more = "oeps" })
+
+ context["in"]("chapter",{ "someref" })
+
+ context.startlinecorrection( { "blank" })
+ context.bTABLE()
+ for i=1,10 do
+ context.bTR()
+ for i=1,20 do
+ context.bTD({ align= "middle", style = "type" })
+ context("%#2i",math.random(99))
+ context.eTD()
+ end
+ context.eTR()
+ end
+ context.eTABLE()
+ context.stoplinecorrection()
+
+ context.mathematics("x^{2 \\times 4}")
+
+ context.placefigure("caption", function()
+ context.externalfigure( { "cow.pdf" } )
+ end)
+
+ context.placefigure("caption", function()
+ context.bTABLE()
+ context.bTR()
+ context.bTD()
+ context.externalfigure( { "cow.pdf" }, { width = "3cm", height = "3cm" } )
+ context.eTD()
+ context.bTD({ align = "{lohi,middle}" } )
+ context("and")
+ context.eTD()
+ context.bTD()
+ context.externalfigure( { "cow.pdf" }, { width = "4cm", height = "3cm" } )
+ context.eTD()
+ context.eTR()
+ context.eTABLE()
+ end)
+
+context.stopchapter()
+
+context.chapter("Speed Test 1")
+
+for i=1,50 do
+ context.readfile("tufte","","not found")
+ context.par()
+end
+
+context.stoptext()
+
diff --git a/Master/texmf-dist/tex/context/sample/sample.tex b/Master/texmf-dist/tex/context/sample/sample.tex
index f39c328ee63..d54d8b74780 100644
--- a/Master/texmf-dist/tex/context/sample/sample.tex
+++ b/Master/texmf-dist/tex/context/sample/sample.tex
@@ -40,12 +40,15 @@ used in testing bibliographic references and citations.
Thomas Dunne Books, 2007, p.160 \NC \NR
\NC montgomery.tex \NC David R Montgomery \NC Dirt, The Erosion of Civilizations, \endgraf
University of California Press, 2007, p.199 \NC \NR
+\NC carrol.tex \NC Sean B. Carrol \NC The Making of the Fittest, \endgraf
+ Quercus, London, 2006 \NC \NR
\stoptabulate
% Tufte: This quote will always produce hyphenated text, apart from the content,
% it's a pretty good test case for protruding.
-% Ward: I should find a quote in the extremely well written Rare Earth as well.
+% Ward: I should find a quote in the extremely well written Rare Earth as well. All Wards
+% books excell.
% A Short History of Nearly Everything: I wish that I had the memory to remember this book
% verbatim.
@@ -62,4 +65,7 @@ used in testing bibliographic references and citations.
% Dirt, The Erosion of Civilizations: one of those books that you buy immediately after
% reading a few sentences. Also one of those books that every politician should read.
+% The Making of the Fittest: nice sample for color ans subsentence testing. A very
+% readable book but unfortunately it has inter-character spacing.
+
\stoptext