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?
General ⇒ \newcommand and the TeXnicCenter file list
Re: \newcommand and the TeXnicCenter file list
Hi,
please provide some concrete, complete and compilable example of your intentions...
please provide some concrete, complete and compilable example of your intentions...
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: \newcommand and the TeXnicCenter file list
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}
\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}