I am trying to implement a new command like that implemented by Harvey Sheppard but I get the error

! LaTeX Error: Command \@ already defined. Or name \end... illegal, ...

Can you tell me why I am getting this error?

Here is a snippet of the code that I have:



%       Package Commands

% Title content
        \raisebox{2mm}{\includegraphics[width=\linewidth]{\picturespath #1}}
            {\Large #2}


This is just a test of the code


@ is command names are not allowed unless you're writing it as part of a .cls or .sty. If you're using @ inside macros within your regular document, use

% Your macros containing @ here

Reference: What do \makeatletter and \makeatother do?

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.