Skip to content

Commit

Permalink
Updated livecoms.cls to most recent commit, recompiled PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsideriusNIST committed Feb 2, 2018
1 parent 9a1f46f commit 35d18d5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions livecoms.cls
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,30 @@
%% Added for LiveComs
\RequirePackage{environ}
\RequirePackage{textpos}

%% Abstract outside frontmatter will throw an error!
\RenewEnviron{abstract}{%
\ClassError{livecome}
{Nope nope nope, please put the abstract inside the frontmatter environment.}
{Please put the abstract inside the frontmatter environment.}
}

\NewEnviron{frontmatter}{%
%% Define abstract's behavior when placed in frontmatter
\renewenvironment{abstract}{%
\setlength{\parindent}{0pt}\raggedright
\raisebox{-16pt-\baselineskip}[0pt][0pt]{\makebox[0pt][r]{\parbox[t]{3cm}{%
\raggedright\itshape\footnotesize\@blurb\par\medskip%
This version dated \@date%
}\hspace*{1cm}}}%
\textcolor{LiveCoMSMediumGrey}{\rule{\textwidth}{2pt}}
\vskip16pt
\textcolor{LiveCoMSLightBlue}{\large\bfseries\abstractname\space}
}{%
\vskip8pt
\textcolor{LiveCoMSMediumGrey}{\rule{\textwidth}{2pt}}
\vskip16pt
}
\twocolumn[%
\protecting{%\begin{minipage}[b]{3cm}
% \small\itshape
Expand All @@ -352,21 +375,6 @@
\vskip8pt
}

\renewenvironment{abstract}{%
\setlength{\parindent}{0pt}\raggedright
\raisebox{-16pt-\baselineskip}[0pt][0pt]{\makebox[0pt][r]{\parbox[t]{3cm}{%
\raggedright\itshape\footnotesize\@blurb\par\medskip%
This version dated \@date%
}\hspace*{1cm}}}%
\textcolor{LiveCoMSMediumGrey}{\rule{\textwidth}{2pt}}
\vskip16pt
\textcolor{LiveCoMSLightBlue}{\large\bfseries\abstractname\space}
}{%
\vskip8pt
\textcolor{LiveCoMSMediumGrey}{\rule{\textwidth}{2pt}}
\vskip16pt
}

%% Insert a grey line to separate floats from main text
\newcommand{\topfigrule}{\vskip8pt\noindent{\rule{\linewidth}{1pt}}}
\newcommand{\botfigrule}{\noindent{\rule{\linewidth}{1pt}}\vskip8pt}
Expand Down Expand Up @@ -608,4 +616,4 @@
\let\oldautoref\autoref
\renewcommand{\autoref}[1]{\emph{\textbf{\oldautoref{#1}}}}

\endinput
\endinput
Binary file modified main.pdf
Binary file not shown.

0 comments on commit 35d18d5

Please sign in to comment.