General\newcommand{mysection} and the navigator bar of TexnicCenter

General information and discussion about TeXnicCenter
Post Reply
burc
Posts: 1
Joined: Thu Oct 30, 2008 6:14 pm

\newcommand{mysection} and the navigator bar of TexnicCenter

Post by burc »

Hello,

I'm using TexnicCenter for a few years now and one of its features I prefer is the navigator bar to have a look at the struture of my document in one second.

The problem is that I had to modify the chapter, section and subsection commands by using \newcommand. Since that, I cannot see the titles of my sections in the structure tab of the navigator bar.

In the preamble I have :

Code: Select all

Code, edit and compile here:
\newcommand{\gdtitre}[1]{\chapter{\uuline{#1}}}
\newcommand{\pttitre}[1]{\section{\uuline{#1}}}
\newcommand{\sspar}[1]{\subsection*{\underline{#1}}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and then in the document :

Code: Select all

Code, edit and compile here:
\gdtitre{My new chapter style}
\pttitre{My new section style}
\sspar{My new subsection style}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The appearance in my output file is fine, I'm just looking for a way to make TexnicCenter understand that my new commands are headers.

Thanks for the brainstorming,
Win XP SP3 - MikTex 2.5 - TexnicCenter 1 beta 7.01 "Greengrass"

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\newcommand{mysection} and the navigator bar of TexnicCenter

Post by localghost »

Instead of redefining the structural commands, you may take a look at titlesec. The problem then should not occur.


Best regards and welcome to the board
Thorsten¹
Post Reply