[tex-eplain] Landscape illustrations and captions

Adam Fenn acwfenn at ntlworld.com
Tue Sep 22 10:50:00 CEST 2009


How can I modify the hyperlinks example (8.1) in the eplain 
documentation so that the caption appears on the right side of the 
illustration and is also centred on the illustration?
The only modification to the code I have made is to add the option 
angle=90.

Thanks,
Adam.

  \input eplain

\beginpackages
  \usepackage{url}[2005/06/27]
   \usepackage{color}
\usepackage{graphicx}
\endpackages

\enablehyperlinks

\hlopts{bwidth=0}
\hlopts[url]{colormodel=named,color=BlueViolet}

\nopagenumbers

\def\figureword{fig.}

\newcount\fignumber
\newbox\imgbox

\def\fig#1#2#3#4{%
\medskip
\global\advance\fignumber by 1
\setbox\imgbox = \hbox{\includegraphics[angle=90,width=#4]{#2}}%
\textindent{%
\rotatebox{90}{F{\sc IGURE}~\the\fignumber.  #3}%
}%
\vbox{%
\hldesttype[definexref]{fitr}%
\hldestopts[definexref]{width=\wd\imgbox,height=0pt,depth=\ht\imgbox}%
\definexref{#1}{\the\fignumber}{figure}%
\box\imgbox
}%
\medskip
}

\fig{CTANlion}{ctan_lion_350x350}{Lion in the archives}{200pt}

\bye 



More information about the tex-eplain mailing list