fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
354 stars 34 forks source link

preview problem when updated to texlive 2016 #13

Closed subaochen closed 3 years ago

subaochen commented 7 years ago

hi,

After upgrade to texlive 2016, ktikz preview windows only show part of generated picture: the top part of the picture is cutted, please refer to the attachment. node-distance-demo pgf- - qtikz_092

My test pgf file is as below:

\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} \begin{tikzpicture} \graph [simple necklace layout, node distance=1cm, node sep=0pt, nodes={draw,circle,as=.}] { 1 -- 2 [minimum size=2cm] -- 3 -- 4 -- 5 -- 6 -- 7 --[orient=up] 8 }; \draw [red,|-|] (1.center) -- ++(0:1cm); \draw [red,|-|] (5.center) -- ++(180:1cm); \end{tikzpicture}

subaochen commented 7 years ago

I have checked tikzpreview.cpp file,maybe there is something wrong with showPreview method ? centerPoint variable is not set correctly?

gprud commented 6 years ago

Hi,

I looked at the product latex file (You can find it in the /tmp folder) and run lualatex directly from a terminal.

Here is what I got: temptikzcode.pdf. The drawing is cropped.

So, I do not think it's related to ktikz, but rather to the packages you used, maybe lualatex, or preview package.

jfmcarreira commented 6 years ago

Dear all,

Was it confirmed that the problem is not due to ktikz? Is it still reproducible?