I have put the following in example.tex:
\catcode`\@=13
\let@\IND
The problem is when I want to use my package eexxample.sty that contains example.tex, the comand @ won't come out, it will turn out to catcode 12, I show it using \the\catcode`\@. Maybe the \usepackage redefine the command? But I don't know why...
The code is::
When i type this, the @ shows catcode 12, maybe have you meant before that @ shows catcode 12?
\documentclass{scrreprt}
\usepackage{eexxample}
\begin{document}
\the\catcode`\@
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \ $X_b$ \ $\IND X_b \IND X_b^a \IND X_b \IND X^a $ \
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \
\end{document}
but when i type this, the catcode @ show 13, and the command is functioning, so i think TEX redefine this @ command :
\documentclass{scrreprt}
\begin{document}
\input{C:/LocalTexFiles/tex/example}
\the\catcode`\@
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \ $X_b$ \ $\IND X_b \IND X_b^a \IND X_b \IND X^a $ \
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \
\end{document}
I would like to thank first for your help!
When i type this, the @ shows catcode 12, maybe have you meant before that @ shows catcode 12?
\documentclass{scrreprt}
\usepackage{eexxample}
\begin{document}
\the\catcode`\@
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \\
$X_b$ \\
$\IND X_b \IND X_b^a \IND X_b \IND X^a $ \\
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \\
\end{document}
but when i type this, the catcode @ show 13, and the command is functioning, so i think TEX redefine this @ command :
\documentclass{scrreprt}
\begin{document}
\input{C:/LocalTexFiles/tex/example}
\the\catcode`\@
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \\
$X_b$ \\
$\IND X_b \IND X_b^a \IND X_b \IND X^a $ \\
$@X_a @X_a^g @X^g X_a X_a^g X^g $ \\
\end{document}

@in a package. Do not do that, the catcode of@is always set to 11 at the start of a package and restored at the end to the value it had at the start. – David Carlisle Jan 12 '15 at 22:37