diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-16 21:16:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-16 21:16:03 +0000 |
commit | c1b5f89b5d4beeb4fab27b20b7e3bc6992344d4c (patch) | |
tree | ea34d2df757e53820d32f51ea9c14c6c73ed3a88 /Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex | |
parent | 285b5f61acac3bf7dd8382dc3307939321cc993d (diff) |
tcolorbox (16dec21)
git-svn-id: svn://tug.org/texlive/trunk@61320 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex index d6b884dc192..2aa5b319740 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex @@ -474,10 +474,11 @@ Sets a \meta{programming language} known to |Pygments| \cite{pygments:web}. \end{docTcbKey} -\begin{docTcbKey}[][doc updated={2017-07-05}]{minted options}{=\meta{key list}}{no default, initially - |tabsize=2,fontsize=\textbackslash small,|\linebreak|breaklines,autogobble|} +\begin{docTcbKey}[][doc updated={2021-12-15}]{minted options}{=\meta{key list}}{no default, initially + \linebreak see \refKey{/tcb/default minted options}} Sets the options from the package |minted| \cite{poore:minted} which are used during typesetting of the listing. + Also see \refKey{/tcb/minted options app} and \refKey{/tcb/minted options pre}. \begin{dispExample} % \tcbuselibrary{skins} \newtcblisting{myjava}{listing engine=minted, @@ -500,7 +501,25 @@ Sets a \meta{programming language} known to |Pygments| \cite{pygments:web}. \end{dispExample} \end{docTcbKey} + \clearpage +\begin{docTcbKey}[][doc new={2021-12-15}]{default minted options}{=\meta{key list}}{no default, initially + |tabsize=2,fontsize=\textbackslash small,|\linebreak|breaklines,autogobble|} + Sets the options from the package |minted| \cite{poore:minted} + which are used during typesetting of the listing, if + \refKey{/tcb/minted options} are \emph{not} used. The intended use is + inside the preamble to change the default behavior. + Note that setting \refKey{/tcb/default minted options} also resets \refKey{/tcb/minted options}. +\begin{dispListing} +% inside the preamble +\tcbset{% + default minted options={tabsize=4,fontsize=\normalsize}, +} +\end{dispListing} +\end{docTcbKey} + + + \begin{docTcbKey}{minted style}{=\meta{style}}{no default, initially unset} Sets a \meta{style} known to |Pygments| \cite{pygments:web}. This is independent from \refKey{/tcb/minted options}. Note that styles are always @@ -514,6 +533,27 @@ For examples of different styles, see See further options in \Vref{sec:commonlistingkeys}. +\medskip + +\begin{docCommand}[doc new=2021-12-16]{tcbTemporaryPatchMintedFancyvrb}{} + \begin{marker} + There is a package clash between the package |minted| (version 2.5) + and the package |fancyvrb| (from version 4.0 on) which is used by + package |minted|. This is results in compilation errors, if the + |autogobble| option is used by the \mylib{minted} library. + At the time of writing this package clash is unresolved by official releases. + Therefore, the \mylib{minted} library contains a patch + \refCom{tcbTemporaryPatchMintedFancyvrb} which is automatically applied + (do not use this manually).\par + To deactivate the patch, define \refCom{tcbTemporaryPatchMintedFancyvrb} + with any content \emph{before} the \mylib{minted} library is loaded.\par + This patch is going to be removed as soon as the package clash is + resolved by official releases of |minted| (or |fancyvrb|). + \end{marker} +\end{docCommand} + + + \clearpage \subsection{Common Option Keys of all Libraries}\label{sec:commonlistingkeys} |