titlesec
titlesec copied to clipboard
Bundle for titles in LaTeX (sections, contents and page styles)
In the documentation dated 2023/10/27, section 6.2 mentions the following: However, here's an MWE ```latex \documentclass{book} \usepackage[leftlabels]{titletoc} \begin{document} content \end{document} ``` running which gives the following error: `Command \contentslabel already...
titlesec defines `\@currentlabelname` in `\ttl@straight@i` but doesn't sanitized the argument. ~~~~ \def\ttl@straight@i#1[#2]#3{% \def\@currentlabelname{#2}% for nameref \gdef\ttl@savemark{\csname#1mark\endcsname{#3}}% \let\ttl@savewrite\@empty \def\ttl@savetitle{#3}% \gdef\thetitle{\csname the#1\endcsname}% \if@noskipsec \leavevmode \fi \par \ttl@labelling{#1}{#2}% \ttl@startargs\ttl@straight@ii{#1}{#3}} ~~~~ If nameref is...
When using hyperref with links activated for ToC titles, the default behavior (for entries not affected by titletoc) is to create a single link containing both the label and the...
First of all, thanks for that package! When using it in a rather largely structured document, I think to have identified a minor, but annoying bug: The contents on the...
It would be nice if `\titlecontents*` had an additional optional argument to enable one to specify if the text in the paragraph (the contents items) should be justified, flush left,...
I have to use a class with titlesec and unnumbered sections, but I want to (name)reference a section, which does not work. After some debugging I found out that the...
When the length of a section title is equal to the width of the space allotted to that title, the page number for the section is pushed onto the next...
Titlesec adds some unwanted space before chapter titles (of any shape, not just display), as shown by the following MWE: ``` \documentclass{report} \usepackage[showframe]{geometry} \usepackage{titlesec} \titleformat{\chapter} {}{\thechapter}{1em}{} \titlespacing*{\chapter}{0pt}{*0}{*0} % same result...
Without titlesec the `\addvspace` is work as expected and adds only minimal additional space: ~~~~ \documentclass{article} %\RequirePackage{titlesec} \begin{document} \tableofcontents \section{a} text \section{b}\showthe\lastskip \addvspace{1em} text \end{document} ~~~~ ~~~~ > 9.90276pt plus...
## Brief description of the bug With package option `largestsep`, `titlesec` does not use the larger skip, but instead use the sum of `` from the first heading and ``...