User:NatarajanYoganathan

Figure Conditions
\newbox\figplacementbox \newdimen\figwidhmeasure

\def\FIG#1#2{ \setbox\figplacementbox\hbox{#1} \figwidhmeasure\wd\figplacementbox \ifdim\figwidhmeasure<28pc \begin{flushleft} \end{flushleft} \else yyy#1 \fi }
 * 1
 * 2
 * 2

List Label and Ref style.

 * LaTeX: List number bold: \label{2.1} 2.1
 * \def\labelenumi{\textbf{\thechapter.\arabic{enumi }}} % Label bold
 * LaTeX: List text number unbold: \ref{2.1} List 2.1
 * \def\theenumi{\thechapter.\arabic{enumi }} % Ref unbold

No room for a new \write: Error
! No room for a new \write.

\alloc@ ...else \errmessage {No room for a new #2}

\fi \fi

l.111 \end{document}

?

! Emergency stop.

\alloc@ ...else \errmessage {No room for a new #2}

\fi \fi

l.111 \end{document}

End of file on the terminal!

No room for a new \write: Solution
\usepackage{morewirtes}

or

\usepackage{etex}

\reserveinserts{28}

How to globally change the spacing around equations?
\documentclass{article} \usepackage{amsmath} \makeatletter \g@addto@macro\normalsize{ \setlength\abovedisplayskip{40pt} \setlength\belowdisplayskip{40pt} \setlength\abovedisplayshortskip{40pt} \setlength\belowdisplayshortskip{40pt} } \makeatother \begin{document} text \begin{gather} 1 + 1 = 2 \end{gather} text \begin{equation} 1 + 1 = 2 \end{equation} \end{document} The same can be done without \g@addto@macro, so without any @ and not requiring \makeatletter and \makeatother, by using \expandafter:

\expandafter\def\expandafter\normalsize\expandafter{ \normalsize \setlength\abovedisplayskip{40pt} \setlength\belowdisplayskip{40pt} \setlength\abovedisplayshortskip{40pt} \setlength\belowdisplayshortskip{40pt} }

Tikzpicture Line width changing here
\tikzset{     every picture/.style={line width=.6pt},     ultra thin/.style= {line width=0.2pt},     very thin/.style=  {line width=0.3pt},     thin/.style=       {line width=0.4pt},% thin is the default     semithick/.style=  {line width=0.6pt},     thick/.style=      {line width=0.8pt},     very thick/.style= {line width=1.2pt},     ultra thick/.style={line width=1.6pt},     help lines/.style= {line width=.4pt} }

Hiii