% \LaTeX-Main\
%% The LaTeX package tcolorbox - version 2.32 (2013/06/23)
%% tcolorbox.tex: Manual
%%
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2006-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `author-maintained'.
%%
%% This work consists of all files listed in README
%%
\documentclass[a4paper,11pt]{ltxdoc}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{lmodern,parskip,array,ifthen,calc,makeidx}
\usepackage{amsmath,amssymb}
\usepackage[svgnames,table,hyperref]{xcolor}
\usepackage{tikz}
\usepackage[pdftex,bookmarks,raiselinks,pageanchor,hyperindex,colorlinks]{hyperref}

\usepackage[a4paper,left=2.5cm,right=2.5cm,top=1.5cm,bottom=1.5cm,
    marginparsep=5mm,marginparwidth=10mm,
    headheight=0mm,headsep=0cm,
    footskip=1.5cm,includeheadfoot]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\fancyfoot[C]{\thepage}%
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}
\tolerance=2000%
\setlength{\emergencystretch}{20pt}%

\usepackage{csquotes}
\usepackage[style=numeric-comp,sorting=nyt,
  maxnames=8,minnames=8,abbreviate=false,backend=biber]{biblatex}
\DeclareFieldFormat{url}{\newline\url{#1}}%
\DeclareListFormat{language}{}%
\setlength{\bibitemsep}{\smallskipamount}
\addbibresource{tcolorbox.doc.bib}

\usetikzlibrary{shadings,shadows}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{patterns}

\usepackage{array,tabularx}
\usepackage{amsmath}
\usepackage{lipsum}

\usepackage{changepage}
\strictpagecheck

\usepackage[all]{tcolorbox}
\tcbset{skin=enhanced}
\urlstyle{sf}

\tcbmakedocSubKey{docTcbKey}{tcb}
\tcbmakedocSubKey{langTcbKey}{tcb/doclang}

\makeatletter
\def\index@Skin#1{\index{#1\idx@actual\texttt{#1} Skin}\index{Skins\idx@level#1\idx@actual\texttt{#1}}}
\newenvironment{docSkin}[1]{\begin{manual@entry}%
\hypertarget{skin:#1}{\manual@top{\texttt{/tcb/skin=}\disp@com{#1}\index@Skin{#1}\protected@edef\@currentlabel{#1}\label{skin:#1}\hfill(skin)}}}%
  {\end{manual@entry}}
\def\refSkin#1{\ref@doc{skin:#1}}
\makeatother

\newtcolorbox{marker}[1][]{marker,#1}

\def\version{2.32}%
\def\datum{2013/06/23}%
\makeindex

\hypersetup{
  pdftitle={Manual for the tcolorbox package},
  pdfauthor={Thomas F. Sturm},
  pdfsubject={colored boxes},
  pdfkeywords={colored boxes, LaTeX examples, theorems}
}

\newcounter{texexp}
\newcounter{texercise}
\newcounter{mytheorem}[section]

\newcounter{example}
\newlength{\examlen}


\lstdefinestyle{mydocumentation}{style=tcbdocumentation,
  classoffset=0,
  texcsstyle=\color{blue},
  % LaTeX and other packages
  moretexcs={arrayrulecolor,draw,includegraphics,ifthenelse,isodd,lipsum,path,pgfkeysalso},
  classoffset=1,
  % tcolorbox macros
  moretexcs={% core
    endtcolorbox,endtcbverbatimwrite,newtcolorbox,newtcbox,newtcboxfit,tcbusetemp,
    tcblower,tcbox,tcboxfit,tcbset,tcbuselibrary,tcolorbox,tcbverbatimwrite,
    % listings
    endtcblisting,newtcblisting,
    tcblisting,tcbinputlisting,tcbuselistingtext,tcbuselistinglisting,tcbusetemplisting,
    tcbfitdim,tcbfitsteps,
    % theorems
    tcbmaketheorem,tcboxmath,tcbhighmath,
    % documentation
    brackets,
    colDef,colOpt,cs,
    docAuxCommand,docColor,
    meta,marg,
    oarg,
    refCom,refEnv,refKey,
    tcbmakedocSubKey,
    % skins
    tcbline,
    },
  texcsstyle=\color{Definition}\bfseries,
  classoffset=2,
  keywordstyle=\color{Option}\bfseries,
  % tcolorbox options
  morekeywords={% core
    adjusted,adjust,after,arc,auto,autoparskip,align,
    before,bottom,boxsep,boxrule,bottomtitle,bottomrule,broken,basedim,
    collower,coltext,coltitle,colback,colframe,colupper,center,code,capture,
    equal,enlarge,enlargement,extrude,
    fontupper,fontlower,fonttitle,first,floatplacement,float,fit,fontsize,flushleft,flushright,
    group,gap,
    height,
    lowerbox,left,leftrule,lefttitle,leftupper,leftlower,lower,last,lefthand,
    middle,minimum,maxstep,macros,
    notitle,natural,noparskip,nobeforeafter,nofloat,
    parskip,parbox,
    outer,oversize,overlay,
    right,rightrule,righttitle,rightupper,rightlower,righthand,ratio,
    savelowerto,savedelimiter,space,split,shrink,sidebyside,skip,
    title,top,toptitle,toprule,titlerule,tabularx,tikz,toggle,tight,tempfile,text,
    upper,unbroken,
    valign,
    width,
    % listings
    comment,
    file,
    inputencoding,
    listing,
    options,outside,
    style,side,
    utf,
    % theorems
    ams,align,
    equation,
    gather,
    highlight,
    math,
    nodisplayskip,
    theorem,
    % documentation
    actual,
    color,colors,
    docexample,documentation,definition,default,
    example,english,environment,environments,
    german,
    hyperlink,
    key,
    index,
    level,language,
    pageshort,
    option,
    quote,
    settings,
    % skins
    beamer,bicolor,blank,borderline,clip,
    colbacktitle,code,colbacklower,
    draft,drop,
    enhanced,engine,
    frame,freelance,fuzzy,
    graphical,geometry,graphics,
    hidden,halo,
    interior,
    opacity,
    nodes,
    skin,segmentation,stretch,standard,shadow,
    titled,
    watermark,widget,
    zoom,
    % breakable
    breakable,break,
    goal,
    pad,
    unbreakable,
    % hooks
    app,pre,
    },
  classoffset=0% restore default
  }

\tcbset{documentation listing style=mydocumentation,%
  sbs/.style={sidebyside,before lower app={\tcbset{sidebyside=false}}},%
  innerbox/.style={standard,frame style={},colback=black!5!white,colframe=black!75!white,coltext=black,coltitle=white,docexample/.style={docexample original},
    frame code,interior code,interior titled code,segmentation code,no shadow},
  docexample/.style={colframe=Navy!50!ExampleFrame,colback=Navy!5!ExampleBack,fontlower=\footnotesize,
    bicolor,colbacklower=ExampleBack!5!white,drop fuzzy shadow,%,
    before upper={\tcbset{innerbox}},before lower={\tcbset{innerbox}}},
  docexample original/.style={colframe=ExampleFrame,colback=ExampleBack,fontlower=\footnotesize,frame style={}},
}

%\includeonly{tcolorbox.doc.abstract}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\include{tcolorbox.doc.abstract}
\include{tcolorbox.doc.intro}
\include{tcolorbox.doc.coremacros}
\include{tcolorbox.doc.coreoptions}
\include{tcolorbox.doc.verbatim}
\include{tcolorbox.doc.skins}
\include{tcolorbox.doc.listings}
\include{tcolorbox.doc.theorems}
\include{tcolorbox.doc.breakable}
\include{tcolorbox.doc.fitting}
\include{tcolorbox.doc.hooks}
\include{tcolorbox.doc.documentation}
\include{tcolorbox.doc.references}
\include{tcolorbox.doc.index}
\end{document}
