mneri / pnglatex Goto Github PK
View Code? Open in Web Editor NEWCreate PNG Images from LaTeX Formulas
License: GNU General Public License v3.0
Create PNG Images from LaTeX Formulas
License: GNU General Public License v3.0
Hello, I'm trying the new cliptex version that seems improved ๐ , but I'm not able to make it work, I always get the notification "Could not generate the image...". I'm not sure to what is due, but I had to use the original cliptex version.
It would be nice if I could copy the generated png to the clipboard instead of saving it, so I wouldn't have to rm
the pngs. I have done this using xclip
in my own fork, but I'm not sure if/how you want to implement it.
Using the command
pnglatex -f "e^{\i\pi}+1=0"
You can see that the dot over the i is cut. This does not affect the regular i. This affects other resolutions. It is also the case when margin and padding is applied.
Here some examples with the commands:
pnglatex -f "e^{i\pi}+1=0"
pnglatex -f "e^{i\pi}+1=0" -d 600
\i
)pnglatex -f "e^{\i\pi}+1=0" -d 600
pnglatex -f "e^{\i\pi}+1=0" -d 600 -P 3
pnglatex -f "e^{\i\pi}+1=0" -d 600 -m 3
Currently it is possible to load a list of LaTeX packages.
It would be better, IMHO, to allow the user to input a bunch of commands he may always use in his project.
I know that it is possible to create a custom LaTeX package, but this seems rather hard to do for a user who just wants to define 3 or 4 functions he uses really often.
For example, header.texpart could contain
\usepackage{somelatexpackage}
\newcommand{\mycmd}[1]{\somelatexcommand{#1}}
and some H flag could allow the user to specify which file to use:
pnglatex -H header.texpart -f "x + \mycmd y"
pnglatex -l log -o test.png -s 10 -d 200 -f 'a + b'
cat log
\documentclass[10pt]{article}\pagestyle{empty}\begin{document}$ a b $\end{document}
...
The +
file is missing from the output latex code and thus also from the image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.