Howto:Build graduate dials with LaTeX: Difference between revisions

Jump to navigation Jump to search
Line 231: Line 231:
When a numeric value is expressed in our format, it is assumed that it is in "cm", but it can be prefigured in a different unit of measurement, for example "mm", just place the relative unit at its numeric value of measure adopted. For instance, you can write 1 to indicate ''1'' cm or the equivalent value in mm: ''10mm''<ref>Units permitted by LaTeX: https://tex.stackexchange.com/questions/8260/what-are-the-various-units-ex-em-in-pt-bp-dd-pc-expressed-in-mm</ref>, as for example the typographical point ( pt = 1/72 inches).
When a numeric value is expressed in our format, it is assumed that it is in "cm", but it can be prefigured in a different unit of measurement, for example "mm", just place the relative unit at its numeric value of measure adopted. For instance, you can write 1 to indicate ''1'' cm or the equivalent value in mm: ''10mm''<ref>Units permitted by LaTeX: https://tex.stackexchange.com/questions/8260/what-are-the-various-units-ex-em-in-pt-bp-dd-pc-expressed-in-mm</ref>, as for example the typographical point ( pt = 1/72 inches).


====A note about the coordinate system adopted in LaTeX:====
====A note about the coordinate system adopted in LaTeX and Tikz:====
[[File:LaTeX Coordinates System.jpg|thumb|LaTeX Coordinates System<ref>Graphics with TikZ (''Andrew Mertz and William Slough'') Pag. 12 : https://www.tug.org/pracjourn/2007-1/mertz/mertz.pdf</ref>|right|400px]]
[[File:LaTeX Coordinates System.jpg|thumb|LaTeX and TiKz Coordinates System<ref>Graphics with TikZ (''Andrew Mertz and William Slough'') Pag. 12 : https://www.tug.org/pracjourn/2007-1/mertz/mertz.pdf</ref>|right|400px]]
The definition of the arc requires some attention as the center of rotation needs to be defined, if it were placed (0,0) the center would coincide with the center of the Cartesian axes (Latex uses Cartesian notation, that is, the angles are anti-clockwise and the angle zero corresponds to the horizontal axis of the X)<ref>Example of coordinates in the LaTeX: https://tex.stackexchange.com/questions/155181/coordinate-system-in-latex-with-tikz</ref>.A purely Cartesian reference system requires some attention for those who commonly use the reference system used for CAD or other graphical programs (lower Y, clockwise angles). Defines the starting point to begin drawing the arc, the point is localized starting from the center in Cartesian coordinates ''(<X>,<Y>)'' and moving from this point to a new point defined this time with polar coordinates ''(<angle>: <radius>)'', as can be seen from the command executed to assign the first arc point:
The definition of the arc requires some attention as the center of rotation needs to be defined, if it were placed (0,0) the center would coincide with the center of the Cartesian axes (Latex uses Cartesian notation, that is, the angles are anti-clockwise and the angle zero corresponds to the horizontal axis of the X)<ref>Example of coordinates in the LaTeX: https://tex.stackexchange.com/questions/155181/coordinate-system-in-latex-with-tikz</ref>.A purely Cartesian reference system requires some attention for those who commonly use the reference system used for CAD or other graphical programs (lower Y, clockwise angles). Defines the starting point to begin drawing the arc, the point is localized starting from the center in Cartesian coordinates ''(<X>,<Y>)'' and moving from this point to a new point defined this time with polar coordinates ''(<angle>: <radius>)'', as can be seen from the command executed to assign the first arc point:
''...(c1) + (270:\arcRadius-\graduateInternaThick)...''<BR>
''...(c1) + (270:\arcRadius-\graduateInternaThick)...''<BR>
412

edits

Navigation menu