TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

[I posted this question first on stackoverflow since I wasn't aware of the existence of this site]


I am using a special usepackage to write my thesis in tex and I need to adjust one of the provided macros. Usually there would be the way to use \renewcommand but in this case it doesn't work. Either the command is not changed or I get the error message that the overridden macro is not set, although I set it. The defined macro I'd like to change is as follows:

\gdef\TUD@thesis@referee{\PackageError{\@currname}{No '\noexpand\refereegiven!\MessageBreak See documentation for details.}\@ehc}
  \gdef\TUD@thesis@referee{1. Gutachten: #1\\2. Gutachten: #2}
  \gdef\TUD@thesis@referee{1. Gutachten: #1\\2. Gutachten: #2\\3. Gutachten: #3}
  \PackageError{\@currname}{Command '\noexpand\gutachter deprecated! Use '\noexpand\referee` instead.}\@ehc%

the way I use the command is:


and instead of having

{1. Gutachten: #1\\2. Gutachten: #2}

I would like to have


I can solve this by simply modifying this part within the sty file but that means I have to adjust the file on every machine I possibly work on.

I tried to use


But that obviously didn't work^^.

Thanks for your help.

share|improve this question
up vote 5 down vote accepted

Try to include the following code in your document preamble (untested):

share|improve this answer
Great it works :). I already stopped believing to find a solution before reading a complete book about tex macros. Now that I know that something like \makeatletter and \makeatother exists I am a little bit surprised I didn't stumble upon them during my search for a solution. – LeoR Oct 8 '10 at 21:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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