3

I want to add a \Break command to algpseudocode, which will display the word 'break' in the same font as 'return' is displayed. I've read the algpseudocode manual, but it only seems to explain how to define custom blocks, rather than individual commands. How would I add it?

Koz Ross
  • 841
  • 2
  • 11
  • 14
  • Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – LaRiFaRi Jun 15 '15 at 07:52
  • 2
    Is it not just \newcommand*{\Break}{\textbf{break}}? – LaRiFaRi Jun 15 '15 at 07:54
  • 3
    To do it, as the package does it, you can simply read grep -in return $(kpsewhich algpseudocode.sty) and roll your own command similar: 46:\algnewcommand\algorithmicreturn{\textbf{return}} 83:\algnewcommand\Return{\algorithmicreturn{} }% – ikrabbe Jun 15 '15 at 10:19

0 Answers0