# Tag Info

0

If you look at minted package documentation in CTAN (or your computer), you will see that linenos option enables line numbers and that the aspect of these line numbers is hard-coded in command \thefancyVerbLine. You can change it introducing and adapting following code in your preamble \renewcommand{\theFancyVerbLine}{\sffamily \textcolor[rgb]{0.5,0.5,1....

3

I may be misunderstanding your actual goal here, but I've found a solution that allows you to externalise the tcolorbox with its tikzpicture without surrounding it in another tikzpicture (as that causes no end of difficulties). It turns out that the tcolorbox package has its own externalisation feature that can be applied a bit more broadly than the external ...

1

Like this: \documentclass{article} \usepackage[showframe, % <--- in real document delete tis option margin = 0.1 in, a5paper]{geometry} \usepackage{tcolorbox} \usepackage{enumitem,array} \begin{document} \pagestyle{empty} { \tcbset{width=0.45\linewidth, height=0.4\linewidth, before=,after=\hfill} \begin{tcolorbox}[title=box 1] \end{...

2

To avoid the border, add boxrule=0pt to tcolorbox options. I don't understand why you need to include tcolorbox into an external environment and inside a minipage. A tcolorbox is by default as wide a \textwidth. There exist an special library for theorems and if you don't want to use it, command \tcolorboxenvironment can add tcolorbox aspect to any regular ...

0

Instead of minipages inside tcolorboxes, I think it's better to fix tcolorbox width. And options nobeforeafter, box align=top and no blank lines between second and third box will do the work: \documentclass[11pt, oneside, a4paper, titlepage]{article} \usepackage{tcolorbox} \usepackage{geometry} \geometry{ a4paper, left=0.1cm, right=0.1cm, top=0....

2

\documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{footnote} \usepackage{etoolbox} \BeforeBeginEnvironment{tcolorbox}{\savenotes} \AfterEndEnvironment{tcolorbox}{\spewnotes} \begin{document} \begin{tcolorbox} this is text\footnote{and a ...

0

\documentclass[11pt, oneside, a4paper, titlepage]{article} \usepackage{tcolorbox} \usepackage{geometry} \geometry{ a4paper, left=0.1cm, right=0.1cm, top=0.1cm, bottom=0.1cm } \definecolor{titleBack}{RGB}{0,70,21} \title{Pablo CV} \date{\today} \usepackage{graphicx} \usepackage[allfiguresdraft]{draftfigure} \begin{document} \tcbset{colframe=...

3

You can use oversize option, it enlarges margins and the text is as wide as in unboxed paragraphs. \documentclass{article} \usepackage{showframe} \usepackage{tcolorbox} \newtcolorbox{myBox} {colback = red, top=2mm, bottom=2mm, boxrule=0pt, oversize} \begin{document} Test: This is a test. This is a test. This is a test. This is a test. This is a test. ...

1

\documentclass{article} \usepackage{lipsum} \usepackage[most]{tcolorbox} \begin{document} \texttt{With parindent=0pt} %\showthe\parindent %%,---- find \parindent \begin{tcolorbox}[breakable,enhanced,before upper={\parindent0pt}] \lipsum[9] \end{tcolorbox} \texttt{With parindent=15pt} \begin{tcolorbox}[breakable,...

2

Something similar to your exam with tcolorbox could be done with following code. I don't know how to avoid still boring concept, but from here you can design what you want. \documentclass[11pt,a4paper]{article} \usepackage[top=1cm, bottom=1cm, left=1.5cm, right=1.5cm]{geometry} \usepackage{amsmath,amsfonts,amssymb} \usepackage[most]{tcolorbox} \usepackage[T1]...

1

I will insist with the solution provided in Unequal height with \tcbincludepdf raster, i.e., forget rasters and print every page with an independent tcolorbox. I don't know what OP really wants, he/she says (in comments) I want to be able to control rasters (which may contain pdf pages or images of different sizes) position in the document. Without the ...

1

Theorems and similar environment in tcolorbox have two parameters, the first one is the theorem title and the second is the label suffix which will be added to the label prefix declares as fourth mandatory parameter in tcbtheorem declaration. In \newtcbtheorem[number within=section]{theorem}{Theorem}{}{theo} theo is the preffix so, when you declare \begin{...

1

You could load titlesec with the explicit option, but I usually don't recommend this. The last mandatory argument of \titleformat can end with a one-argument macro that will be fed with the section title. \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{titlesec} \colorlet{Red}{red!60} \newcommand{\formatsectiontitle}[1]{% \begin{...

0

Option fontsize in tcbposter will scale all fonts to the desired size.

0

Try this not-elegant-enough attempt. Some key ideas: Assign a unique number to each Verbatim environment by using new counter verbatim@cnt. Get the ending code line number per Verbatim env (stored in counter FancyVerbLine), convert it to a dimension, and make it linked with the unique env number. Write this relation to aux file, which will be read at the ...

0

Another environment that does work inside a tcolorbox is parcolumns. \documentclass{book} \usepackage{lipsum} \usepackage{tcolorbox} \usepackage{parcolumns} \begin{document} \begin{tcolorbox} \begin{parcolumns}{2} \colchunk{\lipsum[1-2]} \colchunk{\lipsum[1]} \colplacechunks \end{parcolumns} \end{tcolorbox} \end{document}

1

You can use here a tabular environment or multicol: \documentclass{book} \usepackage{lipsum} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox} \begin{multicols}{2} \lipsum[1-2] \columnbreak \lipsum[1] \end{multicols} \end{tcolorbox} \end{document} But why not only tcolorbox? \documentclass{book} \usepackage{geometry} ...

1

You can nest a \hypertarget inside a \hyperlink, if you want. But even the following works without problem: \documentclass{article} \usepackage{hyperref} \begin{document} Jump to \hyperlink{Problem-1}{Problem~1}. \bigskip \hypertarget{Problem-1}{}\hyperlink{Solution-1}{\textbf{Problem~1}}. \bigskip \hypertarget{Solution-1}{\textbf{Solution~1}}. \end{...

1

Just an idea, forget the title, declare a wide boxrule and overlay the text on four sides. \documentclass[table]{standalone} \usepackage{polyglossia, lipsum} \usepackage[most]{tcolorbox} \definecolor{mybrown}{HTML}{784421} \newtcolorbox{mybox}[2][]{% enhanced, before upper=\setlength{\parskip}{\bigskipamount}, colframe=mybrown, boxrule=8mm, ...

1

You can define a new environment with optional arguments, and check if the values are provided. \documentclass[12pt]{report} \usepackage{xparse} \usepackage[most]{tcolorbox} \newtcbtheorem[number within = chapter]{dfn}{Definition}% { enhanced, before title = {\stepcounter{dfn}}, colback=blue!10, colframe=blue!35!black, fonttitle=\bfseries,...

2

An environment defined with \newtcbtheorem indeed requires two mandatory arguments: \begin{dfn}{}{} Text of the definition \end{dfn} The first argument is for the title, the second is for the label. With a call such as \begin{dfn}{Nice one}{} Text of the definition \end{dfn} the title would be set to “Nice one” and there would be no label. With \begin{dfn}{...

1

A solution to the issue was provided by @ThomasF.Sturm as a comment. For sake of completeness here is it applied to my question. Instead of defining the bookmark in the overlay, define the bookmark in the parent tcolorbox. In order to do so one can check if the optional parameter for a term was provided or not. \NewTColorBox[]{term}{ m } { width=.325\...

0

It's easy to build this frames with a tcolorbox: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \newcounter{framecounter} \setcounter{framecounter}{0} \newtcolorbox[use counter=framecounter]{myframe}{% empty, breakable, title={\thetcbcounter\ }, attach boxed title to top left, left=0pt, right=0pt, boxed title style={...

3

This is quite easy to do using LuaXML, especailly using the new luaxml-transform library. This library can transform XML files using CSS selectors and simple templates to any output format. I would provide a special LuaLaTeX package to handle this task. It consists of two files, sms.sty package, which contains TeX declarations, and smslib.lua, which do the ...

1

This is not an answer to this particular question but an alternative construction for what I understand OP wants. OP wants to embed a image into a tcolorbox whith a caption as title but with this title below the image instead of usual upper position in tcolorboxes. tcolorbox package has some commands to declare floating boxes and include them into the list ...

6

It is sometimes confusing to distinguish between aboveskip and belowskip because their meaning sometimes change according to the value of position. It is discussed in section 2.6 of caption's documentation. To avoid confusion in a case like this, it might be better to set skip to zero. \documentclass{article} \usepackage[svgnames,usenames,dvipsnames,table]{...

Top 50 recent answers are included