Live data from Hacker News

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

tikz.dev

31–40 of 88 posts

Re: Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

#33
post #31

That's cool. I guess it doesn't support TikZ' relative positioning (left of etc) because WYSIWYG features like drag-and-drop require absolute positioning?

It does support editing it if relative positioning is used in the code, i.e. if you drag the object it will continue being relatively positioned. But if you add new elements with the various tools, they will be absolutely positioned (not sure what would be a good UI for switching an element to relative positioning) unless you edit the source. You can try with

  \begin{tikzpicture}
    \node[draw] (A) at (0,0) {A};
    \node[draw, right of=A] (B) {B};
  \end{tikzpicture}

Re: Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

#34
post #32

Is their anyone here old enough to remember Xfig ? I was quite proud of the hours of work I had put in to configure it just so, with the 3d look and all.

I do. I used it in the late noughts for my cryptology BSc because I was too lazy/busy to learn TikZ proper

Re: Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

#35
post #32

Is their anyone here old enough to remember Xfig ? I was quite proud of the hours of work I had put in to configure it just so, with the 3d look and all.

I do. I used it in the late noughts for my cryptology BSc because I was too lazy/busy to learn TikZ proper

Tikz by hand for busy diagrams can be a whole lot of work.

What I loved about Xfig was that one could use latex and latex fonts in the diagrams.

Re: Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

#36
post #31

That's cool. I guess it doesn't support TikZ' relative positioning (left of etc) because WYSIWYG features like drag-and-drop require absolute positioning?

It does support editing it if relative positioning is used in the code, i.e. if you drag the object it will continue being relatively positioned. But if you add new elements with the various tools, they will be absolutely positioned (not sure what would be a good UI for switching an element to relative positioning) unless you edit the source. You can try with \begin{tikzpicture} \node[draw] (A) at (0,0) {A}; \node[dr…

> not sure what would be a good UI for switching an element to relative positioning

  1. Right-click on an existing object, offer drop-down context menu.
  2. Menu item `Position relative to...`.
  3. The cursor now selects _other_ objects in the field. 
     a. If there is no other object, then offer to create a new label-less node with (x,y); default to the origin.
     b. Once an object is selected, then offer `right of`, `left of`, `north of`, `south of`, `southeast of`, etc as a drop-down menu, and a field for radial displacement.
        i. As a stretch goal, offer a `Custom position...` button to specify an (x, y) displacement, or a polar angle and radial displacement. These three options (fixed offsets, Cartesian, polar) could also be tabs in the resultant menu from (b) above. 
You could use this same UI/UX for `anchor`, too.

Re: Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

#38
I'm running Linux Mint (xfce version), and I installed the .deb version (TikZ.Editor_0.4.0_amd64.deb). It's very odd...for example, when I open it or do File/New, many (but not all) of the grid cells are rectangles, not squares. Am I doing something wrong, like installing the wrong version? Or maybe misinterpreting what the faint grey lines are?
Post reply on HN