# Tag Info

## Hot answers tagged sectioning

5

The magyar option seizes the initiative and changes the code for \@chapter to reflect the original code in the class and ignores the settings by sectsty. It does nothing to \@schapter, which is the reason you see sans serif in unnumbered chapters. Use titlesec, instead: \documentclass[a4paper]{report} \usepackage[sf,bf]{titlesec} \usepackage[T1]{fontenc} ...

3

Use \def\magyarOptions{chapterhead=unchanged} before \usepackage[magyar]{babel} Code: \documentclass[a4paper]{report} \def\magyarOptions{chapterhead=unchanged} \usepackage[magyar]{babel} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage{blindtext} \usepackage{sectsty} \chapterfont{\usefont{T1}{qhv}{b}{n}\selectfont\huge} ...

3

While Christian offers a better solution, you can start with \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[ sharp corners, boxrule=2mm, notitle, colback=white, colframe=blue, coltitle=white, fonttitle=\bfseries] This is a \textbf{tcolorbox}. \tcbsubtitle[before ...

3

It is almost easier to construct the section title with the aid of titlesec's explicit option. This allows you to use #1 as the <title> of \section{<title>}: \documentclass{article} \usepackage{tikz} \usepackage[nobottomtitles*,explicit]{titlesec} \usepackage{lipsum} \titleformat{\section}[block] {\Large\bfseries} {} {0pt} ...

2

It is already answered here. If you wish to remove page numbers for a certain level, such as subsection, redefine \l@subsection{title}{page number}.

2

Here is a solution \documentclass{article} \usepackage{lipsum} \newcommand*\editorialtable{% \beforeeditorialtable \begin{tabular}{|l|l|l|l|} \hline \multicolumn{1}{|c}{Section} & \multicolumn{1}{|c}{Subsection} & \multicolumn{1}{|c}{Responsible}&\multicolumn{1}{|c|}{Helpers}\\ \hline \makeeditorialtable \end{tabular} \aftereditorialtable} ...

2

See the updated and better version at the end, please! A preliminary version with expl3 features and key-value interface, only working for a table at the end at the moment! \documentclass{article} \usepackage{xparse} \usepackage{xkeyval} \makeatletter \let\latex@@section\section \let\latex@@subsection\subsection \define@key{editorial}{helper}{% ...

2

\documentclass{scrartcl} \usepackage{kantlipsum} \title{A title} \author{An author} \date{\today} \begin{document} \maketitle \begin{abstract} \kant[1] \end{abstract} \section{A section} \subsection{A subsection} \kant \end{document} If you want the abstract text itself in Sans Serif use \begin{abstract}\sffamily

1

Here is a solution \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage[magyar]{babel} \usepackage{blindtext} \usepackage{sectsty} \chapterfont{\usefont{T1}{qhv}{b}{n}\selectfont\huge} \sectionfont{\usefont{T1}{qhv}{b}{n}\selectfont\LARGE} \subsectionfont{\usefont{T1}{qhv}{b}{n}\selectfont\Large} \makeatletter ...

1

If you are using KOMA-Script version 3.17 or older you have to replace \include{...} by \clearpage\input{...}. If you do not want that the content of the loaded file starts on a new page then use only \input{...}. With KOMA-Script version 3.18 or newer there is no problem with the order of the TOC entries. But the code that removes the chapter heading does ...

1

A bit ugly, but with three conditionals in the frametitle definition, it gives the desired numbers. \documentclass{beamer} \usepackage{etoolbox} \usepackage{xpatch} \usetheme{Warsaw} \usecolortheme{seahorse} \setbeamertemplate{section in head/foot}{\hfill\insertsectionheadnumber.~\insertsectionhead} \setbeamertemplate{section in head/foot ...

1

LaTeX is a funny beast sometimes, since what should be a fairly simple thing can often end up more complicated than you expect. In this case, because the different parts of the document (title, abstract, headings, etc.) are constructed separately, you need to change each part separately. For some things (like the title parts) the hacky way to do this is ...

1

The basic idea is to use the starred form: \chapter*{Attachments} associated with \addcontentsline{toc}{chapter}{Attachments}. This last bit is needed because the starred form strips down the chapter number but also prevents it to appear in the table of contents. \documentclass[a4paper,10pt]{book} \begin{document} \tableofcontents \chapter{This is chapter1} ...

Only top voted, non community-wiki answers of a minimum length are eligible