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
6e587de6
"readme.md" did not exist on "a20fe8b61812f78a6bf0f1dda3a1c00ce14ba658"
Commit
6e587de6
authored
3 years ago
by
John Swinbank
Browse files
Options
Downloads
Patches
Plain Diff
Cache results of font check
parent
fce6d4aa
No related branches found
No related tags found
1 merge request
!31
Use new logo; improve font check
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
texmf/tex/latex/astron/escape.cls
+10
-5
10 additions, 5 deletions
texmf/tex/latex/astron/escape.cls
with
10 additions
and
5 deletions
texmf/tex/latex/astron/escape.cls
+
10
−
5
View file @
6e587de6
...
@@ -82,7 +82,12 @@
...
@@ -82,7 +82,12 @@
% Default font for ESCAPE documents is Calibri
% Default font for ESCAPE documents is Calibri
% But if we can't find it (e.g. in CI), don't worry about it
% But if we can't find it (e.g. in CI), don't worry about it
\IfFontExistsTF
{
Calibri
}{
\setmainfont
{
Calibri
}}{}
% Attempt to cache the results of the font check; it is very slow
\newcommand
{
\useCalibri
}{}
\IfFontExistsTF
{
Calibri
}{
\renewcommand
{
\useCalibri
}{
\setmainfont
{
Calibri
}}}{}
\newcommand
{
\useArial
}{}
\IfFontExistsTF
{
Arial
}{
\renewcommand
{
\useArial
}{
\setmainfont
{
Arial
}}}{}
\useCalibri
%
%
...
@@ -92,14 +97,14 @@
...
@@ -92,14 +97,14 @@
\fancyhf
{}
\fancyhf
{}
\lhead
{
\lhead
{
\
IfFontExistsTF
{
Arial
}{
\setmainfont
{
Arial
}}{}
\
use
Arial
\fontsize
{
8
}{
10
}
\selectfont
\fontsize
{
8
}{
10
}
\selectfont
\includegraphics
[width=2.0cm]
{
escape-logo.png
}
\\
\includegraphics
[width=2.0cm]
{
escape-logo.png
}
\\
\docNumber
{}
--
\docTitle
{}}
\docNumber
{}
--
\docTitle
{}}
\rhead
{
\rhead
{
\raisebox
{
1.8cm
}{
\raisebox
{
1.8cm
}{
\
IfFontExistsTF
{
Arial
}{
\setmainfont
{
Arial
}}{}
\
use
Arial
\fontsize
{
8
}{
10
}
\selectfont
\fontsize
{
8
}{
10
}
\selectfont
\renewcommand
{
\arraystretch
}{
1.5
}
\renewcommand
{
\arraystretch
}{
1.5
}
\begin{tabular}
{
>
{
\raggedright
}
ll
}
\begin{tabular}
{
>
{
\raggedright
}
ll
}
...
@@ -109,7 +114,7 @@
...
@@ -109,7 +114,7 @@
}}
}}
\cfoot
{
\cfoot
{
\
IfFontExistsTF
{
Calibri
}{
\setmainfont
{
Calibri
}}{}
\
use
Calibri
\begin{tabularx}
{
\textwidth
}{
@
{}
lXll@
{}}
\begin{tabularx}
{
\textwidth
}{
@
{}
lXll@
{}}
\includegraphics
[width=1cm]
{
flag-eu
}
\hspace
{
0.3cm
}
&
\includegraphics
[width=1cm]
{
flag-eu
}
\hspace
{
0.3cm
}
&
\fontsize
{
8
}{
10
}
\selectfont
\fontsize
{
8
}{
10
}
\selectfont
...
@@ -139,7 +144,7 @@
...
@@ -139,7 +144,7 @@
\end{textblock*}
\end{textblock*}
\begin{textblock*}
{
1
\textwidth
}
(
\sideMargin
, 9cm)
{
\begin{textblock*}
{
1
\textwidth
}
(
\sideMargin
, 9cm)
{
\
IfFontExistsTF
{
Arial
}{
\setmainfont
{
Arial
}}{}
\
use
Arial
\fontsize
{
10
}{
12
}
\selectfont
\fontsize
{
10
}{
12
}
\selectfont
\renewcommand
{
\arraystretch
}{
1.5
}
\renewcommand
{
\arraystretch
}{
1.5
}
\hyphenpenalty
=10000
\hyphenpenalty
=10000
...
...
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