How do I typeset two close vertical lines as in ||x||=1 ?
I'm still having problems migrating from latex to context: In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on each side of the x. In ConTeXt, the same "\|" is only producing one single vertical line. I tried using "||" and "\parallel", but in both cases the spacing is not as desired. Does anybody know how this is done properly? Thanks, Julian
Am 19.05.2011 um 13:04 schrieb Julian Becker:
I'm still having problems migrating from latex to context: In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on each side of the x. In ConTeXt, the same "\|" is only producing one single vertical line. I tried using "||" and "\parallel", but in both cases the spacing is not as desired. Does anybody know how this is done properly?
\starttext $\Vert x \Vert = 1$ \stoptext Wolfgang
thank you, Wolfgang, for your quick reply! This is exactly what I needed!
2011/5/19 Wolfgang Schuster
Am 19.05.2011 um 13:04 schrieb Julian Becker:
I'm still having problems migrating from latex to context: In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on each side of the x. In ConTeXt, the same "\|" is only producing one single vertical line. I tried using "||" and "\parallel", but in both cases the spacing is not as desired. Does anybody know how this is done properly?
\starttext $\Vert x \Vert = 1$ \stoptext
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_beck16@uni-muenster.de "Keep thy heart with all diligence; for it is the wellspring of life."
On Thu, 19 May 2011, Wolfgang Schuster wrote:
Am 19.05.2011 um 13:04 schrieb Julian Becker:
I'm still having problems migrating from latex to context: In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on each side of the x. In ConTeXt, the same "\|" is only producing one single vertical line. I tried using "||" and "\parallel", but in both cases the spacing is not as desired. Does anybody know how this is done properly?
\starttext $\Vert x \Vert = 1$ \stoptext
$\lVert x \rVert$ gives better spacing (even in LaTeX). Aditya
participants (3)
-
Aditya Mahajan
-
Julian Becker
-
Wolfgang Schuster