summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/combinedgraphics/test/combinedgraphics_test.tex
blob: 76cc1e220abb41a829e0f9a4e12be6e7d2e5c23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
%
% LaTeX test file for combinedgraphics package
%
% Copyright 2009,2011 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}}

  \section*{Test: \texttt{vecfirst=false,vecinclude=overwrite}}
  \noindent
  \fbox{\combinput{xfig325}}%
  \fbox{\input{gnuplot42}}\\
  \fbox{\includecombinedgraphics[vecfirst=false,vecinclude=overwrite]{xfig325}}%
  \fbox{\includecombinedgraphics[vecfirst=false,vecinclude=overwrite]{gnuplot42}}
\end{document}