From d3ddb331dc07346899cb74acd1232dc97b260915 Mon Sep 17 00:00:00 2001 From: Igal Tabachnik Date: Tue, 2 Oct 2018 23:15:42 +0300 Subject: [PATCH] Texlive 2018 support (#150) * Support building on TexLive 2018 * Adding missing packages --- shell.nix | 11 ++--------- src/preamble.tex | 5 +++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/shell.nix b/shell.nix index 99ac4f5..c003883 100644 --- a/shell.nix +++ b/shell.nix @@ -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 {} }: with pkgs; mkShell { FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus ]; }; @@ -48,6 +40,7 @@ mkShell { chngcntr ifplatform xstring + minifp enumitem; }) gnumake diff --git a/src/preamble.tex b/src/preamble.tex index f3f560c..b83f30d 100644 --- a/src/preamble.tex +++ b/src/preamble.tex @@ -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}