Texlive 2018 support (#150)

* Support building on TexLive 2018
* Adding missing packages
This commit is contained in:
Igal Tabachnik 2018-10-02 23:15:42 +03:00 committed by GitHub
parent 2a4b681cf5
commit d3ddb331dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View File

@ -1,13 +1,5 @@
# nix-shell --pure shell.nix --command 'cd src; make'
let
rev = "4df3426f5a5e78cef4835897a43abd9e2a092b74";
sha256 = "05k5mssiqxffxi45mss9wjns6k76i248rpasa48akdcriry1mp63";
nixpkgs = builtins.fetchTarball {
inherit sha256;
url = "https://github.com/NixOS/nixpkgs-channels/archive/${rev}.tar.gz";
};
in
{ pkgs ? import nixpkgs {} }: with pkgs;
{ pkgs ? import <nixpkgs> {} }: with pkgs;
mkShell {
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus ]; };
@ -48,6 +40,7 @@ mkShell {
chngcntr
ifplatform
xstring
minifp
enumitem;
})
gnumake

View File

@ -34,6 +34,11 @@
\usepackage[libertine]{newtxmath}
\usepackage{amsmath}
% Needed to display additional math unicode symbols (like double-colon)
% https://github.com/wspr/unicode-math/issues/469
\expandafter\let\csname not=\endcsname\relax
\expandafter\let\csname not<\endcsname\relax
\expandafter\let\csname not>\endcsname\relax
\usepackage{unicode-math}
\setmathfont{Libertinus Math}