generate.sh
来自「Boost provides free peer-reviewed portab」· Shell 代码 · 共 32 行
SH
32 行
# Copyright John Maddock 2008.# Use, modification and distribution are subject to the# Boost Software License, Version 1.0. (See accompanying file# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)## Generates SVG and PNG files from the MML masters.## Paths to tools come first, change these to match your system:#math2svg='C:\download\open\SVGMath-0.3.1\math2svg.py'python=/cygdrive/c/Python25/python.exeinkscape=/cygdrive/c/progra~1/Inkscape/inkscape# Image DPI:dpi=120for mmlfile in $*; do svgfile=$(basename $mmlfile .mml).svg pngfile=$(basename $svgfile .svg).png tempfile=temp.mml # strip html wrappers put in by MathCast: cat $mmlfile | tr -d "\r\n" | sed -e 's/.*\(<math[^>]*>.*<\/math>\).*/\1/' > $tempfile echo Generating $svgfile $python $math2svg $tempfile > $svgfile echo Generating $pngfile $inkscape -d $dpi -e $(cygpath -a -w $pngfile) $(cygpath -a -w $svgfile) rm $tempfiledone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?