diff options
author | Karl Berry <karl@freefriends.org> | 2020-05-05 21:32:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-05-05 21:32:38 +0000 |
commit | 5033b0a46ad21995a992442c4ca73580ed7e0c58 (patch) | |
tree | 43fe9f2cdccbf13c5de6a73080429f3d79f3debc /Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex | |
parent | 9299899dc8277cdf25748ef0f2320593441e0a71 (diff) |
showexpl (5may20)
git-svn-id: svn://tug.org/texlive/trunk@55030 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex b/Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex index 316049f555f..75b4664a5b4 100644 --- a/Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex +++ b/Master/texmf-dist/doc/latex/showexpl/showexpl-test.tex @@ -1,36 +1,33 @@ -% Rolf Niepraschk, 2005-07-16, Rolf.Niepraschk@ptb.de +% Rolf Niepraschk, 2020-05-03, Rolf.Niepraschk@gmx.de \listfiles\errorcontextlines=100 \documentclass[a4paper,draft,twoside]{article} \usepackage[dvipsnames]{xcolor} \usepackage[textwidth=12cm,marginparwidth=4cm]{geometry} - \usepackage[final]{showexpl} -\usepackage[T1]{fontenc} +\usepackage{iftex} -\IfFileExists{luximono.sty}% -{% - \usepackage[scaled]{luximono}% -} -{% - \IfFileExists{beramono.sty}% - {% - \usepackage[scaled]{beramono}% - }{} -} +\iftutex % LuaTeX, XeTeX + \usepackage{fontspec} + \setmonofont{DejaVuSansMono}[Scale=MatchUppercase] +\else % old engines + \usepackage[T1]{fontenc} + \usepackage{lmodern} + \usepackage[scaled]{DejaVuSansMono} +\fi \lstset{% - basicstyle=\ttfamily\small, - commentstyle=\itshape\ttfamily\small, - showspaces=false, - showstringspaces=false, - breaklines=true, - backgroundcolor=\color{lightgray}, - breakautoindent=true, - captionpos=t + basicstyle=\ttfamily\small, + commentstyle=\itshape\ttfamily\small, + showspaces=false, + showstringspaces=false, + breaklines=true, + backgroundcolor=\color{lightgray}, + breakautoindent=true, + captionpos=t } \iftrue |