[Tugindia] A problem with interline spacing.
S. venkataraman
svenkat at ignou.ac.in
Tue Feb 7 06:22:58 CET 2006
Please remove the font changing commands from the "\coursecode" and
"\assignmentcode" definitions and put it within the "\makeheading" as
below:
\documentclass[11pt]{article}
\makeatletter
\newcommand{\@asscode}{\relax}
\newcommand{\@ccode}{\relax}
\newcommand{\titlefont}{%
\fontfamily{ptm}
\fontseries{b}
\fontsize{9}{11}
\selectfont}
\newcommand{\coursecode}[1]{%
\renewcommand{\@ccode}{%
{Course Code: #1}}}
\newcommand{\assignmentcode}[1]{%
\renewcommand{\@asscode}{%
{Assignment Code: #1}}}
\newcommand{\makeheading}{%
\begin{flushright}
\titlefont
\@ccode\\
\@asscode\\
Maximum Marks: 100
\end{flushright}}
\makeatother
\begin{document}
\coursecode{MTE-12}
\assignmentcode{MTE-12}
\makeheading
\end{document}
It seems that otherwise, though the *size* of the font is changed, the
baselineskip is retained as 13.6 points (the default for 11 point font)
within the flushleft environment
Thanks, it worked. Is this a bug?
Should it be sent to the Latex team?
With best regards,
S. Venkataraman
More information about the tugindia
mailing list