Skip to content

Texpresso Preview: \reflectbox and \scalebox render as 180-degree rotation, not horizontal flip #112

@Xiaobaituchb

Description

@Xiaobaituchb

I've identified a rendering discrepancy in the Texpresso live preview for the \reflectbox and \scalebox{-1}[1]{...} commands.

While the final PDF compiled externally via latexmk displays the correct horizontally flipped (mirrored) text, the Texpresso live preview pane incorrectly renders the output as a 180-degree rotation.

Minimal Reproducible Example:

The following LaTeX code can be used to observe the issue:

\documentclass{article}
\usepackage{graphicx}
\usepackage{geometry} % Included to match example screenshot

\begin{document}

% Using \reflectbox
\reflectbox{b}

% Using \scalebox
\scalebox{-1}[1]{g}

\end{document}

Behavior Comparison:

  • Correct Output (latexmk compiled PDF): The characters b and g are correctly mirrored horizontally, as expected.
  • Incorrect Output (Texpresso Live Preview): The output characters are rotated by 180 degrees.

This issue suggests that the live preview renderer in Texpresso is misinterpreting the transformation for horizontal reflection.

Attached Screenshots:

Here is a side-by-side comparison. The left image shows the incorrect rendering in the Texpresso preview, and the right image shows the correct output in the final PDF generated by latexmk.

Image

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