From d4fec517dfcf9164462a5f27236e3b95b48d2388 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 16 Apr 2018 23:14:23 +0300 Subject: tex: enable build on systems without ellipsis.sty Unfortunately some systems (e.g. RHEL7.5 and derivatives) lack the ellipsis package. As it's function is merely cosmetic, support these systems by loading the package conditionally. Tested-by: Mihai Carabas Signed-off-by: Michael S. Tsirkin --- virtio.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virtio.tex b/virtio.tex index e1e2cb9..ef2d3fe 100644 --- a/virtio.tex +++ b/virtio.tex @@ -37,7 +37,11 @@ \usepackage{tabularx} \usepackage{underscore} \usepackage{xstring} -\usepackage{ellipsis} +\IfFileExists{ellipsis.sty}{\usepackage{ellipsis}}{ +\message{!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!} +\message{LaTeX Warning: Missing ellipsis.sty: dots (...) will look ugly} +\message{!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!} +} % This is an alternative to package underscore above % It makes it possible to disable hyphenation of upper-case % identifiers with underscore (of which we have many) by -- cgit v1.2.3