1
vote
0answers
48 views

newcommand, section

I just received a new task in LaTex with a predefined structure and predefined commands. There was also the command \mysection. I think it shouldn't show the text of the section in the document, but ...
7
votes
1answer
92 views

Problems with amsbook, lstdoc, and sections

The code \documentclass{amsbook} \usepackage{lstdoc} \begin{document} \chapter{Chapter} \section{Section} \end{document} produces the error messages Missing } inserted. [\section{Section}] and or ...
4
votes
1answer
83 views

Odd behavior generating TOC, perhaps a LaTeX bug

Compiling a Table of Contents for my article, has led to a very strange behavior. After the second compile to produce the TOC, I get the following Error: LaTeX Error: Something's wrong--perhaps a ...
4
votes
2answers
188 views

TeX capacity exceeded in Table of Contents due to macro

I'm working on a macro that when given Hello will make a chapter named hello, and number it like this: 1 - Hello, with the 1 - inside the margins. I also want it to automatically label the chapter by ...
3
votes
1answer
264 views

Using mathsf in a section title

I'm trying to use the mathsf font in a section title and it wont compile. Here is a MWE: \documentclass{amsart} \usepackage{verbatim, rotating, stmaryrd, bbm, pict2e, ytableau, mathrsfs, amssymb, ...
5
votes
2answers
231 views

How do I use nameref's label with addcontentsline

I am trying to use the nameref \label functionality alongside the use of \addcontentsline that creates invisible sections and subsections that appear in the \tableofcontents. The commands can be seen ...
8
votes
3answers
115 views

Best approach to detect whether hierarchy of sectioning commands is respected?

Is there a package that checks whether each subsection lies in a parent section, each subsubsection lies in a parent subsection, etc. and issues a warning or error otherwise? Not to my knowledge, but ...
1
vote
0answers
30 views

Latex: conflict titlesec and tikz packages [duplicate]

I am using the IEEEtran class and I also call in my preamble the titlesec and tikz packages. If tikz is not called my code runs fine. Otherwise, (when calling the tikz package) I am given this error ...
2
votes
1answer
65 views

System: XeLaTeX, Circumstance: Automation, PROBLEM: error message “missing \item”

I am currently generating PDF's with variable contents from a template I made. Data is fetched from a database and used to create reports. This has been working greatly until recently I needed to ...
5
votes
2answers
983 views

extra } when use titlesec package

In the .tex file, I want to use the package titlesec. But there is a error: ! Argument of \subparagraph has an extra }. Is there some simple method to fix this? The code is: ...
13
votes
1answer
141 views

\( \) don't work with TOC?

If i write this line of code \subsection{Ranger \( n \) boules distinguables dans \( M \) boîtes} I obtain an error over the second \) (./Probabilité.toc ./Probabilité.toc:8: LaTeX Error: Bad ...
2
votes
1answer
200 views

ntheorem thref not working in section titles

When I try to refer to a theorem in a section title with thref, I get the error message at the end of this question. Is there a way to fix this? Latex Error: ./seppathq.tex:57 Argument of ...
5
votes
1answer
355 views

Error when using \bm in *numbered* section title, when hyperref is loaded

I am getting an error when I use the command \bm in a section title that is numbered, when the package hyperref is loaded. Here is the error: ERROR: TeX capacity exceeded, sorry [input stack ...
4
votes
2answers
2k views

Error with \newcommand and \section

I'm trying to typeset an article. In the preamble, I defined these two things: \newcommand{\leftexp}[2]{{\vphantom{#2}}^{#1}{#2}} \newcommand{\hr}{\leftexp{*}{\mathbb{R}}} However, when I try to ...
4
votes
3answers
333 views

Can't get ledpar to work with section headings

I'm trying to create a bilingual critical edition with Latin on the left page and English on the right. I'm trying to figure out ledpar and I can't get the following example to compile. It compiles ...
3
votes
1answer
936 views

Custom font sizes inside section titles

I need to change the size of some text within a section title: \documentclass{article} \begin{document} \section{This text is normal {\Large This text is large}} \end{document} This works, ...
2
votes
1answer
75 views

Issue an error when section takes more than 2 pages

I have a need to make the build crash when a \section takes more than a single page (in a given environment). How can I achieve that?
8
votes
2answers
769 views

“TeX capacity exceeded” because of a couple of raiseboxes in a \section?

In a package, I have the following command defined: \newcommand\fkm{ \ensuremath{\mathrm{ \raisebox{-0.1ex}{\rotatebox{22}{f}}\! \raisebox{0.2ex}{\rotatebox{-15} {k}}\! ...