GithubHelp home page GithubHelp logo

pnglatex's People

Contributors

fierthraix avatar francesco-marson avatar mneri avatar sanchez avatar shepard8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pnglatex's Issues

cliptex not working following the README

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.

Add a copy to clipboard function

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.

Some formulas appear too cropped

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:

Not affected

pnglatex -f "e^{i\pi}+1=0"

output 1

pnglatex -f "e^{i\pi}+1=0" -d 600

output 2

Affected (using \i)

pnglatex -f "e^{\i\pi}+1=0" -d 600

output

pnglatex -f "e^{\i\pi}+1=0" -d 600 -P 3

output

pnglatex -f "e^{\i\pi}+1=0" -d 600 -m 3

output

Allow users to input any header

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"

Doesn't accept plus signs

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.