summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-22 21:20:03 +0000
committerKarl Berry <karl@freefriends.org>2018-08-22 21:20:03 +0000
commitd73c922e3d1cc0085aab0488d1b8d2c7ff4f09d9 (patch)
tree9cf07e9b1056e59e30a1fb55c026822bc416777d /Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty
parenta5b8f028298d5555872bdd3858a8132094a12688 (diff)
restore schule, tikz symbols and all
git-svn-id: svn://tug.org/texlive/trunk@48453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty')
-rw-r--r--Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty30
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty b/Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty
new file mode 100644
index 00000000000..8b5ceb38f2e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/schule/schule-dokumentation.sty
@@ -0,0 +1,30 @@
+\RequirePackage{tcolorbox}
+\tcbuselibrary{skins,breakable}
+\tcbset{enhanced,enhanced jigsaw}
+
+\newtcolorbox{cnltxcode}[1][]{
+ boxrule = 1pt ,
+ colback = cnltxbg ,
+ colframe = cnltx ,
+ arc = 5pt ,
+ beforeafter skip = .5\baselineskip ,%
+ #1%
+}
+
+\newcounter{examplefile}
+\NewDocumentCommand{\Beispieldatei}{m m}{
+ \begin{cnltxcode}[
+ step and label={examplefile}{example:#1} ,
+ sidebyside align=top seam,sidebyside,
+ righthand width=\linewidth/4,
+ sidebyside gap=0pt,
+ lower separated=false,
+ title=Beispiel~\theexamplefile\ \enquote{\texttt{#2}}~%
+ \href{Beispiele/#1.tex}{ \color{white} [\TeX]}~%
+ \href{Beispiele/#1.pdf}{ \color{white} [PDF]}
+ ]
+ \lstinputlisting[style=cnltx,lastline=10]{Beispiele/#1.tex}
+ \tcblower
+ \fbox{\href{Beispiele/#1.pdf}{\includegraphics[width=.8\linewidth]{Beispiele/#1.pdf}}}%
+ \end{cnltxcode}
+}