Skip to content

End line of algblock with wrong indentation #25

@chicolucio

Description

@chicolucio

Hi. I was trying to define a custom block with algblock but a strange issue happened. Always the last line has a wrong indentation.

Code:

\documentclass[12pt, a4paper]{article}

\usepackage[noEnd=false,indLines=true]{algpseudocodex}
\usepackage{algorithm}

\algblock[program]{Start}{End}

\begin{document}

\begin{algorithm}
    \caption{Example}
    \label{alg:example}
    \begin{algorithmic}[1]
        \Start
        \State  var1
        \State  var2
        \State result $\gets$ var1 * var2
        \State \Output result
        \End
    \end{algorithmic}
\end{algorithm}

\end{document}

Output:

Image

The line 6 has wrong indentation.

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