summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ctable/doc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/ctable/doc
Initial commit
Diffstat (limited to 'macros/latex/contrib/ctable/doc')
-rw-r--r--macros/latex/contrib/ctable/doc/01a2
-rw-r--r--macros/latex/contrib/ctable/doc/01b11
-rw-r--r--macros/latex/contrib/ctable/doc/02k3
-rw-r--r--macros/latex/contrib/ctable/doc/02l4
-rw-r--r--macros/latex/contrib/ctable/doc/02m4
-rw-r--r--macros/latex/contrib/ctable/doc/03a3
-rw-r--r--macros/latex/contrib/ctable/doc/03b4
-rw-r--r--macros/latex/contrib/ctable/doc/04a4
-rw-r--r--macros/latex/contrib/ctable/doc/04b5
-rw-r--r--macros/latex/contrib/ctable/doc/05a3
-rw-r--r--macros/latex/contrib/ctable/doc/05b5
-rw-r--r--macros/latex/contrib/ctable/doc/05c6
-rw-r--r--macros/latex/contrib/ctable/doc/06a3
-rw-r--r--macros/latex/contrib/ctable/doc/06b3
-rw-r--r--macros/latex/contrib/ctable/doc/07a5
-rw-r--r--macros/latex/contrib/ctable/doc/07b5
-rw-r--r--macros/latex/contrib/ctable/doc/08a3
-rw-r--r--macros/latex/contrib/ctable/doc/08b5
-rw-r--r--macros/latex/contrib/ctable/doc/09b7
-rw-r--r--macros/latex/contrib/ctable/doc/10a5
-rw-r--r--macros/latex/contrib/ctable/doc/10b8
-rw-r--r--macros/latex/contrib/ctable/doc/12a7
-rw-r--r--macros/latex/contrib/ctable/doc/12b11
-rw-r--r--macros/latex/contrib/ctable/doc/13a4
-rw-r--r--macros/latex/contrib/ctable/doc/13b6
-rw-r--r--macros/latex/contrib/ctable/doc/13c6
-rw-r--r--macros/latex/contrib/ctable/doc/14a8
-rwxr-xr-xmacros/latex/contrib/ctable/doc/doit49
-rw-r--r--macros/latex/contrib/ctable/doc/lion.pngbin0 -> 32381 bytes
-rw-r--r--macros/latex/contrib/ctable/doc/penguin.jpgbin0 -> 2789 bytes
30 files changed, 189 insertions, 0 deletions
diff --git a/macros/latex/contrib/ctable/doc/01a b/macros/latex/contrib/ctable/doc/01a
new file mode 100644
index 0000000000..0e80db425c
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/01a
@@ -0,0 +1,2 @@
+\ctable[caption = a table]{c}{
+}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/01b b/macros/latex/contrib/ctable/doc/01b
new file mode 100644
index 0000000000..798f951413
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/01b
@@ -0,0 +1,11 @@
+\newcommand{\F}[1]{
+ \includegraphics[width=\hsize]{#1}
+}
+\newcolumntype{H}[1]{>{\hsize=#1\hsize}X}
+\ctable[
+ caption = a figure,
+ figure, botcap,
+ width=.4\hsize,
+]{H{.4}H{.6}}{}{\FL
+ \F{penguin}& \F{lion}\LL
+}
diff --git a/macros/latex/contrib/ctable/doc/02k b/macros/latex/contrib/ctable/doc/02k
new file mode 100644
index 0000000000..056aba4b8b
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/02k
@@ -0,0 +1,3 @@
+\ctable[
+ caption = Centered,
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/02l b/macros/latex/contrib/ctable/doc/02l
new file mode 100644
index 0000000000..33d9df6fe6
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/02l
@@ -0,0 +1,4 @@
+\ctable[
+ caption = Left,
+ left
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/02m b/macros/latex/contrib/ctable/doc/02m
new file mode 100644
index 0000000000..d5beb91b4d
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/02m
@@ -0,0 +1,4 @@
+\ctable[
+ caption = Right,
+ right
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/03a b/macros/latex/contrib/ctable/doc/03a
new file mode 100644
index 0000000000..4b3fb78340
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/03a
@@ -0,0 +1,3 @@
+\ctable[
+ caption = Caption,
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/03b b/macros/latex/contrib/ctable/doc/03b
new file mode 100644
index 0000000000..f374419a3f
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/03b
@@ -0,0 +1,4 @@
+\ctable[
+ caption = Caption,
+captionskip = 1ex,
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/04a b/macros/latex/contrib/ctable/doc/04a
new file mode 100644
index 0000000000..08cdac9a4a
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/04a
@@ -0,0 +1,4 @@
+\ctable[
+ caption = Caption,
+ botcap
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/04b b/macros/latex/contrib/ctable/doc/04b
new file mode 100644
index 0000000000..13139d781b
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/04b
@@ -0,0 +1,5 @@
+\ctable[
+ caption = Caption,
+captionskip = -2ex,
+ botcap
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/05a b/macros/latex/contrib/ctable/doc/05a
new file mode 100644
index 0000000000..525352a3d1
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/05a
@@ -0,0 +1,3 @@
+\ctable[
+ caption = a lengthy caption
+]{c}{}{\FL row1\LL}
diff --git a/macros/latex/contrib/ctable/doc/05b b/macros/latex/contrib/ctable/doc/05b
new file mode 100644
index 0000000000..9d39045b5f
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/05b
@@ -0,0 +1,5 @@
+\ctable[
+ mincapwidth = 40mm,
+ caption = a lengthy caption
+]{c}{\tnote{this is a footnote}}
+{\FL row1\tmark\LL}
diff --git a/macros/latex/contrib/ctable/doc/05c b/macros/latex/contrib/ctable/doc/05c
new file mode 100644
index 0000000000..494bd3593a
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/05c
@@ -0,0 +1,6 @@
+\ctable[
+ mincapwidth = 40mm,
+ footerwidth,
+ caption = a lengthy caption
+]{c}{\tnote{footnote}}
+{\FL row1\tmark\LL}
diff --git a/macros/latex/contrib/ctable/doc/06a b/macros/latex/contrib/ctable/doc/06a
new file mode 100644
index 0000000000..53b78d2a75
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/06a
@@ -0,0 +1,3 @@
+\ctable[framerule=.1pt, maxwidth=3cm
+]{lX}{}{\FL 1 & first row\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/06b b/macros/latex/contrib/ctable/doc/06b
new file mode 100644
index 0000000000..e333228401
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/06b
@@ -0,0 +1,3 @@
+\ctable[framerule=.1pt, maxwidth=3cm
+]{lX}{}{\FL 1 & test\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/07a b/macros/latex/contrib/ctable/doc/07a
new file mode 100644
index 0000000000..d0e5e9d9ca
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/07a
@@ -0,0 +1,5 @@
+\ctable{c}{
+ \tnote{First footnote}
+ \tnote[b]{Second footnote}
+}{\FL Table's\tmark\ first\tmark[b]\ row\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/07b b/macros/latex/contrib/ctable/doc/07b
new file mode 100644
index 0000000000..4adcd36845
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/07b
@@ -0,0 +1,5 @@
+\ctable[nosuper]{c}{
+ \tnote[a.]{First footnote}
+ \tnote[b.]{Second footnote}
+}{\FL Table's\tmark\ first\tmark[b]\ row\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/08a b/macros/latex/contrib/ctable/doc/08a
new file mode 100644
index 0000000000..e79af4a90f
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/08a
@@ -0,0 +1,3 @@
+\ctable[
+ caption = Frame,
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/08b b/macros/latex/contrib/ctable/doc/08b
new file mode 100644
index 0000000000..10e78f42d0
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/08b
@@ -0,0 +1,5 @@
+\ctable[
+ caption = Frame,
+ framerule = 2pt,
+ framefg = .8 0 0
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/09b b/macros/latex/contrib/ctable/doc/09b
new file mode 100644
index 0000000000..80270e12ea
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/09b
@@ -0,0 +1,7 @@
+\ctable[
+ caption = Frame,
+ framerule = 1pt,
+ framefg = .8 0 0,
+ framesep=10pt
+]{c}{}{\FL Table's first row\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/10a b/macros/latex/contrib/ctable/doc/10a
new file mode 100644
index 0000000000..e9b244cb77
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/10a
@@ -0,0 +1,5 @@
+\ctable[
+ caption = Frame,
+ framebg = 1 1 0,
+ framesep=10pt
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/10b b/macros/latex/contrib/ctable/doc/10b
new file mode 100644
index 0000000000..386b009a93
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/10b
@@ -0,0 +1,8 @@
+\ctable[
+ caption = Frame,
+ framerule = 2pt,
+ framesep = 5pt,
+ framebg = 1 1 0,
+ framefg = 1 0 0,
+ framesep=10pt
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/12a b/macros/latex/contrib/ctable/doc/12a
new file mode 100644
index 0000000000..5ea6601073
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/12a
@@ -0,0 +1,7 @@
+\ctable{c}{
+ \tnote{First note}
+ \tnote[b]{Second note}
+ \tnote[c]{Third note}
+}{\FL Table's\tmark\ first\tmark[b]\ row
+ with footnotes\tmark[c]\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/12b b/macros/latex/contrib/ctable/doc/12b
new file mode 100644
index 0000000000..a1e2fd49a5
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/12b
@@ -0,0 +1,11 @@
+\ctable[notespar]{c}{
+ \tnote[a]{First note.}
+ \tnote[b]{Second note.}
+ \tnote[c]{Third note, this one is a
+ little longer and forces a
+ new line at the end.\\}
+ \tnote[d]{And here is e very long note:
+ \input{thuan}}
+}{\FL Table's\tmark\ first\tmark[b]\ row
+ with footnotes\tmark[c]\LL}
+
diff --git a/macros/latex/contrib/ctable/doc/13a b/macros/latex/contrib/ctable/doc/13a
new file mode 100644
index 0000000000..accb3b37bb
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/13a
@@ -0,0 +1,4 @@
+\ctable[
+ caption = Caption,
+ mincapwidth = 50mm,
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/13b b/macros/latex/contrib/ctable/doc/13b
new file mode 100644
index 0000000000..d57b0659cb
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/13b
@@ -0,0 +1,6 @@
+\addtocounter{table}{1} % remove for source
+\ctable[
+ caption = Caption,
+ mincapwidth = 50mm,
+ continued
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/13c b/macros/latex/contrib/ctable/doc/13c
new file mode 100644
index 0000000000..71feba3cb6
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/13c
@@ -0,0 +1,6 @@
+\addtocounter{table}{1} %remove for source
+\ctable[
+ caption = Caption,
+ mincapwidth = 50mm,
+ continued = \textit{(contd)}
+]{c}{}{\FL Table's first row\LL}
diff --git a/macros/latex/contrib/ctable/doc/14a b/macros/latex/contrib/ctable/doc/14a
new file mode 100644
index 0000000000..15745b30c9
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/14a
@@ -0,0 +1,8 @@
+\ctable[
+ caption=Doinside,
+ doinside = \scriptsize]{l}{
+}{\FL
+ This table has all rows \NN
+ set at script size \LL
+}
+
diff --git a/macros/latex/contrib/ctable/doc/doit b/macros/latex/contrib/ctable/doc/doit
new file mode 100755
index 0000000000..e9d627786d
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/doit
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+# doit - make all or some example picture sets.
+
+# Usage: doit # make them all
+# doit nnx # make nnx.pdf and snnx.pdf
+#
+# pictures are numbered 01, 02, etc.
+# nn[a-z] has code to typeset a \ctable; for nn[k-z] page layout will be shown
+# for each nn[a-z] two pdfs are generated:
+# nn[a-z].pdf for the ctable picture
+# and snn[a-z].pdf for the source code verbatim.
+# The prefix (s) for source verbatims and (empty) for result files is set by PRE
+set=${1:-[0-9][0-9][a-z]}
+for j in $set; do
+ # source verbatim
+ { cat <<-'EOD'
+ \documentclass{article}
+ \usepackage[a4paper,margin=20mm,noheadfoot]{geometry}
+ \pagestyle{empty}
+ \begin{document}\ttfamily
+ \fontsize{10}{12 pt}\selectfont
+ \begin{verbatim}
+ EOD
+ grep -v "remove from source" $j
+ cat <<-'EOD'
+ \end{verbatim}
+ \end{document}
+ EOD
+ } >s$j.tex
+
+ mk --noprint --noview s$j.tex >/dev/null && mk -c s$j
+ pdfcrop s$j.pdf s$j.pdf >& /dev/null
+ # result
+ { echo '\documentclass[twoside]{article}'
+ [[ $j =~ [k-z] ]] && echo '\usepackage[papersize={56mm,40mm},showframe,margin=1mm,noheadfoot]{geometry}'
+ cat <<-'EOD'
+ \usepackage{ctable}
+ \usepackage{txfonts}
+ \pagestyle{empty}
+ \parindent0pt
+ \begin{document}
+ EOD
+ cat $j
+ echo '\end{document}'
+ } > $j.tex
+ mk --noprint --noview $j.tex >/dev/null && mk -c $j
+ pdfcrop $j.pdf $j.pdf >& /dev/null
+done
diff --git a/macros/latex/contrib/ctable/doc/lion.png b/macros/latex/contrib/ctable/doc/lion.png
new file mode 100644
index 0000000000..0026477896
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/lion.png
Binary files differ
diff --git a/macros/latex/contrib/ctable/doc/penguin.jpg b/macros/latex/contrib/ctable/doc/penguin.jpg
new file mode 100644
index 0000000000..342ccda220
--- /dev/null
+++ b/macros/latex/contrib/ctable/doc/penguin.jpg
Binary files differ