2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/printer-testpage/printer-testpage.tex

40 lines
1.7 KiB
TeX
Raw Normal View History

\documentclass[a4paper]{article}
\usepackage[a4paper,margin=0cm,left=-0.8cm,showframe]{geometry}
2016-03-07 08:39:24 +01:00
\usepackage[rgb]{xcolor}
\usepackage{tikz}
\usetikzlibrary{shadings}
\begin{document}
\begin{tikzpicture}
\begin{scope}[yshift=2cm]
\draw[shading=color wheel] (0,0) rectangle (\paperwidth,10);
\draw[shading=axis,left color=black, right color=white,minimum width=\paperwidth] (0,10) rectangle (\paperwidth,12);
2016-03-07 08:39:24 +01:00
\end{scope}
\begin{scope}[yshift=14.3cm]
\draw[rectangle,fill=cyan] (0,3) rectangle (\paperwidth,4) node[pos=.5,text=white] {\Huge \textbf{Cyan}};
\draw[rectangle,fill=magenta] (0,2) rectangle (\paperwidth,3) node[pos=.5,text=white] {\Huge \textbf{Magenta}};
\draw[rectangle,fill=yellow] (0,1) rectangle (\paperwidth,2) node[pos=.5,text=white] {\Huge \textbf{Yellow}};
\draw[rectangle,fill=black] (0,0) rectangle (\paperwidth,1) node[pos=.5,text=white] {\Huge \textbf{Black}};
2016-03-07 08:39:24 +01:00
\end{scope}
\begin{scope}[yshift=19.0cm]
2016-03-07 08:39:24 +01:00
\foreach \x in {1,2,...,21}
\draw [color=red, line width=1mm](\x cm,0cm) -- (\x cm,1.5cm)
node[color=red, rotate=90, anchor=west] {\pgfmathprint{int(\x)}};
\foreach \x in {0,1,...,210}
\draw [color=red, line width=0.1mm](\x mm,0cm) -- (\x mm,1.0cm)
node[color=red, rotate=90, anchor=west] {};
\draw[line width=5mm](0cm, 0cm) -- (22,0cm);
\draw[line width=0.1mm](0cm, 0.5cm) -- (22,0.5cm);
2016-03-07 08:39:24 +01:00
\end{scope}
\draw [color=red, line width=1mm](2cm,0 cm) -- (3.5cm,0 cm)
node[color=red, anchor=west] {};
\foreach \y in {1,2,...,29}
\draw [color=red, line width=1mm](2cm,\y cm) -- (3.5cm,\y cm)
node[color=red, anchor=west] {\pgfmathprint{int(\y)}};
\end{tikzpicture}
\end{document}