Commit e0f744d6 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

Better local font directory handling

parent 41ddd18b
......@@ -10,9 +10,9 @@ PACKAGE_TGT = $(addprefix $(LOCAL_DIR)/,$(PACKAGE_STY))
DOC_PDF = $(patsubst %.tex,%.pdf,$(wildcard $(DOC_DIR)/*.tex))
COMPILE_TEX := latexmk -xelatex -output-directory=$(CACHE_DIR)
COMPILE_TEX := latexmk -lualatex -output-directory=$(CACHE_DIR)
export TEXINPUTS:=$(LOCAL_DIR):$(shell pwd):$(PACKAGE_DIR):${TEXINPUTS}
export TEXINPUTS:=$(LOCAL_DIR):$(LOCAL_DIR)/fonts/:$(shell pwd):$(PACKAGE_DIR):${TEXINPUTS}
.PHONY: all sty doc clean mrproper
......
......@@ -51,34 +51,15 @@
% \end{macrocode}
%
% \begin{macrocode}
\IfFileExists{FiraSans.sty}{
\RequirePackage[T1]{fontenc}
\RequirePackage[sfdefault]{FiraSans}
\RequirePackage[nomap,lining]{FiraMono}
\IfFileExists{FiraSans-Regular.otf}{
\defaultfontfeatures{
Scale = 1.0,
Extension = .otf
}
}{
\IfFileExists{./fonts/FiraSans-Regular.otf}{
\defaultfontfeatures{
Path = ./fonts/,
Scale = 1.0,
Extension = .otf
}
}{
\IfFileExists{../fonts/FiraSans-Regular.otf}{
\defaultfontfeatures{
Path = ../fonts/,
Scale = 1.0,
Extension = .otf
}
}{
\PackageWarning{beamerthemeneo}{%
Neither Fire Package nor Package fonts directory found - %
using system fonts. You need to have to fonts installed.%
}
}
\PackageWarning{beamerthemeneo}{%
FiraSans font not found in path, therefore using system fonts. %
Make sure you have the fonts installed.%
}
}
\setmonofont
......@@ -123,7 +104,6 @@
]{FiraSans}
\neo@fontsave
}
\AtBeginEnvironment{tabular}{%
\addfontfeature{Numbers={Monospaced}}%
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment