# Tag Info

## New answers tagged tcolorbox

3

You should load xcolor with the cmyk option so that the default color color is cmyk: \documentclass{book} \usepackage[cmyk]{xcolor} \usepackage[overprint]{colorspace} \usepackage[most]{tcolorbox} \newtcolorbox{casestudy}{enhanced,boxrule=0pt,boxsep=0pt,colframe=red,colback=yellow, sharp corners, arc=5pt, rounded corners=southwest,left=9pt,right=0pt,top=5....

2

Update Here's a very simple overprint implementation for XeLaTeX. It works with (and in fact requires) pgf. tcolorbox loads pgf so this is no problem. \documentclass{book} \usepackage[cmyk]{xcolor} \usepackage{tcolorbox} \newtcolorbox{casestudy}{% sharp corners, colback=yellow, left=0pt, right=0pt, top=0pt, bottom=0pt, before skip=0pt, after skip=0pt, ...

4

I propose two solutions. Using tcolorbox's if odd page option tcolorbox has special options to run different code depending on whether the box is on an odd page or on an even page. Here, we use if odd page to set the width and height options in a page-dependent way. In case you have breakable boxes, read section Even and Odd Pages of the tcolorbox manual (...

4

You might be interested in the package layout. The pack­age de­fines a com­mand \lay­out, which will draw nice pictures showing a sum­mary of the lay­out of the cur­rent doc­u­ment. Beware in mind: You don't need this package for setting/adjusting margins. But it is useful for getting a visual impression of how the layout of the current document is ...

5

I would suggest splitting one equation instead, and removing the many unnecessary \left \right pairs. Unrelated: I don't see why you didn't type your accented letters directly on the keyboard, all the more so as all modern TeX editors understand utf8. I added some improvements with enumitem, mathtools and nccmath. \documentclass[french]{article} \...

3

I believe you shouldn't want to widen the textblock. Instad, do learn about the align* environment -- used in the example below -- of the amsmath package. In addition, you shouldn't rely on \left and \right as much. For the document at hand, none of the \left and \right instances are needed. Also, do make a habit of writing \dsum_{n=0}^{\infty} instead of \...

4

Use the align* environment instead: \documentclass{article} \usepackage{amsmath, amssymb} \usepackage[many]{tcolorbox} \usepackage{lipsum} \DeclareMathOperator{\dint}{\displaystyle\int} \DeclareMathOperator{\dsum}{\displaystyle\sum} \definecolor{myblue}{RGB}{0,163,243} \newtcolorbox[auto counter,number within=section]{exo}[1][]{ enhanced jigsaw,colback=...

1

If you want to globally decrease the marigins you might want to use the geometry package. If you then slightly change the width of the left blue bar and adjsut the indentation of the items in the enumerate list using the enumitem package, the equation can fit into the textwidth without splitting it into two lines. (Since there was no definition for \dsum and ...

7

For example you can use environment split to divide the long equation at the = signs like (see the added code marked with <======): \begin{equation*} \begin{split} % <======================================================= R_{n}\left( \alpha \right) &=\left( -1\right) ^{n+1}\int_{0}^{1}\dfrac{% <======================== t^{\left( n+1\right) \...

4

New version (revised) If we don't want to add possible breakpoints manually, we need a two-stage process, i.e. two compilation runs. listings treats every source code line it processes as its own paragraph. We need to add the vertical material for the breakpoints after that paragraph has ended but before the new one has already begun. With the manual ...

0

I suppose you want to increase the width of the tcolorbox environment called exo. For this purpose, you can usually add the width option in the exo tcolorbox. To extend it, for instance: width=1.1\textwidth, or width=\textwidth+2em, With the leftrule option you can increase the width of the blue box. Output: Code: \documentclass{article} \usepackage{...

0

Welcome to TeX.SE! Your exo environment is as big as it could get naturally. With that, I mean it is stretching all the \textwidth available. If you want to extend the width further, you will have warning(s) saying that you are out of the page (and going into the margins). I don't suggest that but I have provided an example permitting you to do so. It also ...

0

As I understand correctly you want boxe environments with the number of the boxex environment before it. That can be achieved by leaving the boxe environments unnumbered (by removing auto counter from the box options), and inserting the counter of the boxex environment in the title definition of boxe. The counter is stored as \thetcbcounter inside of the ...

2

The reason for the problem is that the boxed title is a tcolorbox itself, but with a higher layer number. For this higher layer, the global setting of shield externalize is reset to the default, i.e. to be false. For almost all options this reset is useful (documented in section 4.16). But, I think, for shield externalize this is not true. Also, the ...

1

You can use fill space there is no need to calculate the space between boxes. Also it is almost always best to leave a blank line before \vspace. The small gap at the bottom is de to the fact that the frame drawn is leaving for the usual case of text on the last line so there is for descenders such as y and g . If you want the bottom of the last box to ...

1

Instead of trying to adjust tcblower part geometry to title, I propose to use a tricky solution: forget the title and lowerbox and use two tcbsubtitle commands automatically added with before upper and after upper options. As tcbsubtitle are part of tcolorbox contents, they show a vertical distance from top and bottom borders. This vertical space defined by ...

1

After a little bit of investigation I've found that the lower white space comes from boxsep parameter, therefore if a bottom=-boxesp is fixed, this empty space disappears. If the bottom of subtitle box should lay over the bottom of tcolorbox, bottom=-boxsep-bottomrule should be used. It could be nice to use real values of boxsep and bottomrule in order to ...

1

You could add a custom strut to the title...that would be making the top line taller, rather than the lower line smaller. \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{lipsum} \newlength{\cornerwidth} \setlength{\cornerwidth}{.5mm} % ---------------------------- \newcommand\mystrut{\rule[-6pt]{0pt}{19pt}} \begin{document} \tcbset{title={1 ...

2

A simple overlay over the segmentation node can solve the problem: \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{lipsum} % -- \begin{document} \begin{tcolorbox}[ title={Title}, center title, toptitle=1mm, bottomtitle=1mm, halign lower=center, sharp corners,% bicolor, collower=black, colback=white,...

1

Adapting the solution given by egreg to the question Issue with tabularx and hbox options in tcolorbox, it is possible to achieve the desired output. Update (18.06.2019) The spaces between text and frame can be set up with: \def\arraystretch{} for the vertical margin \def\tabcolsep{} for the horizontal margin The Title can be vertically centered with the ...

1

IN case, that your tcolorbox hasonly one color, this line you can draw by use of segmentation engine=path,` segmentation style={draw=black!75, line width=1.5pt, solid} which gives: However, when is used bicolor option, defined colors by colbacklower=black!50, is lost, actually it is overwritten by settings for colframe=black!75: This I would consider ...

Top 50 recent answers are included