General\newcommand and the TeXnicCenter file list

General information and discussion about TeXnicCenter
Post Reply
pats
Posts: 2
Joined: Sat Aug 29, 2009 6:40 pm

\newcommand and the TeXnicCenter file list

Post by pats »

I have some commands, created with \newcommand, that contain partial file paths with the rest of the path filled in from a parameter. The TeXnicCenter navigator pane shows e.g. "#1" as a graphics file.

Is there any way to prevent it from picking up things that look like file names but appear only in \newcommand and embedded #digit?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: \newcommand and the TeXnicCenter file list

Post by gmedina »

Hi,

please provide some concrete, complete and compilable example of your intentions...
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pats
Posts: 2
Joined: Sat Aug 29, 2009 6:40 pm

Re: \newcommand and the TeXnicCenter file list

Post by pats »

Sure. Here is an example file, with one of my newcommand declarations. A project with this as the only file shows "#1" with a red "?" under the Graphic Files list in the Navigation pane Files tab:

\documentclass{article}

\usepackage{graphicx}

%
% Insert a single chart
% PSinsertChart{path,caption,label}
%
\newcommand{\PSinsertChart}[3]{
\begin{figure}[p]
\includegraphics[width=5.8in]{#1}
\vspace{-40pt}
\caption{#2}
\label{#3}
\end{figure}
}

\begin{document}

This is a test article.

\end{document}
Post Reply