L A TEX2ε L A TEX Graphics
Using Import graphics in LATEX2ε Keith Reckdahl reckdahl@am-sun2.stanford.edu Version 2.0 December 15, 1997
Keith Reckdahl Using Imported Graphics In L A TEX2ε L A TEX2ε L A TEX2ε L A TEX Encapsulated PostScript (EPS) L A TEX L A TEX EPS (preamble) \usepackage{graphicx} file.eps \includegraphics{file.eps} height width \includegraphics[height=4cm]{file.eps} \includegraphics[width=3in]{file.eps} angle \includegraphics[angle=45]{file.eps} \includegraphics L A TEX2ε
ii L A TEX Encapsulated PostScript (EPS) EPS PS EPS L A TEX2ε L A TEX2ε L A TEX2ε [5] L A TEX2ε L A TEX2ε UNIX dvips EPS TIFF, GIF, JPEG, PICT,etc. EPS EPS L A TEX dvips ASCII PSfrag EPS L A TEX EPS PostScript EPS PostScript PostScript L A TEX2ε L A TEX2ε figure
iii L A TEX2ε PostScript (epslatex.ps) PDF (epslatex.pdf) CTAN (Comprehensive TEX ArchiveNetwork) England Deutschland Eastern U.S. Western U.S. Australia Japan ftp://ftp.tex.ac.uk/tex-archive/info/ ftp://ftp.dante.de/tex-archive/info/ ftp://tug2.cs.umb.edu/tex-archive/info/ ftp://ftp.cdrom.com/pub/tex/ctan/info/ ftp://unsw.edu.au/tex-archive/info/ ftp://ftp.riken.go.jp/pub/tex-archive/info/
iv CTAN CTAN CTAN.sites fingering ctan@ftp.dante.de PDF ctex.dhs.org
1 3 2 L A TEX 5 3 Encapsulated PostScript 7 3.1 PostScript... 7 3.2 The EPS BoundingBox... 8 3.3 PS EPS... 9 3.4 EPS... 10 4 L A TEX EPS 11 4.1... 12 5 GhostScript 15 6 17 6.1 Level 2 EPS... 18 6.2 PostScript... 19 L A TEX 7 EPS 23 7.1 includegraphics... 23
vi 8 29 8.1 scalebox... 30 8.2 resizebox... 30 8.3 rotatebox... 31 9 33 9.1 DeclareGraphicsExtensions... 34 9.2 DeclareGraphicsRule... 35 L A TEX 10 39 10.1... 39 10.2... 40 11 43 11.1... 43 11.2... 44 11.3... 45 11.4... 47 11.4.1... 48 11.4.2... 49 12 51 12.1 TEX... 52 12.2... 53 12.3 Pool... 53 13 EPS 57 13.1 EPS... 58 13.2 TEX dvips... 59 13.3 EPS... 60 13.3.1 GIF... 61
vii 13.3.2 EPS... 62 14 Psfrag 65 14.1 Psfrag... 67 14.2 Psfrag... 67 14.3 EPS L A TEX... 69 14.4... 70 14.5 Psfrag... 71 14.5.1 Xfig EPS... 71 14.6 Overpic... 71 15 75 15.1 PostScript... 76 15.2... 79 15.3... 81 L A TEX 16 87 16.1... 88 16.2... 89 16.3... 91 16.4... 93 17 95 17.1... 95 17.2... 96 17.3... 98 18 99 18.1... 99 18.2... 100 18.3... 102
viii 18.4... 103 18.5... 104 19 caption2 107 19.1... 107 19.2... 108 19.3... 109 19.4... 111 19.5... 113 19.6... 114 19.7... 116 19.8... 118 19.9... 119 20 121 20.1 float H... 122 21 125 22 127 22.1... 128 22.2... 128 23 131 23.1 Landscape... 132 23.2 Sidewaysfigure... 134 23.3 Rotcaption... 134 24 137 24.1... 137 24.2... 138 24.3 Sidecap... 139 25 141 25.1... 143
ix 26 145 26.1... 145 26.2... 146 26.3 fbox... 148 26.4 Fancybox... 148 27 151 27.1... 151 27.2... 153 27.3... 156 28 161 29 163 30 165 30.1 Wrapfig... 165 30.2 Picinpar... 167 30.3 Picins... 169 31 173 177 179
x
1 Knuth TEX PostScript/EPS JPEG GIF DVI TEX DVI \special DVI TEX L A TEX DVI DVI PostScript EPS (Encapsulated PostScript, PostScript ) L A TEX EPS \special L A TEX2.09 epsf psfig epsf \epsfbox psfig \psfig psfig epsf epsfig psfig epsf epsfig psfig 1994 L A TEX2ε L A TEX3 L A TEX2ε L A TEX graphics bundle 1 L A TEX L A TEX graphics graphicx \includegraphics graphicx 1 LATEX plain TEX CTAN/macros/generic/graphics/
4 \includegraphics psfig L A TEX \includegraphics graphics L A TEX graphicx graphicx \includegraphics graphics \scalebox \rotatebox graphicx graphics graphics L A TEX [5] epsfig epsfig epsfig \epsfbox \psfig \epsfig \includegraphics \includegraphics EPS L A TEX EPS GIF JPEG DVI EPS L A TEX EPS DVI PS 6 13 L A TEX EPS
2 L A TEX L A TEX ([1, page 103]) Reference point baseline 2.1 L A TEX current baseline L A TEX L A TEX height,depth,width 0000 1111 Width 01 01 01 01 01 01 01 01 01 01 totalheight 01 01 01 01 01 01 01 01 01 01 01 height depth 00 11 00 11 00 11 00 11 01 Reference Point 01 00 11 00 11 01 Baseline 2.1: L A TEX
6 Width Width height EPS Graphics height Width Reference Point depth EPS Graphics depth EPS Graphics 2.2: L A TEX totalheight = + EPS 2.2 2.2
3 Encapsulated PostScript PostScript PostScript(PS) Encapsulated PostScript(EPS) PS EPS EPS PostScript EPS BoundingBox EPS 3.1. PostScript EPS EPS (a4 letter) (erasepage) EPS PostScript a3 a4 a5 banddevice clear cleardictstack copypage erasepage exitserver framedevice grestoreall initclip initgraphics initmatrix letter legal note prenderbands quit renderbands setdevice setglobal setpagedevice setpageparams setsccbatch setshared startjob stop
8 3.2 The EPS BoundingBox PostScript EPS nulldevice setcolortransfer setgstate sethalftone setmatrix setscreen settransfer undefinedfont DVI PS PostScript PostScript 3.2. The EPS BoundingBox PostScript header preamble PostScript % BoundingBox BoundingBox : 1. BoundingBox x 2. BoundingBox y 3. BoundingBox x 4. BoundingBox y EPS %!PS-Adobe-2.0 EPSF-2.0 %%Creator: gnuplot %%DocumentFonts: Times-Roman %%BoundingBox: 50 50 410 302 %%EndComments gnuplot EPS EPS (50, 50) (410, 302) PostScript point 1 /72 5
Encapsulated PostScript 9 3.5 PostScript point TEX point 1/72.27 TEX L A TEX PostScript points big points bp TEX point points pt 3.3. PS EPS PostScript EPS BoundingBox PostScript PostScript EPS 1. GhostScript ps2epsi 5 PostScript BoundingBox PostScript EPS EPS EPSI ASCII 4.1 bufsize 2. BoundingBox PostScript \includegraphics bb BoundingBox : (a) Ghostview GSview PostScript BoundingBox (b) PostScript 72 BoundingBox (c) bbfig bbfig PostScript PostScript PostScript BoundingBox PostScript
10 3.4 EPS 3.4. EPS EPS PostScript PostScript EPS L A TEX EPS Mathematica Mathematica 2.x EPS Mathematica PostScript Mathematica EPS DOS Mathematica 2.x printps.exe rasterps Unix Mathematica 2.x psfix Mathematica Wolfram Research FrameMaker FrameMaker PostScript Adobe Framemaker 4 5 PostScript ftp://ftp.irisa.fr/pub/framemaker/filters/fixfm4-1.3.tar.gz ftp://ftp.irisa.fr/pub/framemaker/filters/fixfm5-2.0.tar.gz Framemaker 3 4 PostScript fixfm3ps.sh fixfm4ps.sh ftp://ftp.frame.com/pub/techsup/framers/platform.ind/filters/
4 L A TEX EPS EPS L A TEX DVI PS 1. L A TEX EPS BoundingBox EPS 2. DVI PS EPS PS BoundingBox L A TEX EPS BoundingBox TEX ASCII L A TEX EPS EPS BoundingBox BoundingBox BoundingBox 13 EPS DVI DVI PS PS EPS DVI DVI EPS DVI EPS BoundingBoX
12 4.1 TeX MikTEX fptex tetex DVI Yap, Windvi, Xdvi ghostscript EPS 4.1. L A TEX ASCII L A TEX 3000 EPS Unable to read an entire line--bufsize=3000. Please ask a wizard to enlarge me. EPS 3000 1. EPS EPS DVI PostScript EPS TEX \includegraphics \psfig (a) EPS (b) L A TEX EPS BoundingBox BoundingBox \includegraphics bb L A TEX EPS 2. EPS TEX TEX
L A TEX EPS 13 Unix ^J Macintosh ^M DOS/Windows ^M^J EPS Macintosh Unix Unix TEX ^J EPS BoundingBox
14 4.1
5 GhostScript GhostScript PostScript Aladdin Enterprises 1 GhostScript PostScript EPS PostScript Aladdin GhostScript CTAN/supported/ghostscript/aladdin/ GhostScript http://www.cs.wisc.edu/ ghost/index.html Web CTAN FTP Windows/DOS/OS/2 Macintosh Unix/VMS GhostScript Windows/OS/2 GSview Unix/VMS Ghostview PostScript Aladdin GhostScript 6.01 GNU GhostScript 5.50 Window/DOS/OS/2 Macintosh Unix/VMS ghostscrip-x.xx.tar.gz 1 Although Aladdin Ghostscript is distributed for free, it is not in the public domain. It is copyrighted and comes with certain limitations such as no commercial distribution. When versions of Aladdin Ghostscript become approximately one year old, Aladdin releases them as GNU Ghostscript whose use is governed by the less-restrictive GNU Public License.
16 gzip -dc ghostscrip-x.xx.tar.gz tar -vxf - cd gsx.xx gzip -dc ghostscrip-x.xxjpeg.tar.gz tar -vxf - gzip -dc ghostscrip-x.xxlibpng.tar.gz tar -vxf - gzip -dc ghostscrip-x.xxzlib.tar.gz tar -vxf - GS make.txt.mak gcc ln -s src/gcc.mak./makefile make make install GhostScript ps2pdf GS PostScript GS
6 EPS EPS dvips DVI PS 13.3 ImageMagick ftp.wizards.dupont.com http://www.wizards.dupont.com/cristy/imagemagick.html Unix Linux Windows NT, Macintosh VMS xv $25 X-Windows xv xv http://www.sun.com/sunsoft/catlink/xv/note.html xv http://is.rice.edu/ shel/xv-3.10a/ DISPLAY DOS disp189a.zip disp189b.zip 189 http://www.simtel.net/simtel.net/msdos/graphics-pre.html http://www.simtel.net/simtel.net/msdos/graphics-pre.html
18 6.1 Level 2 EPS WMF2EPS Windows9.x/NT WMF EPS CTAN/support/wmf2eps/readme.txt Adobe KVEC $25 BMP, GIF, TIFF PostScript KVEC Windows, OS/2, NEXT Unix http://ourworld.compuserve.com/homepages/kkuhl/ NetPBM PBMPLUS Windows, Unix,VMS,DOS http://wuarchive.wustl.edu/graphics/graphics/packages/netpbm/ ImageCommander $19 Windows3.1/95/NT GIF, JPEG, PICT, WMF EPS http://www.jasc.com/ JASC Paint Shop Pro $69 6.1. Level 2 EPS PostScript Level 2 PostScript EPS Level 2 PostScript PostScript Level 2 PostScript jpeg2ps C JPEG Level 2 PostScript jpeg2ps Unix, DOS http://www.muc.de/ tm/free/free.html
19 TIFF tiff2ps LZW Level 2 PostScript tiff2ps ftp://ftp.sgi.com/graphics/tiff/tiff-v3.4-tar.gz tiff2ps Unix, DOS, Mac VMS LZW PostScript Level 2 PostScript 6.2. PostScript EPS PostScript PostScript EPS pstoedit Unix,Windows,DOS OS/2 Ghost- Script PostScript PDF xfig.fig pstoedit C++ ftp://ftp.x.org/contrib/applications/pstoedit/pstoedit.html http://www.geocities.com/siliconvalley/network/1958/pstoedit/ Mayura Draw PageDraw Windows3.1/9.x/NT GhostScript PostScript http://www.wix.com/pagedraw Mayura Draw $15 Mayura Draw Adobe Type Manager (ATM) ATM Adobe Acrobat Reader 2.0 ftp://ftp.winsite.com/pub/pc/win3/util/acroread.zip xfig Unix/Xwindows EPS EPS xfig http://www.xfig.org/
20 6.2 PostScript
7 EPS graphics graphicx Graphics guide[5] L A TEX Graphics Compannion[4] L A TEX graphicx [2] graphics graphicx [1] graphics [3] 7.1. includegraphics \includegraphics[ ]{ } 7.1, 7.2, 7.3 \includegraphics file.eps L A TEX \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{file.eps} \end{document} \includegraphics \DeclareGraphicsExtensions 9.1
24 7.1 includegraphics 7.1: includegraphics Options height totalheight width scale angle origin bb TEX TEX 6/95 TEX scale=2 origin 12/95 8.3 \rotatebox origin=c BoundingBox bb=10 20 100 200 BoundingBox (10,20) (100,200) \includegraphics EPS BoundingBox bb EPS BoundingBox 7.2: includegraphics Cropping Options viewpoint trim BoundingBox BoundingBox 6/95 BoundingBox 50 50 410 302 viewpoint=50 50 122 122 viewpoint=338 230 410 302 clip 7.3
EPS 25 7.3: includegraphics Boolean Options noclip clip draft final keepaspectratio clip draft BoundingBox draft \usepackage[draft]{graphicx} draft \usepackage[draft]{graphicx} final \usepackage[draft]{graphicx} keepaspectratio keepaspectratio \includegraphics{file} file \includegraphics[width=3in]{file.eps} file.eps 3 \textwidth \em 3 L A TEX \includegraphics[width=\textwidth]{graphics.eps} \includegraphics[width=0.80\textwidth]{graphics.eps} 80% calc 2 \includegraphics[width=\textwidth-2.0in]{graphics.eps} graphicx 12/95
26 7.1 includegraphics \includegraphics \HR \newcommand{\hr}{\rule{1em}{0.4pt}} scale,width,height,angle keepaspectratio W W W W \HR\fbox{% \includegraphics [scale=.5]{w.eps}% \HR \HR\fbox{% \includegraphics% [width=10mm]{w.eps}% \HR \HR\fbox{% \includegraphics [height=20mm,width=30mm]% {w.eps}}\hr \HR\fbox{% \includegraphics [height=20mm,width=30mm,% keepaspectratio]{w.eps}}% \HR W \HR\fbox{% \includegraphics [angle=-45]{w.eps}}% \HR
EPS 27 W \HR\fbox{% \includegraphics [angle=-45,width=30mm]% {w.eps}}\hr W \HR\fbox{% \includegraphics [width=30mm,angle=-45]% {w.eps}}\hr W W W \HR\fbox{% \includegraphics [angle=-60,totalheight=15mm]% {w.eps}}% \HR \HR\fbox{% \includegraphics [angle=-60,totalheight=20mm,% width=30mm]{w.eps}}% \HR \HR\fbox{% \includegraphics [angle=-60,totalheight=20mm,% width=30mm,keepaspectratio]% {w.eps}}% \HR
28 7.1 includegraphics
8 \includegraphics graphicx L A TEX EPS \scalebox{ }[ ]{ } \resizebox{ }{ }{ } \resizebox*{ }{ }{ } \rotatebox[ ]{ }{ } graphicx \includegraphics angle width \includegraphics[scale=2]{file.eps} \includegraphics[width=4in]{file.eps} \includegraphics[angle=45]{file.eps} \scalebox{2}{\includegraphics{file.eps}} \resizebox{4in}{!}{\includegraphics{file.eps}} \rotatebox{45}{\includegraphics{file.eps}} PostScript
30 8.1 scalebox 8.1. scalebox \scalebox{ }[ ]{ } \scalebox \scalebox{2}{ } \\ \\ \scalebox{.5}{ } China? China? China? China? China? China? China? China? \framebox{\scalebox{2}{% \parbox{.5in}{ \\ \\ }}} \framebox{\scalebox{2}[1.5]{% \parbox{.5in}{ \\ \\ }}} China? \scalebox{-1}[1]{china?} \\ China? \scalebox{1}[-1]{china?} \\ China? \scalebox{-1}[-1]{china?} \\ China? \scalebox{-1}{china?}} 8.2. resizebox \resizebox{ }{ }{ } \resizebox { }{ }{ } \resizebox!
31 \resizebox{2in}{!}{argument} 2 L A TEX2ε \height, \width, \totalheight, \depth \resizebox{2in}{\height}{argument} 2 \reseizebox \resizebox \framebox{\resizebox{5mm}{!}{% \parbox{14mm}{ \\ \\ }}} \framebox{\resizebox{!}{10mm}{% \parbox{14mm}{ \\ \\ }}} L A TEX L A TEX \resizebox*{2cm}{3cm}{\latex{}~ } \\ \resizebox*{2cm}{1cm}{\latex{}~ } 8.3. rotatebox \rotatebox[ ]{ }{ } \rotatebox \rotatebox 1. [x=xdim,y=ydim] (xdim,ydim) 2. origin 12 8.1 origin lcr t,c,b,b
32 8.3 rotatebox [lt] [ct] [rt] Centerlines [c] Reference Point [lc] [lb] Baseline [cb] [rc] [rb] [lb] [cb] [rb] 8.1: Available Origin Point [rb] [lt] [cb] [br] [rb] c c [c] [cc] [l] [lc] [t] [ct] 0 45 90 225 135 180 \setlength{\fboxsep}{0mm} \newcommand{\myrot}[1]{% \fbox{\rotatebox{#1}{ ~$#1^\circ$}}} \MyRot{0} \MyRot{45} \MyRot{90} \MyRot{135} \MyRot{180} \MyRot{225}
9 L A TEX2ε 1. \includegraphics{file} 2. EPS 13.1 3. EPS 13.3 L A TEX \includegraphics \DeclareGraphicsRule \DeclareGraphicsExtensions \DeclareGraphicsExtensions L A TEX.eps,.ps,.eps.gz \DeclareGraphicsRule Unix DOS EPS EPS
34 9.1 DeclareGraphicsExtensions 9.1. DeclareGraphicsExtensions \DeclareGraphicsExtensions L A TEX \includegraphics 1 dvips dvips \DeclareGraphicsExtensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z} \includegraphics{file} L A TEX file.eps file.ps file.eps.gz L A TEX \includegrapincs{file} \includegrapincs{file.eps} file.eps L A TEX \includegrapincs{file} file {} \DeclareGraphicsExtensions{.eps,.eps.gz,{}} file.eps file.eps.gz file Pool Space L A TEX \DeclareGraphicsExtensions pool space 12.3 pool space \DeclareGraphicsExtensions{.eps,.eps.gz} 1 \usepackage[dvips]{graphics} graphics.cfg
35 9.1: DeclareGraphicsRule Arguments ext type sizefile command BoundingBox \includegraphics bb dvips 13 EPS EPS 9.2. DeclareGraphicsRule \DeclareGraphicsRule \includegraphics \DeclareGraphicsRule \DeclareGraphicsRule{ext}{type}{sizefile}{command} \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{ gunzip -c #1}.eps.gz EPS BoundingBox.eps.bb gunzip -c L A TEX BoundingBox BoundingBox \DeclareGraphicsRule \DeclareGraphicsRule{*}{eps}{*}{} EPS file.eps EPS EPS.eps.gz file.name.eps.gz \includegraphics.name.eps.gz
36 9.2 DeclareGraphicsRule EPS file.name.eps 2 dvips \DeclareGraphicsRule{.eps}{eps}{.eps}{} \DeclareGraphicsRule{.ps}{eps}{.ps}{} \DeclareGraphicsRule{.pz}{eps}{.bb}{ gunzip -c #1} \DeclareGraphicsRule{.eps.Z}{eps}{.eps.bb}{ gunzip -c #1} \DeclareGraphicsRule{.ps.Z}{eps}{.ps.bb}{ gunzip -c #1} \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{ gunzip -c #1} \DeclareGraphicsRule{.ps.gz}{eps}{.ps.bb}{ gunzip -c #1} \DeclareGraphicsRule{.pcx}{bmp}{}{} \DeclareGraphicsRule{.bmp}{bmp}{}{} \DeclareGraphicsRule{.msp}{bmp}{}{} \DeclareGraphicsRule{*}{eps}{*}{}.eps.ps EPS EPS 13.3 EPS 2 \usepackage[dvips]{graphics} graphics.cfg
10 10.1. center \begin{center} \includegraphics[width=2in]{graphic.eps} \end{center} \includegraphics minipage figure \centering \begin{figure} \centering \includegraphics[width=2in]{graphic.eps} \end{figure} \begin{figure} \begin{center} \includegraphics[width=2in]{graphic.eps} \end{center} \end{figure}
40 10.2 \centering \begin{center} figure center 18.1 \psfig \epsfbox TEX \centerline \leavevmode \includegraphics \centering center \centerline \leavevmode 10.2. L A TEX % L A TEX \includegraphics{file.eps} \includegraphics{file.eps} % \includegraphics{file.eps}% \includegraphics{file.eps} \hspace 1 \hfill \includegraphics{file.eps}\hfill\includegraphics{file.eps} 1 \textwidth \em \hspace
41 \hfill\includegraphics{file.eps}% \hfill\includegraphics{file.eps}\hspace*{\fill} \hfill \hspace*{\fill}
42 10.2
11 \includegraphics \begin{center} \includegraphics[angle=90,totalheight=1cm]{graphic.eps} \includegraphics[totalheight=1cm,angle=90]{graphic.eps} \end{center} Graphics Graphics 90 1 1 90 11.1. height totalheight 5 2.1 height
44 11.2 height totalheight EPS height totalheight \includegraphics[angle=-45,totalheight=1in]{file.eps} \includegraphics[angle=-45,height=1in]{file.eps} 1 1 11.2. BoundingBox \begin{center} \includegraphics[totalheight=1in]{rosette.eps} \includegraphics[angle=45,totalheight=1in]{rosette.eps} \includegraphics[angle=90,totalheight=1in]{rosette.eps} \end{center} BoundingBox
45 BoundingBox 1 11.3. \begin{center} \includegraphics[totalheight=1in]{rosette.eps} \includegraphics[totalheight=1in,angle=-45]{rosette.eps} \includegraphics[totalheight=1in,angle=-90]{rosette.eps} \end{center} BoundingBox
46 11.3 \includegraphics origin \begin{center} \includegraphics[totalheight=1in]{rosette.eps} \includegraphics[totalheight=1in,origin=c,angle=-45]{rosette.eps} \includegraphics[totalheight=1in,origin=c,angle=-90]{rosette.eps} \end{center} \begin{center} \includegraphics[width=1in]{graphic.eps} \hspace{1in} \includegraphics[width=1in,angle=-90]{graphic.eps} \end{center} Graphics Graphics
47 \begin{center} \includegraphics[width=1in]{graphic.eps} \hspace{1in} \includegraphics[width=1in,origin=br,angle=-90]{graphic.eps} \end{center} Graphics Graphics 11.4. 27 L A TEX [b] [t] [b] [t] [b] [t] \begin{center} \begin{minipage}[b]{.25\textwidth} \centering \includegraphics[width=1in]{graphic.eps} \end{minipage}%
48 11.4 Graphics Graphics 11.1: minipage with [b] or [t] options \begin{minipage}[b]{.25\textwidth} \centering \includegraphics[width=1in,angle=-90]{graphic.eps} \end{minipage} \end{center} \begin{center} \begin{minipage}[t]{.25\textwidth} \centering \includegraphics[width=1in]{graphic.eps} \end{minipage}% \begin{minipage}[t]{.25\textwidth} \centering \includegraphics[width=1in,angle=-90]{graphic.eps} \end{minipage} \end{center} 11.1 EPS 11.4.1. [b]
49 Graphics Graphics 11.2: Minipages with Bottoms Aligned \par\vspace{0pt} [b] \begin{center} \begin{minipage}[b]{.25\textwidth} \centering \includegraphics[width=1in]{graphic.eps} \par\vspace{0pt} \end{minipage}% \begin{minipage}[b]{.25\textwidth} \centering \includegraphics[width=1in,angle=-90]{graphic.eps} \par\vspace{0pt} \end{minipage} \end{center} 11.2 11.4.2. [t] \includegraphics \vspace{0pt} [t] \begin{center} \begin{minipage}[t]{.25\textwidth} \vspace{0pt} \centering
50 11.4 Graphics Graphics 11.3: Minipages with Tops Aligned \includegraphics[width=1in]{graphic.eps} \end{minipage}% \begin{minipage}[t]{.25\textwidth} \vspace{0pt} \centering \includegraphics[width=1in,angle=-90]{graphic.eps} \end{minipage} \end{center} 11.3 \vspace{-\baselineskip} \vspace{0pt} [3, 456-457 ]
12 images file.eps \includegraphics{images/file.eps} Unix DOS TEX TEX TeX poolsize 12.3 L A TEX VMS Macintosh 1. TEX 12.1 2. \graphicspath 12.2
52 12.1 TEX \includegraphics \includegraphics{file.eps} \includegraphics{images/file.eps} 12.1. TEX TeX Unix web2c/tetex TEX Unix web2c/tetex TeX TEXINPUTS csh setenv TEXINPUTS /dir1:/dir2: TEX /dir1 /dir2 : /dir1 /dir2 TEX setenv TEXINPUTS :/dir1:/dir2 TEX /dir1 /dir2 setenv TEXINPUTS /dir1::/dir2 TEX /dir1 /dir2 // setenv TEXINPUTS /dir1//:/dir2: TEX /dir1 // TEX sh
53 TEXINPUTS="/dir1:/dir2:"; export TEXINPUTS TEXINPUTS L A TEX TEX DVI dvips xdvi TEX 13.2 12.2. L A TEX TEX L A TEX \graphicspath \graphicspath{{dir1/}{dir2/}} L A TEX dir1/ dir2/ Macintosh \graphicspath{{dir1:}{dir2:}} \graphicspath TEXINPUTS \graphicspath pool space ( 12.3 \graphicspath TEX 12.1 12.3. Pool TEX pool space TEX pool space TEX pool size! TeX capacity exceeded, sorry [poolsize=72288]
54 12.3 Pool pool space pool space web2c TEX poolsize TEX pool space \includegraphics{images/file.eps} TEX \graphicspath \graphicspath{{dir1/}{dir2/}}... \includegraphics{file.eps} \includegraphics file.eps dir1/file.eps dir2/file.eps pool space TEX \graphicspath.eps \DeclareGraphicsExtensions \includegraphics{file} \includegraphics
55 file.eps file.ps file.eps.gz file.ps.gz file.eps.z \graphicspath \DeclareGraphicsExtensions
56 12.3 Pool
13 EPS dvips EPS DVI PS dvips dvips graphicx dvips \documentclass \documentclass[dvips,11pt]{article} \usepackage graphicx dvips \usepackage[dvips]{graphicx} dvips 1 \DeclareGraphicsRule 9.2 EPS EPS 1 Unix DOS
58 13.1 EPS 13.1. EPS EPS 1. EPS file.eps 2. BoundingBox file.eps.bb 3. EPS Unix gzip -9 file.eps file.eps.gz -9 -best 4. \includegraphics \DeclareGraphicsRule L A TEX 9.2 \documentclass[dvips]{article} \usepackage{graphicx} \begin{document} \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{ gunzip -c #1} \begin{figure} \centering \includegraphics[width=3in]{file1.eps.gz} \caption{compressed EPS Graphic} \label{fig:compressed:eps} \end{figure} \end{document} \DeclareGraphicsRule dvips.def \DeclareGraphicsRule BoundingBox file.bb \DeclareGraphicsRule \DeclareGraphicsRule{.eps.gz}{eps}{.bb}{ gunzip -c #1}
EPS 59 13.2. TEX dvips L A TEX \includegraphics L A TEX TEX DVI PS dvips \DeclareGraphicsRule dvips TEX \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{ gunzip -c #1}.eps.gz gunzip -c \includegraphics{file.eps.gz} file.eps.gz file.eps.bb L A TEX file.eps.bb dvips gunzip -c file.eps.gz file.eps.gz file.eps.bb /a/b/c/ TEX L A TEX /a/b/c/file.eps.bb dvips gunzip -c file.eps.gz gunzip file.eps.gz TEX kpathsea tetex \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}% { gunzip -c kpsewhich -n latex tex #1 } \kpsewhich gunzip kpsewhich -n latex tex #1 dvips TEX gunzip -c gunzip L A TEX graphics.cfg
60 13.3 EPS \AtEndOfPackage{% \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}% { gunzip -c kpsewhich -n latex tex #1 }} \ExecuteOptionsdvips dvips dvips TEX dvips TEX kpsewhich dvips TEX EPS \DeclareGraphicsRule{.eps}{eps}{.eps}% { cat kpsewhich -n latex tex #1 } TEX 13.3. EPS EPS L A TEX EPS TEX EPS.png EPS EPS 2 L A TEX EPS EPS EPS EPS DVI PS dvips \DeclareGraphicsRule file2.gif L A TEX 1. GIF EPS gif2eps 2. file2.gif BoundingBox (a) ebb file2.gif BoundingBox 3 2 pdflatex dvipdfm EPS PDF 3 ebb dvipdfm EPS BoundingBox
EPS 61 (b) file2.gif PostScript BoundingBox file2.gif.bb 3.3 BoundingBox file2.gif.bb %%BoundingBox: PostScript 3. L A TEX \includegraphics \DeclareGraphicsRule{.gif}{eps}{.gif.bb}{ gif2eps #1} \includegraphics{file.gif} L A TEX file.gif.bb BoundingBox dvips gif2eps file2.gif EPS 13.3.1. GIF EPS Unix \DeclareGraphicsRule{.gif}{eps}{.gif.bb}{ convert #1 eps:- } \begin{figure} \centering \includegraphics[width=3in]{file2.gif} \caption{gif Graphic} \end{figure} convert ImageMagick GIF EPS convert file2.gif eps:- file2.gif EPS giftoppm, ppmtopgm pgmtops GIF EPS \DeclareGraphicsRule{.gif}{eps}{.gif.bb}% { giftoppm #1 ppmtopgm pgmtops}
62 13.3 EPS 13.3.2. EPS L A TEX dvips EPS EPS L A TEX EPS BoundingBox L A TEX ASCII EPS L A TEX EPS dvips GIF-to- PS, TIFF-to-PS, dvips EPS L A TEX \DeclareGraphicsRule dvips dvips EPS L A TEX dvips EPS 1. dvips -Demtex EmTEX \special PCX, BMP MSP 2. Macintosh TEX/L A TEX Oztex2.1 DVI PS OzDVIPS \special MacPaint PICT http://www.kagi.com/authors/akt/oztex.html 3. L A TEX EPS (a) Macintosh Textures PICT http://www.bluesky.com/ (b) Y&Y Windows TEX DVI PS DVIPSONE TIFF http://www.yandy.com/
EPS 63 TEX L A TEX.bb \includegraphics bb
64 13.3 EPS
14 Psfrag EPS L A TEX PSfrag L A TEX EPS CJK PSfrag PSfrag 3.0 1996 ps2frag ps2psfrag EPS PSfrag 3.0 perl ghostscript PSfrag 3.0 L A TEX 12/95 L A TEX [7] PSfrag 3.0 PSfrag 3.0 EPS \tex 14.3 EPS L A TEX PSfrag EPS 1. L A TEX \usepackage{psfrag} 2. L A TEX \psfrag EPS L A TEX \includegraphics 3. \includegraphics
66 14.1: PSfrag Options PStext posn PSposn scale rot text EPS [Bl] L A TEX [Bl] EPS 1 L A TEX L A TEX \small \large L A TEX EPS EPS EPS L A TEX L A TEX $\frac{1}{2}$ $x^2$ \psfrag \psfrag{pstext}[posn][psposn][scale][rot]{text} 14.1 posn PSposn 32 8.1 12 [Bl] c [] [c] [l] [lc] [7] \psfrag \psfrag{pi}{$\pi$} π pi EPS pi/2 2pi \pafrag EPS PS PSfrag EPS Corel Draw EPS Hello World 0 0 (Hello W) @t 1080 0 (orld) @t
Psfrag 67 PSfrag Hello W orld Hello World Courier 14.1. Psfrag \includegraphics{pend.eps} EPS PSfrag 14.1 \psfrag{q1}{$\theta_1$} \psfrag{q2}{$\theta_2$} \psfrag{l1}{$l_1$} \psfrag{l2}{$l_2$} \psfrag{p1}[][]{$p_1$} \psfrag{p2}[][]{\large $P_2$} \includegraphics{pend.eps} EPS PSfrag EPS 14.2 \psfrag L A TEX EPS \psfrag [][] L A TEX EPS EPS 14.2 N 14.2. Psfrag \shortstack, \colorbox \fcolorbox \psfrag \shortstack \\ EPS
68 14.2 Psfrag L1 N L 1 N q1 P1 θ 1 P 1 P 2 P2 L2 L 2 q2 θ 2 14.1: Without PSfrag Replacement 14.2: With PSfrag Replacement \colorbox color \fboxsep \colorbox{yellow}{ } \colorbox [5] PSfrag \colorbox \fcolorbox color \colorbox \fcolorbox{black}{yellow}{ } \fboxrule \fboxsep 14.3 14.4 PSfrag 14.3 PSfrag 14.4 \psfrag{q1}[][]{\colorbox{white}{$q_1$}} \psfrag{base}{\fcolorbox{black}{white}{base}}
Psfrag 69 q1 Actuator q 1 Hydraulic Actuator base Base 14.3: Without PSfrag Replacement q 1 14.4: With PSfrag Replacement 14.5: PSfrag \psfrag{actuator}[l][l]{\shortstack{hydraulic\\ Actuator}} \includegraphics{mass.eps} 14.5 \psfrag{q1}[][]{\colorbox{white}{$q_1$}} \psfrag{base}{\fcolorbox{black}{white}{ }} \psfrag{actuator}[l][l]{\shortstack{ \\ }} \includegraphics{mass.eps} 14.3. EPS L A TEX PSfrag \psfrag PSfrag \tex
70 14.4 L A TEX EPS \psfrag \tex [7] 14.4. PSfrag PSfrag graphicx width, height totalheight \includegraphics[width=3in]{file.eps} PSfrag file.eps 3 \resizebox{3in}{!}{\includegraphics{file.eps}} file.eps PSfrag 3 \includegraphics[width=3in,angle=30]{file.eps} \includegraphics[angle=30,width=3in]{file.eps} file.eps 3 PSfrag [7] PSfrag
Psfrag 71 14.5. Psfrag PSfrag 3.0 Xfig EPS PSfrag readme.xfg 14.5.1 PSfrag readme.sem PSfrag Seminar CTAN Seminar 14.5.1. Xfig EPS Xfig pattern fill EPS PSfrag Xfig PSfrag PostScript show PSfrag 1. EPS /PATfill 2. /PATfill show show 3. show oldshow oldshow XFig old show PSfrag Xfig PSfrag psfrag@rascals.stanford.edu 14.6. Overpic PSfrag EPS EPS TEX pdfl A TEX EPS PSfrag
72 14.6 Overpic overpic L A TEX PSfrag overpic overpic picture \includegraphics picture EPS L A TEX \begin{overpic}[ ]{ }<L A TEX >\end{overpic} scale, grid, tics, unit textsfoverpic abs \usepackage[abs]{overpic} overpic L A TEX \usepackage{overpic} overpic L A TEX 0 10 20 30 40 50 60 70 80 100 100 90 80 70 60 50 40 90 80 70 60 50 40 30 30 20 20 10 10 0 0 10 20 30 40 50 60 70 0 80 \begin{overpic}[scale=.25,grid,tics=10]% {golfer.ps} \end{overpic}
Psfrag 73 L A TEX \begin{overpic}[scale=.25]{golfer.ps} \put(5,50){\latex} \put(5,40){\color{red} } \put(55,10){% \includegraphics[scale=.07]% {golfer.ps}} 14.2 overpic grid tics L A TEX grid tics \begin{overpic}[scale=0.8,grid,tics=10]{mass.eps} \end{overpic} 60 0 10 20 30 40 50 60 70 80 90 100 q1 Actuator 60 50 50 40 40 30 30 20 20 10 base 10 0 0 0 10 20 30 40 50 60 70 80 90 100 L A TEX \begin{overpic}[scale=1.2]{mass.eps} \put(25,8){\fcolorbox{black}{white}{ }} \put(31,64){\colorbox{white}{$q_1$}} \setlength{\fboxsep}{10pt}
74 14.6 Overpic \put(65,65){\colorbox{white}{\shortstack{ \\ }}} \end{overpic} 14.6 q 1 q1 Actuator base 14.6: Overpic example
15 EPS PS 1. \includegraphics{file.eps} (a) \includegraphics L A TEX (b) PS EPS PS 2. EPS L A TEX L A TEX L A TEX L A TEX \newsavebox{\mygraphic} \sbox{\mygraphic}{% \includegraphics{file.eps}}
76 15.1 PostScript \usebox{\mygraphic} \scalebox \rotatebox PS EPS PS 3. EPS Post- Script PostScript 15.1 PS EPS PS L A TEX 4. PostScript L A TEX PS L A TEX 15.1. PostScript PostScript EPS EPS EPS PostScript EPS PostScript PostScript xfig EPS %!PS-Adobe-2.0 EPSF-2.0 %%Title: /tmp/xfig-fig017255 %%Creator: fig2dev Version 2.1.8 Patchlevel 0 %%CreationDate: Sun Sep 3 15:36:01 1995 %%Orientation: Portrait %%BoundingBox: 0 0 369 255 %%Pages: 0 %%EndComments /$F2psDict 200 dict def $F2psDict begin
77... %%EndProlog $F2psBegin... $F2psEnd... EPS 1. % header 2. Prolog /$F2psDict 200 dict def %%EndProlog Prolog EPS PostScript PostScript $F2psDict 3. EPS file.eps file.h file.ps file.h /$F2psDict 200 dict def $F2psDict begin... %%EndProlog /MyFigure { $F2psBegin... $F2psEnd } def file.ps
78 15.1 PostScript %!PS-Adobe-2.0 EPSF-2.0 %%Title: /tmp/xfig-fig017255 %%Creator: fig2dev Version 2.1.8 Patchlevel 0 %%CreationDate: Sun Sep 3 15:36:01 1995 %%Orientation: Portrait %%BoundingBox: 0 0 369 255 %%Pages: 0 %%EndComments $F2psDict begin MyFigure end file.h PostScript /MyFigure file.ps EPS header file.h PostScript file.ps %!PS... BoundingBox L A TEX \documentclass{article} \usepackage{graphicx} \special{header=file.h} \begin{document}... \includegraphics[width=2in]{file.ps}... \includegraphics[totalheight=1in]{file.ps}... \end{document} file.eps file.h PostScript PS L A TEX file.ps L A TEX L A TEX file.ps PS \documentclass{article} \usepackage{graphicx} \special{header=file.h} \newsavebox{\mygraphic} \sbox{\mygraphic}{%
79 \includegraphics[width=2in]{file.ps}} \begin{document}... \usebox{\mygraphic}... \resizebox*{1in}{!}{\usebox{\mygraphic}}... \end{document} 15.2. fancyhdr fancyheadings fancyhdr [12] L A TEX \fancyhead L,C,R \pagestyle{fancy} \fancyhead[c]{ } \pagestyle{fancy} \fancyhead[l,r]{\textbf{confidential}} Confidential L,C,R \fancyhead \fancyfoot fancyhdr 15.1 EPS file.eps file.h file.ps \documentclass{article} \usepackage{fancyhdr,graphicx}
80 15.2 \renewcommand{\headheight}{0.6in}% must be large enough for graphic \renewcommand{\textheight}{7.5in} % Define PostScript graphics command \special{header=file.h} % Save graphics in LaTeX box \newsavebox{\mygraphic} \sbox{\mygraphic}{\includegraphics[totalheight=0.5in]{file.ps}} \pagestyle{fancy} \fancyhead{} % clear all header fields \fancyhead[l]{\usebox{\mygraphic}} \fancyfoot{} % clear all footer fields \fancyfoot[c]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt} \begin{document}... \end{document} fancy 0.5pt plain / [twoside] O,E O,E \pagestyle{fancy} \fancyhead[le]{ } \fancyhead[ro]{ } \fancyfoot[c]{\thepage} \pagestyle{fancy} \fancyhead[le,ro]{\usebox{\mygraphic}} \fancyfoot[c]{\thepage}
81 \fancyhead fancy \pagestyle{fancy} fancy plain Plain Plain \fancypagestyle \fancypagestyle{plain}{% \fancyhead{} % clear all header fields \fancyhead[l]{\usebox{\mygraphic}} \fancyfoot{} % clear all footer fields \fancyfoot[c]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}} [twoside] \fancyhead[l]{\usebox{\mygraphic}} \fancyhead[le,ro]{\usebox{\mygraphic}} 15.3. fancyhdr fancyhdr file.eps \documentclass{article} \usepackage{graphicx,fancyhdr} %%% store graphics in a box
82 15.3 \newsavebox{\mygraphic} \sbox{\mygraphic}{% \includegraphics[keepaspectratio, height=0.8\textheight,% width=0.8\textwidth]{file.eps}} \pagestyle{fancy} \fancyhead{} \fancyhead[c]{\setlength{\unitlength}{1in} \begin{picture}(0,0) \put(-2.2,-6){\usebox{\mygraphic}} \end{picture}} \fancypagestyle{plain}{% \fancyhead{}% \fancyhead[c]{\setlength{\unitlength}{1in} \begin{picture}(0,0) \put(-2.2,-6){\usebox{\mygraphic}} \end{picture}}} \begin{document}... \end{document} 6 2.2 file.eps 15.1 PS eco-pic CTAN \AddToShipoutPicture L A TEX eso-pic \begin{document} \usepackage{graphicx} \usepackage{eso-pic} %%% store graphics in a box \newsavebox{\mygraphic}
83 \sbox{\mygraphic}{% \includegraphics[keepaspectratio, height=\textheight,% width=\textwidth]{file.eps}} \AddToShipoutPicture{ put(0,0){\makebox(0,0)[bl]{\usebox{\mygraphic}}} \begin{document}... \end{document} EPS L A TEX
84 15.3
16 L A TEX...... 5... L A TEX L A TEX 1. L A TEX L A TEX [htbp] [tbp] 16.2
88 16.1 2. \renewcommand{\textfraction}{0.15} \renewcommand{\topfraction}{0.85} \renewcommand{\bottomfraction}{0.65} \renewcommand{\floatpagefraction}{0.60} 17.2 3. L A TEX flafter \usepackage{flafter} 4. placeins \FloatBarrier 16.3 \FloatBarrier 16.1. figure \caption EPS graph.eps \begin{figure} \centering \includegraphics[totalheight=2in]{graph.eps} \caption{this is an inserted EPS graphic} \label{fig:graph} \end{figure} The graph in Figure~\ref{fig:graph} on Page~\pageref{fig:graph}... \label \ref, \pageref \label \caption
89 \caption \caption 27 109 19.1 19.7 \listoffigures \caption \caption[list Text]{Caption Text} Caption Text List Text figure parbox minipage figure...text text text text text text \begin{figure}... \end{figure} text text text text text text... 16.2. figure h
90 16.2 t b 1 p [tbp] L A TEX h-t-b-p [hb] [bh] L A TEX h-b L A TEX [tp] [htbp], [tbp], [htp], 2 18 L A TEX Too Many Unprocessed Floats 16.3 [1, 198 ] L A TEX 1. 2. overfull page 3. 3 4. 1 2 [h] [h] LATEX [ht] 3 flafter
91 L A TEX 16.4 5. 17 totalnumber \begin{figure}[!ht] L A TEX! 16.3. L A TEX L A TEX L A TEX L A TEX L A TEX 17 clearpage \clearpage L A TEX FloatBarrier placeins \FloatBarrier placeins
92 16.3 \FloatBarrier \clearpage placeins section \usepackage[section]{placeins} \section section \FloatBarrier [section] section section below \usepackage[below]{placeins} section section section section afterpage/clearpage afterpage \afterpage \afterpage{\clearpage} \afterpage{\clearpage} 16.4 \clearpage L A TEX \afterpage{\clearpage} \floatpagefraction 17.2! [!p] \floatpagefraction \afterpage{\clearpage} \floatpagefraction
93 16.4. L A TEX 18 Too Many Unprocessed Floats 1. [t] \topfraction 2. 17.2 3. morefloats 36 4. 18 L A TEX (a) L A TEX (b) \clearpage \afterpage{\clearpage} \clearpage (c) 20 \vspace \vfill
94 16.4
17 L A TEX 17.1. 17.1 L A TEX! L A TEX \setcounter \setcounter{totalnumber}{2} L A TEX 17.1: Float Placement Counters topnumber bottomnumber totalnumber 2 1 3
96 17.2 17.2. 17.2 \textheight! L A TEX \floatpagefraction \renewcommand \renewcommand{\textfraction}{0.3} 70% 17.2: Figure Placement Fractions \textfraction \topfraction \bottomfraction \floatpagefraction 0.2 80% 0.7 70% t 60% topnumber 0.3 40% 1 - \floatpagefraction 0.5 L A TEX \renewcommand{\textfraction}{0.15} \renewcommand{\topfraction}{0.85} \renewcommand{\bottomfraction}{0.65} \renewcommand{\floatpagefraction}{0.60}
97 \textfraction \textfraction 0.15 \textwidth 85% \textfraction L A TEX \topfraction \topfraction 1 - \textfraction L A TEX \bottomfraction \bottomfraction \topfraction \bottomfraction L A TEX \floatpagefraction \floatpagefraction \floatpagefraction \topfraction [tp] [tp] \topfraction \floatpagefraction \topfraction \floatpagefraction \floatpagefraction \topfraction -0.05
98 17.3 0.05 1 [bp] [hbp] \floatpagefraction \bottomfraction \floatpagefraction \bottomfraction -0.05 [bp] [hbp] 17.3. \suppressfloats! \suppressfloats[t] flafter L A TEX 17.3: Suppress oats Options \suppressfloats[t] \suppressfloats[b] \suppressfloats 1 \topfraction \textfloatsep \floatpagefraction \topfraction \textfloatsep \textheight 18.1
18 18.1. 18.1 L A TEX \setlength \setlength{\floatsep}{10pt plus 3pt minus 2pt} \floatsep 10pt 8pt 13pt 18.1 18.2 fil \vfill fil 18.1: Figure Spacing for Text Pages \floatsep \textfloatsep \intextsep 12pt plus 2pt minus 2pt 20pt plus 2pt minus 4pt h 12pt plus 2pt minus 2pt
100 18.2 18.2: Figure Spacing for Floatpages \@fptop \@fpsep \@fpbot 0pt plus 1.0fil 8pt plus 2.0fil 0pt plus 1.0fil 18.3: Figure Rule Commands \topfigrule \bottomfigrule \textfloatsep 18.1 \textfloatsep 18.2 @ L A TEX 1 \setlength \makeatletter \makeatother \makeatletter \addtolength{\@fpsep}{4pt} \makeatother 4pt 18.2. \topfigurerule \bottomfigurerule \topfigurerule \bottomfigurerule L A TEX \newcommand \renewcommand 0.4pt -0.4pt 1 LATEX LATEX @ LATEX @ \makeatletter LATEX @ @ \makeatother LATEX @ LATEX \makeatletter \makeatother
101 \newcommand{\topfigrule}{\hrule\vspace{-0.4pt}} \topfigrule \textfloatsep 5pt \newcommand{\topfigrule}{% \vspace*{5pt}\hrule\vspace{-5.4pt}} \newcommand{\botfigrule}{% \vspace*{-5.4pt}\hrule\vspace{5pt}} \topfigrule 5pt \textfloatsep 0.4pt 5.4pt \botfigrule 5pt 5pt \textfloatsep - 5pt 18.1 0.4pt \hrule height \newcommand{\topfigrule}{% \vspace*{5pt}{\hrule height0.8pt}\vspace{-5.8pt}} \newcommand{\botfigrule}{% \vspace*{-5.8pt}{\hrule height0.8pt}\vspace{5pt}} \topfigrule \botfigrule h L A TEX \rule \parskip TEX \hrule
102 18.3 18.1: Caption Above Graphic Graphics 18.3. L A TEX \begin{figure} \centering \caption{caption Above Graphic} \includegraphics[width=2in]{graphic.eps} \end{figure} 18.1 \abovecaptionskip \belowcaptionskip 10pt L A TEX \setlength \addtolength \begin{figure} \setlength{\abovecaptionskip}{0pt} \setlength{\belowcaptionskip}{10pt} \centering \caption{caption Above Graphic} \includegraphics[width=2in]{graphic.eps} \end{figure} 18.2 10pt \setlength{\abovecaptionskip}{0pt} \setlength{\belowcaptionskip}{10pt}
103 18.2: Caption Above Graphic Graphics \newcommand{\topcaption}{% \setlength{\abovecaptionskip}{0pt}% \setlength{\belowcaptionskip}{10pt}% \caption} \topcaption{ } \caption{ } 18.4. L A TEX Figure 13: Figure \figurename \begin{figure} \centering \includegraphics[width=2in]{graphic.eps} \renewcommand{\figurename}{fig.} \caption{this is the Caption} \end{figure} 18.3 : caption2 19
104 18.5 Graphics Fig. 18.3: This is the Caption 18.5. endfloat endfloat \usepackage{endfloat} \usepackage [Figure 4 about here.] nomarkers \usepackage[nomarkers]{endfloat} \figureplace \tableplace \renewcommand{\figureplace}{% \begin{center}% [\figurename~\thepostfig\ would appear here.]% \end{center} nofiglist notablist fighead tabhead tablefirst
105 \clearpage \efloatseparator \renewcommand{\efloatseparator}{\mbox{}}
106 18.5
19 caption2 18.3 18.5 caption2 1 caption2 float, longtable, subfigure floatfig, rotating, supertabular, wrapfig \usepackage[ ]{caption2} 19.1 19.1. 19.1 19.7 caption2 normal center flushleft flushright 1 caption caption2 caption2 beta
108 19.2 normal, center, flushleft, flushright, centerlast, hang, indent scriptsize, footnotesize, small, normalsize, large, Large 19.1: caption2 19.1 up, it, sl, sc mb, bf sl, sf, tt Roman, San Serif Typewriter oneline, nooneline 19.3 centerlast indent normal \captionindent \captionindent \setlength{\captionindent}{1cm} hang normal \usepackage[centerlast]{caption} centerlast 19.2. \captionstyle
caption2 109 Graphics Graphics Graphics 19.1: Normal Caption Style Normal Caption Style Normal Caption Style Normal Caption Style 19.2: Center Caption Style Center Caption Style Center Caption Style Center Caption Style 19.3: Centerlast Caption Style Centerlast Caption Style Centerlast Caption Style Centerlast Caption Style \begin{figure} \captionstyle{centerlast} \centering \includegraphics[width=3in]{graphic.eps} \caption{centerlast Caption Style. Centerlast Caption Style.} \end{figure} \captionstyle \captionstyle{centerlast} \begin{figure} \centering \includegraphics[width=3in]{graphic.eps} \caption{centerlast Caption Style. Centerlast Caption Style.} \end{figure} centerlast \captionstyle 19.3. caption2 nooneline
110 19.3 Graphics Graphics 19.4: Flushleft Caption Style Flushleft Caption Style Flushleft Caption Style Flushleft Caption Style 19.5: Flushright Caption Style Flushright Caption Style Flushright Caption Style Flushright Caption Style Graphics Graphics 19.6: Indent Caption Style Indent Caption Style Indent Caption Style Indent Caption Style 19.7: Hang Caption Style Hang Caption Style Hang Caption Style Hang Caption Style \usepackage[nooneline,flushleft]{caption2} flushleft nooneline \onelinecaptiontrue \onelinecaptionfalse \begin{figure} \captionstyle{flushleft} \onelinecaptionstrue \centering \includegraphics[width=2.5in]{graphic.eps} \caption{first Caption} \end{figure} 19.8 \begin{figure} \captionstyle{flushleft}
caption2 111 Graphics 19.8: First Caption Graphics 19.9: Second Caption \onelinecaptionsfalse \centering \includegraphics[width=2.5in]{graphic.eps} \caption{second Caption} \end{figure} 19.9 19.4. caption2 \setcaptionwidth{width} width width TEX \setcaptionmargin{mar} mar mar
112 19.4 Graphics 19.10: Figure Caption Limited to Two Inches mar \begin{figure} \setcaptionwidth{2in} \centering \includegraphics[width=2in]{graphic.eps} \caption{figure Caption Limited to Two Inches} \end{figure} 2 19.10 \begin{figure} \setcaptionmargin{1in} \centering \includegraphics[width=2in]{graphic.eps} \caption{figure Caption Where There is One Inch of Spacing between the Caption and Each Margin} \end{figure} 1 19.11
caption2 113 Graphics 19.11: Figure Caption Where There is One Inch of Spacing between the Caption and Each Margin \includegraphics[width=3in]{file.eps} \setcaptionwidth{3in} \caption{...} \newsavebox{\mybox} \newlength{\mylength}... \begin{figure} \centering \sbox{\mybox}{\includegraphics[height=3in]{file.eps}} \settowidth{\mylength}{\usebox{\mybox}} \setcaptionwidth{\mylength} \usebox{\mybox} \caption{this is a figure with a very, very, very, very, very, very, very long caption} \end{figure} \mybox \mylength \newlength \newsavebox 19.5. : \captionlabeldelim
114 19.6 Graphics 19.12. Caption with New Delimiter \begin{figure} \renewcommand{\captionlabeldelim}{.} \centering \includegraphics[width=2in]{graphic.eps} \caption{caption with New Delimiter} \end{figure} 19.12. \renewcommand{\captionlabeldelim}{.~} 19.6. \usepackage{caption2} scriptsize,...,large up, it, sl, sc, md, bf, rm, sf, tt caption2 \captionfont \captionlabelfont \captionfont \captionlabelfont \captionfont {\captionfont% {\captionlabelfont \captionlabel \captionlabeldelim}% \captiontext}
caption2 115 Graphics 19.13: Test Caption \captionlabel 1 \captionlabeldelim : \captiontext L A TEX [1, 37,115 ] [3, 170-171 ] \captionfont \captionlabel \begin{figure} \renewcommand{\captionfont}{\large \bfseries \sffamily} \renewcommand{\captionlabelfont}{} \centering \includegraphics[width=2in]{graphic.eps} \caption{test Caption} \end{figure} 19.13 \captionlabelfont \captionfont upright 19.14 \begin{figure} \renewcommand{\captionfont}{\large \bfseries \sffamily} \renewcommand{\captionlabelfont}{\small} \centering \includegraphics[width=2in]{graphic.eps} \caption{test Caption} \end{figure}
116 19.7 Graphics 19.14: Test Caption \captionlabelfont \small \captionfont \Large \captionlabelfont \bfseries \sffamily 19.7. caption2 \newcaptionstyle{one}{% \usecaptionmargin\captionfont% \onelinecaption% {{\bfseries\captionlabelfont\captionlabel\captionlabeldelim} \captiontext}% {{\centering\bfseries\captionlabelfont\captionlabel\par}% \captiontext}} \newcaptionstyle{two}{% \usecaptionmargin\captionfont% {\centering\bfseries\captionlabelfont\captionlabel\par} \onelinecaption{\captiontext}{\captiontext}} one two Figure 12 two one 19.15 19.16
caption2 117 Graphics 19.15: First Custom Caption Style Graphics 19.16 Second Custom Caption Style \begin{figure} \captionstyle{one} \centering \includegraphics[width=2in]{graphic.eps} \caption{first Custom Caption Style} \end{figure} \begin{figure} \captionstyle{two} \centering \includegraphics[width=2in]{graphic.eps} \caption{second Custom Caption Style} \end{figure} \onelinecommand \captionfont \captionlabelfont
118 19.8 Graphics 19.17: First Line of Caption Second Line of Caption \captionlabelfont \bfseries 19.8. \protect\\ \\ \par caption2 \begin{figure} \centering \includegraphics[width=3in]{graphic.eps} \captionstyle{center} \onelinecaptionsfalse \caption{first Line of Caption \protect\\ Second Line of Caption} \label{fig:caption:linebreak} \end{figure} 19.17 \\ 2 \protect \onelinecaptionfalse nooneline L A TEX 2 \textbf
caption2 119 19.9. 3 \linespread{1.6} \renewcommand{\baselinestretch}{1.6} setspace 4 \usepackage{setspace} \linestretch{1.6} \linestrech 1 1.2 1.6 setspace \captionfont \renewcommand{\captionfont}{\linespread{1.6}\normalsize} 3 \normalsize 4 doublespace LATEX2ε LATEX2ε setspace
120 19.9
20 16 L A TEX L A TEX 1 \caption figure table \@captype \@captype figure table \caption \@captype \makeatletter-\makeatother @ \includegraphics{file.eps} \makeatletter\def\@captype{figure}\makeatother \caption{this is the caption} \makeatletter \newcommand\figcaption{\def\@captype{figure}\caption} \newcommand\tabcaption{\def\@captype{table}\caption} \makeatother \figcaption \tabcaption 1 [!ht]
122 20.1 float H This is the text before the figure. \\[\intextsep] \begin{minipage}{\textwidth} \centering \includegraphics[width=2in]{graphic.eps}% \figcaption{this is a non-floating figure} \label{fig:non:float} \end{minipage} \\[\intextsep] This is the text after the figure. minipage \\[\intextsep] \intextsep 18.1 L A TEX 2 \clearpage \FloatBarrier 16.3 \figcaption \tabcaption 21 29 20.1. float [H] float 3 figure [H] figure 2 3 float Program, Algorithm
123 \usepackage{float} \begin{figure}[h] \restylefloat [3, 149 ] float [H] 1. [H] 2. float 103 18.2 138 24.1 109-110 19.1-19.7 \figcaption float [H]
124 20.1 float H
21 \marginpar \reversemarginpar twoside \marginparwidth \marginparsep L A TEX figure 20 \figcaption 21.1...~ \marginpar{\centering \includegraphics[width=\marginparwidth]{graphic.eps}% \figcaption{this is a Marginal Figure} \label{fig:marginal:fig} } ~\ref{fig:marginal:fig}~ Graphics 21.1: This is a Marginal Figure
126 21.1 \marginpar caption2 flushleft flushright caption2 \renewcommand{captionfont}{\small} 19 20 \clearpage \FloatBarrier L A TEX morefloat 16.4
22 21 narrow \newenvironment{narrow}[2]{% \begin{list}{}{% \setlength{\topsep}{0pt}% \setlength{\leftmargin}{#1}% \setlength{\rightmargin}{#2}% \setlength{\listparindent}{\parindent}% \setlength{\itemindent}{\parindent}% \setlength{\parsep}{\parskip}}% \item[]}{\end{list}} \begin{narrow}{1in}{2in} \end{narrow} 1 2
128 22.1 22.1. narrow 1 \begin{figure} \begin{narrow}{-1in}{0in} \includegraphics[width=\linewidth]{wide.eps} \caption{this is a wide figure} \end{narrow} \end{figure} \linewidth narrow \textwidth \textwidth+\marginparwidth+\marginparsep \marginwidth \marginparwidth+\marginparsep \newlength{\marginwidth} \setlength{\marginwidth}{\marginparwidth} \addtolength{\marginwidth}{\marginparsep} \begin{narrow} -\marginwidth 22.2. ifthen \ifthenelse \usepackage{ifthen}... \newlength{\marginwidth}
129 \setlength{\marginwidth}{\marginparwidth} \addtolength{\marginwidth}{\marginparsep} \begin{figure} \ifthenelse{\isodd{\pageref{fig:wide}}}% {% BEGIN ODD-PAGE FIGURE \begin{narrow}{0in}{-\marginwidth} \includegraphics[width=\linewidth]{wide.eps} \caption{figure Caption} \label{fig:wide} \end{narrow} }% END ODD-PAGE FIGURE {% BEGIN EVEN-PAGE FIGURE \begin{narrow}{-\marginwidth}{0in} \includegraphics[width=\linewidth]{wide.eps} \caption{figure Caption} \label{fig:wide} \end{narrow} }% END EVEN-PAGE FIGURE \end{figure} 22.1 \ifthenelse \pageref L A TEX hyperref \pageref \hypergetpageref A Very, Very Wide Graphics 22.1: Figure Caption
130 22.2
23 1. lscape landscape 2. rotating \sidewaysfigure figure 3. rotating \rotcaption \caption 1 2 3 2 1 landscape landscape 1 2 1 2 1 landscape longtable 2 landscape
132 23.1 Landscape 1 3 figure endfloat 18.5 23.1. Landscape landscape L A TEX landscape \begin{landscape} \end{landscape} landscape \begin{landscape} \begin{figure} \centering \includegraphics[width=4in]{graphic.eps} \caption{landscape Figure} \end{figure} \end{landscape} 23.1 landscape :)
Graphics 23.1: Landscape Figure 133
134 23.2 Sidewaysfigure 23.2. Sidewaysfigure rotating sidewaysfigure \begin{sidewaysfigure} \centering \includegraphics[width=4in]{graphic.eps} \caption{sidewaysfigure Figure} \end{sidewaysfigure} 23.2 landscape sidewaysfigure landscape sidewaysfigure oneside twoside oneside twoside rotating \usepackage[figuresleft]{rotating} sidewaysfigure oneside twoside \usepackage[figuresright]{rotating} sidewaysfigure 23.3. Rotcaption 23.1 23.2 rotating \rotcaption
Graphics 23.2: Sidewaysfigure Figure 135
136 23.3 Rotcaption Graphics 23.3: Rotcaption Caption \begin{figure} \centering \begin{minipage}[c]{1in} \includegraphics[angle=90,width=\textwidth]{graphic.eps} \end{minipage} \begin{minipage}[c]{0.5in} \rotcaption{rotcaption Caption} \label{fig:rotcaption} \end{minipage} \end{figure} 23.3 \rotcaption 23.1 23.2 \rotcaption \includegraphics angle=90
24 1 24.1 24.2 24.1. \caption \caption \begin{figure} \centering \begin{minipage}[c]{.45\textwidth} \centering \caption{caption on the Side} \label{fig:side:caption} \end{minipage}% \begin{minipage}[c]{.45\textwidth} \centering \includegraphics[width=\textwidth]{graphic.eps} 1 float figure \restylefloat float
138 24.2 24.1: Caption on the Side Graphics \end{minipage} \end{figure} 24.1 \hfill \hspace{.05\textwidth} 24.1 11.4 24.2. 24.1 ifthen \ifthenelse \usepackage{ifthen}... \begin{figure} \centering \ifthenelse{\isodd{\pageref{fig:side:caption}}} {% BEGIN ODD-PAGE FIGURE \begin{minipage}[c]{.45\textwidth} \centering \caption{caption on the Side} \label{fig:side:caption} \end{minipage}% \hspace{0.05\textwidth}% \begin{minipage}[c]{.45\textwidth} \includegraphics[width=\textwidth]{graphic.eps}
139 \end{minipage}% }% END ODD-PAGE FIGURE {% BEGIN EVEN-PAGE FIGURE \begin{minipage}[c]{.45\textwidth} \includegraphics[width=\textwidth]{graphic.eps} \end{minipage}% \hspace{0.05\textwidth}% \begin{minipage}[c]{.45\textwidth} \centering \caption{caption on the Side} \label{fig:side:caption} \end{minipage}% }% END EVEN-PAGE FIGURE \end{figure} 24.3. Sidecap sidecap sidecap SCfigure \caption \usepackage{sidecap}... \begin{scfigure} \includegraphics[width=3in]{graphic.eps} \caption{this is a SCfigure} \end{scfigure} 24.2 sidecap \usepackage outercaption sidecap
140 24.3 Sidecap Graphics 24.2: This is a SCfigure innercaption leftcaption rightcaption Scfigure 100 1 [htp] [!ht] refsec:figplacement
25 afterpage \afterpage ifthen \ifthenelse figure 20 \figcaption figure \makeatletter \newcommand\figcaption{\def\@captype{figure}\caption} \makeatother \ifthenelse \leftfig \newcommand\leftfig{% \vspace*{\fill}% \centering \includegraphics{graphic.eps} \figcaption{this is on the left (even) page.} \vspace*{\fill}\newpage}
142 \afterpage,\ifthenelse \afterpage{\clearpage% \ifthenelse{\isodd{\value{page}}}% {\afterpage{\leftfig}}% {\leftfig}} \ifthenelse \afterpage{\clearpage% \ifthenelse{\isodd{\value{page}}}% {\leftfig}}% {\afterpage{\leftfig}} \value{page} \pageref \pageref L A TEX \newcommand\leftfig{% \vspace*{\fill}% \begin{minipage}{\textwidth} \centering \includegraphics{graphic.eps} \figcaption{this is on the left (even) page.} \end{minipage} \vspace*{\fill}\newpage} \afterpage lost float \clearpage \ifthenelse \afterpage{\ifthenelse{\isodd{\value{page}}}% {\afterpage{\leftfig}}% {\leftfig}}