Skip to content

Row highlights conceal left parentheses #32

@taishi-n

Description

@taishi-n

Hi there, thanks for maintaining such an awesome package!

\documentclass[a4paper,10pt]{article}
\usepackage{amsmath}
\usepackage{pseudo}

\begin{document}
  \begin{pseudo}
    $A \gets \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}$ \ct{Left parentheses are shown} \\[hl]
    $A \gets \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}$ \ct{Left parentheses are hidden} \\
    $A \gets \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}$ \ct{Regardless of which parentheses} \\[hl]
    $A \gets \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}$ \\
    $A \gets \begin{Bmatrix} 1 & 2 \\ 3 & 4 \end{Bmatrix} \begin{Bmatrix} x \\ y \end{Bmatrix}$ \ct{Regardless of which parentheses} \\[hl]
    $A \gets \begin{Bmatrix} 1 & 2 \\ 3 & 4 \end{Bmatrix} \begin{Bmatrix} x \\ y \end{Bmatrix}$
  \end{pseudo}
\end{document}
Image

I'm running into an issue where, as shown in the attached image, highlighting a line somehow makes the left bracket disappear.
It seems like it might be a bug.
Is there a fix or a workaround for this?

I really love the elegant pseudocode your package produces, but I'm not very familiar with the ins and outs of LaTeX, so I haven't been able to debug it down to the implementation.
I'm hoping you might have an elegant solution. Thanks a lot!

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