summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs')
-rw-r--r--Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpfig.eps340
-rw-r--r--Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpsubf.tex366
2 files changed, 706 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpfig.eps b/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpfig.eps
new file mode 100644
index 00000000000..498eff7173c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpfig.eps
@@ -0,0 +1,340 @@
+%!PS-Adobe-2.0 EPSF-1.2
+%%Creator: TECPLOT
+%%Pages:1
+%%BoundingBox: 32 199 575 580
+%%DocumentFonts: Helvetica Helvetica-Bold Symbol Times-Roman Times-Bold Times-Italic Times-BoldItalic Courier Courier-Bold
+%%EndComments
+/tecplotdict 120 dict def
+tecplotdict begin
+/ed {exch def} def
+/ftl {findfont exch scalefont setfont} def
+/ftr {/Times-Roman ftl} def
+/ftb {/Times-Bold ftl} def
+/fti {/Times-Italic ftl} def
+/ftib {/Times-BoldItalic ftl} def
+/fcr {/Courier ftl} def
+/fcb {/Courier-Bold ftl} def
+/fhn {/Helvetica ftl} def
+/fhb {/Helvetica-Bold ftl} def
+/fsy {/Symbol ftl} def
+/gs /gsave load def
+/gr /grestore load def
+/np /newpath load def
+/cp /closepath load def
+/sg /setgray load def
+/lc {stroke setlinecap} def
+/lj /setlinejoin load def
+/x /setrgbcolor load def
+/y {x moveto} def
+/g /get load def
+/sd /setdash load def
+/s {stroke setlinewidth} def
+/cpt /currentpoint load def
+/m {stroke moveto} def
+/rm /rmoveto load def
+/l /lineto load def
+/r /rlineto load def
+/sf /setflat load def
+/st /stroke load def
+/ct {cpt st} def
+/stg {st sg} def
+/scg {cpt m sg} def
+/ro /rotate load def
+/sh /show load def
+/clp {st cp gr gs np moveto l l l cp clip np cp} def
+/er {cpt cp np moveto r r r cp sg fill 0 sg cp} def
+/erc {cpt cp np moveto r r r cp x fill 0 sg cp} def
+/br {cpt cp np moveto r r r cp sg cp} def
+/brc {cpt cp np moveto r r r cp x cp} def
+/cir1 {cpt cp m} def
+/cir2 {cp fill cp} def
+/ii 0 def
+/n 0 def
+/CurA 0 def
+/Ry 0 def
+/Rx 0 def
+/CA 0 def
+/SA 0 def
+/SJ 0 def
+/SI 0 def
+/bi 0 def
+/i 0 def
+/ib 0 def
+/ig 0 def
+/ir 0 def
+/ishade 0 def
+/bshade 0 def
+
+/z
+{
+ /ii ed
+ rea ii get
+ gra ii get
+ bla ii get
+} def
+
+/lrgb
+{
+ /ii ed
+ /blue ed
+ /green ed
+ /red ed
+ bla ii blue put
+ gra ii green put
+ rea ii red put
+} def
+
+/trace
+{
+ cp np
+ m
+ 1 1 n
+ {
+ pop
+ r
+ } for
+ cp
+} def
+
+/f
+{
+ /ishade ed
+ /n ed
+ st
+ trace
+ ishade sg fill
+} def
+
+/b
+{
+ /bshade ed
+ /n ed
+ m
+ 1 1 n
+ {
+ pop
+ r
+ } for
+ bshade sg stroke
+} def
+
+/fb
+{
+ /bshade ed
+ /ishade ed
+ /n ed
+ st
+ n 2 mul 2 add copy
+ trace
+ ishade sg fill
+ trace
+ bshade sg stroke
+} def
+
+/c
+{
+ /n ed
+ st
+ trace
+ stroke
+} def
+
+/fc
+{
+ /i ed
+ /n ed
+ st
+ trace
+ i z x fill
+} def
+
+/fd
+{
+ /ib ed
+ /ig ed
+ /ir ed
+ /n ed
+ st
+ trace
+ ir ig ib x fill
+} def
+
+/bc
+{
+ /i ed
+ /n ed
+ m
+ 1 1 n
+ {
+ pop
+ r
+ } for
+ i z x stroke
+} def
+
+/fbc
+{
+ /ii ed
+ /bi ed
+ /n ed
+ st
+ n 2 mul 2 add copy
+ trace
+ ii z x fill
+ trace
+ bi z x stroke
+} def
+/fbd
+{
+ /ib ed
+ /ig ed
+ /ir ed
+ /bi ed
+ /n ed
+ st
+ n 2 mul 2 add copy
+ trace
+ ir ig ib x fill
+ trace
+ bi z x stroke
+} def
+/e
+{
+ /Ry ed
+ /Rx ed
+ /CA ed
+ /SA ed
+ /SJ ed
+ /SI ed
+
+ /DelX SA cos Rx mul def
+ /DelY SA sin Ry mul def
+ /XI SI DelX add def
+ /YI SJ DelY add def
+ /OCX DelX def
+ /OCY DelY def
+ /N 0 def
+ SA CA add
+ CA
+ SA 360 add
+ {
+ /CurA ed
+ /CX CurA cos Rx mul def
+ /CY CurA sin Ry mul def
+ OCX CX sub
+ OCY CY sub
+ /OCX CX def
+ /OCY CY def
+ /N N 1 add def
+ }
+ for
+ XI YI N
+} def
+%%EndProlog
+%%Page:? 1
+5 setmiterlimit
+0.0708661 0.0708661 scale np
+gs
+2 lc
+0 lj
+455 2817 455 8195 8118 8195 8118 2817 clp
+456 2818 m
+1 0 -5376 7661 0 0 5376 er
+494 2844 494 8168 8080 8168 8080 2844 clp
+455 2817 455 8195 8118 8195 8118 2817 clp
+494 2844 494 8168 8080 8168 8080 2844 clp
+455 2817 455 8195 8118 8195 8118 2817 clp
+0 stg
+494 2844 494 8168 8080 8168 8080 2844 clp
+0 stg
+26.8787 s
+514 2868 m
+0 0 -5259 7536 0 0 5259 br
+0 stg
+7536 5259 514 2868 1 0 b
+0 stg
+7536 -5259 514 8128 1 0 b
+5.37574 s
+0 -430 6344 0 0 430 1099 5281 3 1 0 fb
+1179 5402 m
+268.787 fcb
+0 sg
+(E) sh
+1351 5402 m
+(n) sh
+1523 5402 m
+(c) sh
+1694 5402 m
+(a) sh
+1866 5402 m
+(p) sh
+2038 5402 m
+(s) sh
+2210 5402 m
+(u) sh
+2381 5402 m
+(l) sh
+2553 5402 m
+(a) sh
+2725 5402 m
+(t) sh
+2896 5402 m
+(e) sh
+3068 5402 m
+(d) sh
+3240 5402 m
+( ) sh
+3412 5402 m
+(P) sh
+3583 5402 m
+(o) sh
+3755 5402 m
+(s) sh
+3927 5402 m
+(t) sh
+4099 5402 m
+(s) sh
+4270 5402 m
+(c) sh
+4442 5402 m
+(r) sh
+4614 5402 m
+(i) sh
+4786 5402 m
+(p) sh
+4957 5402 m
+(t) sh
+5129 5402 m
+( ) sh
+5301 5402 m
+(\() sh
+5472 5402 m
+(E) sh
+5644 5402 m
+(P) sh
+5816 5402 m
+(S) sh
+5988 5402 m
+(\)) sh
+6159 5402 m
+( ) sh
+6331 5402 m
+(F) sh
+6503 5402 m
+(i) sh
+6675 5402 m
+(g) sh
+6846 5402 m
+(u) sh
+7018 5402 m
+(r) sh
+7190 5402 m
+(e) sh
+455 2817 455 8195 8118 8195 8118 2817 clp
+0 stg
+494 2844 494 8168 8080 8168 8080 2844 clp
+455 2817 455 8195 8118 8195 8118 2817 clp
+5.37574 s
+494 2844 494 8168 8080 8168 8080 2844 clp
+st gr end
+showpage
diff --git a/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpsubf.tex b/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpsubf.tex
new file mode 100644
index 00000000000..495e12508b2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/aiaa/pre2004/demos/subfigs/smpsubf.tex
@@ -0,0 +1,366 @@
+% `smpsubf.tex' - a sample of subfigure usage
+%
+% see epslatex.{ps,pdf} in the info directory of the CTAN for
+% more discussion on figure placement, usage, etc.
+%
+\documentclass{aiaa}% use draft mode to check for
+ % over-full boxes (big black lines).
+
+% declare new lengths that are used for computing subfigure
+% layouts when doing up-down, left-right ordered tables of subfigures.
+
+\newlength{\subfigwidth}% subfigure width
+\newlength{\subfigcolsep}% separation between subfigures
+\setlength{\subfigcolsep}{2\tabcolsep}% tie to that used for tabular
+
+% define a command that creates meaningless blocks of text.
+% use is, for example, \replicate{4}{text} where `4' is the
+% number of times to repeat the filler `text'.
+
+\makeatletter
+\newcounter{numrepeat}
+\newcommand{\replicate}[2]{\par
+ \setcounter{numrepeat}{#1}\relax
+ \@whilenum \value{numrepeat} > 0 \do
+ {{#2}\addtocounter{numrepeat}{-1}}\par}
+\makeatother
+
+% make a command to be the filler text
+% for the replicate command above:
+
+\newcommand{\filler}%
+ {\em More text and even more text and even more text.
+ Followed by some other stuff.
+ Then adding yet additional material.
+ Lets now change gears and talk about some other stuff for a while.
+ I am sick-to-death of this other bit of rambling,
+ and besides I need more material.}
+
+\title{Some Subfigure Layout Choices}
+\author{Bil Kleb\\
+ {\it NASA Langley Research Center, Hampton,~Virginia,~23681}}
+
+\begin{document}
+
+\maketitle
+
+The purpose of this document is to present a number
+of different subfigure layout options. The methods are currently
+rather {\em ad hoc}, but future versions should make this sort
+of thing more automatic and remove the requirement for
+fiddling on a case-by-case basis.
+
+
+\section{Two stacked figures}
+
+Let's start off with a simple one: two figures stacked one atop the
+other as shown in Fig.~\ref{fig:3f}.
+\begin{figure}
+ \begin{subfigmatrix}{1}
+ \subfigure[The first one. ]{\incfig{smpfig}}
+ \subfigure[The second one.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Two, stacked subfigures.}
+ \label{fig:3f}
+\end{figure}
+\replicate{3}{\filler}
+
+
+\section{Six Figures}
+
+\subsection{Up-down, Left-right Ordering}
+
+This is some text, referencing Fig.~\ref{fig:udlr}. Note that
+the order of the sub figures is up-down, then left-right.
+Beware that alignment will be thrown off if the subcaptions are
+typeset with differing numbers of lines, i.e., a long subcaption
+and a short subcaption and the \texttt{[b]} alignment option for the
+minipages are not used.
+\begin{figure}
+ \setlength{\subfigwidth}{.5\linewidth}
+ \addtolength{\subfigwidth}{-.5\subfigcolsep}
+ \vspace*{-\subfigtopskip}
+ \begin{minipage}[b]{\subfigwidth}
+ \subfigure[The first one. ]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{3}
+ \subfigure[The fourth one.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{1}
+ \subfigure[The second one.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{4}
+ \subfigure[The fifth one. ]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{2}
+ \subfigure[The third one. ]{\incfig{smpfig}}
+ \end{minipage}\hfill
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{5}
+ \subfigure[The sixth one. ]{\incfig{smpfig}}
+ \end{minipage}
+ \caption{Up-down ordering of the subfigures
+ using the minipage environment.}
+ \label{fig:udlr}
+\end{figure}
+\replicate{4}{\filler}
+
+\subsection{Left-Right, Up-Down Ordering}
+
+Now, if we wanted the ordering to be left-right, then
+up-down, we could use the tabular environment. This
+is how Fig.~\ref{fig:lrud} was generated.
+\begin{figure}
+ \begin{subfigmatrix}{2}
+ \subfigure[The first one. ]{\incfig{smpfig}}
+ \subfigure[The second one.]{\incfig{smpfig}}
+ \subfigure[The third one. ]{\incfig{smpfig}}
+ \subfigure[The fourth one.]{\incfig{smpfig}}
+ \subfigure[The fifth one. ]{\incfig{smpfig}}
+ \subfigure[The sixth one. ]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Ordering the subfigures from left-to-right, then
+ up-down using the tabular environment.}
+ \label{fig:lrud}
+\end{figure}
+\replicate{4}{\filler}
+
+\section{Eight Figures Spanning Both Columns}
+
+This Fig.~\ref{fig:long} shows the method of `continuing'
+the figure onto another page.
+\begin{figure*}
+ \begin{subfigmatrix}{2}
+ \subfigure[The first one. ]{\incfig{smpfig}}
+ \subfigure[The second one.]{\incfig{smpfig}}
+ \subfigure[The third one. ]{\incfig{smpfig}}
+ \subfigure[The fourth one.]{\incfig{smpfig}}
+ \subfigure[The fifth one. ]{\incfig{smpfig}}
+ \subfigure[The sixth one. ]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Ordering the subfigures from left-to-right, then
+ up-down using the tabular environment.}
+ \label{fig:long}
+\end{figure*}
+\addtocounter{figure}{-1}
+\setcounter{subfigure}{6}
+\begin{figure*}
+ \begin{subfigmatrix}{2}
+ \subfigure[The seventh one.]{\incfig{smpfig}}
+ \subfigure[The eighth one. ]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Concluded.}
+\end{figure*}
+\replicate{4}{\filler}
+
+
+\section{Nine Subfigures}
+
+\subsection{Up-down, Left-right Ordering}
+
+This is some text, referencing Fig.~\ref{fig:3ud3lr}. Note that
+the order of the sub figures is up-down, then left-right.
+\begin{figure}[htb!]
+ \setlength{\subfigwidth}{.333\linewidth}
+ \addtolength{\subfigwidth}{-.667\subfigcolsep}
+ \vspace*{-\subfigtopskip}
+ \begin{minipage}[b]{\subfigwidth}
+ \subfigure[The first.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{3}
+ \subfigure[The fourth.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{6}
+ \subfigure[The seventh.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{1}
+ \subfigure[The second.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{4}
+ \subfigure[The fifth.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{7}
+ \subfigure[The eighth.]{\incfig{smpfig}}
+ \end{minipage}
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{2}
+ \subfigure[The third.]{\incfig{smpfig}}
+ \end{minipage}\hfill
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{5}
+ \subfigure[The sixth.]{\incfig{smpfig}}
+ \end{minipage}\hfill
+ \begin{minipage}[b]{\subfigwidth}
+ \setcounter{subfigure}{8}
+ \subfigure[The ninth.]{\incfig{smpfig}}
+ \end{minipage}
+ \caption{Up-down ordering of the subfigures
+ using the minipage environment.}
+ \label{fig:3ud3lr}
+\end{figure}
+\replicate{4}{\filler}
+
+\subsection{Left-Right, Up-Down Ordering}
+
+Now, if we wanted the ordering to be left-right, then
+up-down, we could use the tabular environment. This
+is how Fig.~\ref{fig:3lr3ud} was generated. This figure spans both
+columns, so it is most likely out of order (and appears near or
+at the end of this document).
+\begin{figure*}
+ \begin{subfigmatrix}{3}
+ \subfigure[The first. ]{\incfig{smpfig}}
+ \subfigure[The second. ]{\incfig{smpfig}}
+ \subfigure[The third. ]{\incfig{smpfig}}
+ \subfigure[The fourth. ]{\incfig{smpfig}}
+ \subfigure[The fifth. ]{\incfig{smpfig}}
+ \subfigure[The sixth. ]{\incfig{smpfig}}
+ \subfigure[The seventh.]{\incfig{smpfig}}
+ \subfigure[The eighth. ]{\incfig{smpfig}}
+ \subfigure[The ninth. ]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Ordering the subfigures from
+ left-to-right, then up-down
+ using the tabular environment.}
+ \label{fig:3lr3ud}
+\end{figure*}
+\replicate{4}{\filler}
+
+
+\section{Two Small Subfigures and One Large One}
+
+\subsection{A}
+
+Next, we try two small figures with one large one. This attempt
+is shown in Fig.~\ref{fig:2s1l}.
+\begin{figure}[htb!]
+ \setlength{\subfigwidth}{.284\linewidth}% have to FIDDLE with this
+ \addtolength{\subfigwidth}{-.5\subfigcolsep}
+ \begin{minipage}[b]{\subfigwidth}
+ \begin{subfigmatrix}{1}
+ \subfigure[One.]{\incfig{smpfig}}
+ \subfigure[Two.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \end{minipage}
+ \addtolength{\subfigwidth}{.5\subfigcolsep}
+ \addtolength{\subfigwidth}{-\linewidth}
+ \setlength{\subfigwidth}{-\subfigwidth}
+ \addtolength{\subfigwidth}{-.5\subfigcolsep}
+ \begin{minipage}[b]{\subfigwidth}
+ \subfigure[The large one.]{\incfig{smpfig}}
+ \end{minipage}
+ \caption{Two small subfigures and a large one.}
+ \label{fig:2s1l}
+\end{figure}
+\replicate{3}{\filler}
+
+\subsection{B}
+
+Figure~\ref{fig:1l2s} is the same, only with the large/small
+positions swapped about the vertical axis.
+\begin{figure}[htb!]
+ \setlength{\subfigwidth}{.716\linewidth}% have to FIDDLE with this
+ \addtolength{\subfigwidth}{-.5\subfigcolsep}
+ \begin{minipage}[b]{\subfigwidth}
+ \subfigure[The large one.]{\incfig{smpfig}}
+ \end{minipage}
+ \addtolength{\subfigwidth}{.5\subfigcolsep}
+ \addtolength{\subfigwidth}{-\linewidth}
+ \setlength{\subfigwidth}{-\subfigwidth}
+ \addtolength{\subfigwidth}{-.5\subfigcolsep}
+ \begin{minipage}[b]{\subfigwidth}
+ \begin{subfigmatrix}{1}
+ \subfigure[One.]{\incfig{smpfig}}
+ \subfigure[Two.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \end{minipage}
+ \caption{One large subfigure beside two small ones.}
+ \label{fig:1l2s}
+\end{figure}
+\replicate{1}{\filler}
+
+\subsection{C}
+
+Now, for a slightly different effect, two subfigures on top with
+a large one on the bottom, see Fig.~\ref{fig:2st1l}.
+\begin{figure}[htb!]
+ \begin{subfigmatrix}{2}
+ \subfigure[One.]{\incfig{smpfig}}
+ \subfigure[Two.]{\incfig{smpfig}}
+ \end{subfigmatrix}%
+ \begin{subfigmatrix}{1}
+ \centering\subfigure[The large one.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{Two smaller subfigures over a larger one.}
+ \label{fig:2st1l}
+\end{figure}
+\replicate{1}{\filler}
+
+\subsection{D}
+
+And, of coarse the old large subfigure on top with
+two subfigures beneath. Fig.~\ref{fig:1lt2sb} demonstrates
+this one.
+\begin{figure*}[htb!]
+ \begin{subfigmatrix}{1}
+ \subfigure[The large one.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \begin{subfigmatrix}{2}
+ \subfigure[One.]{\incfig{smpfig}}
+ \subfigure[Two.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \caption{One large subfigure above two smaller ones.}
+ \label{fig:1lt2sb}
+\end{figure*}
+\replicate{2}{\filler}
+
+\subsection{E}
+
+Steve Alter prompted Figure~\ref{f:twobytwo}: two with two on the side.
+\begin{figure*}
+%
+ \newlength{\firstfigwidth}
+ \newlength{\secondfigwidth}
+ \newlength{\thirdfigwidth}
+%
+ \setlength{\firstfigwidth}{0.39745\linewidth}% FIDDLE with these
+ \setlength{\secondfigwidth}{0.39745\linewidth}% two numbers
+%
+ \setlength{\thirdfigwidth}{\linewidth}
+ \addtolength{\thirdfigwidth}{-4\tabcolsep}
+ \addtolength{\thirdfigwidth}{-\firstfigwidth}
+ \addtolength{\thirdfigwidth}{-\secondfigwidth}
+%
+ \begin{minipage}[t]{\firstfigwidth}
+ \subfigure[Representative planes of X34 viscous grid.]
+ {\incfig{smpfig}}
+ \end{minipage}% note: `%'s are important in this region
+ \hspace{2\tabcolsep}%
+ \begin{minipage}[t]{\secondfigwidth}
+ \subfigure[Meridnal plane.]
+ {\incfig{smpfig}}
+ \end{minipage}% note: `%'s are important in this region
+ \hspace{2\tabcolsep}%
+ \begin{minipage}[b]{\thirdfigwidth}
+ \begin{subfigmatrix}{1}
+ \subfigure[Wing root.]{\incfig{smpfig}}
+ \subfigure[Wing tip.]{\incfig{smpfig}}
+ \end{subfigmatrix}
+ \end{minipage}
+%
+ \caption{X34 volume grid used for viscous computations.}
+ \label{f:twobytwo}
+%
+\end{figure*}
+\replicate{3}{\filler}
+
+\end{document}