-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
This will help with LaTeX fitting to a page. E.g. bug #19.
Default article code is:
\newcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\bfseries}}
The current compact_proposal code is (with changed spacing to match above):
\renewcommand{\section}{\@startsection {section}{1}{\z@}%
{0.5\baselineskip}%
{0.1\baselineskip}%
{\fontseries{b}\selectfont\centering}}
\renewcommand{\subsection}{\@startsection {subsection}{1}{\z@}%
{0.2\baselineskip}%
{0.1\baselineskip}%
{\fontseries{b}\fontshape{it}\selectfont\raggedright}}
So I think we could just set the values in the second and third lines to have glue. This can be done as \@plus and \@minus or can utilize etoolbox's \gluedef{command}{glue-expression}. I have not experimented with this.
In a similar vein, we should define a few length terms and use them consistently through the style sheet. Something like \@bigskip and \@smallskip. This can be done with etoolbox:
\deflength{length}{glue expression}
\newlength{\@bigskip}
\deflength{\@bigskip}{glue-expression}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request