Comments (4)
Hi @mweitzel2005,
Do you mean for the LaTeX output or for SVG output? For LaTeX you can simply style the text in the input data itself, as well as use the preamble
option or the fontsize
option (see the docs). Alternatively you could override the textFn
function in the options dictionary, which will be called on all input dictionaries.
Let me know if that solves your problem.
from labella.py.
Overriding the textFn
worked a treat:
"textFn": lambda x: "{\\fontfamily{qcr}\\selectfont" + str(x["time"].year) + " - " + x["text"] + "}",
Couldn't get the preamble
to work but most likely due to my ignorance of Latex. Thanks for the help!
from labella.py.
Glad to hear the textFn
function worked!
from labella.py.
Some additional font faces: https://www.overleaf.com/learn/latex/Font_typefaces#Reference_guide
-
Set the
fontcode
acronym(?) in @mweitzel2005 's function -
Ex: replace
qcr
withphv
from the reg guide -
Additional resources: https://tug.org/FontCatalogue/
- I can't easily find the 3-4 letter acronyms, but this catalog looks expansive
from labella.py.
Related Issues (15)
- Implement logscale
- borderColor not working HOT 3
- I think I'm missing something in my machine to run it but I don't know what. HOT 9
- Gantt chart HOT 2
- Horizontal Timeline up and down HOT 1
- Latexmk issue within Conda Env HOT 14
- FileNotFoundError: [WinError 2] The system cannot find the file specified
- How to use URL hyperlinks for timeline events? HOT 4
- import error HOT 3
- How to convert timeline to .png? HOT 5
- How to adjust node size and font size? HOT 4
- latexmk issue HOT 4
- OSError: [Errno 22] Invalid argument on dt2milli HOT 2
- Width caluculation - switch to TikZ? HOT 3
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 labella.py.