Hi all,

I am having a similar problem with a related package--xyling (it
relies on xypic, just has some extra macros for linguistic trees).

OS 10.6.8
LyX 2.1.2

File attached. When I hit ps2pdf to preview, the file just does not
appear, although LyX thinks it's successfully made a PDF. I can create
a pdf from a minimal file using Postscript, but something is wrong
with the PS2PDF script. Unfortunately, I cannot generate a PDF from my
more complex file using Postscript--that one also reports successful
file creation, but not PS or PDF appears.

Oh, and there is no cx folder in /var/folders on my system.

XeTeX and LuaTeX both have command definition conflicts for xyling,
but I've had problems generating PDFs with the simplest files using
these methods since about 2.1 (both return an error about the \sups
command being already defined). Not using \sups in the test file, as
you can see.

Maria

On Wed, Oct 15, 2014 at 4:28 PM, Stephan Witt <st.w...@gmx.net> wrote:
> Am 14.10.2014 um 23:23 schrieb "Lauen, Douglas L" <dla...@unc.edu>:
>
>> Stephan,
>>
>> Yes! going to document settings, fonts, and then unclicking “Use non-Tex 
>> fonts…” solves the problem with displaying my diagram. Thank you.
>> Now with that option unchecked, I cannot typeset my document using 
>> command-R. I guess I can use other ways to view my output, though.
>> Do you know why command-R doesn’t work? Is there a way to fix that?
>
> Dough,
>
> in case of a Non-TeX fonts document Command-R is using the XeTeX compiler to 
> create the PDF.
> Some content of the document makes it requiring this compiler. Without the 
> option checked
> LyX uses the normal pdflatex compiler and e.g. some special foreign 
> characters or math symbols
> are a problem here.
>
>> Before my update I did not encounter this, so something must be different 
>> now!
>
> This I cannot answer, sorry. But you're right - there must be the problem.
> You've talking about your update to 10.9 Mavericks? Perhaps a python problem 
> indeed.
> You may check the protocols inside the directory
>
>>>> /var/folders/cx/8z8j7c710t9gcfvtljxkvjkc0000gn/T/lyx_tmpdir.KZwQoCf15278/lyx_tmpbuf3
>
>
> You have to look inside the directory you can see in the message window.
> The interesting file is named like "lyxpreviewZ33063.log" or similar.
>
> Stephan
>
>>
>>
>> On Oct 14, 2014, at 4:44 PM, Stephan Witt <st.w...@gmx.net> wrote:
>>
>>> Am 14.10.2014 um 19:15 schrieb "Lauen, Douglas L" <dla...@unc.edu>:
>>>
>>>> Stephan, Thank you for the suggestion. This is odd. I don’t recall having 
>>>> this problem before my upgrade to Mavericks. And very odd that is crops up 
>>>> in one file but not another.
>>>>
>>>> It looks like python fails to process something…
>>>
>>> Hi Dough,
>>>
>>> note the difference in the two calls: the 2nd one has an additional switch 
>>> "--latex=xelatex".
>>> This may be caused by the XeTeX/LuaTeX setting in the document settings. 
>>> Perhaps you can live
>>> without it?
>>>
>>> Stephan
>>>
>>>>
>>>> Here is the message log from a change to the figure in displays.lyx
>>>> —————————————————————————————————————————————
>>>>
>>>> 13:12:02.636: (dialog-toggle progress)graphics/PreviewLoader.cpp (468): 
>>>> adding snippet:
>>>> $\xymatrix{ & U\ar[dl]\ar[dr]\\
>>>> X\ar[rr] & c & Y
>>>> }
>>>> $
>>>> graphics/PreviewLoader.cpp (530): PreviewLoader::startLoading()
>>>> graphics/PreviewLoader.cpp (665): PreviewLoader::finishedInProgress(0): 
>>>> processing succeeded for python -tt 
>>>> "/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py" 
>>>> --png 
>>>> "/var/folders/cx/8z8j7c710t9gcfvtljxkvjkc0000gn/T/lyx_tmpdir.KZwQoCf15278/lyx_tmpbuf3/lyxpreviewq15278.tex"
>>>>  --dpi 108 --fg 000000 --bg faf0e6 --bibtex="bibtex"
>>>> Format.cpp (394): Recognised Fileformat: png
>>>> graphics/GraphicsCacheItem.cpp (379): 
>>>> [CacheItem::Impl::convertToDisplayFormat]
>>>> Attempting to convert image file: 
>>>> /var/folders/cx/8z8j7c710t9gcfvtljxkvjkc0000gn/T/lyx_tmpdir.KZwQoCf15278/lyx_tmpbuf3/lyxpreviewq152781.png
>>>> with displayed filename: 
>>>> /var/folders/cx/8z8j7c710t9gcfvtljxkvjkc0000gn/T/lyx_tmpdir.KZwQoCf15278/lyx_tmpbuf3/lyxpreviewq152781.png
>>>> Format.cpp (394): Recognised Fileformat: png
>>>> graphics/GraphicsCacheItem.cpp (386):
>>>> The file contains png format data.
>>>> graphics/GraphicsCacheItem.cpp (391): No conversion needed (from == to)!
>>>> graphics/GraphicsCacheItem.cpp (294): Loading image.
>>>> graphics/GraphicsCacheItem.cpp (300): Image loading succeeded.
>>>> —————————————————————————————————————————————
>>>>
>>>>
>>>> Here is the message log from a similar change to the figure in 
>>>> doesnotdisplay.lyx
>>>>
>>>> —————————————————————————————————————————————
>>>>
>>>>
>>>> 13:10:42.140: (dialog-toggle progress)graphics/PreviewLoader.cpp (468): 
>>>> adding snippet:
>>>> $\xymatrix{ & U\ar[dl]\ar[dr]\\
>>>> X\ar[rr] & c & Y
>>>> }
>>>> $
>>>> graphics/PreviewLoader.cpp (530): PreviewLoader::startLoading()
>>>> graphics/PreviewLoader.cpp (665): PreviewLoader::finishedInProgress(1): 
>>>> processing failed for python -tt 
>>>> "/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py" 
>>>> --png 
>>>> "/var/folders/cx/8z8j7c710t9gcfvtljxkvjkc0000gn/T/lyx_tmpdir.KZwQoCf15278/lyx_tmpbuf2/lyxpreviewZ15278.tex"
>>>>  --dpi 108 --fg 000000 --bg faf0e6 --latex=xelatex --bibtex="bibtex"
>>>>
>>>>
>>>> -----------------------------------------------------------
>>>> Douglas Lee Lauen
>>>> Associate Professor of Public Policy
>>>> Adjunct Associate Professor of Sociology
>>>>
>>>> Department of Public Policy
>>>> University of North Carolina at Chapel Hill
>>>> Abernethy Hall, CB#3435
>>>> Room 121A
>>>> Chapel Hill, NC 27599-3435
>>>>
>>>> Phone (919) 843-5010
>>>> Fax (919) 962-5824
>>>>
>>>>
>>>>
>>>>
>>>> On Oct 14, 2014, at 11:22 AM, Stephan Witt <st.w...@gmx.net> wrote:
>>>>
>>>>> Am 14.10.2014 um 16:56 schrieb "Lauen, Douglas L" <dla...@unc.edu>:
>>>>>
>>>>>> Stephan,
>>>>>> My apologies. Here are two lyx files.
>>>>>> The one titled displays.lyx displays my diagram. The other one does not.
>>>>>
>>>>> Doug,
>>>>>
>>>>> that's better. But I have to say: both are working on my system -
>>>>> a Mac with LyX-2.1.2 on OS X 10.8.6. I've noticed I have to click
>>>>> somewhere sometimes to trigger the display of the preview snippet.
>>>>>
>>>>> The two examples are different only regarding the \use_non_tex_fonts
>>>>> and the \font_roman setting in the preferences.
>>>>>
>>>>> What you can do to check for errors converting is to open the message
>>>>> pane and enable the graphics conversion message. There you should see
>>>>> the problem if one exists.
>>>>>
>>>>> Stephan
>>>>>
>>>>>> On Oct 14, 2014, at 10:40 AM, Stephan Witt <st.w...@gmx.net> wrote:
>>>>>>
>>>>>>> Am 14.10.2014 um 16:23 schrieb "Lauen, Douglas L" <dla...@unc.edu>:
>>>>>>>
>>>>>>>> Dear Stephan,
>>>>>>>>
>>>>>>>> Sure. On my screen I see
>>>>>>>> X\ar[r]     Y
>>>>>>>> Instead of
>>>>>>>> X -> Y
>>>>>>>> Normally, when I am editing my diagram I see my xypic code and when I 
>>>>>>>> place the cursor outside the editing area, the diagram converts from 
>>>>>>>> code to a picture. Now, I see my code, but I do not see the picture 
>>>>>>>> when I place the cursor outside the editing area.
>>>>>>>> Does this help?
>>>>>>>
>>>>>>> Sorry, no it doesn't help.  A minimal example is a complete LyX file.
>>>>>>> See here: http://wiki.lyx.org/FAQ/MinimalExample
>>>>>>>
>>>>>>> Stephan
>>>>>>>
>>>>>>>> Thanks!
>>>>>>>> Doug
>>>>>>>>
>>>>>>>> On Oct 14, 2014, at 10:12 AM, Stephan Witt <st.w...@gmx.net> wrote:
>>>>>>>>
>>>>>>>>> Am 14.10.2014 um 15:07 schrieb "Lauen, Douglas L" <dla...@unc.edu>:
>>>>>>>>>
>>>>>>>>>> Hello! My xypic diagrams are not previewing in LyX. I can see the 
>>>>>>>>>> matrix with the code, but no nice WYSIWYG picture with nodes and 
>>>>>>>>>> arrows. The file compiles fine and the diagrams look good in the 
>>>>>>>>>> pdf. I have gone into preferences, look&feel, display, display 
>>>>>>>>>> graphics is checked. TexLive is telling me that the preview Latex 
>>>>>>>>>> package is installed. I reinstalled preview and xypic packages 
>>>>>>>>>> anyway and that did not help. Other equations (e.g. \beta ) display 
>>>>>>>>>> fine. I would appreciate any advice or short term workarounds. 
>>>>>>>>>> Thanks! Doug
>>>>>>>>>>
>>>>>>>>>> LyX 2.1.2 (sept 16, 2014)
>>>>>>>>>> Running on a Mac PowerBook
>>>>>>>>>> OSX 10.9.5 (Mavericks)
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> are you able to provide a minimal example to demonstrate your 
>>>>>>>>> problem, please?
>>>>>>>>>
>>>>>>>>> Stephan
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> <displays.lyx><doesnotdisplay.lyx>
>>>>>
>>>>
>>>
>>
>

Attachment: xyling_fail.lyx
Description: application/lyx

Attachment: xetex_fail.lyx
Description: application/lyx

Reply via email to