LaTeX forum ⇒ LyXTIKZ instant preview in Lyx does not work Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Manfred
Posts: 2
Joined: Mon Jan 22, 2018 11:49 am

TIKZ instant preview in Lyx does not work

Postby Manfred » Mon Jan 22, 2018 12:05 pm

Hello,

I have a simple TIKZ-Code in Lyx:

  1. \begin{tikzpicture}
  2. \draw[red] (0,0) -- (1,1);
  3. \draw[red] (1,0) -- (0,1);
  4. \draw[blue] (0,0) rectangle (1,1);
  5. \end{tikzpicture}


The output in pdf works perfectly.
However, the instant preview in Lyx does not work. Choosing "Insert-Preview" creates only a new "box" around the source-Code.

(but the preview of a math formula works, see screenshot)
screenshot.jpg
screenshot.jpg (25.74 KiB) Viewed 1041 times
!

Any idea for a solution (I am working with LyX Version 2.1.5)?

Thank you!

Manfred

scottkosty
Site Moderator
Posts: 526
Joined: Sat Sep 01, 2012 6:38 am

Postby scottkosty » Wed Jan 24, 2018 6:03 am

Works for me with LyX version 2.3.0dev and with 2.2.x, on Ubuntu. I think this was fixed after 2.1.x. You might consider upgrading LyX when 2.3.1 is released (in a few months). That would be a good time. Make sure you always backup your documents before you upgrade and edit with newer versions of LyX.

Manfred
Posts: 2
Joined: Mon Jan 22, 2018 11:49 am

Postby Manfred » Thu Jan 25, 2018 5:06 pm

Thank you

update of Lyx AND MiKTeX solved the problem!


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests