From e4fdd6dfe0623bf542fb152de29e006625231488 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 7 Sep 2018 12:10:25 +0200 Subject: documentation: use \tcbset and package 'uri' --- arabluatex.dtx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/arabluatex.dtx b/arabluatex.dtx index 8fadee2..0248d0f 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx @@ -165,6 +165,7 @@ \usepackage{hyperxmp} \PassOptionsToPackage{pdfa}{hyperref} \usepackage{hypdoc} +\usepackage{uri} \usepackage{bookmark} \usepackage{authblk} \hypersetup{unicode=true, colorlinks, allcolors=blue, @@ -203,19 +204,16 @@ \usepackage{needspace} \usepackage{tikz} \usepackage[breakable, skins, listings, xparse]{tcolorbox} -\DeclareTCBListing{arabluacode}{s O{}}{colback=white, boxrule=.15mm, - colframe=red!50!white, left=6mm, breakable, listing +\tcbset{colback=white, boxrule=.15mm, colframe=red!50!white, left=6mm, + breakable} +\DeclareTCBListing{arabluacode}{s O{}}{listing options={style=tcblatex, numbers=left, numberstyle=\tiny}, IfBooleanTF={#1}{listing side text}{#2}} -\DeclareTCBListing{arabluaverbatim}{}{colback=white, boxrule=.15mm, - colframe=red!50!white, left=6mm, breakable, listing - options={style=tcblatex, numbers=left, numberstyle=\tiny}, listing - only} -\DeclareTotalTCBox{\arabluaverb}{v}{verbatim, colback=white, - boxrule=.15mm, colframe=red!50!white}{#1} +\DeclareTCBListing{arabluaverbatim}{}{listing options={style=tcblatex, + numbers=left, numberstyle=\tiny}, listing only} +\DeclareTotalTCBox{\arabluaverb}{v}{verbatim}{#1} \DeclareTotalTCBox{\arabluabox}{m}{left=0mm, right=0mm, top=0mm, - bottom=0mm, colback=white, boxrule=.15mm, - colframe=red!50!white}{#1} + bottom=0mm}{#1} \newcommand{\package}[1]{\textsf{#1}\index{#1=#1 (package)}} \usepackage{csquotes} \DeclareQuoteStyle{arabic} @@ -314,13 +312,13 @@ % \hskip 1sp \marginpar{\small\sffamily\raggedright % New feature\\#1}} % -% \title{\tcbox[enhanced, tikznode, drop lifted shadow, colback=white, -% boxrule=.25mm]% +% \title{\tcbox[colframe=black, enhanced, tikznode, drop lifted +% shadow, colback=white, boxrule=.25mm]% % {The \textsf{arabluatex} package\\ % \fileversion\ -- \filedate}} % % \author{Robert Alessi \\ -% \href{mailto:alessi@robertalessi.net?Subject=arabluatex}% +% \href{mailto:alessi@robertalessi.net?Subject=arabluatex package}% % {\texttt{alessi@robertalessi.net}}} % \date{} % @@ -358,8 +356,7 @@ % Please send error reports and suggestions for improvements to Robert % Alessi: % \begin{itemize} -% \item email: <\href{mailto:alessi@robertalessi.net?Subject=arabluatex}% -% {\texttt{alessi@robertalessi.net}}> +% \item email: \mailto[arabluatex package]{alessi@roberalessi.net} % \item website: \url{http://www.robertalessi.net/arabluatex} % \item development: \url{http://git.robertalessi.net/arabluatex} % \item comments, feature requests, bug reports: -- cgit v1.2.3