我只是想知道是否有人可以帮助我解决我遇到的问题?
我正在尝试使用tcolorbox
环境并使用目录功能作为标题tcolorboxes
。
下面的代码:提前谢谢您!!!
\documentclass{book}
\usepackage[dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{url}
\usepackage{background}
\usepackage{lastpage}
\backgroundsetup{
scale=1,
color=black,
opacity=1,
angle=0,
position=current page.south,
vshift=60pt,
contents={%
\small\sffamily%
\begin{minipage}{.8\textwidth}
\parbox[b]{.6\textwidth}{%
Page \thepage\ of \pageref{LastPage}}\hfill
\parbox[b]{.4\textwidth}{%
\raggedleft xxxxxxx, My street 1 \\ 1234 city, Country}\ \textcolor{SkyBlue}{\rule{\textwidth}{1.5pt}}\ \url{www.xxxx.com}
\end{minipage}\hspace{.02\textwidth}%
\begin{minipage}{.18\textwidth}
\includegraphics[width=\linewidth,height=70pt,keepaspectratio]{foot}
\end{minipage}%
}
}
\pagestyle{empty}
\begin{document}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{The Mission}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
The mission statement for this plan is \textbf{to inspire ambition and purpose through cricket by}:
\begin{itemize}
\item Promoting cricket for a younger target audience
\item Producing successful, competitive and entertaining cricket
\end{itemize}
The objectives for the update of the english T20 system in this plan are:
\begin{enumerate}
\item To compete with the other growing T20 leagues across the world
\begin{itemize}
\item Increase television coverage across the world through the appeal of the tournament to a wider audience
\end{itemize}
\item Improve fan attendance and engagement
\begin{itemize}
\item Continue to increase the number of spectators at each T20 Blast match
\item Change the schedule of the T20 season to coincide with the school summer holidays
\item Attract more 'International Stars' to the english game
\end{itemize}
\item Support the counties to become more financially independent
\begin{itemize}
\item Generate larger incomes for the county clubs
\begin{itemize}
\item Membership system
\item Fan attendance
\item Television revenues
\end{itemize}
\item Reduce the high cost to income ratio of costs associated with the large number of matches
\end{itemize}
\end{enumerate}
\end{tcolorbox}
\newpage
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Executive Summary}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\newpage
\tableofcontents
\newpage
\listoffigures
\listoftables
\newpage
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Executive Summary}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Introduction}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Strategic Audit}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Generating Strategic Options}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Conclusions}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{tcolorbox}[width=\textwidth,colback={white},title={\textbf{Recommendations}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
\end{tcolorbox}
\begin{thebibliography}{}
\end{thebibliography}
\end{document}
答案1
首先:使用专门\newtcolorbox
用于此的、具有个人风格的。
使用auto counter
和list inside
选项生成单独的 ToC 类文件。
如果list inside=rawlings
使用的话,\tcblistof{rawlings}{List of Rawlings Boxes}
之后如有需要是可能的。
否则就说list inside=toc
在通常的目录中输入框。
\documentclass{book}
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[most]{tcolorbox}
\usepackage{url}
\usepackage{background}
\usepackage{lastpage}
\usepackage{glossaries}
\makenoidxglossaries %glossaries
\backgroundsetup{
scale=1,
color=black,
opacity=1,
angle=0,
position=current page.south,
vshift=60pt,
contents={%
\small\sffamily%
\begin{minipage}{.8\textwidth}
\parbox[b]{.6\textwidth}{%
Page \thepage\ of \pageref{LastPage}}\hfill
\parbox[b]{.4\textwidth}{%
\raggedleft xxxxxxx, My street 1 \\ 1234 city, Country}\ \textcolor{SkyBlue}{\rule{\textwidth}{1.5pt}}\ \url{www.xxxx.com}
\end{minipage}\hspace{.02\textwidth}%
\begin{minipage}{.18\textwidth}
\includegraphics[width=\linewidth,height=70pt,keepaspectratio]{ente}
\end{minipage}%
}
}
\tcbset{rawlings/.style={width=\textwidth,colback={white},colbacktitle=SkyBlue,coltitle=black,colupper=black}}
% A separate box with a separate list type named rawlings
\newtcolorbox[auto counter,list inside=rawlings]{rawlingsbox}[1][]{rawlings,#1}%
\newcommand{\listofrawlings}{%
\tcblistof[\chapter*]{rawlings}{List of Rawlings Boxes}
}
\pagestyle{empty}
\begin{document}
\begin{rawlingsbox}[width=\textwidth,colback={white},title={\textbf{The Mission}},colbacktitle=SkyBlue,coltitle=black,colupper=black]
The mission statement for this plan is \textbf{to inspire ambition and purpose through cricket by}:
\begin{itemize}
\item Promoting cricket for a younger target audience
\item Producing successful, competitive and entertaining cricket
\end{itemize}
The objectives for the update of the english T20 system in this plan are:
\begin{enumerate}
\item To compete with the other growing T20 leagues across the world
\begin{itemize}
\item Increase television coverage across the world through the appeal of the tournament to a wider audience
\end{itemize}
\item Improve fan attendance and engagement
\begin{itemize}
\item Continue to increase the number of spectators at each T20 Blast match
\item Change the schedule of the T20 season to coincide with the school summer holidays
\item Attract more 'International Stars' to the english game
\end{itemize}
\item Support the counties to become more financially independent
\begin{itemize}
\item Generate larger incomes for the county clubs
\begin{itemize}
\item Membership system
\item Fan attendance
\item Television revenues
\end{itemize}
\item Reduce the high cost to income ratio of costs associated with the large number of matches
\end{itemize}
\end{enumerate}
\end{rawlingsbox}
\clearpage
\begin{rawlingsbox}[title={\textbf{Executive Summary}}]
\end{rawlingsbox}
\clearpage
\tableofcontents
\clearpage
\listoffigures
\listoftables
\clearpage
\listofrawlings
\printnoidxglossaries
\clearpage
\begin{rawlingsbox}[title={\textbf{Executive Summary}}]
\end{rawlingsbox}
\begin{rawlingsbox}[title={\textbf{Introduction}}]
\end{rawlingsbox}
\begin{rawlingsbox}[title={\textbf{Strategic Audit}}]
\end{rawlingsbox}
\begin{rawlingsbox}[title={\textbf{Generating Strategic Options}}]
\end{rawlingsbox}
\begin{rawlingsbox}[title={\textbf{Conclusions}}]
\end{rawlingsbox}
\begin{rawlingsbox}[title={\textbf{Recommendations}}]
\end{rawlingsbox}
\begin{thebibliography}{}
\end{thebibliography}
\end{document}