0

Is it possible to reduce the padding beside segmentation in tcolorbox?

Here is my MWE:

\documentclass[9pt,a5paper,twoside]{report}
\usepackage{xcolor}
\usepackage{blindtext}
%<<<<<<<<<<<<<<<<<<tcolorbox>>>>>>>>>>>>>>>>>>>
\usepackage[skins]{tcolorbox}
\tcbset{enhanced,%breakable
colback=white,colframe=green!30!black,
coltitle=white,
fonttitle=\bfseries\large,
drop fuzzy shadow southeast,
attach boxed title to top left={yshift=-0.5mm},%-0.3mm
boxed title style={size=small,colback=green!50!black,left=2mm,right=2mm,top=0.5mm,bottom=-0.5mm,sharp corners=south,arc=1mm,boxrule=1.4pt,},%boxsep=1mm,
boxsep=0mm, %padding
left=1.5mm,
right=1.5mm,
top=3mm,
bottom=3mm,
righthand width=4cm,
before={\noindent},
arc=1mm,
outer arc=1mm,
sharp corners=northwest,
%title=#1%
segmentation style={black,solid,opacity=0.5,line width=1pt},
}
%<<<<<<<<<<<<<<<<<<Chap. Style>>>>>>>>>>>>>>>>>>>
\usepackage[left=14mm,right=10mm,top=20mm,bottom=15mm,headheight=0mm,]{geometry} %left=1.5in
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[CO, CE]{{\slshape{\rightmark}}} 
\fancyhead[RO, LE]{\thepage}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{ \markboth{#1}{} } 
\renewcommand{\sectionmark}[1]{ \markright{#1}{} }
\usepackage[utf8]{inputenc}
\begin{document}
%<<<<<<<<<<<<<<<<<<Beg. Doc>>>>>>>>>>>>>>>>>>>
\begin{tcolorbox}[title=TcolorboX,sidebyside]
\blindtext
\tcblower
This is the lower part.
\blindtext
\end{tcolorbox}
\end{document}

enter image description here

1 Answer 1

4

The keyword for this is sidebyside gap. The following sets it to 5mm (the initial value is 10mm).

\documentclass[9pt,a5paper,twoside]{report}
\usepackage{blindtext}
\usepackage[skins]{tcolorbox}
\tcbset{enhanced,%breakable
colback=white,colframe=green!30!black,
coltitle=white,
fonttitle=\bfseries\large,
drop fuzzy shadow southeast,
attach boxed title to top left={yshift=-0.5mm},%-0.3mm
boxed title style={size=small,colback=green!50!black,left=2mm,right=2mm,top=0.5mm,bottom=-0.5mm,sharp corners=south,arc=1mm,boxrule=1.4pt,},%boxsep=1mm,
boxsep=0mm, %padding
left=1.5mm,
right=1.5mm,
top=3mm,
bottom=3mm,
righthand width=4cm,
before={\noindent},
arc=1mm,
outer arc=1mm,
sharp corners=northwest,
%title=#1%
segmentation style={black,solid,opacity=0.5,line width=1pt},
}
\usepackage[left=14mm,right=10mm,top=20mm,bottom=15mm,headheight=0mm,]{geometry} %left=1.5in
\usepackage[utf8]{inputenc}

\begin{document}
\begin{tcolorbox}[title=TcolorboX,sidebyside,sidebyside gap=5mm]
\blindtext
\tcblower
This is the lower part.
\blindtext
\end{tcolorbox}
\end{document}

enter image description here

1
  • @Ravi you should probably accept this answer.
    – Skillmon
    Commented Jan 22, 2018 at 22:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .