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

Use \providecolor (xcolor pkg) i.o. \definecolor #980

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jgmakin
Copy link

@jgmakin jgmakin commented Mar 9, 2017

The xcolor package defines the macro \providecolor in addition to \definecolor. I think the former is preferable for matlab2tikz's 'extraColors' feature because it allows the resulting figures to be controllable by a (single) master .tex file. For example, I might create a few figures with the extra color "velocityColor," and then in doc1 want all velocities to be redish, but in a doc2 want them all to be blueish. If matlab2tikz uses \providecommand, I can set this using a single command in each of the docs, rather than having to change all the figure files for each document--even perhaps changing the color format:

\definecolor{velocityColor}{cmyk}{0,0.50,0.40,0}

\definecolor{velocityColor}{cmyk}{0.50,0.15,0,0}

The price is the xcolor package, which (as far as I know) wasn't previously required by matlab2tikz.

@egeerardyn
Copy link
Member

I will have to make sure our tests pass, hopefully I find some time during the weekend to take care of that.

@egeerardyn egeerardyn self-assigned this Apr 11, 2017
@egeerardyn egeerardyn changed the title Update matlab2tikz.m Use \providecolor (xcolor pkg) i.o. \definecolor Apr 12, 2017
@egeerardyn egeerardyn added this to the 1.2 Release milestone Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants