Kod: Zaznacz cały
#!/bin/sh
# Create .png file from some latex. This was a very quick hack. Find tex2im and
# use that instead, it's much more polished.
#
# Iain Murray October 2003
mkdir .latex2png.tmp
cd .latex2png.tmp
FILE=latex2png.tmp.tex
echo '\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsxtra}
\begin{document}
' > $FILE
echo $* >> $FILE
echo '
\end{document}' >> $FILE
latex $FILE
dvips -R -E ${FILE%tex}dvi -o ${FILE%tex}eps
convert -quality 100 -density 150 ps:${FILE%tex}eps ${FILE%tex}png
mv ${FILE%tex}png ..
cd ..
rm -R .latex2png.tmp
gdzie custam jest jakas tam skladnia LaTeX'a
i on generuje mi grafike na podstawie tej ze skladni
i teraz zalezaloby mi na matematycznych wydrukach,
ale sam latex bez czegos takiego jak \begin{equation} \end{equation}
radzi sobie owszem ale z efektem nedznym,
a jak dodaje te tagi do zrodla miedzy begin end document to głupieje, moglby to ktos z linuxem przebadac ewentualnie ?