[apt4ssx8] Re: typo review for twopt

  • From: "Kent A. Reed" <kentallanreed@xxxxxxxxx>
  • To: apt4ssx8@xxxxxxxxxxxxx
  • Date: Thu, 05 Jul 2012 11:03:10 -0400

On 6/28/2012 3:11 PM, Dave Caroline wrote:
This is a fix for one of the equations
see
http://www.archivist.info/apt/aptos/apt360/doc/manual/tabcyl_kw.html#tabcyl_twopt

I have re created the diagram with an online LaTex image creator
http://codecogs.com/latex/eqneditor.php to fix the x1 typo
any latex gurus know how to shift the lower line to the right?

This being my first ever attempt at LaTex


\underline{\textrm{STAB}}=\textrm{TABCYL}/\textrm{NOZ},\textrm{TWOPT},\begin{bmatrix}
\textrm{TRFORM}, & \textrm{SMATRIX},\end{bmatrix}
x_{1},y_{1},\\
\; \; \begin{bmatrix}\begin{cases}
  & \text{ SLOPE },s_{1}  \\
  & \text{ NORMAL },n_{1}
\end{cases} ,
\end{bmatrix}x_{2},y_{2},
\begin{bmatrix}\begin{cases}
  & \text{ SLOPE },s_{2}  \\
  & \text{ NORMAL },n_{2}
\end{cases} ,
\end{bmatrix}...
x_{n},y_{n},
\begin{bmatrix}\begin{cases}
  & \text{ SLOPE },s_{n}  \\
  & \text{ NORMAL },n_{n}
\end{cases}
\end{bmatrix}

Dave Caroline

Looking good, Dave. Some folks never get the hang of LaTeX with or without online tools.

By "shift the lower line to the right" do you mean shift the second line in the equation, the line that begins "x-sub-2, y-sub-2"? How much do you want to move it? Should it line up with something in the first line?

The last two questions presuppose the two general approaches (1) explicitly introduce some horizontal blank space or (2) use alignment techniques.

I'll treat just the first approach here.

In the LaTeX line

\end{bmatrix}x_{2},y_{2},

you could introduce some space before the "x" in several ways.

1. use "\ " to introduce a LaTeX-calculated "character space" at the current font size

\end{bmatrix}\ x_{2},y_{2},

2. use "\hspace{}" to introduce a measured space

\end{bmatrix}\hspace{2em}x_{2},y_{2},

The space can be measured in points (pt), millimeters (mm), centimeters (cm), inches (in), printer's M (em), printer's x (ex), and other really obscure units. [Note: "em" and "ex" should work here but there were missing in the first Google hit I looked at. Try and see.]

I'm not going to mention some of the sleazy tricks certain LaTeX-heads revel in:-)

Don't forget that LaTeX is making the big decisions about what fits where according to a substantial set of rules for goodness of layout that Knuth (TeX) and Lamport (LaTeX) developed. It can be frustrating sometimes when their sense of goodness conflicts with your own and things don't turn out the way you want. Knuth was always hardnosed about it...if it doesn't display what you want then what you want isn't correct!

Regards,
Kent

PS - the LinuxCNC documentation effort has moved to tools like LaTexMath and AsciiDoc. That might be a reasonable alternative if the online tool you found doesn't meet your needs.


Other related posts: