Text Formattingxcolor | Sub-Subsection Headings cause Trouble

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
ahuakdemir
Posts: 6
Joined: Sat Jun 30, 2012 5:36 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by ahuakdemir »

Hello,

I am using xcolor package to draw some colored tables. But I am having trouble with the \subsubsection command.

When I block comment the colored tables and xcolor package, it works. When I do not use any \subsubsection, it works. But when I use both at the same time, I get the following errors:

Code: Select all

! Missing number, treated as zero.
<to be read again>
}
1.545 \subsubsection{Improved Bounds} I
n this part,
! Color stack action is missing.
<to be read again>
}
1.545 \subsubsection{Improved Bounds} I
n this part,
Any one knows the solution? Thank you.
Last edited by Stefan Kottwitz on Sat Jun 30, 2012 5:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by kaiserkarl13 »

Without a Infominimal working example, no one can be sure. Please post one.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by cgnieder »

Just so that everybody knows: this question has been asked on TeX.SE as well.

@ahuakdemir: see section 4.1 of the board rules:
A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
Welcome to the LaTeX-Community!

Regards
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Can you please post the line before the \subsection command? I guess the error is there.

Stefan
LaTeX.org admin
ahuakdemir
Posts: 6
Joined: Sat Jun 30, 2012 5:36 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by ahuakdemir »

I'm a newbie, so I don't know the rules very much. I'm sorry and thanks for the notice.
cgnieder wrote:Just so that everybody knows: this question has been asked on TeX.SE as well.

@ahuakdemir: see section 4.1 of the board rules:
A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
Welcome to the LaTeX-Community!

Regards
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by Stefan Kottwitz »

Btw. here's a small example which produces exactly both of the two errors you got:

Code: Select all

\documentclass{article}

\begin{document}
\pdfcolorstack
\subsubsection{Improved Bounds}
In this part,
\end{document}
\pdfcolorstack requires an argument, that's why we get Missing number, treated as zero.. Furthermore, as there's no argument, the command \pdfcolorstack issues the error message Color stack action is missing.

So probably either you called that command this way or another command did it implicitly. Perhaps post a minimal example (as I did), to demonstrate the problem, so we can test and fix it. For this, just hack down a copy of your document, reduce it step by step.

Stefan
LaTeX.org admin
ahuakdemir
Posts: 6
Joined: Sat Jun 30, 2012 5:36 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by ahuakdemir »

I tried a few lines and some different chapters and sections also. Every time I get the same error. But I actually want to use it like that:

Code: Select all

\documentclass[a4paper,onesided,12pt]{report}
\usepackage{styles/fbe_tez}

\usepackage{inputenc}
\renewcommand{\labelenumi}{(\roman{enumi})}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[bottom]{footmisc}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{subfigure}
\usepackage{subfig}
\usepackage{float}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{colortbl}
\usepackage{array}
\usepackage[dvipsnames,svgnames,x11names]{xcolor}

\begin{document}

\chapter{New Values}
\section{Improved Bounds} 
\subsection{Theoretical Bounds}

In the next part, the bounds will be calculated by the help of theoretical bounds.
\subsection{Calculation Examples}


\bibliographystyle{styles/fbe_tez_v11}
\bibliography{references}
\end{document}
Stefan_K wrote:Hi,

welcome to the board!

Can you please post the line before the \subsection command? I guess the error is there.

Stefan
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by Stefan Kottwitz »

There's no problem in this code, it works, except that I don't have the fbe_tez package for testing.

Can you please post styles/fbe_tez.sty, as attachment to a post?

Stefan
LaTeX.org admin
ahuakdemir
Posts: 6
Joined: Sat Jun 30, 2012 5:36 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by ahuakdemir »

Thanks for your time. The file is attached.
Stefan_K wrote:There's no problem in this code, it works, except that I don't have the fbe_tez package for testing.

Can you please post styles/fbe_tez.sty, as attachment to a post?

Stefan
Attachments
fbe_tez.sty
(21.61 KiB) Downloaded 272 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: xcolor | Sub-Subsection Headings cause Trouble

Post by Stefan Kottwitz »

Ok, I tested it with your example code: there's no error. Does your example code really produces the error? If yes, can you post the .log file as attachment?

Stefan
LaTeX.org admin
Post Reply