Menu

#10 drawing units

open
nobody
None
5
2013-02-13
2006-09-22
kr4z33
No

it would be useful for me to hav the choice of drawing
in US units (inches) instead of mm

Discussion

  • Vincent Belaïche

    This was supported but very poorly documented.
    Assume you want the drawing unit to be 5pt, place before the drawing:

    \def\JPicScale#1#2{5pt}

    The #1#2 are just there to gobble the mm unit.

     
  • Vincent Belaïche

    You can scale the drawing by setting

    \def\JpicScale{25.4}

    before

    \input{you_drawing}

    that will mean that 1mm on the drawing is actually 1 inche

    If the drawing is say 125mm wide on jPicEdt, and you want to scale it to linewidth, then set :

    \def\JpicScale#1mm{0.00800\linewidth}

    where 0.00800 is the value of 1/125.

    That kind of tricks is explained in the documentation of version 1.6 that can be obtained by compiling from source for the moment (I will put it an installer some day on sourceforge, there is one on my page http://vincentbelaiche.pagesperso-orange.fr/loli/jpicedt/jpicedt.html\)

     
  • Vincent Belaïche

    Sorry for the very late feedback, please read the latest version of the manual (in v1.6 not yet released but on the development repository)

    7.1.1.3 Change the drawing unit
    To change the drawing unit from 1mm to, say, 1point, insert the following code before the
    picture:
    \def\JPicScale#1#2{0.00625\textwidth}
    \input{figure.tex}
    The two arguments #1#2 of \JPicScale are just intended to gobble the default mm unit

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.