LaTeX forum ⇒ LyXtikz blank in lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
md138
Posts: 3
Joined: Thu Oct 22, 2020 8:34 am

tikz blank in lyx

Postby md138 » Thu Oct 22, 2020 10:27 pm

Hey,

I am new to lyx having a problem using tikzpicture in lyx.

with the code:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{tikzpicture}
  2. \draw[red] (0,0) -- (0,1);
  3. \draw[green] (0,1) -- (1,1);
  4. \draw[red] (1,1) -- (1,0);
  5. \draw[blue] (1,0) -- (0,0);
  6. \end{tikzpicture}


I include in the preamble:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \usepackage{tikz}


Yet is still blank in preview.

Does anyone knows how to fix it?

I use lyx 2.3.1 Hebrew

User avatar
Stefan Kottwitz
Site Admin
Posts: 9609
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Oct 25, 2020 9:08 pm

Welcome to the forum!

The code is ok.

Can you show us the .log file? You can post it as attachment here. The Attachments link is below the text edit field, when writing a post.

Or is it ok in the produced PDF, just not visible in the preview?

Stefan
LaTeX.org admin

md138
Posts: 3
Joined: Thu Oct 22, 2020 8:34 am

Postby md138 » Tue Oct 27, 2020 1:14 pm

Hey,

Thank you very much for your answer!

It doesn't appear in both preview and the pdf (it does run successfully).

I have a attached the .log file.

Meron
Attachments
_________-_____________.log
(33.87 KiB) Downloaded 15 times

md138
Posts: 3
Joined: Thu Oct 22, 2020 8:34 am

Postby md138 » Sun Nov 22, 2020 4:44 pm

Hi,

Have you maybe found a solution please?

Meron

User avatar
Stefan Kottwitz
Site Admin
Posts: 9609
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Nov 22, 2020 5:38 pm

Hi Meron,

you compiled to DVI, so LaTeX in classic mode, probably because of the eps images. Does it work if you compile with pdfLaTeX straight to PDF? That may be a LyX setting.

Stefan
LaTeX.org admin


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 4 guests