Skip to content

Commit

Permalink
Improve internal structure of MLS.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 28, 2020
1 parent f2537ee commit 3c3dc29
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
49 changes: 6 additions & 43 deletions MLS.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
\documentclass[10pt,a4paper]{report}
\NeedsTeXFormat{LaTeX2e}
\usepackage[utf8]{inputenc}
\input{preamble.tex}
\ifpdf
\addbibresource{mls.bib}
\fi

% Define title for use by LaTeXML.
% An extended title is defined separately in the 'titlepage'.
Expand All @@ -15,54 +11,21 @@

\author{Modelica Association}

\input{preamble.tex}
\ifpdf
\addbibresource{mls.bib}
\fi

\begin{document}

% Setting pageanchor false for these unnumbered pages
% Changed back after abstract
% Changed back after title page.
% The downside is that you cannot go to them in acrobat
% This is from https://tex.stackexchange.com/questions/18924/pdftex-warning-ext4-destination-with-the-same-identifier-nam-epage-1-has
% The accepted solution did not seem to work
\hypersetup{pageanchor=false,bookmarksdepth=2,destlabel=true,bookmarksopenlevel=0}

% Title
\begin{titlepage}
% Note that things like \vspace and linebreaks with height (\\[2\baselineskip]) are lost in generated HTML;
% only line breaks and paragraph breaks survive.
\addtolength{\parskip}{\baselineskip}% Lots of space between paragraphs on the PDF title page.
\vspace*{\fill}
\begin{center}
\ifpdf
\includegraphics[width=8cm]{Modelica_Language}
\else
\includegraphics[width=15cm]{Modelica_Language}
\fi
\vspace{1cm}

\huge
Modelica\textsuperscript{\textregistered} -- A Unified Object-Oriented Language for~Systems Modeling

Language Specification

Version \mlsversion

\vspace{1cm}% This has no effect in the generated HTML.

\Large
\makeatletter
\@date

\@author
\makeatother
\end{center}

\ifpdf
\vfill
\else
\newpage % In the HTML, this will appear as some extra vertical space.
\fi
\input{chapters/abstract}
\end{titlepage}
\include{chapters/titlepage}

% Add new Modelica Language logotype
% The header ruler looks odd as Modelica Language define a natural line that is further up
Expand Down
37 changes: 37 additions & 0 deletions chapters/titlepage.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
\begin{titlepage}
% Note that things like \vspace and linebreaks with height (\\[2\baselineskip]) are lost in generated HTML;
% only line breaks and paragraph breaks survive.
\addtolength{\parskip}{\baselineskip}% Lots of space between paragraphs on the PDF title page.
\vspace*{\fill}
\begin{center}
\ifpdf
\includegraphics[width=8cm]{Modelica_Language}
\else
\includegraphics[width=15cm]{Modelica_Language}
\fi
\vspace{1cm}

\huge
Modelica\textsuperscript{\textregistered} -- A Unified Object-Oriented Language for~Systems Modeling

Language Specification

Version \mlsversion

\vspace{1cm}% This has no effect in the generated HTML.

\Large
\makeatletter
\@date

\@author
\makeatother
\end{center}

\ifpdf
\vfill
\else
\newpage % In the HTML, this will appear as some extra vertical space.
\fi
\input{chapters/abstract}
\end{titlepage}

0 comments on commit 3c3dc29

Please sign in to comment.