Menu

#69 rotation of elements

2.0
open
None
5
2013-10-08
2013-06-14
No

If I rotate an element, the rotated coordinates are saved in the XML model, but
the rotation is (at least) not applied to the TikZ-Code. The problem is that the
XML model stores bounding boxes, whereas the TikZ-code works with objects. So the
rotation must get recalculated from the bounding box.

Discussion

  • Vincent Belaïche

    • assigned_to: Vincent Belaïche
     
  • Vincent Belaïche

    Could you please elaborate a bit more on the issue. Is that a GUI problem or a formatting problem?
    Please use tags to help solve the issue.

     
  • Jobst Hoffmann

    Jobst Hoffmann - 2013-06-14

    It's a formatting problem.

    I attach a driver and two .tikz-files as .tar.bz2 file: the first one was created by jpicedt,
    the second one was corrected by hand. The green ellipse is the intended one, the red ellipse can't get formatted because of the uppercase R.

    By the way: pgf prefers the new syntax for ellipses and circles over the previous used.

    How can I use tags?

     
    • Vincent Belaïche

      Thank you for the attachment, I will look into that.

      For the labels: click the Edit button --- let me know if you can, I am not sure about your rights --- and then you have some "Label" edit zone, start to type a label like U for F and the Web I/F will propose User Interface or Formatters...

       
  • Vincent Belaïche

    The upper case R — Red instead of red — is not a bug of the formatter. This is user manual lack of documentation:
    In the preference you can configure the color palette for color naming.

    If you for instance you configure SVG, then you have to set

    \usepackage[svgnames]{xcolor}
    

    In the LaTeX document for the LaTeX compilation to succeed.

    I have created ticket #70 to point at the need to improve user manual.

     
  • Vincent Belaïche

    By the way: pgf prefers the new syntax for ellipses and circles over the previous used.

    Could you please elaborate about the difference between new syntax and old one, and what the consequence is if I use the old one.

     
  • Vincent Belaïche

    I made a correction into jpicedt/jpicedt/format/output/tikz/PicEllipseFormatter.java v1.10

    Could you please cvd update, build, and check whether this solves the bug?

     
  • Vincent Belaïche

    Ok, I see…
    Try again a cvs update.

    FYI, there are other changes than those for bug #69 as I am currently working at improving the installer.

     
  • Vincent Belaïche

    I have put an installer on my home page, you may use it if the cvs update bothers you.

     
  • Jobst Hoffmann

    Jobst Hoffmann - 2013-06-26

    I've checked out the current version and it works for at least this example.

     
  • Vincent Belaïche

    I've checked out the current version and it works for at least this example.

    May I then close the bug ? — and if you find another example that does not work we open another bug …

         Vincent.

     
    • Jobst Hoffmann

      Jobst Hoffmann - 2013-07-11

      I'm sorry, we can't close the bug. I attach a series of five .tikz files: it's a sequence of creating the dining philosphers. One philospher is created and gets copied and rotated and in the result one of them is out of order.

      The (working, but not fully corrected) version shows the right position of the philosophers. The problem is that the rotation angle must be saved as an attribute of the object (rectangle, ellipsis) and not of the action (draw).

      Jobst

       
  • Vincent Belaïche

    Sorry for the delay … this post is just to tell you that I am now back to bug #69. Hopefully I can have a look at the philisophers' dinner this week.

    I was busy with the installer, now it does what I was looking for, you can try it on MSWindows: it can create a shortcut link and detect the system right directory to propose you with — that was lots of work to achieve this: no DLL no JNI, only plain Java plus some VBSCripting interaction. I hope that I have not broken anything on the Linux/MacOSX side, anyone willing to test there is most welcome.

     
  • Vincent Belaïche

    I tried the philosophers, and it does not do the same as you, I attached what it gets when I load philosophen_03.jpe.tikz.

    Could you please rebuild the installer from a cvs update and re-try it. You could also do the minor correction on node linking in de.texi, and then I put a fresh installer on the site with the latest version.

     
  • Vincent Belaïche

    To make your life easier I have uploaded my work area build to my home page, you can do the test with it.

     
  • Vincent Belaïche

    BTW, I have placed an even more recent installer (as of 2013-10-07) on sourceforge jpicedt_devel file directory.

    Could you check whether you still have the bug with that one ?

     

Log in to post a comment.