diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty index 3a902ff0bcb..32548438403 100644 --- a/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty @@ -3,6 +3,11 @@ \usepackage[framemethod=tikz]{mdframed} \mdfsetup{skipabove=2\baselineskip,skipbelow=2\baselineskip,frametitlefont=\sffamily\bfseries\Large, needspace=4\baselineskip, splittopskip=1.5\baselineskip} \mdfsetup{apptotikzsetting={\tikzset{mdfbackground/.append style={draw=none}}}} +\AtEndPreamble{% Check if the external library from tikz has been loaded in the preamble. If so, skip externalising for all mdframed boxes. + \ifcsname tikz@library@external@loaded\endcsname + \mdfsetup{settings={\tikzexternaldisable},endcode={\tikzexternalenable}} + \fi +} \newcommand{\langscisymbol}{book} \newlength{\trennlinie} \setlength{\trennlinie}{.8mm} @@ -15,8 +20,8 @@ middlelinewidth=1.5pt,linecolor=\tblslinecolour,outerlinewidth=5mm, innerleftmargin=5mm, innerrightmargin=5mm, innerbottommargin=5mm, innertopmargin=0, frametitleaboveskip=15mm, frametitlebelowskip=10mm,frametitlerule=false, repeatframetitle=false, - firstextra={\node[xshift=5mm,right,draw=\tblslinecolour, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblslinecolour}\includegraphics[width=10mm]{tbls-\langscisymbol.pdf}};}, % if environment is on multiple pages, print this on the first page. - singleextra={\node[xshift=5mm,right,draw=\tblslinecolour, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblslinecolour}\includegraphics[width=10mm]{tbls-\langscisymbol.pdf}};} % if env. does not span multiple pages, print the same. + firstextra={\node[xshift=5mm,right,draw=\tblslinecolour, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblslinecolour}\includegraphics[width=10mm]{langsci/graphics/tbls-\langscisymbol.pdf}};}, % if environment is on multiple pages, print this on the first page. + singleextra={\node[xshift=5mm,right,draw=\tblslinecolour, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblslinecolour}\includegraphics[width=10mm]{langsci/graphics/tbls-\langscisymbol.pdf}};} % if env. does not span multiple pages, print the same. } \mdfdefinestyle{greyexercise}{% @@ -27,9 +32,9 @@ backgroundcolor=\tblsboxcolor, innerleftmargin=5mm, innerrightmargin=5mm, innerbottommargin=5mm, innertopmargin=5mm, frametitleaboveskip=15mm, frametitlebelowskip=5mm,frametitlerule=false, repeatframetitle=false, - firstextra={\node[xshift=5mm,right,draw=\tblsboxcolor, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblsboxcolor}\includegraphics[width=10mm]{tbls-\langscisymbol.pdf} + firstextra={\node[xshift=5mm,right,draw=\tblsboxcolor, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblsboxcolor}\includegraphics[width=10mm]{langsci/graphics/tbls-\langscisymbol.pdf} };}, - singleextra={\node[xshift=5mm,right,draw=\tblsboxcolor, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblsboxcolor}\includegraphics[width=10mm]{tbls-\langscisymbol.pdf} + singleextra={\node[xshift=5mm,right,draw=\tblsboxcolor, line width=1.5pt,rectangle, minimum size=10mm, fill=white] at (P-|O) {\color{\tblsboxcolor}\includegraphics[width=10mm]{langsci/graphics/tbls-\langscisymbol.pdf} };} } @@ -106,7 +111,7 @@ %add logo if requested \ifthenelse{\equal{#1}{}}{\bigskip}{ \begin{flushleft} - \hspace*{3.5mm} \raisebox{0mm}[0mm][0mm]{\color{white}\includegraphics[width=10mm]{#1.eps}} + \hspace*{3.5mm} \raisebox{0mm}[0mm][0mm]{\color{white}\includegraphics[width=10mm]{langsci/graphics/#1.eps}} \end{flushleft}} %add header \boxheader{#3} @@ -184,7 +189,7 @@ \begin{figure} \begin{flushleft} \hspace*{3.5mm} - \raisebox{-10mm}[0mm][0mm]{\ifthenelse{\equal{#1}{}}{}{\includegraphics[width=10mm]{#1.eps}}} \\ + \raisebox{-10mm}[0mm][0mm]{\ifthenelse{\equal{#1}{}}{}{\includegraphics[width=10mm]{langsci/graphics/#1.eps}}} \\ \end{flushleft} \color{lsYellow}\framebox[\textwidth]{% \color{black} |