mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Define the lyxpreview -> png converter only if dvipng is found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8698 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
748e530b92
commit
5dfeef80ef
@ -1,3 +1,8 @@
|
||||
2004-04-27 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* configure.m4: don't create a lyxpreview -> png converter if
|
||||
dvipng is not found.
|
||||
|
||||
2004-04-26 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* CREDITS: add Huang Ying.
|
||||
|
@ -309,6 +309,13 @@ test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i"
|
||||
# We have a script to convert previewlyx to ppm or to png
|
||||
lyxpreview_to_bitmap_command='python $$s/lyxpreview2bitmap.py'
|
||||
|
||||
# Search for 'dvipng'. Only enable the conversion from lyxpreview -> png
|
||||
# if dvipng is found.
|
||||
SEARCH_PROG([for dvipng],DVIPNG,dvipng)
|
||||
|
||||
test "$DVIPNG" = "dvipng" && \
|
||||
lyxpreview_to_png_command = $lyxpreview_to_bitmap_command
|
||||
|
||||
# Search a *roff program (used to translate tables in ASCII export)
|
||||
LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl
|
||||
'groff -t -Tlatin1 $$FName' nroff,dnl
|
||||
@ -565,7 +572,7 @@ cat >$outfile <<EOF
|
||||
\\converter linuxdoc lyx "$linuxdoc_to_lyx_command" ""
|
||||
\\converter literate latex "$literate_to_tex_command" ""
|
||||
\\converter literate lyx "$literate_to_lyx_command" ""
|
||||
\\converter lyxpreview png "$lyxpreview_to_bitmap_command" ""
|
||||
\\converter lyxpreview png "$lyxpreview_to_png_command" ""
|
||||
\\converter lyxpreview ppm "$lyxpreview_to_bitmap_command" ""
|
||||
\\converter ps fax "$fax_command" ""
|
||||
\\converter ps pdf "$ps_to_pdf_command" ""
|
||||
|
Loading…
Reference in New Issue
Block a user