-
Notifications
You must be signed in to change notification settings - Fork 897
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
Grey text of the Cheastsheets is hard to read when printed #138
Comments
Thanks. Which part exactly are you referring to? |
Maybe an example will help As an example, I have put 3 jpg below, based on the cheatsheets.pdf and the beginner handout files
AcrobatPrintedPrinted beginner handout |
Thanks, I see your point now. We could have a different set of colors with higher contrast for printed cheets or we could a post-processing on the PDF to enhance contrast. I imagine there are some tools to do that but I don't know them. |
I think a "printed" stylesheet is the better route in terms of accessibility, cause we might also want a high contrast web version too. |
So this means working on the cheatsheet.tex file and removing any harcoded color in favor of variables such that we can have a switch to choose one specific set of color. It's not too difficult to do but I'm a bit busy until mid december. If anyone want to give a try... |
I won't have time 'til December either, but if anyone else wants to take a stab, I've been doing this in a paper so I have a style file
and then use the following to parse my file to build a python dict to keep my colors in sync between latex and python import re
sub = re.compile(r"\\definecolor\{(?P<name>.*)\}\{HTML\}\{(?P<color>.*)\}")
def build_colors(filepath = '../notation.sty'):
colordict = {}
with open(filepath) as f:
for line in f.readlines():
if groups := sub.match(line):
colordict[groups.group('name')] = "#"+ groups.group('color')
return colordict |
Thanks a lot for the nice cheatsheets!
I have followed a link to this GH page to get a pdf version (for printing)
The text was updated successfully, but these errors were encountered: