我试着用乳胶码生成png图像,因为我需要这个功能来做一个网络项目。我的目标是实现类似于编解码器的功能,我并不是指整个编辑器,而是图像生成的功能。你知道如何在网站上解决这个问题吗?
我的尝试是某种tex的图像生成器,我决定分别使用这个。我觉得这些很好看的pngs。但我不想让它跑!所以我在执行上有问题。(有关信息:我正在使用Windows)
此外,这是客户端程序,这是正确的吗?
发布于 2014-10-13 23:54:44
我在我的LaTeX图形项目中使用了以下Makefile:
SOURCE = symbol
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
make
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
#inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
无Makefile
pdflatex source.tex -output-format=pdf
pdf2svg source.pdf source.svg
inkscape source.svg -w source --export-png=source.png
Incscape还可以直接将PDF转换为PNG。
另一种选择是从convert
到ImageMagick
https://stackoverflow.com/questions/26354780
复制相似问题