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

\newcommand{\gdtitre}[1]{\chapter{\uuline{#1}}}
\newcommand{\pttitre}[1]{\section{\uuline{#1}}}
\newcommand{\sspar}[1]{\subsection*{\underline{#1}}}
and then in the document :

Code: Select all

\gdtitre{My new chapter style}
\pttitre{My new section style}
\sspar{My new subsection style}
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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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