Skip to content

problem using algpseudocodex when breqn is loaded #18

@nasser1

Description

@nasser1

Fyi;

I found a problem using algpseudocodex package with breqn package. I asked about at lualatex-compile-error-when-using-an-option-with-algpseudocodex-package-with-bre

May be there is a way to fix this?

Here is the content of the question from above

On latest TL 2023, this MWE below gives error

\documentclass[12pt]{article}

\usepackage{amsmath} 
\usepackage{breqn}

\usepackage[noEnd=false]{algpseudocodex}
\usepackage{algorithm}

\begin{document}
\begin{algorithm}
\begin{algorithmic}[0]
\Procedure{A}{x}
\State do something
\EndProcedure
\end{algorithmic}
\end{algorithm}

\end{document}

compiling with lualatex gives

/usr/local/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))

! LaTeX Error: \begin{varwidth} on input line 14 ended by \end{list}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.15 \end{algorithmic}
                    
? 

By changing the line \usepackage[noEnd=false]{algpseudocodex} to \usepackage[noEnd=true]{algpseudocodex} now it compiles with no error!

This only happens when breqn package is loaded. If I remove breqn package then both options compile with no error. But I have to use breqn package.

Is there a way to make it work with noEnd=false option and also use breqn package?

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