After upgrading to OS X 10.10 yosemite, the instant preview of LyX seems broken --- it no longer works. I have tried to reconfigure the LyX both directly and launched through terminal, and neither works. Anyone has the same problem and has a solution for that? Thanks!
-
1Have you checked out the posting Lyx 2.x: Document Class Not Available - Mac OS X 10.10 Yosemite PB 3? It may apply to your posting as well. – Mico Oct 19 '14 at 18:39
-
Yes. I have seen the post and it solved the other problem -- Document Class Not Available. Now LyX at least works, but it still does not have preview, which makes it not that pretty when typing maths.. Thanks though. – Thomas Tong Oct 19 '14 at 23:24
-
Same for me here. Got rid of the Class not available error but instant preview is still only accessible through Terminal. Reinstalled both GS and XQuartz. – Alex Bogatskiy Oct 21 '14 at 17:53
-
They fixed it in 2.1.2.1. – Alex Bogatskiy Oct 31 '14 at 18:13
2 Answers
For me it works if you run LyX from the terminal. (I.e., not just reconfigure it from the terminal, but run & load your file).
Edit: to be clear, running from the terminal means opening LyX with this command:
$ /Applications/LyX.app/Contents/MacOS/lyx
If you open LyX and run reconfigure, this will solve some problems, but not the instant preview.
However, if you run LyX from the terminal, and open a document, then (in my case) that instance of LyX will render instant preview correctly. It's a nuisance but it works.
- 117
-
I've tried to document some problems with Yosemite here, since it has problems that affect many applications. It includes an example of launching from Terminal, which I suspect is what @TomCunningham means. http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite – Adam Maxwell Oct 21 '14 at 04:23
-
1@ThomasTong If Tom's answer solved your problem, you can mark the question as solved by accepting his answer, which you do by clicking the checkmark to the left of it. – Torbjørn T. Oct 23 '14 at 05:48
I'm using Mac OS Sierra 10.12.6 and LyX Version 2.2.3.
So for configure I install with home brew this recommended programs:
brew update
brew cask install basictex
brew cask install texmaker
I use the basictex because has everything I needed, the mactex is very big. If you prefer install everything so, install the mactex:
brew cask install mactex
Go to the menu LyX > Preferences > File handling > File formats:
- format choose "PDF (pdflatex)"
- set viewer to "open -a Preview"
Apply, Save and close.
So on the menu I click on Tools > Reconfigure.
Then the LyX reconfigure automatically everything on terminal. Wait for a while until reconfigure everything.
So after this click on Document > (Visualize Other formats) > PDF (pdflatex) or CMD + R(this command isn't accessible everytime so I recommend to get the first option).
And wait for a while and shows the pdf with Pre-visual.app. Very nice and I haven't needed to install the Acrobat Reader Uhull!
- 101
- 2
-
Note: Using Preview is much better than Acrobat because Preview will automatically close and open the new version. – Oliver Jan 12 '22 at 16:30