Am 27.05.2014 um 20:41 schrieb Richard Heck <rgh...@lyx.org>: > On 05/27/2014 12:27 PM, jezZiFeR wrote: >> Am 27.05.2014 um 17:41 schrieb Stephan Witt <st.w...@gmx.net>: >>> Am 27.05.2014 um 17:13 schrieb jezZiFeR <jezzi...@gmail.com>: >>> >>>> Hello, >>>> >>>> I do not know since when this happens, but in the moment LyX always tells >>>> me, that I would have to install X11 to open »gs«. Why does it ask that? >>>> I use LyX 2.0.7.1 on OSX 10.8.5. It might be, that this only happens when >>>> I open older documents, I am not sure up to now. Does anybody have an idea >>>> about that? >>> Hello Jezz, >>> >>> "gs" is the program GhostScript and it needs an X11-display to present the >>> contents. >>> Apple isn't providing X11 out-of-the-box anymore since Mountain Lion >>> (10.8.X). >>> Normally LyX is producing PDF documents directly and there is no need to >>> start "gs". >>> >>> The question is: why is "gs" used by LyX? And why doesn't it happen for all >>> documents? >>> Perhaps you have some special image in use? >> I have made a minimal example and add it here. The message appears already >> when opening the file. > > Jezz, do you have instant preview enabled for math? If so, that is probably > the reason: We use GhostScript for some of the instant preview conversions. > (Stephan, this is in legacy_lyxpreview2ppm.py, which we only use if some > other route fails. I can't remember which, though.) > > Richard >
I don't have the problem with the example. I enabled the log messages for LaTeX/generation and Graphics conversion. This leads to the following output when opening Jezz's example file: ================= 22:28:01.190: Opening document ~/Documents/lyxtest/Minimal braucht X11.lyx… support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! Warning: Module not available ---------------------------------------- The module biblatex.module has been requested by this document but has not been found in the list of available modules. If you recently installed it, you probably need to reconfigure LyX. 22:28:04.819: Document ~/Documents/lyxtest/Minimal braucht X11.lyx opened. 22:28:04.820: (file-open /Users/stephan/Documents/lyxtest/Minimal braucht X11.lyx) support/FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! frontends/qt4/GuiApplication.cpp (183): The image loader can load the following directly: frontends/qt4/GuiApplication.cpp (190): bmp, frontends/qt4/GuiApplication.cpp (190): gif, frontends/qt4/GuiApplication.cpp (190): ico, frontends/qt4/GuiApplication.cpp (190): jpeg, frontends/qt4/GuiApplication.cpp (190): jpg, frontends/qt4/GuiApplication.cpp (190): mng, frontends/qt4/GuiApplication.cpp (190): pbm, frontends/qt4/GuiApplication.cpp (190): pgm, frontends/qt4/GuiApplication.cpp (190): png, frontends/qt4/GuiApplication.cpp (190): ppm, frontends/qt4/GuiApplication.cpp (190): svg, frontends/qt4/GuiApplication.cpp (190): svgz, frontends/qt4/GuiApplication.cpp (190): tga, frontends/qt4/GuiApplication.cpp (190): tif, frontends/qt4/GuiApplication.cpp (190): tiff, frontends/qt4/GuiApplication.cpp (190): xbm, frontends/qt4/GuiApplication.cpp (190): xpm, graphics/GraphicsCache.cpp (91): LyX recognises the following image formats: graphics/GraphicsCache.cpp (98): bmp graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): gif graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): jpg graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): jpg graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): pbm graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): pgm graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): png graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): ppm graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): svg graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): tiff graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): xbm graphics/GraphicsCache.cpp (97): , graphics/GraphicsCache.cpp (98): xpm graphics/GraphicsCache.cpp (100): graphics/PreviewLoader.cpp (473): adding snippet: $ $ graphics/PreviewLoader.cpp (535): PreviewLoader::startLoading() Buffer.cpp (1468): Validating buffer... LyX needs the following commands when LaTeXing: ***** Packages:\usepackage{setspace} ***** Macros: ***** Textclass stuff:\usepackage{enumitem} % customizable list environments \newlength{\lyxlabelwidth} % auxiliary length ***** done. Buffer.cpp (1474): Buffer validation done. graphics/PreviewLoader.cpp (669): PreviewLoader::finishedInProgress(0): processing succeeded for python -tt "/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py" png "/var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.JL1930/lyx_tmpbuf0/0lyxpreview.tex" 216 000000 faf0e6 xelatex support/FileName.cpp (945): Recognised Fileformat: png graphics/GraphicsCacheItem.cpp (378): [CacheItem::Impl::convertToDisplayFormat] Attempting to convert image file: /var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.JL1930/lyx_tmpbuf0/0lyxpreview1.png with displayed filename: /var/folders/1x/zm63s22x7s591xrlgm4rl9v40000gn/T/lyx_tmpdir.JL1930/lyx_tmpbuf0/0lyxpreview1.png support/FileName.cpp (945): Recognised Fileformat: png graphics/GraphicsCacheItem.cpp (385): The file contains png format data. graphics/GraphicsCacheItem.cpp (390): No conversion needed (from == to)! graphics/GraphicsCacheItem.cpp (293): Loading image. graphics/GraphicsCacheItem.cpp (299): Image loading succeeded. ================= Jezz, can compare this with yours, please? Stephan