Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
astron-texmf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
Documents
astron-texmf
Commits
f42c4219
Commit
f42c4219
authored
4 years ago
by
John Swinbank
Browse files
Options
Downloads
Patches
Plain Diff
Clean up markup
parent
3a92049e
Branches
Branches containing commit
No related tags found
1 merge request
!2
Assorted formatting improvements
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/example.tex
+3
-3
3 additions, 3 deletions
example/example.tex
texmf/tex/latex/astron/astron.cls
+62
-57
62 additions, 57 deletions
texmf/tex/latex/astron/astron.cls
with
65 additions
and
60 deletions
example/example.tex
+
3
−
3
View file @
f42c4219
...
...
@@ -18,12 +18,12 @@
\setDocCheckers
{
\addPerson
{
Checker 1
}{
A place
}{
today
}
\addPerson
{
Checker 2
Swinbank
}{
Another place
}{
t
omorrow
}
\addPerson
{
Checker 2
}{
Another place
}{
T
omorrow
}
}
\setDocApprovers
{
\addPerson
{
Approver 1
}{
A place
}{
t
oday
}
\addPerson
{
Approver 2
}{
Another place
}{
t
omorrow
}
\addPerson
{
Approver 1
}{
A place
}{
T
oday
}
\addPerson
{
Approver 2
}{
Another place
}{
T
omorrow
}
}
\setDocAuthorizers
{
...
...
This diff is collapsed.
Click to expand it.
texmf/tex/latex/astron/astron.cls
+
62
−
57
View file @
f42c4219
...
...
@@ -7,15 +7,27 @@
\LoadClass
[a4paper,12pt,twoside]
{
article
}
\newlength
{
\topMargin
}
\newlength
{
\bottomMargin
}
\newlength
{
\sideMargin
}
\setlength
{
\topMargin
}{
3.5cm
}
\setlength
{
\bottomMargin
}{
3.5cm
}
\setlength
{
\sideMargin
}{
2cm
}
\RequirePackage
{
graphicx
}
\RequirePackage
{
geometry
}
\geometry
{
tmargin=3.5cm,bmargin=3.5cm,lmargin=2cm,rmargin=2cm,headheight=52.05211pt
}
\RequirePackage
{
fancyhdr
}
\RequirePackage
{
lastpage
}
\RequirePackage
{
longtable
}
\RequirePackage
[absolute]
{
textpos
}
\RequirePackage
{
tabularx
}
\geometry
{
tmargin=
\topMargin
,
bmargin=
\bottomMargin
,
lmargin=
\sideMargin
,
rmargin=
\sideMargin
,
headheight=52.05211pt
}
\setlength
{
\parindent
}{
0cm
}
% No indent at start of paragraphs
\setlength
{
\parskip
}{
\baselineskip
}
% Blank line between paragraph
...
...
@@ -149,39 +161,36 @@
% Construct the title page, history, etc.
%
\renewcommand
{
\maketitle
}{
~
\\
\vspace*
{
4cm
}
\begin{center}
\vspace
{
3cm
}
\LARGE\textbf
{
\docTitle
{}}
\vspace
{
4cm
}
\end{center}
\newlength
{
\mylength
}
\settoheight
{
\mylength
}{
%
\begin{tabularx}
{
\textwidth
}{
|p
{
0.35
\textwidth
}
|p
{
0.35
\textwidth
}
|X|
}
\cline
{
2-3
}
\cline
{
3-3
}
\multicolumn
{
1
}{
c|
}{}
&
\textbf
{
\footnotesize
{}
Organisatie / Organization
}
&
\textbf
{
\footnotesize
{}
Datum / Date
}
\tabularnewline
\hline
\textbf
{
\footnotesize
{}
Auteur(s) / Author(s):
\vspace
{
0.2cm
}}
&
&
\tabularnewline
\docAuthors
\hline
\textbf
{
\footnotesize
{}
Controle / Checked:
\vspace
{
0.2cm
}}
&
&
\tabularnewline
\docCheckers
\hline
\textbf
{
\footnotesize
{}
Goedkeuring / Approval:
\vspace
{
0.2cm
}}
&
&
\tabularnewline
\docApprovers
\hline
\textbf
{
\footnotesize
{}
Autorisatie / Authorization:
}
&
&
\tabularnewline
\docAuthorizers
\textbf
{
\footnotesize
{}
Handtekening / Signature:
\vspace
{
1cm
}}
&
&
\tabularnewline
\hline
\end{tabularx}
% This position was determined by trial and error; a bit unsatisfying.
\newlength
{
\copyrightBoxPosition
}
\setlength
{
\copyrightBoxPosition
}{
25.2cm
}
% Add the copyright notice towards the bottom of the page.
\begin{textblock*}
{
1
\textwidth
}
(
\sideMargin
,
\copyrightBoxPosition
)
\fbox
{
%
\begin{minipage}
{
\dimexpr\linewidth
-2
\fboxrule
-2
\fboxsep
}
\begin{center}
\begin{small}
\textcopyright
{}
ASTRON 2020.
\\
All rights are reserved. Reproduction in whole or in part is
\\
prohibited without written consent of the copyright owner.
\end{small}
\end{center}
\end{minipage}
%
}
\end{textblock*}
\
begin{textblock*}
{
1
\textwidth
}
(2cm,
\dimexpr
25.2cm-2
\mylength
+
\fboxsep
)
\
newcommand
{
\authorTable
}{
%
\begin{tabularx}
{
\textwidth
}{
|p
{
0.35
\textwidth
}
|p
{
0.35
\textwidth
}
|X|
}
\cline
{
2-3
}
\cline
{
3-3
}
\multicolumn
{
1
}{
c|
}{}
&
\textbf
{
\footnotesize
{}
Organisatie / Organization
}
&
\textbf
{
\footnotesize
{}
Datum / Date
}
\tabularnewline
\multicolumn
{
1
}{
c|
}{}
&
\textbf
{
\footnotesize
{}
Organisatie / Organization
}
&
\textbf
{
\footnotesize
{}
Datum / Date
}
\tabularnewline
\hline
\textbf
{
\footnotesize
{}
Auteur(s) / Author(s):
\vspace
{
0.2cm
}}
&
&
\tabularnewline
\docAuthors
...
...
@@ -197,22 +206,18 @@
\textbf
{
\footnotesize
{}
Handtekening / Signature:
\vspace
{
1cm
}}
&
&
\tabularnewline
\hline
\end{tabularx}
\end{textblock*}
\begin{textblock*}
{
1
\textwidth
}
(2cm,25.2cm)
}
\fbox
{
\begin{minipage}
{
\dimexpr\linewidth
-2
\fboxrule
-2
\fboxsep
}
\begin{center}
\begin{small}
\textcopyright
{}
ASTRON 2020.
\\
All rights are reserved. Reproduction in whole or in part is
\\
prohibited without written consent of the copyright owner.
\end{small}
\end{center}
\end{minipage}
}
% We generate the author table once (but don't print it) to measure its height,
% then use that to position the textblock* which ultimately contains the table.
% Note the measured height is (approximately) half the full height.
\newlength
{
\authorTableHalfHeight
}
\settoheight
{
\authorTableHalfHeight
}{
\authorTable
}
\begin{textblock*}
{
1
\textwidth
}
(
\sideMargin
,
\dimexpr\copyrightBoxPosition
-2
\authorTableHalfHeight
+
\fboxsep
)
\authorTable
\end{textblock*}
\clearpage
\docChangeRecord
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment