annotate-equations icon indicating copy to clipboard operation
annotate-equations copied to clipboard

Suggestion for \eqnmarkbox - Customisable background and text colours

Open projetmbc opened this issue 2 years ago • 4 comments

It could be useful to allow the setting of background and text colours for\eqnmarkbox.

Thanks for your package.

projetmbc avatar Jun 11 '23 16:06 projetmbc

Hi, you can already set the background colour of \eqnmarkbox, as described in the documentation, for example

\eqnmarkbox[blue]{node-label}{...}

This will leave the text colour unchanged, but you can manually set it with the \color command:

\eqnmarkbox[blue]{node-label}{\color{red}...}

so you can render things as follows: image

st-- avatar Jul 10 '23 14:07 st--

My suggestion would be to allow something like :

\eqnmarkbox[back=blue, text=red]{node-label}{...}

projetmbc avatar Jul 11 '23 12:07 projetmbc

That seems like a good suggestion. Figuring out how to do it without overly increasing the code complexity is something I won't have the capacity for anytime soon. But if you're willing to help figure out how to actually implement that, I'd be happy to consider a pull request!

st-- avatar Jul 18 '23 14:07 st--

I will look at your code. With LaTeX3, it is easy to play with key=valoptions.

projetmbc avatar Jul 18 '23 16:07 projetmbc