[Tugindia] Could we able to increase the default dimension?

Baskaran.K baskaran at sps.co.in
Mon Sep 29 18:53:30 CEST 2003


    Baskaran> The caption text is one page; less than a4paper. We use
    Baskaran> one style file for copy editing purpose, so the point
    Baskaran> size of caption is 14pt/16pt.I find the dimension of
    Baskaran> caption, if the width of the caption less than textwidth
    Baskaran> then the caption is centered, otherwise the caption is
    Baskaran> like a paragraph. So first i find the dimension by
    Baskaran> \setbox0=\hbox{caption} 

\setbox0=\vbox{<whatever>}

\ifdim\ht0>\fontdimen6\font 
  \typeout{Box has more than one line}
\else
  \typeout{Box has single line}
\fi

This could save you from the \maxdimen tragedy.

Radhakrishnan

Dear Sir,

Thank you very much sir. This logic will help me more.

Regards
Baskaran NK

_______________________________________________
Home:        http://www.tug.org.in/
unsubscribe: http://tug.org/mailman/listinfo/tugindia


More information about the tugindia mailing list