Skip to content

Commit

Permalink
Overleaf compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
magyarkuti committed Apr 9, 2022
1 parent 16b72aa commit 855398b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,7 @@ TSWLatexianTemp*
*.sta

# generated if using elsarticle.cls
#
*.spl
# vim backup files
*~
Binary file added corvinus_Institute_of_Economics_logo_cmyk.eps
Binary file not shown.
25 changes: 18 additions & 7 deletions corvinusmetropolis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\ClassInfo{corvinusmetropolis}{Use all of beamer options.\MessageBreak
LaTeX package corvinusmetropolis is loaded}
\else
\ClassError{corvinusmetropolis}{Optimal usage: lualatex <filename>\MessageBreak
\ClassError{corvinusmetropolis}{Usage: lualatex <filename>\MessageBreak
pdflatex also works but does not use Corvinus fonts}
\fi
%
Expand All @@ -26,13 +26,22 @@
\usetheme[outer/progressbar=foot, titleformat=smallcaps, subsectionpage=progressbar, block=fill]{metropolis}
\ifboolexpr{bool {xetex} or bool {luatex}}%
{%
\iffontsavailable{TT Nooks-Regular, Calluna-It, Calluna-Regular}
\iffontsavailable{TT_Nooks_Regular, Calluna_Italic, Calluna_Regular}
{%
\setsansfont[BoldFont={TT Nooks-Regular},ItalicFont={Calluna-It}]{Calluna-Regular}%
\ClassInfo{corvinusmetropolis}{Corvinus recommended fonts TT Nooks and Calluna work properly!}%
\setsansfont[BoldFont={TT_Nooks_Regular},ItalicFont={Calluna_Italic}]{Calluna_Regular}%
\ClassInfo{corvinusmetropolis}{Corvinus recommended fonts TT Nooks and Calluna work properly even if Overleaf is used!}%
}
{
\ClassInfo{corvinusmetropolis}{Assume it is not Overleaf! I am turning to the system fonts.}%
\iffontsavailable{TT Nooks, Calluna}
{%
\setsansfont[BoldFont={TT Nooks-Regular},ItalicFont={Calluna-It}]{Calluna-Regular}%
\ClassInfo{corvinusmetropolis}{Corvinus recommended fonts TT Nooks and Calluna work properly!}%
}
{\ClassInfo{corvinusmetropolis}{At least one of Corvinus recommended fonts is missing. \MessageBreak
Upload the fonts TT Nooks and Calluna to Overleaf, or install these fonts locally!}
}
}
{\ClassInfo{corvinusmetropolis}{At least one of Corvinus recommended fonts is missing. \MessageBreak
Install the fonts TT Nooks and Calluna!}}
}%
{
\ClassInfo{corvinusmetropolis}{You need to compile XeLaTeX os LuaLatex to use the Corvinus recommended fonts TT Nooks and Calluna}
Expand Down Expand Up @@ -62,7 +71,9 @@
\tableofcontents}
\metroset{outer/numbering=counter, outer/progressbar=foot, block=transparent}%
}
\newcommand{\myinstlogo}{corvinus_Institute_of_Economics_logo_cmyk.eps}

\endinput
Last Modified: Tue 26 Oct 2021 03:55:30 pm CEST CEST CEST
Last Modified: Sat 09 Apr 2022 10:25:55 AM CEST CEST CEST CEST
Created: Tue 26 Oct 2021 08:10:34 am CEST

Binary file modified template.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
%\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{example}[theorem]{Example}

\renewcommand{\myinstlogo}{corvinus_Institute_of_Economics_logo_cmyk.eps}

\title{Quadratic forms}
\subtitle{The Gauss--Jordan elimination completes the square}
\author[Magyarkuti]{Gyula~Magyarkuti}
Expand All @@ -22,7 +24,7 @@
\url{http://web.uni-corvinus.hu/magyarkuti/\jobname .pdf}
}
\date[Linear Algebra Fall week 6]{\today}
\titlegraphic{\hfill{\includegraphics[width=.2\textwidth]{corvinus_Department_of_Mathematics_logo_cmyk.eps}}}
\titlegraphic{\hfill{\includegraphics[width=.2\textwidth]{\myinstlogo}}}
\subject{Linear Algebra}
\keywords{Gauss--Jordan elimination, completing the square}

Expand Down

0 comments on commit 855398b

Please sign in to comment.