Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Color field in v1.62 breaks \color and \textcolor #80

Open
shs-cse opened this issue Dec 29, 2024 · 1 comment
Open

New Color field in v1.62 breaks \color and \textcolor #80

shs-cse opened this issue Dec 29, 2024 · 1 comment

Comments

@shs-cse
Copy link

shs-cse commented Dec 29, 2024

I have been using IguanaTex since 2020 and it's honestly, really awesome. In the latest v1.62 I see a new input field called "Color" in "pdflatex+Shape" mode. Upto 1.61 if you use \color{} or \textcolor{}{} it respects what I want saves the hassle of changing shape colors manually. I understand the intention behind the new color field but it breaks my intentional coloring. Currently v1.62 is forcing it's "Color" field value on the output. I would like this to be optional as it takes away my control.

MWE

Here is a minimal example for comparison:

\documentclass[margin=0pt]{standalone}
\usepackage{xcolor}
\color{red}
\begin{document}
$E=mc^2$
$E=m\textcolor{green}{c}^2$
\end{document}

v1.61 output:

iguana_v1_61

v1.62 output:

iguana_v1_62

@Jonathan-LeRoux
Copy link
Owner

Thanks for reporting this. You're right, my bad for overlooking this. I can add a checkbox next to the color, so that the user can choose to enable it or not by default.
There is one subtlety, which was already an issue in 1.61: when editing an existing shape that has a color specified by the LaTeX source, that color is superseded by the current color of the shape (actually, the color of the first element if the shape is a group), unless "Reset Format" is checked. I hope that's acceptable, as I'm not sure I see a clean way to avoid that.
Currently, whether "reset format" is checked or not isn't part of what is saved when clicking "Make Default", but it could easily be made a part of it. What way, a user could choose not to automatically preserve formatting when editing a shape.

Here is a quick attempt at implementing this: IguanaTex_v1_62_1_20241229.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants