From 5897e215448e1c54324a6f4e3b99f743de047dbf Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 12 Oct 2018 11:01:17 +0200 Subject: documentation: switched to minted --- arabluatex.dtx | 12 +++++++----- makefile | 10 +++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/arabluatex.dtx b/arabluatex.dtx index 6222e5d..eea454d 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx @@ -202,15 +202,17 @@ \usepackage{booktabs} \usepackage[defaultlines=3,all]{nowidow} \usepackage{needspace} +\usepackage{relsize} \usepackage{tikz} -\usepackage[breakable, skins, listings, xparse]{tcolorbox} +\usepackage[breakable, skins, xparse, minted]{tcolorbox} \tcbset{colback=white, boxrule=.15mm, colframe=red!50!white, left=6mm, breakable} -\DeclareTCBListing{arabluacode}{s O{}}{listing - options={style=tcblatex, numbers=left, numberstyle=\tiny}, +\DeclareTCBListing{arabluacode}{s O{}}{listing engine=minted, minted + language=latex, minted options={linenos, fontsize=\relsize{-0.5}}, IfBooleanTF={#1}{listing side text}{#2}} -\DeclareTCBListing{arabluaverbatim}{}{listing options={style=tcblatex, - numbers=left, numberstyle=\tiny}, listing only} +\DeclareTCBListing{arabluaverbatim}{}{listing engine=minted, minted + language=latex, minted options={linenos, fontsize=\relsize{-0.5}}, + listing only} \DeclareTotalTCBox{\arabluaverb}{v}{verbatim}{#1} \DeclareTotalTCBox{\arabluabox}{m}{left=0mm, right=0mm, top=0mm, bottom=0mm}{#1} diff --git a/makefile b/makefile index 4a786b5..466b1b9 100644 --- a/makefile +++ b/makefile @@ -6,13 +6,13 @@ sty: clean lualatex $(pkg).ins doc: clean sty - lualatex $(pkg).dtx + lualatex --shell-escape $(pkg).dtx biber arabluatex - lualatex $(pkg).dtx + lualatex --shell-escape $(pkg).dtx makeindex -s gind.ist -o $(pkg).ind $(pkg).idx makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo - lualatex $(pkg).dtx - lualatex $(pkg).dtx + lualatex --shell-escape $(pkg).dtx + lualatex --shell-escape $(pkg).dtx for i in samples/*.tex; \ do latexmk -outdir=TMP -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$i; \ done @@ -55,7 +55,7 @@ clean: rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/arabluatex*.el rm -rf tex/ doc/ source/ auto/ rm -rf arabluatex/ - rm -rf saved/ TMP/ + rm -rf saved/ TMP/ _minted-arabluatex/ find ./samples/ | grep -v "\./samples/$$" | grep -v ".*tex$$" | xargs rm -rf mkdir saved cp *.{lua,ins,dtx,tex,el} makefile saved # .bib is in dtx -- cgit v1.2.3