How to name the arguments in \newcommand so that when you call the macro they don't appear as {arg1}{arg2}... etc. but with the names each argument represent {caption}{label}... etc. without the use of a .cwl file.
I'm trying to implement the following \newcommand
\documentclass{article}
\usepackage{ctable}
\usepackage{mwe}
\newcommand{\qfigure}[5]{\ctable[
caption= {#1},label= fig:#2,figure, pos=H,botcap, mincapwidth= #3 mm]{c}
{}{\includegraphics[width=#4\textwidth]{#5}}}
\begin{document}
% \qfigure{arg1}{arg2}{arg3}{arg4}{arg5} % They would appear like this in Texstudio
\qfigure{An image example}{test}{70}{0.5}{example-image-a}
\end{document}
As you can see there are five arguments where each one represents the caption, label, min width of caption (ctable parameter), width and file name respectively.
Thanks in advance for any help.
.cwlfile, which is the only way for TeXStudio for being aware of macros. – egreg Jun 16 '15 at 22:17Thank you
– Jun 16 '15 at 22:23