diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-08-27 16:14:15 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-08-27 16:14:15 -0400 |
commit | 1273c595b8f3d6e689e69a7b09e2a465816234dd (patch) | |
tree | 6b18ed2713956970d9f7510ae553b08043986f51 /styles/evmikcompact.sty | |
parent | d336626d00b1011cbc3520276aaab62d09ddd1c3 (diff) | |
download | manual_for_Experimental_Atomic_Physics-1273c595b8f3d6e689e69a7b09e2a465816234dd.tar.gz manual_for_Experimental_Atomic_Physics-1273c595b8f3d6e689e69a7b09e2a465816234dd.zip |
added syllabus draft
Diffstat (limited to 'styles/evmikcompact.sty')
-rw-r--r-- | styles/evmikcompact.sty | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/styles/evmikcompact.sty b/styles/evmikcompact.sty new file mode 100644 index 0000000..640c428 --- /dev/null +++ b/styles/evmikcompact.sty @@ -0,0 +1,189 @@ +%% +%% This is file `fullpage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% fullpage.dtx (with options: `package') +%% ============================================= +%% IMPORTANT NOTICE: +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% This is a generated file. +%% It may not be distributed without the original source file fullpage.dtx. +%% +%% Full documentation can be obtained by LaTeXing that original file. +%% Only a few abbreviated comments remain here to describe the usage. +%% ============================================= +%% by Eugeniy E. Mikhailov +%% this package try to shrink all unnesesary spaces +%% it is all very crude and suitable only for very tailored cases +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{evmikcompact} + [2010/09/17 1.0] + +\def\maketitle{% +{\flushleft\Large \bf \@title\par}% +\vskip 1em +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% section definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\section{\@ifstar\unnumberedsection\numberedsection} +\def\numberedsection{\@ifnextchar[%] + \numberedsectionwithtwoarguments\numberedsectionwithoneargument} +\def\unnumberedsection{\@ifnextchar[%] + \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} +\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}} +\def\numberedsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{section}% + \noindent + \leavevmode + \begingroup + \large + \bfseries + \thesection\ + #2.\quad + \endgroup + \addcontentsline{toc}{section}{% + \protect\numberline{\thesection}% + #1}% + } +\def\unnumberedsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{section}% + \noindent + \leavevmode + \begingroup + \large + \bfseries +% \thesection\ + #2.\quad + \endgroup + \addcontentsline{toc}{section}{% +% \protect\numberline{\thesection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% subsection definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\subsection{\@ifstar\unnumberedsubsection\numberedsubsection} +\def\numberedsubsection{\@ifnextchar[%] + \numberedsubsectionwithtwoarguments\numberedsubsectionwithoneargument} +\def\unnumberedsubsection{\@ifnextchar[%] + \unnumberedsubsectionwithtwoarguments\unnumberedsubsectionwithoneargument} +\def\numberedsubsectionwithoneargument#1{\numberedsubsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsubsectionwithoneargument#1{\unnumberedsubsectionwithtwoarguments[#1]{#1}} +\def\numberedsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{subsection}% + \noindent + \leavevmode + \begingroup + \bfseries + \thesubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsection}{% + \protect\numberline{\thesubsection}% + #1}% + } +\def\unnumberedsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{subsection}% + \noindent + \leavevmode + \begingroup + \bfseries +% \thesubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsection}{% +% \protect\numberline{\thesubsection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% subsubsection definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\subsubsection{\@ifstar\unnumberedsubsubsection\numberedsubsubsection} +\def\numberedsubsubsection{\@ifnextchar[%] + \numberedsubsubsectionwithtwoarguments\numberedsubsubsectionwithoneargument} +\def\unnumberedsubsubsection{\@ifnextchar[%] + \unnumberedsubsubsectionwithtwoarguments\unnumberedsubsubsectionwithoneargument} +\def\numberedsubsubsectionwithoneargument#1{\numberedsubsubsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsubsubsectionwithoneargument#1{\unnumberedsubsubsectionwithtwoarguments[#1]{#1}} +\def\numberedsubsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{subsubsection}% + \noindent + \leavevmode + \begingroup + \bfseries + \thesubsubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsubsection}{% + \protect\numberline{\thesubsubsection}% + #1}% + } +\def\unnumberedsubsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{subsubsection}% + \noindent + \leavevmode + \begingroup + \bfseries +% \thesubsubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsubsection}{% +% \protect\numberline{\thesubsubsection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% list items config +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%\def\@listi{\leftmargin\leftmargini + %\parsep 5\p@ \@plus2.5\p@ \@minus\p@ + %\topsep 2.5\p@ \@plus4\p@ \@minus6\p@ + %\itemsep0.0\p@ \@plus2.5\p@ \@minus\p@} +%\let\@listI\@listi + +\AtBeginDocument{% + \renewcommand{\@listi} + {\setlength{\leftmargin}{\leftmargini} + \setlength{\topsep} {0pt} + \setlength{\parsep} {\parskip} + \setlength{\itemsep}{0pt}} + \renewcommand{\@listii} + {\setlength{\leftmargin}{\leftmarginii} + \setlength{\labelwidth}{\leftmarginii} + \addtolength{\labelwidth}{-\labelsep}} + \renewcommand{\@listiii} + {\setlength{\leftmargin}{\leftmarginiii} + \setlength{\labelwidth}{\leftmarginiii} + \addtolength{\labelwidth}{-\labelsep}}} +\makeatother + |