Skip to content

Instantly share code, notes, and snippets.

@urso
Created June 19, 2011 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urso/1034341 to your computer and use it in GitHub Desktop.
Save urso/1034341 to your computer and use it in GitHub Desktop.
ConTeXt rotated table example
\setuppapersize[A4][A4]
\setuplayout[location=middle, marking=on,
header=1.5em,
topspace=2cm, headerdistance=1.5cm,
backspace=3.2cm, cutspace=3.5cm,
bottomdistance=1cm, height=middle, width=middle,
leftmargindistance=0.25cm, rightmargindistance=0.25cm,
leftedgedistance=1.5cm, rightedgedistance=0cm,
leftedge=0cm, rightedge=1cm,
leftmarginwidth=2cm, rightmargin=3cm]
\setupinterlinespace[medium] % space in between lines
\setupwhitespace[0.75em] % space in between paragraphs
\startsetups chaptsectheader
\expanded{\doifsomethingelse{\fetchmark[section][first]}}
{\getmarking[sectionnumber]\ \getmarking[section]}
{\getmarking[chapternumber]\ \getmarking[chapter]}
\stopsetups
\setupheadertexts[][\setups{chaptsectheader}]
\setuphead[chapter][header=empty]
\setuppagenumbering[location={bottom, inmargin},
alternative=doublesided,
conversion=numbers,style=bold]
\setuppagenumber[state=start,number=1]
\starttext
\chapter{ABC}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum
dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
sea takimata sanctus est Lorem ipsum dolor sit amet.
\placetable[90]{blah blah}
{\vi
\starttable[|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|]
\HL
$g_{AHP}\backslash g_M$ \NC {\bf 0.0} \NC {\bf 0.1} \NC {\bf 0.2} \NC {\bf 0.3} \NC {\bf 0.4} \NC {\bf 0.5} \NC {\bf 0.6} \NC {\bf 0.7} \NC {\bf 0.8} \NC {\bf 0.9} \NC {\bf 1.0} \NC {\bf 1.1} \NC {\bf 1.2} \NC {\bf 1.3} \NC {\bf 1.4} \NC {\bf 1.5} \NC {\bf 1.6} \NC {\bf 1.7} \NC {\bf 1.8} \NC {\bf 1.9} \NC {\bf 2.0} \FR
{\bf 0.0} \NC 0.92 \NC 1.34 \NC 1.76 \NC 2.19 \NC 2.61 \NC 3.03 \NC 3.45 \NC 3.86 \NC 4.27 \NC 4.68 \NC 5.07 \NC 5.47 \NC 5.85 \NC 6.24 \NC 6.62 \NC 6.99 \NC 7.37 \NC 7.74 \NC 8.10 \NC 8.47 \NC 8.83 \NC\SR
{\bf 0.1} \NC 1.72 \NC 2.17 \NC 2.61 \NC 3.05 \NC 3.49 \NC 3.93 \NC 4.36 \NC 4.78 \NC 5.20 \NC 5.61 \NC 6.01 \NC 6.41 \NC 6.81 \NC 7.20 \NC 7.58 \NC 7.97 \NC 8.34 \NC 8.72 \NC 9.09 \NC 9.46 \NC 9.83 \NC\SR
{\bf 0.2} \NC 2.55 \NC 3.01 \NC 3.47 \NC 3.92 \NC 4.38 \NC 4.82 \NC 5.26 \NC 5.69 \NC 6.11 \NC 6.53 \NC 6.94 \NC 7.35 \NC 7.75 \NC 8.15 \NC 8.54 \NC 8.93 \NC 9.31 \NC 9.69 \NC 10.07 \NC 10.44 \NC 10.82 \NC\SR
{\bf 0.3} \NC 3.38 \NC 3.85 \NC 4.33 \NC 4.80 \NC 5.26 \NC 5.71 \NC 6.16 \NC 6.59 \NC 7.03 \NC 7.45 \NC 7.87 \NC 8.28 \NC 8.69 \NC 9.09 \NC 9.48 \NC 9.88 \NC 10.27 \NC 10.65 \NC 11.04 \NC 11.42 \NC 11.79 \NC\SR
{\bf 0.4} \NC 4.21 \NC 4.70 \NC 5.19 \NC 5.67 \NC 6.14 \NC 6.60 \NC 7.05 \NC 7.49 \NC 7.93 \NC 8.36 \NC 8.79 \NC 9.20 \NC 9.62 \NC 10.02 \NC 10.42 \NC 10.82 \NC 11.22 \NC 11.61 \NC 12.00 \NC 12.38 \NC 12.76 \NC\SR
{\bf 0.5} \NC 5.05 \NC 5.56 \NC 6.05 \NC 6.54 \NC 7.01 \NC 7.48 \NC 7.94 \NC 8.39 \NC 8.83 \NC 9.27 \NC 9.70 \NC 10.12 \NC 10.54 \NC 10.95 \NC 11.36 \NC 11.76 \NC 12.16 \NC 12.56 \NC 12.95 \NC 13.34 \NC 13.73 \NC\SR
{\bf 0.6} \NC 5.90 \NC 6.41 \NC 6.91 \NC 7.41 \NC 7.89 \NC 8.36 \NC 8.83 \NC 9.28 \NC 9.73 \NC 10.17 \NC 10.61 \NC 11.03 \NC 11.46 \NC 11.87 \NC 12.29 \NC 12.69 \NC 13.10 \NC 13.50 \NC 13.90 \NC 14.29 \NC 14.69 \NC\SR
{\bf 0.7} \NC 6.75 \NC 7.27 \NC 7.78 \NC 8.27 \NC 8.77 \NC 9.24 \NC 9.71 \NC 10.17 \NC 10.63 \NC 11.07 \NC 11.51 \NC 11.95 \NC 12.37 \NC 12.79 \NC 13.21 \NC 13.62 \NC 14.03 \NC 14.44 \NC 14.84 \NC 15.24 \NC 15.64 \NC\SR
{\bf 0.8} \NC 7.60 \NC 8.12 \NC 8.64 \NC 9.14 \NC 9.64 \NC 10.12 \NC 10.60 \NC 11.06 \NC 11.52 \NC 11.97 \NC 12.41 \NC 12.85 \NC 13.28 \NC 13.71 \NC 14.13 \NC 14.55 \NC 14.96 \NC 15.37 \NC 15.78 \NC 16.19 \NC 16.59 \NC\SR
{\bf 0.9} \NC 8.45 \NC 8.98 \NC 9.50 \NC 10.01 \NC 10.51 \NC 11.00 \NC 11.48 \NC 11.95 \NC 12.41 \NC 12.87 \NC 13.31 \NC 13.76 \NC 14.19 \NC 14.62 \NC 15.05 \NC 15.47 \NC 15.89 \NC 16.31 \NC 16.72 \NC 17.12 \NC 17.53 \NC\SR
{\bf 1.0} \NC 9.30 \NC 9.84 \NC 10.37 \NC 10.88 \NC 11.38 \NC 11.87 \NC 12.36 \NC 12.83 \NC 13.30 \NC 13.76 \NC 14.21 \NC 14.66 \NC 15.10 \NC 15.53 \NC 15.97 \NC 16.39 \NC 16.82 \NC 17.23 \NC 17.65 \NC 18.06 \NC 18.47 \NC\SR
{\bf 1.1} \NC 10.16 \NC 10.70 \NC 11.23 \NC 11.75 \NC 12.25 \NC 12.75 \NC 13.24 \NC 13.72 \NC 14.19 \NC 14.65 \NC 15.10 \NC 15.56 \NC 16.00 \NC 16.44 \NC 16.88 \NC 17.31 \NC 17.74 \NC 18.16 \NC 18.58 \NC 19.00 \NC 19.41 \NC\SR
{\bf 1.2} \NC 11.02 \NC 11.56 \NC 12.09 \NC 12.61 \NC 13.12 \NC 13.62 \NC 14.12 \NC 14.60 \NC 15.07 \NC 15.54 \NC 16.00 \NC 16.46 \NC 16.91 \NC 17.35 \NC 17.79 \NC 18.22 \NC 18.65 \NC 19.08 \NC 19.51 \NC 19.93 \NC 20.34 \NC\SR
{\bf 1.3} \NC 11.87 \NC 12.42 \NC 12.96 \NC 13.48 \NC 13.99 \NC 14.50 \NC 14.99 \NC 15.48 \NC 15.96 \NC 16.43 \NC 16.89 \NC 17.35 \NC 17.81 \NC 18.25 \NC 18.70 \NC 19.14 \NC 19.57 \NC 20.00 \NC 20.43 \NC 20.86 \NC 21.28 \NC\SR
{\bf 1.4} \NC 12.73 \NC 13.28 \NC 13.82 \NC 14.35 \NC 14.86 \NC 15.37 \NC 15.87 \NC 16.36 \NC 16.84 \NC 17.32 \NC 17.79 \NC 18.25 \NC 18.70 \NC 19.16 \NC 19.60 \NC 20.05 \NC 20.49 \NC 20.92 \NC 21.35 \NC 21.78 \NC 22.21 \NC\SR
{\bf 1.5} \NC 13.59 \NC 14.14 \NC 14.68 \NC 15.21 \NC 15.73 \NC 16.24 \NC 16.75 \NC 17.24 \NC 17.72 \NC 18.20 \NC 18.68 \NC 19.14 \NC 19.60 \NC 20.06 \NC 20.51 \NC 20.96 \NC 21.40 \NC 21.84 \NC 22.27 \NC 22.70 \NC 23.13 \NC\SR
{\bf 1.6} \NC 14.45 \NC 15.00 \NC 15.55 \NC 16.08 \NC 16.60 \NC 17.12 \NC 17.62 \NC 18.12 \NC 18.61 \NC 19.09 \NC 19.57 \NC 20.04 \NC 20.50 \NC 20.96 \NC 21.42 \NC 21.87 \NC 22.31 \NC 22.75 \NC 23.19 \NC 23.63 \NC 24.06 \NC\SR
{\bf 1.7} \NC 15.30 \NC 15.86 \NC 16.41 \NC 16.95 \NC 17.47 \NC 17.99 \NC 18.50 \NC 19.00 \NC 19.49 \NC 19.98 \NC 20.46 \NC 20.93 \NC 21.40 \NC 21.86 \NC 22.32 \NC 22.77 \NC 23.22 \NC 23.67 \NC 24.11 \NC 24.55 \NC 24.98 \NC\SR
{\bf 1.8} \NC 16.16 \NC 16.73 \NC 17.28 \NC 17.82 \NC 18.34 \NC 18.86 \NC 19.38 \NC 19.88 \NC 20.38 \NC 20.86 \NC 21.35 \NC 21.82 \NC 22.29 \NC 22.76 \NC 23.22 \NC 23.68 \NC 24.13 \NC 24.58 \NC 25.02 \NC 25.47 \NC 25.90 \NC\SR
{\bf 1.9} \NC 17.03 \NC 17.59 \NC 18.14 \NC 18.68 \NC 19.22 \NC 19.74 \NC 20.25 \NC 20.76 \NC 21.25 \NC 21.75 \NC 22.23 \NC 22.71 \NC 23.19 \NC 23.66 \NC 24.12 \NC 24.58 \NC 25.04 \NC 25.50 \NC 25.94 \NC 26.39 \NC 26.83 \NC\SR
{\bf 2.0} \NC 17.89 \NC 18.45 \NC 19.01 \NC 19.55 \NC 20.09 \NC 20.61 \NC 21.13 \NC 21.64 \NC 22.14 \NC 22.63 \NC 23.12 \NC 23.61 \NC 24.08 \NC 24.56 \NC 25.02 \NC 25.48 \NC 25.95 \NC 26.40 \NC 26.86 \NC 27.30 \NC 27.75 \NC\SR
\HL
\stoptable}
\stoptext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment