Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
thesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Petri Numminen
thesis
Commits
16442135
Commit
16442135
authored
6 years ago
by
Jari-Matti Mäkelä
Browse files
Options
Downloads
Patches
Plain Diff
Add support for locally provided fonts in sharelatex
parent
424e9735
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
latex/thesis.lyx
+7
-2
7 additions, 2 deletions
latex/thesis.lyx
latex/thesis.tex
+6
-2
6 additions, 2 deletions
latex/thesis.tex
latex/utuftthesis.cls
+12
-1
12 additions, 1 deletion
latex/utuftthesis.cls
with
25 additions
and
5 deletions
latex/thesis.lyx
+
7
−
2
View file @
16442135
...
...
@@ -158,9 +158,9 @@ The utuftthesis.cls defines a new thesis class, which is based on the report
\begin_layout Plain Layout
- includereferences: true / false (default:false) include reference pages
when calculating the total number of pages
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Plain Layout
- realtimesnewroman: true / false (default:false) use Times New Roman instead
of LaTeX fonts with XeLaTeX.
Requires the font to be installed on the system / provided in the document
...
...
@@ -168,6 +168,11 @@ The utuftthesis.cls defines a new thesis class, which is based on the report
Other fonts can be defined with
\backslash
setmainfont.
\end_layout
\begin_layout Plain Layout
- sharelatex: true / false (default: false) don't attempt to use (c) system
fonts, instead read them from the project repository
\begin_inset Newline newline
\end_inset
...
...
This diff is collapsed.
Click to expand it.
latex/thesis.tex
+
6
−
2
View file @
16442135
...
...
@@ -42,11 +42,15 @@ document appearance and hyphenation
text at the beginning of each Chapter
- includereferences: true / false (default:false) include reference
pages when calculating the total number of pages
\\
pages when calculating the total number of pages
- realtimesnewroman: true / false (default:false) use Times New Roman
instead of LaTeX fonts with XeLaTeX. Requires the font to be installed
on the system / provided in the document directory. Other fonts can
be defined with
\textbackslash
setmainfont.
\\
be defined with
\textbackslash
setmainfont.
- sharelatex: true / false (default: false) don't attempt to use (c)
system fonts, instead read them from the project repository
\\
\\
Traditionally the best places to learn (La)TeX are probably the manual
pages for each package http://www.ctan.org/ and http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf.
...
...
This diff is collapsed.
Click to expand it.
latex/utuftthesis.cls
+
12
−
1
View file @
16442135
...
...
@@ -28,6 +28,7 @@
\DeclareStringOption
[true]
{
hidechapters
}
\DeclareStringOption
[false]
{
includereferences
}
\DeclareStringOption
[false]
{
realtimesnewroman
}
\DeclareStringOption
[false]
{
sharelatex
}
%% Process given options
\ProcessKeyvalOptions*
...
...
@@ -59,7 +60,17 @@
\setotherlanguage
{
english
}
\else
\fi
\ifthenelse
{
\equal
{
\utuftthesis
@realtimesnewroman
}{
true
}}{
\setmainfont
{
Times New Roman
}}{}
\ifthenelse
{
\equal
{
\utuftthesis
@realtimesnewroman
}{
true
}}{
\ifthenelse
{
\equal
{
\utuftthesis
@sharelatex
}{
true
}}{
\setmainfont
[
BoldFont=timesbd.ttf,
ItalicFont=timesi.ttf,
BoldItalicFont=timesbi.ttf
]
{
times.ttf
}
}{
\setmainfont
{
Times New Roman
}
}
}{}
\else
% JH: modified latin to UTF-8 encoding cues to make Scandinavian characters works
\RequirePackage
[T1]
{
fontenc
}
...
...
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