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=\...
Peter Grill's user avatar
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{...
Mico's user avatar
  • 477k
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 ...
Rmano's user avatar
  • 36.3k
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 ...
muzimuzhi Z's user avatar
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]{...
cjorssen's user avatar
  • 9,798
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} \...
Jasper Habicht's user avatar
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={...
pascal974's user avatar
  • 2,407
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 ...
xavierm02's user avatar
  • 785
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 ...
Jasper Habicht's user avatar
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,...
user187802's user avatar
  • 15.5k
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.
user691586's user avatar
  • 1,391
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 ...
egreg's user avatar
  • 1.1m
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}{%...
samcarter_is_at_topanswers.xyz's user avatar
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]{...
Simon Dispa's user avatar
  • 36.7k
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,...
hair-splitter's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible