| 1 |
% This file supplies Figure Tools: MiniPlot ver 0.0.2 |
| 2 |
% (C) Tobias Wahl - 2001 |
| 3 |
% |
| 4 |
% Caution: Mind the global variables created! |
| 5 |
% |
| 6 |
|
| 7 |
%------------------------------------------------------------------------ |
| 8 |
% Contents of Commands: |
| 9 |
% |
| 10 |
% \includeEps[htpb]{path}{caption}{label}{scale factor for eps} % include if plotFigures = 1 |
| 11 |
% \includeEpsNow[htpb]{path}{caption}{label}{scale factor for eps} % includes it even though plotFigures = 0 |
| 12 |
% |
| 13 |
% \standardGraphScale % sets scale of standard graphs = 1, can be redefined to change scale |
| 14 |
% \includeStandardGraph[htpb]{path}{caption}{label} % include if plotFigures = 1 |
| 15 |
% \includeStandardGraphNow[htpb]{path}{caption} % includes it even though plotFigures = 0 |
| 16 |
% with those commands you should include your standard graphs in eps-format |
| 17 |
% which can then be centralized scaled. These could be graphs created by MathsPiC |
| 18 |
% |
| 19 |
% \includePicTeX[htpb]{path}{caption}{label} % include if plotFigures = 1 |
| 20 |
% \includePicTeXNow[htpb]{path}{caption}{label} % includes it even though plotFigures = 0 |
| 21 |
% |
| 22 |
% |
| 23 |
% \includeEpsWrap[nar. lin.]{position}{path}{caption}{label}{scale factor for eps} % include if plotFigures = 1 |
| 24 |
% \includeEpsWrapNow[nar. lin.]{position}{caption}{label}{scale factor for eps} % includes it even though plotFigures = 0 |
| 25 |
% % nar. lin. = narrow lines = see wrapfig documentation |
| 26 |
% % position = l,r,... = see wrapfig documentation |
| 27 |
% |
| 28 |
% |
| 29 |
% |
| 30 |
% |
| 31 |
% |
| 32 |
% |
| 33 |
% |
| 34 |
% |
| 35 |
% |
| 36 |
|
| 37 |
%------------------------------------------------------------------------ |
| 38 |
% Contents of Environments: |
| 39 |
% |
| 40 |
% |
| 41 |
% |
| 42 |
% |
| 43 |
% |
| 44 |
% |
| 45 |
% |
| 46 |
% |
| 47 |
% |
| 48 |
% |
| 49 |
% |
| 50 |
% |
| 51 |
% |
| 52 |
|
| 53 |
|
| 54 |
%------------------------------------------------------------------------ |
| 55 |
% Global Variables: |
| 56 |
% |
| 57 |
% |
| 58 |
% plotFigures % 0 or 1 |
| 59 |
% |
| 60 |
% plotGraphs % 0 or 1 |
| 61 |
% |
| 62 |
% |
| 63 |
% |
| 64 |
% |
| 65 |
% |
| 66 |
% |
| 67 |
% |
| 68 |
|
| 69 |
%======================================================================== |
| 70 |
% PACKAGE START |
| 71 |
|
| 72 |
\NeedsTeXFormat{LaTeX2e} |
| 73 |
\ProvidesPackage{miniplot} |
| 74 |
|
| 75 |
\RequirePackage{ifthen} |
| 76 |
\RequirePackage{calc} |
| 77 |
\RequirePackage{graphicx} |
| 78 |
\RequirePackage{epsfig} |
| 79 |
|
| 80 |
|
| 81 |
% \RequirePackage{wrapfig} % would be nice to have it |
| 82 |
% \RequirePackage{subfigure} % would be nice to have it |
| 83 |
% \RequirePackage{rotfloat} % would be nice to have it |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
%======================================================================== |
| 90 |
% GENERAL |
| 91 |
|
| 92 |
%\newcommand{\miniplot}{MiniPlot\xspace} |
| 93 |
\newcommand{\miniplot}{MiniPlot\hspace{0pt}} |
| 94 |
|
| 95 |
|
| 96 |
%---------------------------------------------- |
| 97 |
% \pointless{length in pt} % \myLength = 0.5pt, \pointless{\myLength} -> \mylength = 0.5 |
| 98 |
% % creates macro (#1) using length (#2), Provided by Robin Fairbairns |
| 99 |
|
| 100 |
\makeatletter |
| 101 |
\def\pointless#1#2{\edef#1{\strip@pt#2}} |
| 102 |
\makeatother |
| 103 |
|
| 104 |
|
| 105 |
%---------------------------------------------- |
| 106 |
% \doextractminiplota{figures/file} -> file |
| 107 |
% extract filename from path, from Peter Schmitt |
| 108 |
|
| 109 |
\def\doextractminiplotpath #1/#2\\{\ifx|#2|#1\else\doextractminiplotpath#2\\\fi} |
| 110 |
\def\extractminiplotpath #1{\doextractminiplotpath#1/\\} |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
%---------------------------------------------- |
| 115 |
% \begin{centerlineenv} |
| 116 |
% \centerline command for use in environment form, by Dan Luecking |
| 117 |
|
| 118 |
\newenvironment{centerlineenv}% |
| 119 |
{\par\hbox to \linewidth\bgroup\hss\ignorespaces}% |
| 120 |
{\unskip\hss\egroup\par\ignorespaces}% |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
%======================================================================== |
| 126 |
% FIGURE SPECIFIC |
| 127 |
|
| 128 |
|
| 129 |
\newlength{\figWidth} % width of eps figure to include |
| 130 |
\newlength{\figHeight} % height of eps figure to include |
| 131 |
|
| 132 |
\newlength{\figTabWidth} % width of table to include in frame as big as the eps figure |
| 133 |
\newlength{\figTabMiddle} % height in the frame where the table middle is placed |
| 134 |
|
| 135 |
|
| 136 |
\newlength{\captionHeight} % measures the height of the caption |
| 137 |
\newlength{\captionSpace} % provides the space available for the caption, |
| 138 |
% if \captionSpace < \captionHeight then the caption will not be plotted |
| 139 |
% the calculation of this variable is not very sophisticated and further work needs to be done |
| 140 |
|
| 141 |
\newlength{\extraWrapWidth} % used to give wraped figures extra space on the side |
| 142 |
\setlength{\extraWrapWidth}{2mm} % default value = 2mm, can be redefined in text |
| 143 |
|
| 144 |
\newlength{\aboveWrapFigureSpace} % determines the extra space above the wraped figure to the top |
| 145 |
\setlength{\aboveWrapFigureSpace}{0mm} |
| 146 |
|
| 147 |
|
| 148 |
\newlength{\wrapFigOverhangDefault} % set wrap figures overhang default value |
| 149 |
\setlength{\wrapFigOverhangDefault}{0mm} |
| 150 |
|
| 151 |
|
| 152 |
\newcommand{\standardGraphScale}{1} % This value specifies the scaling factor by which the standard graph is scaled |
| 153 |
|
| 154 |
\newcounter{scaleToStandardFigureWidth} % 1 = scales figure to \myStandardFigureWidth |
| 155 |
\setcounter{scaleToStandardFigureWidth}{1} |
| 156 |
|
| 157 |
\newcounter{isFirstStandardFigure} % used as a counter to determine if the current figure is the first standard figure to set the scaling factor accordingly |
| 158 |
\setcounter{isFirstStandardFigure}{1} |
| 159 |
|
| 160 |
|
| 161 |
\newcounter{scaleFigureIndividual} % whether to use the first figure to scale the remaining ones or to scale each figure individualy |
| 162 |
\setcounter{scaleFigureIndividual}{1} |
| 163 |
|
| 164 |
\newlength{\frameBoxPenalty} % accounts for the extra space needed by drwing the framebox around the picture environment |
| 165 |
\setlength{\frameBoxPenalty}{2.4mm} |
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
% SUBFIGURE |
| 171 |
|
| 172 |
\newlength{\myStandardFigureWidth} % This is suppoded to be width all standard figures should have |
| 173 |
\setlength{\myStandardFigureWidth}{\linewidth} % sets the width of all standard figures, can be redefined |
| 174 |
|
| 175 |
\newlength{\myStandardSubFigureWidth} % This is suppoded to be width all standard sub figures should have |
| 176 |
\setlength{\myStandardSubFigureWidth}{\myStandardFigureWidth} % sets the width of all standard sub figures, is adjusted automatically |
| 177 |
% |
| 178 |
% The mySubfigure environment creates columns and subcolumns, This is the length |
| 179 |
% of the columns. |
| 180 |
|
| 181 |
\newlength{\myStandardSideWaysFigureWidth} % width for standard side ways figure |
| 182 |
\setlength{\myStandardSideWaysFigureWidth}{\textheight} |
| 183 |
|
| 184 |
|
| 185 |
\newlength{\subFigScaleLength} % scale luped sub-figures to achieve width equals \myFigureWidth |
| 186 |
|
| 187 |
\newcommand{\myCaptionText}{no text yet} % used to store the caption when passed on in selfdefined environments |
| 188 |
\newcommand{\myLabel}{no_label_yet} % used to store the label when passed on in selfdefined environments |
| 189 |
|
| 190 |
|
| 191 |
\newcommand{\numSubFigCol}{} % command used to store informnation about the number of columns in lumped sub figure |
| 192 |
\newcommand{\numSubSubFigCol}{} % command used to store informnation about the number of columns in lumped sub sub figure |
| 193 |
|
| 194 |
\newcommand{\isFirstSubFig}{false} % boolean value to calculate the subFigScale only the first time one calls \subFig[]{} |
| 195 |
|
| 196 |
|
| 197 |
\newlength{\subFigPenalty} % This value is used to substract from \myStandardFigureWidth in order to |
| 198 |
\setlength{\subFigPenalty}{0mm} % let subfigure.sty arrage all subfigures in the avaiable space |
| 199 |
% if one finds the lumped subfigures arranged in 3 columns even though |
| 200 |
% one asked to have them in 4 then this value needs to be increased. |
| 201 |
% accounts for rounding errors due to calculation |
| 202 |
|
| 203 |
\newlength{\subSubFigPenalty} % This value is used to substract from \myStandardFigureWidth in order to |
| 204 |
\setlength{\subSubFigPenalty}{0.001mm} % let subfigure.sty arrage all subfigures in the avaiable space |
| 205 |
% if one finds the lumped subfigures arranged in 3 columns even though |
| 206 |
% one asked to have them in 4 then this value needs to be increased. |
| 207 |
% accounts for rounding errors due to calculation |
| 208 |
|
| 209 |
\newlength{\interSubFigSpace} % determines the space bewteen separate subfigures |
| 210 |
\setlength{\interSubFigSpace}{8mm} |
| 211 |
|
| 212 |
\newlength{\interSubSubFigSpace} % determines the space bewteen separate sub subfigures |
| 213 |
\setlength{\interSubSubFigSpace}{2.5mm} |
| 214 |
|
| 215 |
|
| 216 |
\newlength{\subFigureAboveCaptionSpaceDefaultOffset} % used to remove offset from above caption space so that the user can enter more accessible value in \neSubFig[length]{... |
| 217 |
\setlength{\subFigureAboveCaptionSpaceDefaultOffset}{0mm} |
| 218 |
|
| 219 |
\newlength{\subFigureAboveCaptionSpaceDefault} % determines the default space above the separate sub figure captions |
| 220 |
\setlength{\subFigureAboveCaptionSpaceDefault}{0mm} % use this to equal out spaces due to different number of lines of |
| 221 |
% sub sub captions |
| 222 |
|
| 223 |
\newlength{\subFigureAboveCaptionSpace} % determines the space above the separate sub figure captions |
| 224 |
\setlength{\subFigureAboveCaptionSpace}{\subFigureAboveCaptionSpaceDefault + \subFigureAboveCaptionSpaceDefaultOffset} |
| 225 |
% use this to equal out spaces due to different number of lines of |
| 226 |
% sub sub captions |
| 227 |
|
| 228 |
\newlength{\horizontalSubSubFigSpace} % used to equalize space between rows of sub-sub-figures |
| 229 |
\setlength{\horizontalSubSubFigSpace}{-1mm} |
| 230 |
|
| 231 |
\newlength{\subFigureBelowCaptionSpace} % determines the space below the sub figure caption: Figure ... |
| 232 |
\setlength{\subFigureBelowCaptionSpace}{5mm} |
| 233 |
|
| 234 |
\newlength{\subCaptionPenalty} % used to move sub-sub-caption into middle of subsubfigure |
| 235 |
\setlength{\subCaptionPenalty}{0mm} |
| 236 |
|
| 237 |
|
| 238 |
\newcounter{plotFigures} |
| 239 |
\setcounter{plotFigures}{1} % plot figures {1} or not {0} |
| 240 |
|
| 241 |
\newlength{\labelPenalty} % This is a compensator length in order to compensate for the extra |
| 242 |
\setlength{\labelPenalty}{-1.5mm} % space inserted by writing the label if plotFigures == 0 for arranged figures |
| 243 |
% -1.5mm is good when \printLabel results in a single line in small font |
| 244 |
|
| 245 |
\newlength{\labelHeight} % length used to compensate for the extra space inserted by including |
| 246 |
% the label for arranged figures when plotFigures == 0 |
| 247 |
|
| 248 |
|
| 249 |
\newlength{\captionWidthPenalty} % using thi slength one can increase or decrease the width the caption |
| 250 |
\setlength{\captionWidthPenalty}{0mm} % uses relativ to the width of the figure |
| 251 |
|
| 252 |
|
| 253 |
\newlength{\minimumCaptionWidth} % defines the minimum width of the standard caption, not wrap, not arranged figures |
| 254 |
\setlength{\minimumCaptionWidth}{\linewidth * 4 / 6} |
| 255 |
|
| 256 |
|
| 257 |
\newlength{\minimumSideWaysCaptionWidth} % defines the minimum width of the standard side ways caption, not wrap, not arranged figures |
| 258 |
\setlength{\minimumSideWaysCaptionWidth}{\textheight * 4 / 6} |
| 259 |
|
| 260 |
\newcommand{\labelPrefix}{fig:} % defines the label's prefix |
| 261 |
|
| 262 |
\newcommand{\subLabelSuffix}{-\alph{subfigure}} % defines the sub-sub-figures label suffix |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
%======================================================================== |
| 267 |
% |
| 268 |
|
| 269 |
%----------------------------------------------------------- |
| 270 |
% \includeEps[htpb]{path}{caption}{label}{scaling} % includes eps figure |
| 271 |
% |
| 272 |
|
| 273 |
|
| 274 |
% \epsContent[placement]{path}{caption}{label}{scaling}{figure width}{figure height} |
| 275 |
\newcommand{\epsContent}[7][htpb]% |
| 276 |
{% |
| 277 |
\setlength{\figWidth}{#6 - \frameBoxPenalty}% |
| 278 |
\setlength{\figHeight}{#7 - \frameBoxPenalty}% |
| 279 |
% |
| 280 |
\setlength{\figTabWidth}{\figWidth - 31mm}% % calculate width of table in frame |
| 281 |
\setlength{\figTabMiddle}{\figHeight / 2}% % calculate middle of figure height |
| 282 |
% |
| 283 |
\centerline{\framebox{% |
| 284 |
% |
| 285 |
\setlength{\unitlength}{1sp}%% % 1sp = 0.0000152587890625pt = 1/65536pt |
| 286 |
\begin{picture}(\number\figWidth,\number\figHeight)%% |
| 287 |
\put(655360,\number\figTabMiddle)%% |
| 288 |
{% |
| 289 |
\begin{tabular}{lp{\the\figTabWidth}}% |
| 290 |
\emph{Source:} & #2.eps \\%% |
| 291 |
\emph{Scaling:} & #5 \\%% |
| 292 |
\emph{Label:} & \labelPrefix#4 \\%% |
| 293 |
\emph{Position:} & #1%% |
| 294 |
\end{tabular}% |
| 295 |
}% |
| 296 |
\end{picture}%% |
| 297 |
}}% |
| 298 |
}% |
| 299 |
|
| 300 |
|
| 301 |
\newcommand{\includeEps}[5][htpb]% % idea for code from verbatim manual page 3 |
| 302 |
{% |
| 303 |
\ifthenelse{\value{plotFigures}>0}%% |
| 304 |
{% |
| 305 |
\includeEpsNow[#1]{#2}{#3}{#4}{#5}%% |
| 306 |
}% |
| 307 |
{% |
| 308 |
\settowidth{\figWidth}{\epsfig{file={#2},scale = #5}}% % obtain eps figure width |
| 309 |
\settoheight{\figHeight}{\epsfig{file={#2},scale = #5}}% % obtain eps figure height |
| 310 |
% |
| 311 |
\bigskip\medskip%% |
| 312 |
\begin{figure}[#1]%% |
| 313 |
\begin{center}%% |
| 314 |
\centerline{% |
| 315 |
\ifthenelse{\lengthtest{\figWidth > \minimumCaptionWidth}}% |
| 316 |
{\begin{minipage}{\figWidth + \captionWidthPenalty}}% |
| 317 |
{\begin{minipage}{\minimumCaptionWidth + \captionWidthPenalty}}% |
| 318 |
% |
| 319 |
\epsContent[#1]{#2}{#3}{#4}{#5}{\figWidth}{\figHeight}% |
| 320 |
% |
| 321 |
\caption{#3}%% |
| 322 |
\label{\labelPrefix#4}%% |
| 323 |
% |
| 324 |
\end{minipage}}% |
| 325 |
\end{center}%% |
| 326 |
\end{figure}%% |
| 327 |
}% |
| 328 |
}% |
| 329 |
|
| 330 |
|
| 331 |
\newcommand{\includeEpsNow}[5][htpb]% % as \includeEps but plots the figure in any case |
| 332 |
{% |
| 333 |
\bigskip\medskip%% |
| 334 |
\begin{figure}[#1]%% |
| 335 |
\begin{center}%% |
| 336 |
\centerline{% |
| 337 |
\settowidth{\figWidth}{\epsfig{file={#2},scale = #5}}% % obtain eps figure width |
| 338 |
\ifthenelse{\lengthtest{\figWidth > \minimumCaptionWidth}}% |
| 339 |
{\begin{minipage}{\figWidth + \captionWidthPenalty}}% |
| 340 |
{\begin{minipage}{\minimumCaptionWidth + \captionWidthPenalty}}% |
| 341 |
\centerline{\epsfig{file={#2},scale = #5}}%% |
| 342 |
\caption{#3}%% |
| 343 |
\label{\labelPrefix#4}%% |
| 344 |
\end{minipage}}% |
| 345 |
\end{center}%% |
| 346 |
\end{figure}%% |
| 347 |
}% |
| 348 |
|
| 349 |
%---------------------------------------- |
| 350 |
|
| 351 |
|
| 352 |
\newcommand{\includeStandardGraph}[4][htpb]% |
| 353 |
{% |
| 354 |
% |
| 355 |
\ifthenelse{\value{scaleToStandardFigureWidth}=1}% |
| 356 |
{% |
| 357 |
\ifthenelse{\value{scaleFigureIndividual}=1}% |
| 358 |
{% |
| 359 |
\setSubFigScale{#2}{\myStandardFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 360 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 361 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 362 |
}% |
| 363 |
{% |
| 364 |
\ifthenelse{\value{isFirstStandardFigure}=1}% |
| 365 |
{% |
| 366 |
\setSubFigScale{#2}{\myStandardFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 367 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 368 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 369 |
\setcounter{isFirstStandardFigure}{0}% |
| 370 |
}{}% |
| 371 |
}% |
| 372 |
}{}% |
| 373 |
% |
| 374 |
\includeEps[#1]{#2}{#3}{#4}{\standardGraphScale}% |
| 375 |
}% |
| 376 |
|
| 377 |
\newcommand{\includeStandardGraphNow}[4][htpb]% |
| 378 |
{% |
| 379 |
% |
| 380 |
\ifthenelse{\value{scaleToStandardFigureWidth}=1}% |
| 381 |
{% |
| 382 |
\ifthenelse{\value{scaleFigureIndividual}=1}% |
| 383 |
{% |
| 384 |
\setSubFigScale{#2}{\myStandardFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 385 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 386 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 387 |
}% |
| 388 |
{% |
| 389 |
\ifthenelse{\value{isFirstStandardFigure}=1}% |
| 390 |
{% |
| 391 |
\setSubFigScale{#2}{\myStandardFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 392 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 393 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 394 |
\setcounter{isFirstStandardFigure}{0}% |
| 395 |
}{}% |
| 396 |
}% |
| 397 |
}{}% |
| 398 |
% |
| 399 |
\includeEpsNow[#1]{#2}{#3}{#4}{\standardGraphScale}% |
| 400 |
}% |
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
%======================================================================== |
| 406 |
% INSERT SIDE WAYS EPSFIG AND STANDARD GRAPH |
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
\newcommand{\includeSideWaysEps}[5][htpb]% % idea for code from verbatim manual page 3 |
| 412 |
{% |
| 413 |
\ifthenelse{\value{plotFigures}>0}%% |
| 414 |
{% |
| 415 |
\includeSideWaysEpsNow[#1]{#2}{#3}{#4}{#5}%% |
| 416 |
}% |
| 417 |
{% |
| 418 |
\settowidth{\figWidth}{\epsfig{file={#2},scale = #5}}% % obtain eps figure width |
| 419 |
\settoheight{\figHeight}{\epsfig{file={#2},scale = #5}}% % obtain eps figure height |
| 420 |
%\the\figHeight% % used to tune the scaling factor for \captionSpace, also see captionSpace.xls |
| 421 |
% |
| 422 |
\setlength{\figTabWidth}{\figWidth - 31mm}% % calculate width of table in frame |
| 423 |
% |
| 424 |
\setlength{\figTabMiddle}{\figHeight / 2}% % calculate middle of figure height |
| 425 |
% |
| 426 |
\settoheight{\captionHeight}{\parbox{\figTabWidth}{#3}}% % calculate height of caption in table |
| 427 |
\setlength{\captionSpace}{\figHeight - (\figHeight / 1000 * 198)}% % calculate height for caption available in table |
| 428 |
% % 25mm for small figures, 44mm for standard 7cm high graphs, 51mm for large figures |
| 429 |
% |
| 430 |
\bigskip\medskip%% |
| 431 |
\begin{sidewaysfigure}[#1]%% |
| 432 |
\begin{center}%% |
| 433 |
\centerline{% |
| 434 |
\ifthenelse{\lengthtest{\figWidth > \minimumSideWaysCaptionWidth}}% |
| 435 |
{\begin{minipage}{\figWidth + \captionWidthPenalty}}% |
| 436 |
{\begin{minipage}{\minimumSideWaysCaptionWidth + \captionWidthPenalty}}% |
| 437 |
% |
| 438 |
\epsContent[#1]{#2}{#3}{#4}{#5}{\figWidth}{\figHeight}% |
| 439 |
% |
| 440 |
\caption{#3}%% |
| 441 |
\label{\labelPrefix#4}%% |
| 442 |
% |
| 443 |
\end{minipage}}% |
| 444 |
\end{center}%% |
| 445 |
\end{sidewaysfigure}%% |
| 446 |
}% |
| 447 |
}% |
| 448 |
|
| 449 |
|
| 450 |
\newcommand{\includeSideWaysEpsNow}[5][htpb]% % as \includeEps but plots the figure in any case |
| 451 |
{% |
| 452 |
\bigskip\medskip%% |
| 453 |
\begin{sidewaysfigure}[#1]%% |
| 454 |
\begin{center}%% |
| 455 |
\centerline{% |
| 456 |
\settowidth{\figWidth}{\epsfig{file={#2},scale = #5}}% % obtain eps figure width |
| 457 |
\ifthenelse{\lengthtest{\figWidth > \minimumSideWaysCaptionWidth}}% |
| 458 |
{\begin{minipage}{\figWidth + \captionWidthPenalty}}% |
| 459 |
{\begin{minipage}{\minimumSideWaysCaptionWidth + \captionWidthPenalty}}% |
| 460 |
\centerline{\epsfig{file={#2},scale = #5}}%% |
| 461 |
\caption{#3}%% |
| 462 |
\label{\labelPrefix#4}%% |
| 463 |
\end{minipage}}% |
| 464 |
\end{center}%% |
| 465 |
\end{sidewaysfigure}%% |
| 466 |
}% |
| 467 |
|
| 468 |
%---------------------------------------- |
| 469 |
|
| 470 |
|
| 471 |
\newcommand{\includeStandardSideWaysGraph}[4][htpb]% |
| 472 |
{% |
| 473 |
% |
| 474 |
\ifthenelse{\value{scaleToStandardFigureWidth}=1}% |
| 475 |
{% |
| 476 |
\ifthenelse{\value{scaleFigureIndividual}=1}% |
| 477 |
{% |
| 478 |
\setSubFigScale{#2}{\myStandardSideWaysFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 479 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 480 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 481 |
}% |
| 482 |
{% |
| 483 |
\ifthenelse{\value{isFirstStandardFigure}=1}% |
| 484 |
{% |
| 485 |
\setSubFigScale{#2}{\myStandardSideWaysFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 486 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 487 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 488 |
\setcounter{isFirstStandardFigure}{0}% |
| 489 |
}{}% |
| 490 |
}% |
| 491 |
}{}% |
| 492 |
% |
| 493 |
\includeSideWaysEps[#1]{#2}{#3}{#4}{\standardGraphScale}% |
| 494 |
}% |
| 495 |
|
| 496 |
\newcommand{\includeStandardSideWaysGraphNow}[4][htpb]% |
| 497 |
{% |
| 498 |
% |
| 499 |
\ifthenelse{\value{scaleToStandardFigureWidth}=1}% |
| 500 |
{% |
| 501 |
\ifthenelse{\value{scaleFigureIndividual}=1}% |
| 502 |
{% |
| 503 |
\setSubFigScale{#2}{\myStandardSideWaysFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 504 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 505 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 506 |
}% |
| 507 |
{% |
| 508 |
\ifthenelse{\value{isFirstStandardFigure}=1}% |
| 509 |
{% |
| 510 |
\setSubFigScale{#2}{\myStandardSideWaysFigureWidth}{1}% % calculate \subFigScale for standard eps figure |
| 511 |
\renewcommand{\standardGraphScale}{\subFigScale}% % This value specifies the scaling factor by which the standard graph is scaled |
| 512 |
\setlength{\subFigScaleLength}{0pt}% % reset \subFigScale |
| 513 |
\setcounter{isFirstStandardFigure}{0}% |
| 514 |
}{}% |
| 515 |
}% |
| 516 |
}{}% |
| 517 |
% |
| 518 |
\includeSideWaysEpsNow[#1]{#2}{#3}{#4}{\standardGraphScale}% |
| 519 |
}% |
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
%======================================================================== |
| 524 |
% INSERT LUMPED FIGURES |
| 525 |
|
| 526 |
% \arrangedFigContent[sub-sub-caption]{path}{figure width}{figure height} |
| 527 |
\newcommand{\arrangedFigContent}[4][noParMiniPlot]% |
| 528 |
{% |
| 529 |
\setlength{\figWidth}{#3 - \frameBoxPenalty}% |
| 530 |
\setlength{\figHeight}{#4 - \frameBoxPenalty}% |
| 531 |
% |
| 532 |
\setlength{\figTabMiddle}{\figHeight / 2}% |
| 533 |
% |
| 534 |
\framebox{% |
| 535 |
\setlength{\unitlength}{1sp}% |
| 536 |
\tiny% |
| 537 |
\begin{picture}(\number\figWidth,\number\figHeight)% |
| 538 |
\put(0,\number\figTabMiddle)%% |
| 539 |
{% |
| 540 |
\begin{tabular}{p{\the\figWidth}}% |
| 541 |
\extractminiplotpath{#2} \\%% |
| 542 |
\subFigScale \\%% |
| 543 |
\subLabelSuffix%% |
| 544 |
\end{tabular}% |
| 545 |
}% |
| 546 |
\end{picture}% |
| 547 |
}% |
| 548 |
}% |
| 549 |
|
| 550 |
|
| 551 |
\newcommand{\setSubFigScale}[3]% |
| 552 |
{% |
| 553 |
% |
| 554 |
\settowidth{\figWidth}{\epsfig{file={#1},scale = 1}}% % calculate overall width of one figure |
| 555 |
\setlength{\figWidth}{\figWidth * #3}% % calculate overall width of all figures |
| 556 |
\setlength{\subFigScaleLength}{(1pt*\ratio{#2 - \interSubSubFigSpace * #3 + \interSubSubFigSpace - \subSubFigPenalty * #3 + \subSubFigPenalty}{\figWidth})}% % the last term is a correction term to make it slightly smaller |
| 557 |
\setlength{\subFigScaleLength}{\subFigScaleLength}% % the last term is a correction term to make it slightly smaller |
| 558 |
\pointless{\subFigScale}{\subFigScaleLength}% % \subFigScale = 0.5pt -> \subFigScale = 0.5 |
| 559 |
% |
| 560 |
}% |
| 561 |
|
| 562 |
|
| 563 |
\newcommand{\printLabel}[1]{\centerline{\small{\emph{Label}: $\mathtt{\labelPrefix#1}$}}} |
| 564 |
|
| 565 |
|
| 566 |
\newcommand{\aboveCaptionSpace}[1]{\setlength{\subFigureAboveCaptionSpace}{#1 + \subFigureAboveCaptionSpaceDefaultOffset}} |
| 567 |
|
| 568 |
|
| 569 |
\newcommand{\newSubFig}[3][\subFigureAboveCaptionSpaceDefault]% |
| 570 |
{% |
| 571 |
\vspace{\subFigureAboveCaptionSpace}% |
| 572 |
\vspace{-\horizontalSubSubFigSpace}% |
| 573 |
\caption{\myCaptionText} |
| 574 |
\label{\labelPrefix\myLabel}% |
| 575 |
\ifthenelse{\value{plotFigures}>0}{}% |
| 576 |
{% |
| 577 |
\printLabel{\myLabel}% |
| 578 |
\settoheight{\labelHeight}{\printLabel{\myLabel}}% |
| 579 |
\setlength{\labelHeight}{\labelHeight + \labelPenalty}% |
| 580 |
\vspace{-\labelHeight}% |
| 581 |
}% |
| 582 |
\end{minipage}% |
| 583 |
\renewcommand{\myCaptionText}{#3}% % assign caption |
| 584 |
\renewcommand{\myLabel}{#2}% % assign label |
| 585 |
\vspace{\subFigureBelowCaptionSpace}% |
| 586 |
\hspace{\interSubFigSpace}% |
| 587 |
\begin{minipage}{\myStandardSubFigureWidth}% |
| 588 |
\aboveCaptionSpace{#1}% |
| 589 |
}% |
| 590 |
|
| 591 |
|
| 592 |
\newcommand{\subFig}[2][noParMiniPlot]% |
| 593 |
{% |
| 594 |
% |
| 595 |
\ifthenelse{\value{scaleFigureIndividual}=1}% |
| 596 |
{% |
| 597 |
\setSubFigScale{#2}{\myStandardSubFigureWidth}{\numSubSubFigCol}% |
| 598 |
}% |
| 599 |
{% |
| 600 |
\ifthenelse{\equal{\isFirstSubFig}{true}}% |
| 601 |
{% |
| 602 |
\setSubFigScale{#2}{\myStandardSubFigureWidth}{\numSubSubFigCol}% |
| 603 |
\renewcommand{\isFirstSubFig}{false}% |
| 604 |
}{}% |
| 605 |
}% |
| 606 |
% |
| 607 |
\ifthenelse{\equal{#1}{}}% |
| 608 |
{\renewcommand{\subfigcapmargin}{\figTabMiddle}}% |
| 609 |
{\renewcommand{\subfigcapmargin}{10pt}}% % default value by subfigure.sty |
| 610 |
\ifthenelse{\value{plotFigures}>0}%% |
| 611 |
{% |
| 612 |
\ifthenelse{\equal{#1}{noParMiniPlot}}% |
| 613 |
{\subfigure{\label{\labelPrefix\myLabel\subLabelSuffix}\epsfig{file={#2},scale=\subFigScale}}}% |
| 614 |
{\subfigure[#1]{\label{\labelPrefix\myLabel\subLabelSuffix}\epsfig{file={#2},scale=\subFigScale}}}% |
| 615 |
}% |
| 616 |
{% |
| 617 |
\settowidth{\figWidth}{\epsfig{file={#2},scale = \subFigScale}}% |
| 618 |
\settoheight{\figHeight}{\epsfig{file={#2},scale = \subFigScale}}% |
| 619 |
% |
| 620 |
\ifthenelse{\equal{#1}{noParMiniPlot}}% |
| 621 |
{% |
| 622 |
\subfigure{% |
| 623 |
% |
| 624 |
\label{\labelPrefix\myLabel\subLabelSuffix}% % \alph{subfigure} by Dan Luecking |
| 625 |
% |
| 626 |
\arrangedFigContent{#2}{\figWidth}{\figHeight}% |
| 627 |
}% |
| 628 |
}% |
| 629 |
{% |
| 630 |
\subfigure[#1]{% |
| 631 |
% |
| 632 |
\label{\labelPrefix\myLabel\subLabelSuffix}% |
| 633 |
% |
| 634 |
\arrangedFigContent[#1]{#2}{\figWidth}{\figHeight}% |
| 635 |
}% |
| 636 |
}% |
| 637 |
}% |
| 638 |
% |
| 639 |
\vspace{\horizontalSubSubFigSpace}% |
| 640 |
\hspace{\interSubSubFigSpace}% |
| 641 |
% |
| 642 |
}% |
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
\newenvironment{arrangedFigure}[5][htpb]% |
| 647 |
{% |
| 648 |
\renewcommand{\myCaptionText}{#5}% % assign caption |
| 649 |
\renewcommand{\myLabel}{#4}% % assign label |
| 650 |
% |
| 651 |
\setlength{\myStandardSubFigureWidth}{\myStandardFigureWidth / #2 - \interSubFigSpace + \interSubFigSpace / #2 - \subFigPenalty + \subFigPenalty / #2}% |
| 652 |
% |
| 653 |
\renewcommand{\numSubFigCol}{#2}% % assign number of columns to pass on to calculation of width |
| 654 |
\renewcommand{\numSubSubFigCol}{#3}% % assign number of columns to pass on to calculation of width |
| 655 |
\renewcommand{\isFirstSubFig}{true}% % initialize variable to calculate figure width for first subfigure listed |
| 656 |
% |
| 657 |
\setlength{\figTabMiddle}{\myStandardSubFigureWidth / #3 / 2 - \subSubFigPenalty / 2 + \subSubFigPenalty / #3 / 2 + \subCaptionPenalty}% % calculate middle of figure width to place subCaption in the middle of the subFigure |
| 658 |
\renewcommand{\subfigcapmargin}{\figTabMiddle}% % assign Value |
| 659 |
% |
| 660 |
\begin{figure}[#1]% |
| 661 |
%\begin{center}% |
| 662 |
%\centerline{% |
| 663 |
\begin{minipage}{\myStandardFigureWidth}% |
| 664 |
\begin{minipage}{\myStandardSubFigureWidth}% |
| 665 |
}% |
| 666 |
{% |
| 667 |
\vspace{\subFigureAboveCaptionSpace}% |
| 668 |
\vspace{-\horizontalSubSubFigSpace}% |
| 669 |
\caption{\myCaptionText} |
| 670 |
\label{\labelPrefix\myLabel}% |
| 671 |
\ifthenelse{\value{plotFigures}>0}{}% |
| 672 |
{% |
| 673 |
\printLabel{\myLabel}% |
| 674 |
\settoheight{\labelHeight}{\printLabel{\myLabel}}% |
| 675 |
\setlength{\labelHeight}{\labelHeight + \labelPenalty}% |
| 676 |
\vspace{-\labelHeight}% |
| 677 |
}% |
| 678 |
\end{minipage}% |
| 679 |
\end{minipage}% |
| 680 |
%}% |
| 681 |
%\end{center}% |
| 682 |
\end{figure}% |
| 683 |
% |
| 684 |
%\ifthenelse{\value{plotFigures}>0}% |
| 685 |
% {}% |
| 686 |
% {\marginpar{\rotatebox{90}{Figure \ref{\labelPrefix\myLabel}: \printLabel{\myLabel}}}}% |
| 687 |
% |
| 688 |
\setlength{\subFigScaleLength}{0pt}% |
| 689 |
}% |
| 690 |
|
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
|
| 695 |
\newenvironment{arrangedFigureNow}[5][htpb]% |
| 696 |
{% |
| 697 |
\ifthenelse{\value{plotFigures}=0}% |
| 698 |
{\setcounter{plotFigures}{1}}% |
| 699 |
{\setcounter{plotFigures}{2}}% |
| 700 |
\begin{arrangedFigure}[#1]{#2}{#3}{#4}{#5}% |
| 701 |
}% |
| 702 |
{% |
| 703 |
\end{arrangedFigure}% |
| 704 |
\ifthenelse{\value{plotFigures}=2}% |
| 705 |
{\setcounter{plotFigures}{1}}% |
| 706 |
{\setcounter{plotFigures}{0}}% |
| 707 |
}% |
| 708 |
|
| 709 |
|
| 710 |
%----------------------------------------------------------- |
| 711 |
% SIDE WAYS SUB FIGURE |
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
\newenvironment{arrangedSideWaysFigure}[5][htpb]% |
| 716 |
{% |
| 717 |
\renewcommand{\myCaptionText}{#5}% % assign caption |
| 718 |
\renewcommand{\myLabel}{#4}% % assign label |
| 719 |
% |
| 720 |
\setlength{\myStandardSubFigureWidth}{\myStandardSideWaysFigureWidth / #2 - \interSubFigSpace + \interSubFigSpace / #2 - \subFigPenalty}% |
| 721 |
% |
| 722 |
\renewcommand{\numSubFigCol}{#2}% % assign number of columns to pass on to calculation of width |
| 723 |
\renewcommand{\numSubSubFigCol}{#3}% % assign number of columns to pass on to calculation of width |
| 724 |
\renewcommand{\isFirstSubFig}{true}% % initialize variable to calculate figure width for first subfigure listed |
| 725 |
% |
| 726 |
\setlength{\figTabMiddle}{\myStandardSubFigureWidth / #3 / 2 - \subSubFigPenalty / 2 + \subSubFigPenalty / #3 / 2 + \subCaptionPenalty}% % calculate middle of figure width to place subCaption in the middle of the subFigure |
| 727 |
\renewcommand{\subfigcapmargin}{\figTabMiddle}% % assign Value |
| 728 |
% |
| 729 |
\begin{sidewaysfigure}[#1]% |
| 730 |
%\begin{center}% |
| 731 |
%\centerline{% |
| 732 |
\begin{minipage}{\myStandardSideWaysFigureWidth}% |
| 733 |
\begin{minipage}{\myStandardSubFigureWidth}% |
| 734 |
}% |
| 735 |
{% |
| 736 |
\vspace{\subFigureAboveCaptionSpace}% |
| 737 |
\vspace{-\horizontalSubSubFigSpace}% |
| 738 |
\caption{\myCaptionText} |
| 739 |
\label{\labelPrefix\myLabel}% |
| 740 |
\ifthenelse{\value{plotFigures}>0}{}% |
| 741 |
{% |
| 742 |
\printLabel{\myLabel}% |
| 743 |
\settoheight{\labelHeight}{\printLabel{\myLabel}}% |
| 744 |
\setlength{\labelHeight}{\labelHeight + \labelPenalty}% |
| 745 |
\vspace{-\labelHeight}% |
| 746 |
}% |
| 747 |
\end{minipage}% |
| 748 |
\end{minipage}% |
| 749 |
%}% |
| 750 |
%\end{center}% |
| 751 |
\end{sidewaysfigure}% |
| 752 |
% |
| 753 |
\setlength{\subFigScaleLength}{0pt}% |
| 754 |
}% |
| 755 |
|
| 756 |
|
| 757 |
|
| 758 |
|
| 759 |
|
| 760 |
\newenvironment{arrangedSideWaysFigureNow}[5][htpb]% |
| 761 |
{% |
| 762 |
\ifthenelse{\value{plotFigures}=0}% |
| 763 |
{\setcounter{plotFigures}{1}}% |
| 764 |
{\setcounter{plotFigures}{2}}% |
| 765 |
\begin{arrangedSideWaysFigure}[#1]{#2}{#3}{#4}{#5}% |
| 766 |
}% |
| 767 |
{% |
| 768 |
\end{arrangedSideWaysFigure}% |
| 769 |
\ifthenelse{\value{plotFigures}=2}% |
| 770 |
{\setcounter{plotFigures}{1}}% |
| 771 |
{\setcounter{plotFigures}{0}}% |
| 772 |
}% |
| 773 |
|
| 774 |
|
| 775 |
|
| 776 |
|
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
%======================================================================== |
| 781 |
% INSERT WRAPED FIGURES |
| 782 |
|
| 783 |
|
| 784 |
\newcommand{\setWrapFigOverhang}[1][\wrapFigOverhangDefault]{\setlength{\wrapoverhang}{#1}} |
| 785 |
|
| 786 |
|
| 787 |
% \wrappedEpsContent[lines]{position}{path}{caption}{label}{scaling}{figure width}{figure height} |
| 788 |
\newcommand{\wrappedEpsContent}[8][noPar]% |
| 789 |
{% |
| 790 |
\setlength{\figWidth}{#7 - \frameBoxPenalty}% |
| 791 |
\setlength{\figHeight}{#8 - \frameBoxPenalty}% |
| 792 |
% |
| 793 |
\setlength{\figTabMiddle}{\figWidth / 2 - 6.6mm}% % calculate width of table in frame |
| 794 |
% |
| 795 |
\centerline{\framebox{% |
| 796 |
% |
| 797 |
\setlength{\unitlength}{1sp}%% % 1sp = 0.0000152587890625pt = 1/65536pt |
| 798 |
\begin{picture}(\number\figWidth,\number\figHeight)%% |
| 799 |
\scriptsize% |
| 800 |
\put(\number\figTabMiddle,65536)%% |
| 801 |
{% |
| 802 |
\rotatebox{90}{% |
| 803 |
\begin{tabular}{p{\the\figHeight}}% |
| 804 |
\extractminiplotpath{#3}.eps \\%% |
| 805 |
#6 (scale) \\%% |
| 806 |
\labelPrefix#5 \\%% |
| 807 |
\end{tabular}% |
| 808 |
}% |
| 809 |
}% |
| 810 |
\end{picture}%% |
| 811 |
}}% |
| 812 |
}% |
| 813 |
|
| 814 |
|
| 815 |
|
| 816 |
\newcommand{\includeEpsWrap}[6][noPar]% |
| 817 |
{% |
| 818 |
\ifthenelse{\value{plotFigures}>0}%% |
| 819 |
{% |
| 820 |
\includeEpsWrapNow[#1]{#2}{#3}{#4}{#5}{#6}%% |
| 821 |
}% |
| 822 |
{% |
| 823 |
\settowidth{\figWidth}{\epsfig{file={#3},scale = #6}}% % obtain eps figure width |
| 824 |
\settoheight{\figHeight}{\epsfig{file={#3},scale = #6}}% % obtain eps figure height |
| 825 |
% |
| 826 |
\ifthenelse{\equal{#1}{noPar}}% |
| 827 |
{% |
| 828 |
\begin{wrapfigure}{#2}{\figWidth+\extraWrapWidth}%% |
| 829 |
% |
| 830 |
\vspace{\aboveWrapFigureSpace}% |
| 831 |
% |
| 832 |
\wrappedEpsContent{#2}{#3}{#4}{#5}{#6}{\figWidth}{\figHeight}% |
| 833 |
% |
| 834 |
\caption{#4}%% |
| 835 |
\label{\labelPrefix#5}%% |
| 836 |
\end{wrapfigure}%% |
| 837 |
}% |
| 838 |
{% |
| 839 |
\begin{wrapfigure}[#1]{#2}{\figWidth+\extraWrapWidth}%% |
| 840 |
% |
| 841 |
\vspace{\aboveWrapFigureSpace}% |
| 842 |
% |
| 843 |
\wrappedEpsContent[#1]{#2}{#3}{#4}{#5}{#6}{\figWidth}{\figHeight}% |
| 844 |
% |
| 845 |
\caption{#4}%% |
| 846 |
\label{\labelPrefix#5}%% |
| 847 |
\end{wrapfigure}%% |
| 848 |
}% |
| 849 |
}% |
| 850 |
}% |
| 851 |
|
| 852 |
|
| 853 |
\newcommand{\includeEpsWrapNow}[6][noPar]% |
| 854 |
{% |
| 855 |
\settowidth{\figWidth}{\epsfig{file={#3},scale = #6}}% % obtain eps figure width |
| 856 |
\ifthenelse{\equal{#1}{noPar}}% |
| 857 |
{% |
| 858 |
\begin{wrapfigure}{#2}{\figWidth+\extraWrapWidth}% |
| 859 |
\vspace{\aboveWrapFigureSpace}% |
| 860 |
\epsfig{file=#3,scale=#6}% |
| 861 |
\caption{#4}%% |
| 862 |
\label{\labelPrefix#5}%% |
| 863 |
\end{wrapfigure}% |
| 864 |
}% |
| 865 |
{% |
| 866 |
\begin{wrapfigure}[#1]{#2}{\figWidth+\extraWrapWidth}% |
| 867 |
\vspace{\aboveWrapFigureSpace}% |
| 868 |
\epsfig{file=#3,scale=#6}% |
| 869 |
\caption{#4}%% |
| 870 |
\label{\labelPrefix#5}%% |
| 871 |
\end{wrapfigure}% |
| 872 |
}% |
| 873 |
}% |
| 874 |
|
| 875 |
|
| 876 |
|
| 877 |
|
| 878 |
|
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
%======================================================================== |
| 883 |
% INSERT WRAPPED-LUMPED FIGURES |
| 884 |
|
| 885 |
|
| 886 |
|
| 887 |
\newenvironment{arrangedWrapFigure}[7][noPar]% |
| 888 |
{% |
| 889 |
\renewcommand{\myCaptionText}{#7}% % assign caption |
| 890 |
\renewcommand{\myLabel}{#6}% % assign label |
| 891 |
% |
| 892 |
\setlength{\myStandardSubFigureWidth}{#3 / #4 - \interSubFigSpace + \interSubFigSpace / #4 - \subFigPenalty + \subFigPenalty / #4}% |
| 893 |
% |
| 894 |
\renewcommand{\numSubFigCol}{#4}% % assign number of columns to pass on to calculation of width |
| 895 |
\renewcommand{\numSubSubFigCol}{#5}% % assign number of columns to pass on to calculation of width |
| 896 |
\renewcommand{\isFirstSubFig}{true}% % initialize variable to calculate figure width for first subfigure listed |
| 897 |
% |
| 898 |
\setlength{\figTabMiddle}{\myStandardSubFigureWidth / #5 / 2 - \subSubFigPenalty / 2 + \subSubFigPenalty / #5 / 2 + \subCaptionPenalty}% % calculate middle of figure width to place subCaption in the middle of the subFigure |
| 899 |
\renewcommand{\subfigcapmargin}{\figTabMiddle}% % assign Value |
| 900 |
% |
| 901 |
\begin{wrapfigure}[#1]{#2}{#3+\extraWrapWidth}% |
| 902 |
\vspace{\aboveWrapFigureSpace}% |
| 903 |
%\begin{center}% |
| 904 |
%\centerline{% |
| 905 |
%\begin{centerlineenv}% |
| 906 |
\begin{minipage}{#3}% |
| 907 |
% \begin{minipage}{\myStandardSubFigureWidth}% |
| 908 |
}% |
| 909 |
{% |
| 910 |
\vspace{\subFigureAboveCaptionSpace}% |
| 911 |
\vspace{-\horizontalSubSubFigSpace}% |
| 912 |
\caption{\myCaptionText} |
| 913 |
\label{\labelPrefix\myLabel}% |
| 914 |
\ifthenelse{\value{plotFigures}>0}{}% |
| 915 |
{% |
| 916 |
\printLabel{\myLabel}% |
| 917 |
\settoheight{\labelHeight}{\printLabel{\myLabel}}% |
| 918 |
\setlength{\labelHeight}{\labelHeight + \labelPenalty}% |
| 919 |
\vspace{-\labelHeight}% |
| 920 |
}% |
| 921 |
\end{minipage}% |
| 922 |
% \end{minipage}% |
| 923 |
%\end{centerlineenv}% |
| 924 |
%}% |
| 925 |
%\end{center}% |
| 926 |
\end{wrapfigure}% |
| 927 |
% |
| 928 |
\setlength{\subFigScaleLength}{0pt}% |
| 929 |
}% |
| 930 |
|
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
\newenvironment{arrangedWrapFigureNow}[7][htpb]% |
| 936 |
{% |
| 937 |
\ifthenelse{\value{plotFigures}=0}% |
| 938 |
{\setcounter{plotFigures}{1}}% |
| 939 |
{\setcounter{plotFigures}{2}}% |
| 940 |
\begin{arrangedWrapFigure}[#1]{#2}{#3}{#4}{#5}{#6}{#7}% |
| 941 |
}% |
| 942 |
{% |
| 943 |
\end{arrangedWrapFigure}% |
| 944 |
\ifthenelse{\value{plotFigures}=2}% |
| 945 |
{\setcounter{plotFigures}{1}}% |
| 946 |
{\setcounter{plotFigures}{0}}% |
| 947 |
}% |
| 948 |
|
| 949 |
|
| 950 |
|
| 951 |
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
|
| 956 |
|
| 957 |
%======================================================================== |
| 958 |
% RESET MINI PLOT |
| 959 |
|
| 960 |
|
| 961 |
\newcommand{\resetMiniPlot}% |
| 962 |
{% |
| 963 |
\setcounter{printCaption}{1}% |
| 964 |
\setcounter{scaleToStandardFigureWidth}{1}% |
| 965 |
\setcounter{isFirstStandardFigure}{1}% |
| 966 |
\setcounter{scaleFigureIndividual}{1}% |
| 967 |
%\setcounter{plotFigures}{1}% % plot figures {1} or not {0} |
| 968 |
\setlength{\extraWrapWidth}{2mm}% % default value = 2mm, can be redefined in text |
| 969 |
\setlength{\aboveWrapFigureSpace}{0mm}% |
| 970 |
\setlength{\frameBoxPenalty}{2.4mm}% |
| 971 |
\setlength{\myStandardFigureWidth}{\linewidth}% % sets the width of all standard figures, can be redefined |
| 972 |
\setlength{\myStandardSideWaysFigureWidth}{\textheight}% |
| 973 |
\setlength{\subFigPenalty}{0mm}% % let subfigure.sty arrage all subfigures in the avaiable space |
| 974 |
\setlength{\subSubFigPenalty}{0.001mm}% % let subfigure.sty arrage all subfigures in the avaiable space |
| 975 |
\setlength{\interSubFigSpace}{8mm}% |
| 976 |
\setlength{\interSubSubFigSpace}{2.5mm}% |
| 977 |
\setlength{\subFigureAboveCaptionSpaceDefaultOffset}{0mm}% |
| 978 |
\setlength{\subFigureAboveCaptionSpaceDefault}{0mm}% % use this to equal out spaces due to different number of lines of |
| 979 |
\setlength{\subFigureAboveCaptionSpace}{\subFigureAboveCaptionSpaceDefault + \subFigureAboveCaptionSpaceDefaultOffset}% |
| 980 |
\setlength{\horizontalSubSubFigSpace}{0mm}% |
| 981 |
\setlength{\subFigureBelowCaptionSpace}{3mm}% |
| 982 |
\setlength{\subCaptionPenalty}{0mm}% |
| 983 |
\setlength{\minimumCaptionWidth}{\linewidth * 4 / 6}% |
| 984 |
\setlength{\minimumSideWaysCaptionWidth}{\textheight * 4 / 6}% |
| 985 |
\renewcommand{\standardGraphScale}{1}% % This value specifies the scaling factor by which the standard graph is scaled |
| 986 |
\renewcommand{\isFirstSubFig}{false}% |
| 987 |
} |
| 988 |
|
| 989 |
|
| 990 |
|
| 991 |
%======================================================================================= |
| 992 |
% EOF |