LaTeX forum ⇒ Generaluse newcommand with include

General information and discussion about TeXnicCenter
Posts: 1
Joined: Tue Apr 21, 2015 2:10 pm

use newcommand with include

Postby Robbeblue » Tue Apr 21, 2015 2:50 pm


I'm using TexnicCenter 2.02 and writes my thesis with it.

However, I tried to use:
  1. \documentclass[a4paper]{srcbook}
  2. \usepackage{amsmath}
  3. \newcommand{\pathchp}{chapters}
  4. \begin{document}
  5. include{\pathchp/introduction}
  6. \end{document}

There is no problem in compiling it.
But in the file browser (in my case on the left side within TeXnicCenter) the file tree is not correct.

It should be like that (would be the case if I don't use the command \pathchp):

But is:
-->introduction (in red color, since introduction.tex is not in a folder named pathchp)

I'm doing it wrong? Or should I do it in another way?


User avatar
Site Moderator
Posts: 4185
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed May 06, 2015 5:03 pm

Hi and welcome,

please check out the Ticket section over at the TeXniccenter project on sourceforge. Somebody might have asked something like that before.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests