summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xput/doc/example-book.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-20 03:01:10 +0000
committerNorbert Preining <norbert@preining.info>2022-12-20 03:01:10 +0000
commitb1e1420cbf53db6acb48b1a88e8b16904f238db2 (patch)
tree1c27c3466baeb4cc563a2097d412a1d13c344f51 /macros/latex/contrib/xput/doc/example-book.tex
parent8e3f2f40eaf97ca4b3f8023f4c58bdcd98f63e63 (diff)
CTAN sync 202212200301
Diffstat (limited to 'macros/latex/contrib/xput/doc/example-book.tex')
-rw-r--r--macros/latex/contrib/xput/doc/example-book.tex111
1 files changed, 111 insertions, 0 deletions
diff --git a/macros/latex/contrib/xput/doc/example-book.tex b/macros/latex/contrib/xput/doc/example-book.tex
new file mode 100644
index 0000000000..f770532e69
--- /dev/null
+++ b/macros/latex/contrib/xput/doc/example-book.tex
@@ -0,0 +1,111 @@
+%%
+%% Copyright (C) 2022 by Friedemann Bartels
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of
+%% LaTeX version 2008/05/04 or later.
+%%
+
+\documentclass[
+ draft,
+ twoside,
+ beginright,
+ % fanfold,
+ import,
+ optimize={quality=50, density=144}
+]{xput}
+
+\usepackage{lipsum}
+\usepackage{tgheros}
+\usepackage[T1]{fontenc}
+\renewcommand*\familydefault{\sfdefault}
+
+\pagewidth=200mm
+\pageheight=200mm
+\margin=20mm
+\innermargin=40mm
+\gutter=10mm
+\bleed=3mm
+\safetymargin=5mm
+\spinewidth=7mm
+
+\safezone
+
+\newbeforepage{primary}{
+ \setgrid[height=\margin, y=0mm]{{{}}}
+
+ \leftpage{
+ \text[center]{\thepage}
+ }
+
+ \rightpage{
+ \text[center]{\hspace*{\fill}\thepage}
+ }
+}
+\setbeforepage{primary}
+
+\begin{document}
+ \Large
+ \pagenumbering{roman}
+
+ \template[back cover,margin=0mm, inner margin=0mm]{f}{}
+
+ \page[front cover,color=white,page graphic=koepi, inner margin=\margin]{
+ \setgrid[width=100mm]{{{1}}}
+
+ \text[bottom]{
+ \fontsize{41.3mm}{46mm}\selectfont
+ \hskip -3mm
+ Berlin
+ \fontsize{7.5mm}{13mm}\selectfont%
+ \mbox{Photos by Friedemann Bartels}
+ }
+
+ \ifspine{
+ \setgrid[width=\spinewidth,x=-\spinewidth]{{{1}}}
+ \place{0 0 1 1}
+ \tikzgraphic{
+ \node[rotate=90] at (0.5\width,0.5\height){
+ \fontsize{4mm}{8mm}\selectfont
+ Xput\ \
+ };
+ }
+ }
+ }
+
+ \page{
+ \text{
+ \strut
+ \tableofcontents
+ }
+ }
+
+ \pagenumbering{arabic}
+
+ \setcounter{page}{0}
+ \page[before page=]{}
+
+ \page{
+ \text{
+ \strut
+ \section{Introduction}
+ \lipsum[1][1-7]
+ }
+ }
+
+ \newgraphic{koepi wide}{vpos=0.43, file=koepi}
+ \page[double, page graphic=koepi wide, before page=, color=white]{
+ \rightpage{
+ \text[bottom]{
+ \lipsum[1][8-10]
+ }
+ }
+ }
+
+\end{document} \ No newline at end of file