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

component=color|print in latex-image-preamble #185

Open
Alex-Jordan opened this issue Jul 18, 2022 · 6 comments
Open

component=color|print in latex-image-preamble #185

Alex-Jordan opened this issue Jul 18, 2022 · 6 comments

Comments

@Alex-Jordan
Copy link
Collaborator

I have a small concern about having multiple latex-image-preamble and using component=color|print to distinguish them. The main thing is that just now I discovered I had added content to one of them but I was oblivious to adding corresponding content to the other.

Can there just be one latex-image-preamble? And when building print, we have a latex.preamble.late that changes colors? It would not need to repeat all of the tikz setup commands. It could just redefine "firstcolor" to be black, and so on. If there is a need to create a few more semantic color names to get the grayscales just right, we could do that.

@sean-fitzpatrick
Copy link
Collaborator

That seems all right to me.
This was the best method I could think of, but if you can accomplish the same in the XSL, that works too.

But note that we also have two versions for asymptote-preamble and that seems harder (to me, at least) to work around, since we build Asymptote PDF prior to building LaTeX.

@Alex-Jordan
Copy link
Collaborator Author

Alex-Jordan commented Jul 19, 2022 via email

@sean-fitzpatrick
Copy link
Collaborator

Sure. Improving on the current redundancy would be useful. I'm also thinking that edits to the docinfo aren't all that frequent, so having to double our efforts occasionally isn't too terrible.

@sean-fitzpatrick
Copy link
Collaborator

Should I leave this issue open while you test using xi:include for the duplicate content?

@Alex-Jordan
Copy link
Collaborator Author

Yes, let's keep this open as a reminder to try that. If it works, I can see lots of uses for this approach.

@sean-fitzpatrick
Copy link
Collaborator

@Alex-Jordan we're a month out from the anniversary of this issue. Can we close this, or are you still working on a better idea?

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