Comments (6)
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...
from cheatsheets.
Thanks. Which part exactly are you referring to?
from cheatsheets.
Maybe an example will help
As an example, I have put 3 jpg below, based on the cheatsheets.pdf and the beginner handout files
- a jpg taken directly from a screenshot of the pdf open in Acrobat: quite readable!
- a jpg from a picture of the printed pdf: the picture looks even worse than what the eye can see on the printed version. Note: it's printed on reasonably white paper (that is, not grey looking recycled paper), and a heavy duty professional printer. The actual printed page is white, not the dirty grey of the picture, but the printed grey text is hard to read
- a jpg from a picture of the printed pdf of the beginner handout: same paper/printer and camera. Characters are bigger, but I think that the style used (black on light grey) is more readable (when printed)
Acrobat
Printed
Printed beginner handout
from cheatsheets.
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.
from cheatsheets.
We could have a different set of colors with higher contrast for printed cheets
I think a "printed" stylesheet is the better route in terms of accessibility, cause we might also want a high contrast web version too.
from cheatsheets.
. 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 notation.sty
with a whole bunch of definitions:
\definecolor{total}{HTML}{248EA6}
\definecolor{fiber}{HTML}{E30B5C}
\definecolor{base}{HTML}{7924AB}
\definecolor{section}{HTML}{03C04A}
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
from cheatsheets.
Related Issues (20)
- A better answer about "How I rotate tick labels" HOT 3
- 'right' and 'top' in plt.subplots_adjust() are not directly padding size HOT 3
- Make cheatsheet background non-transparent? HOT 6
- Replace `step` with `stairs`? HOT 1
- Clarify when to use None / np.nan to segement data HOT 2
- Update for 3.6.0 HOT 2
- In the handout for beginners, plt.subplots(2, 1) should be used. HOT 4
- Branch protection and merge rules? HOT 4
- Cartopy version HOT 3
- Brazilian Portuguese translation HOT 2
- markevery HOT 1
- Update Beginner Cheatsheet: fig.show → plt.show HOT 3
- Error from fonts.py: missing files HOT 1
- Move image diff check to standalone GH actions workflow HOT 1
- prune the number of image interpolations and replace with new material HOT 2
- Style the website HOT 3
- The cheatsheets website should include a link to the GitHub page HOT 1
- broken links on cheatsheets site HOT 1
- Cursive font is not cursive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheatsheets.