You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently tcb library skins provides several useful tikz filling options, which
(These options) can be used in any tikzpicture.
according to the doc, Sec. 13 "TikZ Image and Picture Fill Extensions; Auxiliary Macros".
Hence exporting them to a tikz library would make them more accessible, and enables use cases outside of tcolorbox.
A tikz library is just a file named tikzlibrary<lib-name>.code.tex, that can start with an optional \ProvidesFile{<file-name>}[<release-info>], see pgf-tikz/pgf#1162.
Possible problems when exporting:
Loading guard: \tikzuselibrary ensures each library (if loaded by \tikzuselibrary) can be loaded at most once.
Portability: A tikz library need not be portable (format independent), for example external library is supported for LaTeX only.
Independence:
graphicx is loaded by tikz in LaTeX, hence \includegraphics is not a problem.
\tcbdimto can be simply simulated if it's not yet defined.
About tcolorbox itself, skins lib will (surely) use \tikzuselibrary{filling}.
See v5.1.1...muzimuzhi:tcolorbox:tikz-lib-filling for my attempt. All the docTikzKey envs in tcolorbox.doc.filling.tex are copied to a new file tikzlibraryfilling.test.tex, to test if filling library can be used outside of tcolorbox.
The text was updated successfully, but these errors were encountered:
Currently tcb library
skins
provides several useful tikz filling options, whichaccording to the doc, Sec. 13 "TikZ Image and Picture Fill Extensions; Auxiliary Macros".
Hence exporting them to a tikz library would make them more accessible, and enables use cases outside of tcolorbox.
A tikz library is just a file named
tikzlibrary<lib-name>.code.tex
, that can start with an optional\ProvidesFile{<file-name>}[<release-info>]
, see pgf-tikz/pgf#1162.Possible problems when exporting:
\tikzuselibrary
ensures each library (if loaded by\tikzuselibrary
) can be loaded at most once.external
library is supported for LaTeX only.graphicx
is loaded by tikz in LaTeX, hence\includegraphics
is not a problem.\tcbdimto
can be simply simulated if it's not yet defined.skins
lib will (surely) use\tikzuselibrary{filling}
.See v5.1.1...muzimuzhi:tcolorbox:tikz-lib-filling for my attempt. All the
docTikzKey
envs intcolorbox.doc.filling.tex
are copied to a new filetikzlibraryfilling.test.tex
, to test iffilling
library can be used outside of tcolorbox.The text was updated successfully, but these errors were encountered: