[Tugindia] (no subject)

ram prasad rkp_ce at rediffmail.com
Tue Apr 19 11:38:49 CEST 2005


  
Dear users,

I wish to have figures caption and table caption like given below. Pl suggest changes in the following code. The codes give below statement in bold font, i need some part in bold (Fig. 1)  and some not in bold font.

Fig. 1. Transimissivity value at nodes

% ASCE-like figure labels

\renewcommand{\figurename}{Fig.}

\renewcommand{\tablename}{Table}

\newsavebox{\TempBoxb}

\newlength{\TempBoxl}

\setlength{\belowcaptionskip}{1.5ex}

\renewcommand{\@makecaption}[2]{%

\savebox{\TempBoxb}{\rule{0em}{3ex}\sffamily\bfseries\normalsize#1.%

\makebox[1em]{}\sffamily\bfseries\normalsize#2}%

\settowidth{\TempBoxl}{\usebox{\TempBoxb}}

\ifthenelse{\lengthtest{\TempBoxl > \textwidth}}

{\sffamily\bfseries\normalsize#1. \sffamily\bfseries\normalsize#2\par}%

{\centering \usebox{\TempBoxb}}

\vskip\belowcaptionskip}%

Thanks in anticipation

R. K. Prasad


More information about the tugindia mailing list