6

By default, if you don't change /tcb/before nor /tcb/after, tcolorbox uses the /tcb/autoparskip style, which does the following: If the length of \parskip is greater than 0pt at the beginning of the document, the /tcb/parskip style is executed. Otherwise, /tcb/noparskip is executed. (see Embedding into the Surroundings in the tcolorbox manual). In your ...


5

Welcome to TeX.SE! Your test doesn't work because when #1 is empty, it becomes: \ifx \empty \node[anchor=north west] ... For TeX, this is exactly the same as: \ifx\empty\node[anchor=north west] ... Thus, TeX compares \empty to \node and the result is always false. What you wanted to do was probably something like this: \def\tmp{#1}% \ifx\tmp\empty 〈...


4

\documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lmodern} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[ notitle, enhanced, overlay={\path[circle, fill stretch image*={width=1cm}{frog}] ([xshift=2cm]frame.north west) circle(1cm);}, top=1cm, ] \lipsum[2] \end{tcolorbox} \end{document}


4

The following uses the LaTeX2e internal \@endpetrue, that is used to let \end{<env>} use a \@doendpe if the environment specifies it (such as itemize for example), to suppress the paragraph indent if there is no empty line after your myminted, but there will be an indent if you leave a blank line. \documentclass{report} \usepackage{lipsum} \...


4

The argument should be optional, in my opinion. You can get away more easily with xparse: a missing optional argument makes \IfNoValueTF return the “true path” \documentclass[a4paper]{article} \usepackage[x11names,table,usenames]{xcolor} \usepackage{tikz} % Para poder dibujar \usetikzlibrary{ calc,matrix,shapes,arrows,automata,positioning, graphs,arrows....


3

I'm not sure what label=problem #2 is supposed to do, because you aren't numbering your problems. Even a “safe” title such as \begin{boxProblem}{abc} Description \end{boxProblem} will produce nothing if \ref{problem abc} is used; only \pageref would print something sensible. A label should only contain standard printable characters or underscores; other ...


3

You want to use the xparse library and \NewTColorBox: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{xparse} \tcbset{ colback=white, colframe=black, title filled=false } \NewTColorBox[ auto counter, number freestyle={W\noexpand\thesection/Q\noexpand\arabic{\tcbcounter}}, ]{question}{O{}mo}{ lowerbox=ignored, %...


2

You can do something like this \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} \begin{tcolorbox}[ breakable,% allows for the same box to span multiple pages colback=white!5, colframe=black!75!black, ] \begin{center} \includegraphics[width=0.8\textwidth]{GRAFIC.png} \end{center} \...


2

Like this? (red lines indicate text borders) With use of the tabularx and adjustbox packages, new definitions for colored signs + and - and standard table environment: \documentclass[12pt, onecolumn]{book} %------------- PACKAGES -------------- \usepackage{geometry} \geometry{a4paper, inner=30mm,outer=20mm,top=30mm,bottom=30mm, ...


2

To build a numbered tcolorbox you should use a \newtcbolorbox command instead of a \newenvironment. This way you can use a counter within every tcolorbox. Take a look at section "5 Initialization Option Keys" in tcolorbox documentation. Here you have an example with mybox: \documentclass{article} \usepackage[most]{tcolorbox} \newtcolorbox[auto counter, ...


2

I'm not sure what you want your whole page to look like, but a you might consider using a minipage just with a line separating your ads. Something like this. I added just random text in the other minipages, but you could continue to add more lines between each one. Again, I'm not sure if this is what you are looking for, but it might be a place to start ...


2

Use the interior node and forget the problem with conditionals. Look at geometry nodes in tcolorbox documentation. It explains that a tcolorbox defines four nodes: frame (title+box contents), interior (box contents), title and segmentation. Using interior as placement reference is a valid solution for boxes with o without title. % !TEX encoding = UTF-8 % !...


2

Since you do not provide a code for the boxes without reinforced corners, I had to use some code as a starting point. I use this one. However, the new ingredient is overlay={\draw[ultra thick] ([yshift=-1em]frame.north west) |- ([xshift=1em]frame.north west) ([yshift=-1em]frame.north east) |- ([xshift=-1em]frame.north east) ([yshift=...


1

The original version of the question had the problem that the two arguments combined got wrapped into $ signs. The current version (while typing this) has the problem that you pass some math stuff to the label argument. You cannot do that (without further ado). If you want to keep the labels, and make them unique, one possibility is to use the auto counter ...


1

The reason you don't see the attached boxed title is that when you wrap your Thm environment with \tcolorboxenvironment, the resulting box has no title key (\tcolorboxenvironment is a very generic wrapper; tcolorbox doesn't see your optional argument when you use the resulting environment; it is only handled by the amsthm environment). If you are not ...


1

I suggest to use a breakable tcolorbox instead of a TiKZ environment. \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage{lipsum} \newtcolorbox[auto counter]{vd}[1][]{ enhanced, breakable, sharp corners, colback=green!20, colframe=blue, boxrule=0pt, leftrule=2pt, ...


1

As the initial proposal was done with tcolorbox, here you have two possible solutions with tcolorbox. As OP already proposed these solutions are based on tcbraster. The first one uses a one-column-tcbraster inside a multicol environment and the second uses a three-column-tcbraster. Inner boxes are defined in classified style and they are blank boxes with ...


1

This could be a start. \documentclass{article} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usepackage[explicit]{titlesec} \definecolor{myblue}{RGB}{91,134,199} \titleformat{\section}{}{}{0em}{% \tikz[baseline={(sec-\number\value{section}.base)},myblue,remember picture]{ \node(sec-\number\value{section}) {\LARGE\bfseries\sffamily\MakeUppercase{#1}}; \...


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