diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex b/Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex new file mode 100644 index 00000000000..4b904148c36 --- /dev/null +++ b/Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex @@ -0,0 +1,120 @@ +% +% LaTeX test file for combinedgraphics package +% +% Copyright 2009 Christian Schneider <software(at)chschneider(dot)eu> +% +% This file is part of combinedgraphics. +% +% combinedgraphics is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License version 3 as +% published by the Free Software Foundation, not any later version. +% +% combinedgraphics is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with combinedgraphics. If not, see <http://www.gnu.org/licenses/>. +% +% WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS! +% + +\documentclass[DIV12]{scrartcl} + +\usepackage{combinedgraphics} + +\newcommand*\mycolor{\color{blue}} +\newcommand*\myfont{\bfseries\Large} +\newcommand*\combinput[1]{% + \begin{picture}(0,0)% + \includegraphics{#1}% + \end{picture}% + \input{#1}% +} + +\begin{document} + \section*{Defaults} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics{xfig325}}% + \fbox{\includecombinedgraphics{gnuplot42}} + + \section*{Test: \texttt{textfont} and \texttt{textcolor}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[textfont=\myfont,textcolor=\mycolor]{xfig325}}% + \fbox{\includecombinedgraphics[textfont=\myfont,textcolor=\mycolor]{gnuplot42}} + + \section*{Test: \texttt{vecscale=1.2}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[vecscale=1.2]{xfig325}}% + \fbox{\includecombinedgraphics[vecscale=1.2]{gnuplot42}} + + \section*{Test: \texttt{vecfile}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[vecfile=gnuplot42]{xfig325}}% + \fbox{\includecombinedgraphics[vecfile=xfig325]{gnuplot42}} + + \section*{Test: \texttt{vecinclude=false}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[vecinclude=false]{xfig325}}% + \fbox{\includecombinedgraphics[vecinclude=false]{gnuplot42}} + + \section*{Test: \texttt{vecinclude=overwrite}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[vecinclude=overwrite]{xfig325}}% + \fbox{\includecombinedgraphics[vecinclude=overwrite]{gnuplot42}} + + \section*{Test: \texttt{angle=90}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[angle=90]{xfig325}}% + \fbox{\includecombinedgraphics[angle=90]{gnuplot42}} + + \section*{Test: \texttt{scale=0.8}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[scale=0.8]{xfig325}}% + \fbox{\includecombinedgraphics[scale=0.8]{gnuplot42}} + + \section*{Test: \texttt{hscale=1.2,vscale=0.8}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[hscale=1.2,vscale=0.8]{xfig325}}% + \fbox{\includecombinedgraphics[hscale=1.2,vscale=0.8]{gnuplot42}} + + \section*{Test: \texttt{width=0.49\textbackslash textwidth,height=5cm}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[width=0.49\textwidth,height=5cm]{xfig325}}% + \fbox{\includecombinedgraphics[width=0.49\textwidth,height=5cm]{gnuplot42}} + + \section*{Test: \texttt{width=0.49\textbackslash textwidth,keepaspectratio}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[width=0.49\textwidth,keepaspectratio]{xfig325}}% + \fbox{\includecombinedgraphics[width=0.49\textwidth,keepaspectratio]{gnuplot42}} + + \section*{Test: \texttt{angle=30,scale=0.75,angle=15}} + \noindent + \fbox{\combinput{xfig325}}% + \fbox{\input{gnuplot42}}\\ + \fbox{\includecombinedgraphics[angle=30,scale=0.75,angle=15]{xfig325}}% + \fbox{\includecombinedgraphics[angle=30,scale=0.75,angle=15]{gnuplot42}} +\end{document} |