I'm trying to put \psaxes command inside a caption. I have tried \verb, \lstinline and alltt package and nothing works. Whats wrong?
\documentclass[
12pt,
a4paper,
openright,
%twoside,
oneside, % Use twoside no lugar de oneside para impressão
dvipsnames,
chapter=TITLE, % títulos de capítulos convertidos em letras maiúsculas
section=TITLE, % títulos de seções convertidos em letras maiúsculas
english,
brazil]{abntex2}
\usepackage[
alf,
abnt-emphasize=bf,
bibjustif,
recuo=0cm,
abnt-etal-cite=4,
abnt-etal-text=it]{abntex2cite} % Para gerar a Bibliografia
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
%\usepackage[showframe, pass]{geometry} % Habilitar para ver as margens
\usepackage{standalone}
\usepackage{verbatim}
\usepackage{alltt} % Para comentários
\usepackage{comment}
\newcommand{\IBGEtabfontsize}{\ABNTEXfontereduzida}
\AtBeginDocument{%
% comandos auxiliares para manipular os captions dentro do comando \IBGEtab.
\newcommand{\configurecaptions}{\captionstyle[\raggedright]{}}
\newcommand{\configureseparator}{\captiondelim{: }}
% Define o comando \IBGEtab{}{}{} com caption e legenda da largura do conteúdo tabular, tabular*, etc
% Parece funcionar com qualquer pacote
\newsavebox{\myptabbox}
\newlength{\myptabboxwidth}
\newcommand{\IBGEtab}[3]{%
\savebox{\myptabbox}{{\IBGEtabfontsize #2}}%
\settowidth{\myptabboxwidth}{\usebox{\myptabbox}}%
\centering%
\parbox{\myptabboxwidth}{%
\configurecaptions
#1%
\par%
{\IBGEtabfontsize%
#2%
}%
\par%
#3}%
}
\let\ibgetab\IBGEtab
}
\newcommand{\mequa}[3]{\IBGEtab{#1}{#2}{#3}}
\newcommand{\Caption}[1]{ %
\begin{Spacing}{1.5} %
\caption{#1} %
\end{Spacing} %
}
\newcommand{\Fonte}[2][\fontename]{ %
% \vspace{-3pt}
\vspace{10pt}
\fonte[#1]{#2}
\vspace{-5pt}
}
\begin{document}
\begin{quadro}[h!]
\centering
\Caption{\label{qua:psaxes} Test\verb|\psaxes|.}
\mequa{}{
\begin{tabular}{lll}
\toprule
Nome & Tipo & Padrão\\
\midrule\midrule
axesstyle & axes|frame|none & axes \\
\bottomrule
\end{tabular}
}{
\Fonte{Test.}
}
\end{quadro}
\end{document}
And i get:

\verbin the argument to another command. – egreg Feb 23 '15 at 16:16psaxesin a caption in the example. Please, try making a really minimal one. – egreg Feb 23 '15 at 16:34\Caption{\label{qua:psaxes} Test\verb|\psaxes|.}which has *no* PSTricks code inside it. If you just want to print\psaxes, then useTest \texttt{\string\psaxes}– egreg Feb 23 '15 at 16:42