feat(syd-plex-latex): init
This commit is contained in:
29
pkgs/syd-plex-latex/default.nix
Normal file
29
pkgs/syd-plex-latex/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenvNoCC
|
||||
, texlive
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (final: {
|
||||
pname = "syd-plex-latex";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
nativeBuildInputs = [ texlive.combined.scheme-small ];
|
||||
passthru = {
|
||||
pkgs = [ final.finalPackage ];
|
||||
tlDeps = with texlive; [
|
||||
plex
|
||||
plex-otf
|
||||
fontaxes
|
||||
unicode-math
|
||||
xetex
|
||||
fontspec
|
||||
];
|
||||
tlType = "run";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
dir="$out/tex/latex/syd-plex"
|
||||
mkdir -p "$dir"
|
||||
mv syd-plex.sty "$dir"
|
||||
runHook postInstall
|
||||
'';
|
||||
})
|
||||
10
pkgs/syd-plex-latex/syd-plex.sty
Executable file
10
pkgs/syd-plex-latex/syd-plex.sty
Executable file
@@ -0,0 +1,10 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{syd-plex}[2014/08/24 Configure IBM Plex fonts]
|
||||
|
||||
% Redefine some commands to make unicode-math work lol. See §3.1 of the
|
||||
% unicode-math manual.
|
||||
\renewcommand*{\mathrm}[1]{\symup{#1}}
|
||||
|
||||
\RequirePackage{plex-otf}
|
||||
\setmathfont{IBM Plex Math}
|
||||
\setmainfont{IBM Plex Serif}
|
||||
Reference in New Issue
Block a user