Including chapter-tocs in a quarto scrbook. #8604
Replies: 2 comments 2 replies
-
That's not a Quarto question. For the LaTeX code you'll have to look/ask elsewhere. To help figure out where to include and possibly debug your future document, use |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've found the answer: You have to include the \documentclass[
$if(fontsize)$
$fontsize$,
$endif$
$if(papersize)$
$papersize$paper,
$endif$
$if(beamer)$
ignorenonframetext,
$if(handout)$
handout,
$endif$
$if(aspectratio)$
aspectratio=$aspectratio$,
$endif$
$endif$
$for(classoption)$
$classoption$$sep$,
$endfor$
]{$documentclass$}
% ##############################################
% ### default above, addet expression below ###
% ##############################################
\usepackage{titletoc}
\usepackage{fancybox}
% Inhaltsverzeichnis für jedes Kapitel
\titlecontents{chapter}% <section-type>
[0pt]% <left>
{}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\contentspage}% <filler-page-format>
\newcommand{\chaptertocbox}[1]{%
\setlength{\fboxrule}{0.4mm}%
\setlength{\fboxsep}{2mm}%
\cornersize{0.2}%
\Ovalbox{%
\hspace{-1em}% Einrückung auf der linken Seite
\parbox{\dimexpr\textwidth-2\fboxsep-2\fboxrule}{%
#1% Inhalt
}%
}%
}
also you have to insert a 'tex-shortcode' in your qmd: # Overview
```{=tex}
\startcontents[chapters]
\noindent
\chaptertocbox{\printcontents[chapters]{}{1}{}}
```
## Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
## Running Code
### first
When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:
```{r}
1 + 1
```
### second
You can add options to executable code like this
```{r}
#| echo: false
2 * 2
```
The `echo: false` option disables the printing of code (only output is displayed).
```{=tex}
\stopcontents[chapters]
```
# appendix {.appendix}
## test {.appendix}
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Do someone know how i can include minitocs for each chapter in a quarto scrbook?
Beta Was this translation helpful? Give feedback.
All reactions