diff options
author | Karl Berry <karl@freefriends.org> | 2016-11-25 22:39:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-11-25 22:39:44 +0000 |
commit | 4a55147e264bbcb051fbb9a51b05b190e52bd6b7 (patch) | |
tree | 93f4c55dd1e9badbcc219df8ac9663e5690329ba /Master/texmf-dist/doc/latex/cals/examples | |
parent | dc4d59f0c0a68d9586f1d3f32d9f7a3bb32e29d9 (diff) |
cals (25nov16)
git-svn-id: svn://tug.org/texlive/trunk@42577 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/cals/examples')
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/bididemo.pdf | bin | 0 -> 19630 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/bididemo.tex | 59 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/biditable1.tex | 18 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/biditable2.tex | 33 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/biditable3.tex | 33 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/biditable4.tex | 32 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/demo.pdf | bin | 58125 -> 19358 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/cals/examples/demo.tex | 8 |
8 files changed, 175 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/cals/examples/bididemo.pdf b/Master/texmf-dist/doc/latex/cals/examples/bididemo.pdf Binary files differnew file mode 100644 index 00000000000..8daa020b370 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/bididemo.pdf diff --git a/Master/texmf-dist/doc/latex/cals/examples/bididemo.tex b/Master/texmf-dist/doc/latex/cals/examples/bididemo.tex new file mode 100644 index 00000000000..907f2f6c864 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/bididemo.tex @@ -0,0 +1,59 @@ +\documentclass[twocolumn]{minimal} +\usepackage[paper=a5paper,landscape=true,margin=1cm, + twocolumn=true,columnsep=1cm]{geometry} +\usepackage{helvet} +\usepackage{times} +\usepackage{color} +\usepackage{fancyvrb} +\usepackage{multicol} + +\usepackage[RTLdocument]{bidi} +\usepackage{cals} + +\newcommand\newcolumn{\vfil\penalty-10000 } +\newcommand\small{\fontsize{9pt}{11pt}\selectfont} +\newcommand\Small{\fontsize{8pt}{9pt}\selectfont} +\newcommand\Large{\fontsize{12pt}{14pt}\selectfont} + +\newcommand\header[1]{\noindent{\Large\bfseries#1\strut}\par\bigskip} + +\showboxdepth=100 +\showboxbreadth=100 + +\begin{document} +\makeatletter + +\header{CALS tables demo} +\newcolumn +\parindent=0pt +by Oleg Parashchenko\par +\textless{}olpa uucode com\textgreater\par +\par +24 May 2013\par +\clearpage + +\header{Simple table} +\input biditable1 +\newcolumn +\VerbatimInput{biditable1.tex} +\clearpage + +\header{Decorations} +\input biditable2 +\newcolumn +\VerbatimInput[fontsize=\small]{biditable2.tex} +\clearpage + +\header{Cell spanning} +\input biditable3 +\newcolumn +\VerbatimInput[fontsize=\small]{biditable3.tex} +\clearpage + +\header{Multipage table (in a multicols in a table)} +\input biditable4 +\newcolumn +\VerbatimInput[fontsize=\small]{biditable4.tex} +\clearpage + +\end{document} diff --git a/Master/texmf-dist/doc/latex/cals/examples/biditable1.tex b/Master/texmf-dist/doc/latex/cals/examples/biditable1.tex new file mode 100644 index 00000000000..28d367c2b12 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/biditable1.tex @@ -0,0 +1,18 @@ +\begin{calstable} +\colwidths{{3cm}{4cm}} +\thead{ + I'm a caption in the header\par + \bfseries + \brow \cell{head 1.1}\cell{head 1.2} \erow + \brow \cell{head 2.1}\cell{head 2.2} \erow + \mdseries} + +\tfoot{ + \brow \cell{foot 1.1} \cell{foot 1.2} \erow + \lastrule + I'm a caption in the footer\par} + +\brow \cell{body 1.1}\cell{body 1.2} \erow +\brow \cell{body 2.1}\cell{body 2.2} \erow +\brow \cell{body 3.1}\cell{body 3.2} \erow +\end{calstable} diff --git a/Master/texmf-dist/doc/latex/cals/examples/biditable2.tex b/Master/texmf-dist/doc/latex/cals/examples/biditable2.tex new file mode 100644 index 00000000000..b17f7905914 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/biditable2.tex @@ -0,0 +1,33 @@ +\makeatletter +\newcommand\bbrow{\brow\setbox\cals@current@row= + \hbox{\vbox to 2.9cm{}}} + +\newenvironment{decotable}{\begin{calstable} +\fontsize{15pt}{17pt}\selectfont +\cals@setpadding{Ag}\cals@setcellprevdepth{Al} +\cals@paddingL=0pt \relax +\cals@paddingR=0pt \relax +\def\cals@framecs@width{2pt} +\def\cals@rs@width{8pt} +\def\cals@cs@width{4pt} +}{\end{calstable}} + +\begin{decotable} +\colwidths{{2.9cm}{2.9cm}{2.9cm}} +\bbrow + \cell{left,\\top} + \alignC \cell{center,\\top} + \def\cals@borderL{0pt}\def\cals@borderB{0pt} + \alignR \cell{right,\\top} \erow + \let\cals@borderL=\relax \let\cals@borderB=\relax +\bbrow + \alignL \cell{\vfil left,\\middle} + \alignC \cell{\vfil center,\\middle} + \alignR \cell{\vfil right,\\middle} \erow +\bbrow + \def\cals@bgcolor{green} + \alignL \cell{\vfill left,\\bottom} + \def\cals@bgcolor{} + \alignC \cell{\vfill center,\\bottom} + \alignR \cell{\vfill right,\\bottom} \erow +\end{decotable} diff --git a/Master/texmf-dist/doc/latex/cals/examples/biditable3.tex b/Master/texmf-dist/doc/latex/cals/examples/biditable3.tex new file mode 100644 index 00000000000..2a740fafd97 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/biditable3.tex @@ -0,0 +1,33 @@ +\makeatletter \let\olderow=\erow +\def\erow{\ht\cals@current@row=1.3cm \olderow} + +\begin{calstable} +\def\cals@framecs@width{.4pt} +\def\cals@framers@width{.4pt} +\colwidths{{1.3cm}} +\brow + \cell{a6} \cell{b6} \cell{c6} + \cell{d6} \cell{e6} \cell{f6} \erow +\brow + \cell{a5} \nullcell{ltb} \nullcell{tb} + \nullcell{rtb}\spancontent{b5, c5, d5} + \nullcell{ltr} \cell{f5} \erow +\brow + \cell{a4} \nullcell{ltr} \nullcell{tl} + \nullcell{tr} \nullcell{lr} \cell{f4} \erow +\brow + \cell{a3} \nullcell{lr} \nullcell{lb} + \nullcell{rb}\spancontent{c3, c4, d3, d4} + \nullcell{lrb}\spancontent{e3, e4, e5} + \cell{f3} \erow +\brow + \cell{a2} + \nullcell{lrb}\spancontent{b2, b3, b4} + \nullcell{ltb} \nullcell{tb} + \nullcell{tbr}\spancontent{c2, d2, e2} + \cell{f2} \erow +\brow + \cell{a1} \cell{b1} \cell{c1} + \cell{d1} \cell{e1} \cell{f1} \erow +\end{calstable} +\let\erow=\olderow diff --git a/Master/texmf-dist/doc/latex/cals/examples/biditable4.tex b/Master/texmf-dist/doc/latex/cals/examples/biditable4.tex new file mode 100644 index 00000000000..5f19645ddb1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cals/examples/biditable4.tex @@ -0,0 +1,32 @@ +\begin{calstable} +\colwidths{{1cm}{7cm}{1cm}} +\brow \cell{x} \cell{x} \cell{x} \erow +\brow \cell{x} \cell{ +\columnsep=0cm\relax +% Force multicols to regard our \leftskip +% by pretending that we are a list. +\@totalleftmargin=\cals@paddingL\relax +\begin{multicols}{2} + +\begin{calstable} +\alignR +\colwidths{{1.5cm}{1.5cm}} +\thead{\brow \cell{$n$}\cell{$n^2$} \erow} +\tfoot{\brow \cell{$n$}\cell{$n^2$} \erow} +\brow \cell{2} \cell{4} \erow +\brow \cell{3} \cell{9} \erow +\brow \cell{4} \cell{16} \erow +\brow \cell{5} \cell{25} \erow +\brow \cell{6} \cell{36} \erow +\tbreak{\break } +\brow \cell{7} \cell{49} \erow +\brow \cell{8} \cell{64} \erow +\brow \cell{9} \cell{81} \erow +\brow \cell{10} \cell{100} \erow +\brow \cell{11} \cell{121} \erow +\end{calstable} + +\end{multicols} +} \cell{x} \erow +\brow \cell{x} \cell{x} \cell{x} \erow +\end{calstable} diff --git a/Master/texmf-dist/doc/latex/cals/examples/demo.pdf b/Master/texmf-dist/doc/latex/cals/examples/demo.pdf Binary files differindex bb83c39ca9b..85b57ae3495 100644 --- a/Master/texmf-dist/doc/latex/cals/examples/demo.pdf +++ b/Master/texmf-dist/doc/latex/cals/examples/demo.pdf diff --git a/Master/texmf-dist/doc/latex/cals/examples/demo.tex b/Master/texmf-dist/doc/latex/cals/examples/demo.tex index 0e165fffa34..97834159c13 100644 --- a/Master/texmf-dist/doc/latex/cals/examples/demo.tex +++ b/Master/texmf-dist/doc/latex/cals/examples/demo.tex @@ -8,14 +8,6 @@ \usepackage{fancyvrb} \usepackage{multicol} \usepackage{cals} -\usepackage{pdfsync} - -% pdfsync setup. The command \pdfsyncstart is not defined yet, -% therefore I use "def" instead of "let". -\makeatletter -\let\oldcalstable=\calstable -\def\calstable{\oldcalstable\pdfsyncstop} -\def\cals@AtBeginCell{\pdfsyncstart} \newcommand\newcolumn{\vfil\penalty-10000 } \newcommand\small{\fontsize{9pt}{11pt}\selectfont} |