Preparation We will use this file named texfile.tex as the .tex to convert:
1 2 3 4 5 6 |
\documentclass[12pt]{article} \pagenumbering{gobble}% Remove page numbers (and reset to 1) \begin{document} My first \TeX~document. $s_n = (Ta)_n = \displaystyle\sum_{k=0}^\infty T_{nk} a_k$ \end{document} |
Result file Generating PNG images Packages you need: texlive (or any other TeX program, I guess) dvipng Step by step In the Terminal, go to the directory containing the .tex file. Execute this:
1 |
$ latex texfile.tex |
Output:
1 2 3 4 5 6 7 8 9 10 11 12 |
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./texfile.tex LaTeX2e <2014/05/01> Babel <3.9l> and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo)) (./texfile.aux ) [1] (./texfile.aux) ) Output written on texfile.dvi (1 page, 584 bytes). Transcript written on texfile.log. |
Convert to PNG at 150dpi (to […]