# Tag Info

8

The default article provides the following levels of sectioning \part (level 0) \section (level 1) \subsection (level 2) \subsubsection (level 3) \paragraph (level 4) \subparagraph (level 5) If you wish to add levels below this, see How to add an extra level of sections with headings below \subsubsection. Note that more levels are rarely required, since ...

7

6

By default the article supports only the \part \section \subsection \subsubsection as well as \paragraph and \subparagraph. It is possible to add additional sections but you should check if it's not easier to switch the class. Here's an example how it may look like (taken from my blog post, uses the KomaScript scrartcl class): \documentclass{scrartcl} ...

6

Load the package titlesec and add this line to your preamble: \titleformat{\section}{\normalfont\Large\bfseries}{\S\thesection}{1em}{}[] MWE: \documentclass{article} \usepackage{titlesec} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{defn}[theorem]{Definition} ...

5

One way to achieve your objective would be to (i) make sure that the definition and theorem environments share the same counter and (ii) redefine the \section command in a way that resets this counter to 0, regardless of whether the sections are numbered or not. The example below does these things, while using the amsthm package. \documentclass{article} ...

4

If you would like to have the \S as a feature of the section number everywhere else that it occurs (such as cross-references), then you can define \thesection to contain a \S symbol first, and then define \thetheorem, etc. to remove this symbol as a part of creating the theorem number. Preamble. Consider the following minimal preamble: ...

4

Redefine it in this way (you were missing a \par at least, and use \dimexpr\linewidth-2\fboxsep-2\fboxrule instead of simply \linewidth to avoid bad boxes) \def\@makeschapterhead#1{% \noindent\fbox{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule}{% \centering\large\bfseries #1% }}\par\nobreak} MWE: \documentclass{report} \makeatletter ...

3

Here's what happens. A section title is a moving argument, which means it's stored in memory and written out in the .aux file when the next page shipout occurs. When the write operation is performed, TeX expands macros without executing commands; moreover it is not in math mode at the time (it is in no mode, actually). This means that the conditional is ...

3

Here's another option: \documentclass[ 11pt, pagesize=auto, version=last, chapterprefix=true ]{scrbook} \usepackage[frenchb]{babel} \usepackage[babel=true]{csquotes} \usepackage[T1]{fontenc} \usepackage[explicit]{titlesec} \usepackage{xcolor} \usepackage{charter} \definecolor{mybluei}{RGB}{28,138,207} \definecolor{myblueii}{RGB}{131,197,231} ...

3


3

One option using titlesec: \documentclass{article} \usepackage{titlesec} \titleformat{\subsection}[runin] {\normalfont\large\bfseries}{\thesubsection}{1em}{} \titleformat{\subsubsection}[runin] {\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} \begin{document} \section{Test section} test text \subsection{Test subsection} test text ...

2

For the formatting of title in the form Appendix A (title) and entries in the TOC, there is a 'quick-and-dirty' solution, by redefinition of the section command, however, not the \autoref issue. \documentclass{scrbook} \usepackage[manualmark]{scrpage2} \usepackage{blindtext} % Not really needed \usepackage{hyperref} ...

2

The above solutions would give you a footnote marker using the same fontsize of the section title, which might be undesirable. If you want it small: %%PREAMBLE \usepackage[stable]{footmisc} %%BODY \section{Your Title \textsuperscript{\footnotesize{\footnote{Your foonote}}}}

2

In Texmaker, there is no code folding feature for \include it's only available for \part, \chapter, \section,.., \begin{foo} \end{foo}. Place a feature request with clear demo at issue tracker. Note: Use \usetikzlibrary{external} and \tikzsetnextfilename{figure-name} as shown in ...

2

If you want all \subsections to be removed from the ToC, then all you need in your document preamble is \setcounter{tocdepth}{1} which would set the maximum depth of entries in the ToC to 1 (or \section). If you only want selected \subsections to be inserted/not in the ToC, then you should use a different technique. The following defines \stoptocentries ...

2

You can do this out of the box with package etoc. The code: \documentclass{article} \usepackage{etoc} \begin{document} \tableofcontents \section{First Section} Hello \subsection{A} \subsection{B} \section{Second Section} \etocsettocdepth.toc {section} \subsection {EXCLUDE ME}\label{ssec:excluded} \etocsettocdepth.toc {subsection} \subsection {D} ...

2


1

I just found the way to solve the problem (please, if somebody can explain to me why does it works, I will be delighted). I changed the definition of makeschapterhead by the following: \def\@makeschapterhead#1{ \begin{center} \fbox{\parbox{\linewidth}{\centering \large\bfseries #1 }} \end{center} } That is, I just enclosed my definition ...

1

The answer to the LaTeX part of this can be found in How to change the numbering of \part, \chapter, \section, ... to alphabetical, Roman numbers, etc. You need to such commands to the preamble, by going to Document --> Settings --> LaTeX preamble. To get the result you ask for, add \renewcommand\thesection{\Roman{section}} ...

1

Just redefine \AtBeginSection before the final slide: \documentclass{beamer} \usetheme[hideothersubsections]{Hannover} \begin{document} %=======BEGIN OUTLINE COMMANDS============ \AtBeginSubsection { \begin{frame}<beamer>{Outline} \tableofcontents[currentsection,currentsubsection] \end{frame} } \AtBeginSection { ...

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