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 »

I've noticed that in the example I've written subsection instead of subsubsection.
Reposting the example with the .log file.

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.
\subsubsection{Calculation Examples}


\bibliographystyle{styles/fbe_tez_v11}
\bibliography{references}

\end{document}
Stefan_K wrote: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
Attachments
LaTeX1.log
(15.58 KiB) Downloaded 221 times
Last edited by Stefan Kottwitz on Sat Jun 30, 2012 7:39 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.

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

xcolor | Sub-Subsection Headings cause Trouble

Post by Stefan Kottwitz »

I can see that the problem is caused by using \underbar in the definition of \@sect of fbe_tez.sty.

Here's a patch using etoolbox, which replaces it by \underline. Just write in your preamble:

Code: Select all

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@sect}{\underbar}{\underline}{}{}
\makeatother
Does it work for you then? I'm still investigating, why \underbar doesn't work there.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by localghost »

ahuakdemir wrote:I'm a newbie, so I don't know the rules very much. […]
The rules can be found on top of every (sub-)forum in the »Announcements« section right beneath the »New Topic« button. Hence they can't be overlooked. And especially new members should first and foremost take a look at them. Reading only takes a few minutes.


Best regards and welcome to the board
Thorsten
ahuakdemir
Posts: 6
Joined: Sat Jun 30, 2012 5:36 pm

xcolor | Sub-Subsection Headings cause Trouble

Post by ahuakdemir »

It worked! Thank you so much. I can't explain how grateful I am.
Stefan_K wrote:I can see that the problem is caused by using \underbar in the definition of \@sect of fbe_tez.sty.

Here's a patch using etoolbox, which replaces it by \underline. Just write in your preamble:

Code: Select all

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@sect}{\underbar}{\underline}{}{}
\makeatother
Does it work for you then? I'm still investigating, why \underbar doesn't work there.

Stefan
Post Reply