3
votes
How to modify an existing environment with tcolorbox and keeping the name?
If I understood you comment, here is one way to acieve the desired results: First, setup pgfkeys to extract the value of the subtitle= option:
\pgfkeys{MyAufgabe/.cd,
subtitle/.store in=\...
3
votes
Accepted
Package `cleveref` does not display the name of a new float in the reference
The TeX counter variable associated with the vocabulary floating environment is also called vocabulary -- not vocab. Hence, you need to change
\Crefname{vocab}{Vocabulary}{Vocabularies}
\crefname{...
3
votes
tcolorbox boxes in last line are slightly misaligned
You have after every box an \hfill provided by the tcolorbox, a normal space (the one introduced by the end-of-line after \gamebox{Lv. \i}, which can shrink or stretch a little), and a final space ...
3
votes
Accepted
Equivalent of \linegoal inside a tcolorbox raster?
linegoal assumes every line (including the possibly first line indentation per paragraph) starts from the left-most margin of text body of a page. Simple outer-most lines meet this condition, but not ...
3
votes
Accepted
TColorBox - Respecting the text colour and font size
The current color is stored in . (in a color context). The size in math mode is chosen by \mathchoice (see The mysteries of \mathpalette
\documentclass[varwidth]{standalone}
\usepackage[theorems]{...
2
votes
Defining custom option keys for tcolorbox
I think what you are looking for is \tcbset which can help you to create custom styles (I simplified the code a bit):
\documentclass[11pt]{scrreprt}
\usepackage{lipsum}
\usepackage[skins]{tcolorbox}
\...
2
votes
Fill empty space inside a tcolorbox
With sidebyside align=bottom
EDIT : With totalheight instead of width, we can calculate the vertical space to insert before the last line
\documentclass[12pt]{article}
\usepackage[a4paper, total={...
2
votes
Tcolorbox unbroken box prevents next breakable box from breaking
Using the magazine library as suggested by Ulrike Fischer fixes the overflow problem but the unbreakable content is inexplicably shifted downwards, outside of its box. Using floats instead of ...
2
votes
Tcolorbox unbroken box prevents next breakable box from breaking
I think, the problem really is related to \afterpage where you place the first tcolorbox in. Without this, the breakpoints work as expected. I am unsure why you need this. Maybe a workaround could be ...
1
vote
Accepted
Annotate with Call-Outs on tcolorbox
with some tricky code you can create two invisible nodes. Run with lualatex:
\documentclass{article}
\usepackage{pstricks-add}
\usepackage{minted}
\usepackage[minted]{tcolorbox}
\tcbuselibrary{skins,...
1
vote
Accepted
How to erase the backgroundcolor just for one image/word?
Use
\newcommand{\dpcalc}{\rlap{\hspace{1em}\textbf{\inlinegraphics{example-image-b}\space}}}
I added some \hspace you can twiddle.
1
vote
Accepted
table with \textwidth is wider than \tcblisting minipage
You're forgetting to subtract the \tabcolsep spaces and there are six of them. Also, since you're typesetting the table in serif type, using \textsf will choose the wrong width.
I'd use \linewidth in ...
1
vote
Accepted
\tcblisting ignores parskip?
You can change the parskip for the tcolorbox like this:
\documentclass{article}
\parskip\baselineskip
\usepackage{tcolorbox}
\tcbuselibrary{listings}
\begin{document}
\begin{tcblisting}{%...
1
vote
Accepted
Continue code on the next page with line numbering (minted, tcolorbox)
Add firstnumber=last to \newtcblisting{javalst} in minted options.
You have to manually split the list to start a new page.
% !TeX TS-program =pdflatex
\documentclass{article}
\usepackage[T1]{...
1
vote
Accepted
minted with tcolorbox: Syntax Highlighting Issue with SASS Code Snippet
You can redefine the \PYG@tok@err:
\AddToHook{cmd/minted@addcachefile/after}{%
\@namedef{PYG@tok@err}{\def\PYG@bc##1{##1}}}
In your code:
\documentclass[a4paper,headinclude=on,footinclude=on,12pt,...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tcolorbox × 2165tikz-pgf × 185
listings × 111
environments × 102
beamer × 85
color × 83
boxes × 75
minted × 73
spacing × 65
theorems × 60
page-breaking × 56
table-of-contents × 50
vertical-alignment × 50
tables × 48
mdframed × 46
cross-referencing × 43
horizontal-alignment × 36
footnotes × 36
counters × 36
macros × 34
xetex × 33
formatting × 33
cleveref × 32
hyperref × 31
equations × 30