From 6b6f4055262db926a5503df3c319d1bf6835c5d8 Mon Sep 17 00:00:00 2001
From: Christophe Garion <tofgarion@runbox.com>
Date: Thu, 17 Nov 2016 13:59:50 +0100
Subject: [PATCH] listings: if lualatex, do not use luximono
---
my-listings.sty | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/my-listings.sty b/my-listings.sty
index d8c0c4e..e5c9ed3 100644
--- a/my-listings.sty
+++ b/my-listings.sty
@@ -5,9 +5,16 @@
\ProvidesPackage{my-listings}[2015/11/16 v0.1
LaTeX package for listings configuration]
+% LuaLaTeX
+\RequirePackage{ifluatex}
+
% packages
\RequirePackage{listings}
+\ifluatex
+\relax
+\else
\RequirePackage[scaled=0.85]{beramono}
+\fi
% new key for line number + first line
\lst@Key{firstlinenum}\relax{\def\lst@firstline{#1\relax}\def\lst@firstnumber{#1\relax}}
--
GitLab