diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/cluttex/example |
Initial commit
Diffstat (limited to 'support/cluttex/example')
22 files changed, 388 insertions, 0 deletions
diff --git a/support/cluttex/example/README.md b/support/cluttex/example/README.md new file mode 100644 index 0000000000..c24ebc0ba9 --- /dev/null +++ b/support/cluttex/example/README.md @@ -0,0 +1,68 @@ +Example documents and How to process them +===== + +* `simple` + +```sh +$ cd simple +$ cluttex -e pdflatex main.tex +``` + +* `simple-ja` + +```sh +$ cd simple-ja +$ cluttex -e platex main-platex.tex +$ cluttex -e lualatex main-luatexja.tex +``` + +* `include` + +```sh +$ cd include +$ cluttex -e pdflatex main.tex +``` + +* `makeindex` + +```sh +$ cd makeindex +$ cluttex -e pdflatex --makeindex=makeindex main.tex +``` + +* `bibtex` + +```sh +$ cd bibtex +$ cluttex -e pdflatex --bibtex=bibtex main.tex +``` + +* `biblatex` + +```sh +$ cd biblatex +$ cluttex -e pdflatex --biber main.tex +``` + +* `empty` + +```sh +$ cd empty +$ cluttex -e pdflatex main.tex +``` + +Should print `[WARN] No pages of output.` + +* `minted` + +```sh +$ cd minted +$ cluttex -e pdflatex --shell-escape main.tex +``` + +* `epstopdf` + +```sh +$ cd epstopdf +$ cluttex -e pdflatex --change-directory main.tex +``` diff --git a/support/cluttex/example/biblatex/foo.bib b/support/cluttex/example/biblatex/foo.bib new file mode 100644 index 0000000000..5aaa58dacb --- /dev/null +++ b/support/cluttex/example/biblatex/foo.bib @@ -0,0 +1,14 @@ +@book{TeXbook, +author = "Donald E. Knuth", +title = "The {\TeX}book", +publisher = "Addison-Wesley", +address = "Reading, Massachusetts", +year = 1984 +} +@book{LaTeX-Lamport, +author = "Leslie Lamport", +title = "\LaTeX: A Document Preparation System", +publisher = "Addison-Wesley", +address = "Reading, Massachusetts", +year = 1994 +}
\ No newline at end of file diff --git a/support/cluttex/example/biblatex/main.tex b/support/cluttex/example/biblatex/main.tex new file mode 100644 index 0000000000..69ac565053 --- /dev/null +++ b/support/cluttex/example/biblatex/main.tex @@ -0,0 +1,8 @@ +\documentclass{article} +\usepackage[backend=biber]{biblatex} +\addbibresource{foo.bib} +\begin{document} +foo\cite{TeXbook} +\include{sub} +\printbibliography +\end{document} diff --git a/support/cluttex/example/biblatex/sub.tex b/support/cluttex/example/biblatex/sub.tex new file mode 100644 index 0000000000..02251b5c5c --- /dev/null +++ b/support/cluttex/example/biblatex/sub.tex @@ -0,0 +1 @@ +baz\cite{LaTeX-Lamport} diff --git a/support/cluttex/example/bibtex/baz.bib b/support/cluttex/example/bibtex/baz.bib new file mode 100644 index 0000000000..6c8a08e2cd --- /dev/null +++ b/support/cluttex/example/bibtex/baz.bib @@ -0,0 +1,7 @@ +@book{LaTeX-Lamport, +author = "Leslie Lamport", +title = "\LaTeX: A Document Preparation System", +publisher = "Addison-Wesley", +address = "Reading, Massachusetts", +year = 1994 +} diff --git a/support/cluttex/example/bibtex/foo.bib b/support/cluttex/example/bibtex/foo.bib new file mode 100644 index 0000000000..2d9dbed71e --- /dev/null +++ b/support/cluttex/example/bibtex/foo.bib @@ -0,0 +1,7 @@ +@book{TeXbook, +author = "Donald E. Knuth", +title = "The {\TeX}book", +publisher = "Addison-Wesley", +address = "Reading, Massachusetts", +year = 1984 +} diff --git a/support/cluttex/example/bibtex/main.tex b/support/cluttex/example/bibtex/main.tex new file mode 100644 index 0000000000..e5f288045f --- /dev/null +++ b/support/cluttex/example/bibtex/main.tex @@ -0,0 +1,7 @@ +\documentclass{article} +\begin{document} +foo\cite{TeXbook} +\include{sub} +\bibliographystyle{plain} +\bibliography{foo,baz} +\end{document} diff --git a/support/cluttex/example/bibtex/sub.tex b/support/cluttex/example/bibtex/sub.tex new file mode 100644 index 0000000000..02251b5c5c --- /dev/null +++ b/support/cluttex/example/bibtex/sub.tex @@ -0,0 +1 @@ +baz\cite{LaTeX-Lamport} diff --git a/support/cluttex/example/empty/main.tex b/support/cluttex/example/empty/main.tex new file mode 100644 index 0000000000..26047ba6ac --- /dev/null +++ b/support/cluttex/example/empty/main.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\begin{document} +\end{document} diff --git a/support/cluttex/example/epstopdf/drawing.eps b/support/cluttex/example/epstopdf/drawing.eps new file mode 100644 index 0000000000..8c986c52fa --- /dev/null +++ b/support/cluttex/example/epstopdf/drawing.eps @@ -0,0 +1,99 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: cairo 1.14.8 (http://cairographics.org) +%%CreationDate: Fri Dec 23 22:28:39 2016 +%%Pages: 1 +%%DocumentData: Clean7Bit +%%LanguageLevel: 2 +%%BoundingBox: 0 -1 150 131 +%%EndComments +%%BeginProlog +save +50 dict begin +/q { gsave } bind def +/Q { grestore } bind def +/cm { 6 array astore concat } bind def +/w { setlinewidth } bind def +/J { setlinecap } bind def +/j { setlinejoin } bind def +/M { setmiterlimit } bind def +/d { setdash } bind def +/m { moveto } bind def +/l { lineto } bind def +/c { curveto } bind def +/h { closepath } bind def +/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto + 0 exch rlineto 0 rlineto closepath } bind def +/S { stroke } bind def +/f { fill } bind def +/f* { eofill } bind def +/n { newpath } bind def +/W { clip } bind def +/W* { eoclip } bind def +/BT { } bind def +/ET { } bind def +/pdfmark where { pop globaldict /?pdfmark /exec load put } + { globaldict begin /?pdfmark /pop load def /pdfmark + /cleartomark load def end } ifelse +/BDC { mark 3 1 roll /BDC pdfmark } bind def +/EMC { mark /EMC pdfmark } bind def +/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def +/Tj { show currentpoint cairo_store_point } bind def +/TJ { + { + dup + type /stringtype eq + { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse + } forall + currentpoint cairo_store_point +} bind def +/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore + cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def +/Tf { pop /cairo_font exch def /cairo_font_matrix where + { pop cairo_selectfont } if } bind def +/Td { matrix translate cairo_font_matrix matrix concatmatrix dup + /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point + /cairo_font where { pop cairo_selectfont } if } bind def +/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def + cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def +/g { setgray } bind def +/rg { setrgbcolor } bind def +/d1 { setcachedevice } bind def +%%EndProlog +%%BeginSetup +%%EndSetup +%%Page: 1 1 +%%BeginPageSetup +%%PageBoundingBox: 0 -1 150 131 +%%EndPageSetup +q 0 -1 150 132 rectclip q +0 g +108.344 25.261 m 68.359 37.691 l 35.453 11.793 l 34.914 53.664 l 0.121 +76.957 l 39.773 90.406 l 51.172 130.695 l 76.219 97.14 l 118.059 98.75 l + 93.887 64.558 l h +108.344 25.261 m f +1 g +0.24 w +1 J +1 j +[] 0.0 d +4 M q 1 0 0 -1 0 130.816025 cm +108.344 105.555 m 68.359 93.125 l 35.453 119.023 l 34.914 77.152 l 0.121 + 53.859 l 39.773 40.41 l 51.172 0.121 l 76.219 33.676 l 118.059 32.066 l + 93.887 66.258 l h +108.344 105.555 m S Q +1 0 0 rg +149.488 29.836 m 149.488 13.425 136.184 0.121 119.773 0.121 c 103.363 0.121 + 90.059 13.425 90.059 29.836 c 90.059 46.246 103.363 59.55 119.773 59.55 + c 136.184 59.55 149.488 46.246 149.488 29.836 c h +149.488 29.836 m f +1 g +q 1 0 0 -1 0 130.816025 cm +149.488 100.98 m 149.488 117.391 136.184 130.695 119.773 130.695 c 103.363 + 130.695 90.059 117.391 90.059 100.98 c 90.059 84.57 103.363 71.266 119.773 + 71.266 c 136.184 71.266 149.488 84.57 149.488 100.98 c h +149.488 100.98 m S Q +Q Q +showpage +%%Trailer +end restore +%%EOF diff --git a/support/cluttex/example/epstopdf/fig/drawing2.eps b/support/cluttex/example/epstopdf/fig/drawing2.eps new file mode 100644 index 0000000000..8c986c52fa --- /dev/null +++ b/support/cluttex/example/epstopdf/fig/drawing2.eps @@ -0,0 +1,99 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: cairo 1.14.8 (http://cairographics.org) +%%CreationDate: Fri Dec 23 22:28:39 2016 +%%Pages: 1 +%%DocumentData: Clean7Bit +%%LanguageLevel: 2 +%%BoundingBox: 0 -1 150 131 +%%EndComments +%%BeginProlog +save +50 dict begin +/q { gsave } bind def +/Q { grestore } bind def +/cm { 6 array astore concat } bind def +/w { setlinewidth } bind def +/J { setlinecap } bind def +/j { setlinejoin } bind def +/M { setmiterlimit } bind def +/d { setdash } bind def +/m { moveto } bind def +/l { lineto } bind def +/c { curveto } bind def +/h { closepath } bind def +/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto + 0 exch rlineto 0 rlineto closepath } bind def +/S { stroke } bind def +/f { fill } bind def +/f* { eofill } bind def +/n { newpath } bind def +/W { clip } bind def +/W* { eoclip } bind def +/BT { } bind def +/ET { } bind def +/pdfmark where { pop globaldict /?pdfmark /exec load put } + { globaldict begin /?pdfmark /pop load def /pdfmark + /cleartomark load def end } ifelse +/BDC { mark 3 1 roll /BDC pdfmark } bind def +/EMC { mark /EMC pdfmark } bind def +/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def +/Tj { show currentpoint cairo_store_point } bind def +/TJ { + { + dup + type /stringtype eq + { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse + } forall + currentpoint cairo_store_point +} bind def +/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore + cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def +/Tf { pop /cairo_font exch def /cairo_font_matrix where + { pop cairo_selectfont } if } bind def +/Td { matrix translate cairo_font_matrix matrix concatmatrix dup + /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point + /cairo_font where { pop cairo_selectfont } if } bind def +/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def + cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def +/g { setgray } bind def +/rg { setrgbcolor } bind def +/d1 { setcachedevice } bind def +%%EndProlog +%%BeginSetup +%%EndSetup +%%Page: 1 1 +%%BeginPageSetup +%%PageBoundingBox: 0 -1 150 131 +%%EndPageSetup +q 0 -1 150 132 rectclip q +0 g +108.344 25.261 m 68.359 37.691 l 35.453 11.793 l 34.914 53.664 l 0.121 +76.957 l 39.773 90.406 l 51.172 130.695 l 76.219 97.14 l 118.059 98.75 l + 93.887 64.558 l h +108.344 25.261 m f +1 g +0.24 w +1 J +1 j +[] 0.0 d +4 M q 1 0 0 -1 0 130.816025 cm +108.344 105.555 m 68.359 93.125 l 35.453 119.023 l 34.914 77.152 l 0.121 + 53.859 l 39.773 40.41 l 51.172 0.121 l 76.219 33.676 l 118.059 32.066 l + 93.887 66.258 l h +108.344 105.555 m S Q +1 0 0 rg +149.488 29.836 m 149.488 13.425 136.184 0.121 119.773 0.121 c 103.363 0.121 + 90.059 13.425 90.059 29.836 c 90.059 46.246 103.363 59.55 119.773 59.55 + c 136.184 59.55 149.488 46.246 149.488 29.836 c h +149.488 29.836 m f +1 g +q 1 0 0 -1 0 130.816025 cm +149.488 100.98 m 149.488 117.391 136.184 130.695 119.773 130.695 c 103.363 + 130.695 90.059 117.391 90.059 100.98 c 90.059 84.57 103.363 71.266 119.773 + 71.266 c 136.184 71.266 149.488 84.57 149.488 100.98 c h +149.488 100.98 m S Q +Q Q +showpage +%%Trailer +end restore +%%EOF diff --git a/support/cluttex/example/epstopdf/main.tex b/support/cluttex/example/epstopdf/main.tex new file mode 100644 index 0000000000..a0055359d5 --- /dev/null +++ b/support/cluttex/example/epstopdf/main.tex @@ -0,0 +1,9 @@ +\documentclass{article} +\usepackage{graphicx} +\usepackage{epstopdf} +\begin{document} +\includegraphics{drawing.eps} +%\includegraphics{draw ing.eps} +\graphicspath{{fig/}} +\includegraphics{drawing2.eps} +\end{document} diff --git a/support/cluttex/example/include/main.tex b/support/cluttex/example/include/main.tex new file mode 100644 index 0000000000..3e3f3f62ab --- /dev/null +++ b/support/cluttex/example/include/main.tex @@ -0,0 +1,12 @@ +\documentclass{article} +\begin{document} +\tableofcontents + +Hello! +\ref{first section} +\ref{second section} +\input{sub} +\include{sub2} +\include{path/to/file} + +\end{document} diff --git a/support/cluttex/example/include/path/to/file.tex b/support/cluttex/example/include/path/to/file.tex new file mode 100644 index 0000000000..324cbbb165 --- /dev/null +++ b/support/cluttex/example/include/path/to/file.tex @@ -0,0 +1,3 @@ +\section{Third section} +\label{third section} +To be written... diff --git a/support/cluttex/example/include/sub.tex b/support/cluttex/example/include/sub.tex new file mode 100644 index 0000000000..ef7d3fe7cb --- /dev/null +++ b/support/cluttex/example/include/sub.tex @@ -0,0 +1,3 @@ +\section{First section} +\label{first section} +This is a sample document diff --git a/support/cluttex/example/include/sub2.tex b/support/cluttex/example/include/sub2.tex new file mode 100644 index 0000000000..1c69a279cc --- /dev/null +++ b/support/cluttex/example/include/sub2.tex @@ -0,0 +1,3 @@ +\section{Second section} +\label{second section} +...to test subfiles. diff --git a/support/cluttex/example/makeindex/main.tex b/support/cluttex/example/makeindex/main.tex new file mode 100644 index 0000000000..81889db641 --- /dev/null +++ b/support/cluttex/example/makeindex/main.tex @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{makeidx} +\usepackage{hyperref} +\makeindex +\begin{document} +\section{Polynomial} +Polynomial\index{polynomial} + +\section{Resultant} +Resultant\index{resultant} + +%GCD\index{GCD} + +\printindex +\end{document} diff --git a/support/cluttex/example/minted/file.lua b/support/cluttex/example/minted/file.lua new file mode 100644 index 0000000000..d452436fe5 --- /dev/null +++ b/support/cluttex/example/minted/file.lua @@ -0,0 +1,3 @@ +function greet() + print("Goodbye world!") +end diff --git a/support/cluttex/example/minted/main.tex b/support/cluttex/example/minted/main.tex new file mode 100644 index 0000000000..bbf231b24d --- /dev/null +++ b/support/cluttex/example/minted/main.tex @@ -0,0 +1,11 @@ +\documentclass{article} +\usepackage{minted} +\begin{document} +\begin{minted}{lua} +function greet() + print("Hello world!") +end +\end{minted} + +\inputminted{lua}{file.lua} +\end{document} diff --git a/support/cluttex/example/simple-ja/main-luatexja.tex b/support/cluttex/example/simple-ja/main-luatexja.tex new file mode 100644 index 0000000000..30f13b58db --- /dev/null +++ b/support/cluttex/example/simple-ja/main-luatexja.tex @@ -0,0 +1,6 @@ +\documentclass{ltjsarticle} +\usepackage{luatexja-ruby} +\begin{document} +Hello world! +こんにちは、\ruby{世界}{せかい}。さようなら、\ruby{進捗}{しんちょく}。 +\end{document} diff --git a/support/cluttex/example/simple-ja/main-platex.tex b/support/cluttex/example/simple-ja/main-platex.tex new file mode 100644 index 0000000000..79044aec70 --- /dev/null +++ b/support/cluttex/example/simple-ja/main-platex.tex @@ -0,0 +1,5 @@ +\documentclass{jsarticle} +\begin{document} +Hello world! +こんにちは、世界。さようなら、進捗。 +\end{document} diff --git a/support/cluttex/example/simple/main.tex b/support/cluttex/example/simple/main.tex new file mode 100644 index 0000000000..6b879104a2 --- /dev/null +++ b/support/cluttex/example/simple/main.tex @@ -0,0 +1,4 @@ +\documentclass{article} +\begin{document} +Hello world! +\end{document} |