All Projects → mneri → pnglatex

mneri / pnglatex

Licence: GPL-3.0 License
Create PNG Images from LaTeX Formulas

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to pnglatex

Wpf Math
.NET library for rendering mathematical formulae using the LaTeX typsetting style, for the WPF framework
Stars: ✭ 339 (+455.74%)
Mutual labels:  formula, latex
Readme2tex
Renders TeXy Math for Github Readmes
Stars: ✭ 826 (+1254.1%)
Mutual labels:  formula, latex
Csharpmath
LaTeX. in C#. (ported from the wonderful iosMath project).
Stars: ✭ 205 (+236.07%)
Mutual labels:  formula, latex
OpenWebSheet
OpenSource Web based spreadsheet
Stars: ✭ 30 (-50.82%)
Mutual labels:  formula
latex-examples
small (la)tex files showing features, solutions and attempts
Stars: ✭ 54 (-11.48%)
Mutual labels:  latex
stata-latex-workflows
Stata Workflows for LaTeX Output
Stars: ✭ 68 (+11.48%)
Mutual labels:  latex
SCU Beamer Slide-demo
四川大学非官方Beamer模板 | Unofficial Beamer Template for Sichuan University
Stars: ✭ 28 (-54.1%)
Mutual labels:  latex
awsome-list-of-cv-and-resume-templetes
a collection of cv and resume styles
Stars: ✭ 78 (+27.87%)
Mutual labels:  latex
opendetex
Improved version of Detex - tool for extracting plain text from TeX and LaTeX sources
Stars: ✭ 179 (+193.44%)
Mutual labels:  latex
AI-cheat-sheet
cheat sheet for Artificial Intelligence
Stars: ✭ 20 (-67.21%)
Mutual labels:  formula
nom-bibtex
A feature complete bibtex parser using nom
Stars: ✭ 13 (-78.69%)
Mutual labels:  latex
clj-book
Книга «Clojure на производстве»
Stars: ✭ 24 (-60.66%)
Mutual labels:  latex
lazylatex
Because LaTeX shouldn't be boring! 🐠 LaTeX package inspired by sphinx-rtd-theme. Build with tcolorbox, minted, tikz, etc,.
Stars: ✭ 16 (-73.77%)
Mutual labels:  latex
snipmate-snippets-bib
Snipmate.vim support for BibTeX files
Stars: ✭ 13 (-78.69%)
Mutual labels:  latex
Equation and Codebox
Microsoft Word VSTO Add-In,可以插入带编号的公式和代码
Stars: ✭ 27 (-55.74%)
Mutual labels:  formula
wikitopdf
Export a repo's wiki as a PDF ebook.
Stars: ✭ 14 (-77.05%)
Mutual labels:  latex
HEIF-converter
Converter for High Efficiency Image Format(HEIF)
Stars: ✭ 24 (-60.66%)
Mutual labels:  png
kmbeamer
My themes for Beamer.
Stars: ✭ 108 (+77.05%)
Mutual labels:  latex
Yet-Another-LaTeX-Template-for-NPU-Thesis
西北工业大学硕博学位论文模版 | Yet Another Thesis Template for Northwestern Polytechnical University
Stars: ✭ 82 (+34.43%)
Mutual labels:  latex
concise-cheat-sheets
Cheat Sheets for programming languages and tools
Stars: ✭ 98 (+60.66%)
Mutual labels:  latex

pnglatex

pnglatex is a small script that turns LaTeX formulas into png images.

$ pnglatex -f "E=mc^2"

E=mc^2

Installation

Download or clone the repository, then type

# chmod +x pnglatex
# cp pnglatex /usr/bin/pnglatex

Dependencies

pnglatex depends on dvipng, imagemagick, latex and optipng packages.

Tips

You can pipe into pnglatex:

$ cat formula.tex | pnglatex

You can generate and open your image with a one-liner:

$ pnglatex -f "E=mc^2" | xargs eog

Omitting -f option will start interactive mode.

$ pnglatex
E=mc^2
<Ctrl-D>

Logs can give you a good idea of what went wrong.

$ pnglatex -f "E=mc^2" -l out.log

Options

  • -b <color> Set the background color
  • -B <color> Set the border color
  • -d <dpi> Set the output resolution to the specified dpi
  • -e <environment> Set the environment for the formula (i.e. displaymath or eqnarray)
  • -f <formula> The LaTeX formula
  • -F <color> Set the foreground color
  • -h Print the help message
  • -H <file> Insert the content of the specified file in the preamble
  • -l <file> Log file
  • -m <margin> Set the margin
  • -o <file> Specify the output file name
  • -O Optimize the image
  • -p <packages> A colon separated list of LaTeX package names
  • -P <padding> Set the padding
  • -s <size> Set the font size
  • -S Don't print image file name
  • -v Show version

Defaults

You can set default options by creating a properties file named .pnglatex in your home directory. The following is an example content:

BACKGROUND=White
BORDER=
DPI=180
ENVIRONMENT=displaymath
FOREGROUND=Black
HEADER=
MARGIN=
OPTIMIZE=1
PACKAGES=amsmath:amssymb
PADDING=3
SIZE=11

Command line provided options override the default options in the ~/.pnglatex file.

cliptex Plugin

cliptex is a small script that creates LaTeX formulas using the system clipboard.

$ cliptex

The above command uses the content of the system clipboard to generate a LaTeX formula. The clipboard is then replaced by the generated image.

Tips

Bind the script to the Ctrl + Alt + C key combination. Write your formula directly in the GMail editor, select it and strike the key combination. Then, press Ctrl + V to replace the formula with the generated image.

cliptex uses the default options set in the ~/.pnglatex file.

Installation

Download or clone the repository, then type

# chmod +x cliptex
# cp cliptex /usr/bin/cliptex

Dependencies

cliptex depends on pnglatex, wl-clipboard and xclip.

Options

  • -h Print this help message.
  • -s <session> Force a session (wayland or x11).
  • -S Don't show system notifications.
  • -v Show version.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].