TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am LaTeX-ing some diagrams in rewriting theory where the rules are modulo a set of equations. Canonically, a ~-like symbol is used to denote equivalence. I have been using \ar@{~}. Here is an example

 & & \cdot \ar[drr]^{*} \ar[dll]_{*} & & \\
 \cdot \ar@{.>}[dr]_{*} & & & & \cdot \ar@{.>}[dl]^{*}\\
 & \cdot \ar@{~}[rr] & & \cdot &

enter image description here

If the above is compiled it looks, well, aesthetically unpleasing. I can't exactly put my finger on it, but it looks crooked. I think it has to do with the fact that the curved line begins and ends at different heights. Does anyone have a recommendation for how to get around such issues.

share|improve this question
What about changing the distance between cols? Change the 10pt – Sigur Jun 29 '12 at 21:15

You can make some fine adjustment the length of an "arrow" (here a squiggly line) by following the hop, here [rr], by an expression of the form -<7pt,0pt>{X}, which would extend the line to the center of the target node minus the given vector, and place the symbol {X} there. In your case you can spcify an empty symbol via {}, and the modification below is obtained using -<3pt,0pt>{}. Adjust the parameters to get the appearance you wish.

Sample output



 & & \cdot \ar[drr]^{*} \ar[dll]_{*} & & \\
 \cdot \ar@{.>}[dr]_{*} & & & & \cdot \ar@{.>}[dl]^{*}\\
 & \cdot \ar@{~}[rr]-<3pt,0pt>{} & & \cdot &

Similarly a \save[]+<vector>{} \ar... \restore construction will allow you to adjust the starting point.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.