Skip to content

Typsetting algorithms #310

@switzel

Description

@switzel

Description

When I try to use the package algpseudocodex with kaobook I get error messages. Can somebody give me a pointer as to how to make the two work together?

Minimal Working Example


\usepackage{algpseudocodex}

\begin{document}
  \begin{algorithmic}
    \State{A}
    \While{B}
    \State{C}
    \EndWhile 
  \end{algorithmic}
\end{document}

Expected behavior:
The file should compile to something looking roughly like

while B do
    C

Actual behavior:

I get the error messages

9 error| Extra }, or forgotten \endgroup.
9 error| Extra }, or forgotten \endgroup.
10 error| LaTeX Error: No counter 'algpx@indentEndPage-0' defined.
10 error| Missing number, treated as zero.
11 error| Missing } inserted.
11 error| Missing } inserted.
11 error| Missing } inserted.
266 warning| Package xcolor Warning: Package option `usenames' is obsolete and ignored
10 warning| Package varwidth Warning: Failed to reprocess entire contents
10 warning| Package varwidth Warning: Failed to reprocess entire contents
| LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions