mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
2bd747fad4
Add command-line arguments in a standard unix fashion, using getopt. Usage: ./lyxpreview2bitmap.py <options> <input file> Options: -h, --help: Show this help screen and exit --dpi=<res>: Resolution per inch (default: 128) --png, --ppm: Select the output format (default: png) --fg=<color>: Foreground color (default: black, ie '000000') --bg=<color>: Background color (default: white, ie 'ffffff') --latex=<exe>: Specify the executable for latex (default: latex) The colors are hexadecimal strings, eg 'faf0e6'. The changes to PreviewLoader.cpp break the preview of lilypond-book and japanese files, but they will be handled in the next commits. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39657 a592a061-630c-0410-9148-cb99ea01b6c8