Skip to content

Commit

Permalink
6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
T-F-S committed Sep 26, 2023
1 parent 6d98db4 commit 4918308
Show file tree
Hide file tree
Showing 32 changed files with 135 additions and 79 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
# The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)


> Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
Expand Down
18 changes: 10 additions & 8 deletions doc/latex/tcolorbox/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ and this project adheres to



## [Unreleased]
## [6.1.0] - 2023-09-26

### Added
- New option `redirectlowerto` (issue #240)

### Changed
- Added braces to protect square brackets, mostly for key values (issue #234, issue #239 continued)

### Deprecated

### Removed
- Added braces to protect square brackets, mostly for key values (issue #234, issue #229 continued)
- Internal `\__tcobox_include_graphics:nn` refactored (issue #236)
- `blend into` now also adapts `list type` accordingly,
e.g. `blend into=figures` now sets `list type=figure` (issue #238)
- `every box`, `every box on layer <n>`, and `every box on higher layers` may contain
`capture` mode settings now (issue #246)

### Fixed

### Security
- With parbox=false, `\par` was ignored in a `tcolorbox` that starts a list (issue #245)
- `varwidth upper` ignored horizontal alignment of upper part (issze #247)



Expand Down
2 changes: 1 addition & 1 deletion doc/latex/tcolorbox/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
# The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)


> Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
Expand Down
Binary file modified doc/latex/tcolorbox/tcolorbox-example-poster.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/latex/tcolorbox/tcolorbox-example-poster.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcolorbox-example-poster.tex: a poster example for tcolorbox
%%
%% -------------------------------------------------------------------------------------------
Expand Down
Binary file modified doc/latex/tcolorbox/tcolorbox-example.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/latex/tcolorbox/tcolorbox-example.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcolorbox-example.tex: an example for tcolorbox
%%
%% -------------------------------------------------------------------------------------------
Expand Down
Binary file modified doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% \LaTeX-Main\
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcolorbox-tutorial-poster.tex: a tutorial for poster creation with tcolorbox
%%
%% -------------------------------------------------------------------------------------------
Expand Down
25 changes: 25 additions & 0 deletions doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,31 @@ \subsection{Lower Part}
\end{exdispExample}
\end{docTcbKey}


\clearpage
\begin{docTcbKey}[][doc new=2023-07-17]{redirectlowerto}{=\meta{file name}}{no default, initially empty}
This is a combination of \refKey{/tcb/savelowerto} and \refKey{/tcb/lowerbox}|=|\docValue{ignored}
\emph{and additionally} avoids typesetting the content of the lower part.

This comment has been minimized.

Copy link
@muzimuzhi

muzimuzhi Sep 27, 2023

Contributor

Do the docs for lowerbox and/or savelowerto need a note like "the lower part is always input and composed into a box once, then typeset or dropped accordingly"?

Then the deprecated approach once discussed in #240 (comment) and my following comment, introducing a new value for lowerbox like lowerbox=totally ignored, finds its advantage. It makes the typesetting state of lower part solely controlled by lowerbox.

(Feel free to ask for filing a new issue for each of my commit comments. More or less the git diff page just provides a form of emphasis.)

Update: Oh I realized the limitation mentioned in #240 (comment): lowerbox=ignored totally has to be implemented based on reading lower part in verbatim. Then the current redirectlowerto is understandable.

This comment has been minimized.

Copy link
@T-F-S

T-F-S Sep 28, 2023

Author Owner

I will add further comments to the documention for the lower part.

This can be useful, if the lower part contains counters or similar.
\begin{exdispExample}{redirectlowerto}

\setcounter{enumi}{1}
Test counter: \theenumi

\begin{tcolorbox}[redirectlowerto=\jobname_bspsave.tex,colback=white]

This comment has been minimized.

Copy link
@muzimuzhi

muzimuzhi Sep 27, 2023

Contributor

Before, file name suffix _bspsave is used once in savelowerto doc example, and suffix _bspsave2 is used twice in savedelimiter doc examples.

Although using the same suffix is OK since each of the new files is input right after creation, using different suffixes in doc examples for different options and naming them consistently with a mono-increasing number suffix (like _bspsave, _bspsave2, _bspsave3, and maybe _bspsave4) is not a bad idea. (Sticking to the same suffix is also not bad.)

Update: Using distinct temp file names has the benefit of checking the verbatim-writing is working.

This comment has been minimized.

Copy link
@muzimuzhi

muzimuzhi Sep 27, 2023

Contributor

see PR #248

This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.\stepcounter{enumi}
New value of test counter: \theenumi.
\end{tcolorbox}

Now, we load the saved text:\\
\input{\jobname_bspsave.tex}
\end{exdispExample}
\end{docTcbKey}



\clearpage
\begin{docTcbKey}{lower separated}{\colOpt{=true\textbar false}}{default |true|, initially |true|}
If set to |true|, the lower part is visually separated from the upper part.
Expand Down
3 changes: 2 additions & 1 deletion doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ \subsection{Numbered Boxes}\label{sec:numberedboxes}

\clearpage

\begin{newTcbKey}[][doc new=2014-09-19]{blend into}{=\meta{name}}{style, no default, initially unset}
\begin{newTcbKey}[][doc new and updated={2014-09-19}{2023-07-03}]{blend into}{=\meta{name}}{style, no default, initially unset}
Used to comfortably blend into an existing schema of naming and numbering for
some selected cases. For example, a |tcolorbox| can be used to display
and entitle an image pretending to be a standard |figure| environment.
Here, \refKey{/tcb/title} is used instead of the standard |\caption|
and \refKey{/tcb/list text} can be used instead of the optional parameter
of the standard |\caption|.
Also, \refKey{/tcb/new/list type} is automatically adapted (changed with version 6.0.5).

Feasible values for \meta{name} are:
\begin{itemize}
Expand Down
Binary file modified doc/latex/tcolorbox/tcolorbox.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions doc/latex/tcolorbox/tcolorbox.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% \LaTeX-Main\
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcolorbox.tex: Manual
%%
%% -------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -51,8 +51,8 @@
\setlength{\bibitemsep}{\smallskipamount}
\addbibresource{tcolorbox.doc.bib}

\def\version{6.0.4}%
\def\datum{2023/06/19}%
\def\version{6.1.0}%
\def\datum{2023/09/26}%
\makeindex

\hypersetup{
Expand Down
5 changes: 3 additions & 2 deletions tex/latex/tcolorbox/tcbbreakable.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbbreakable.code.tex: Code for breakable colorboxes
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\RequirePackage{pdfcol}
\pdfcolInitStack{tcb@breakable}
Expand Down Expand Up @@ -81,6 +81,7 @@
\def\noexpand\@currenvline{\on@line}}%
\reserved@a%
\@endpefalse%
\global\@newlistfalse%
\let\tcbbreak\tcb@@break%
\iftcb@usecolorstack%
\pdfcolSwitchStack{tcb@breakable}%
Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbdocumentation.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbdocumentation.code.tex: Code for LaTeX documentations
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{listings,skins,xparse,external,raster}

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbexternal.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbexternal.code.tex: Code for externalization
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{pro@cessing}

Expand Down
6 changes: 3 additions & 3 deletions tex/latex/tcolorbox/tcbfitting.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbfitting.code.tex: Code for fit boxes
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\newdimen\tcbfitdim
\newdimen\tcb@lowerfitdim
Expand Down Expand Up @@ -368,7 +368,7 @@
}

\newcommand{\tcboxfit}[2][]{%
\tcb@ox{capture=fitbox,#1}{#2}%
\tcb@ox{capture=fitbox}{#1}{#2}%
}


Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbhooks.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbhooks.code.tex: Code for adding hooks
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbset{%
before upper app/.code={\appto\kvtcb@before@upper{#1}},%
Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcblistings.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcblistings.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\RequirePackage{listings}[2007/02/22]

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcblistingscore.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{pro@cessing}

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcblistingsutf8.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{listings}

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbmagazine.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbmagazine.code.tex: Code for box sets and magazine styles
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{breakable}

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbminted.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbminted.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\RequirePackage{minted}[2021/12/24]

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbposter.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbposter.code.tex: Code for posters
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\tcbuselibrary{breakable,magazine,skins,fitting}

Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbprocessing.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbprocessing.code.tex: Code for conditional processing
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\RequirePackage{pdftexcmds}
\RequirePackage{shellesc}
Expand Down
4 changes: 2 additions & 2 deletions tex/latex/tcolorbox/tcbraster.code.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% The LaTeX package tcolorbox - version 6.0.4 (2023/06/19)
%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26)
%% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
\tcb@set@library@version{6.0.4}
\tcb@set@library@version{6.1.0}

\newcounter{tcbrastercolumn}
\newcounter{tcbrasterrow}
Expand Down
Loading

0 comments on commit 4918308

Please sign in to comment.