unary minus
Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. What is the best lyx approach?
Re: unary minus
Am 03.09.2010 15:13, schrieb Neal Becker: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. see this older mail from me: http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html regards Uwe
Re: unary minus
On 9/3/2010 9:13 AM, Neal Becker wrote: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. The braces just shrink the space between the minus sign and B. You can add them in the math editor by typing \{ (which will create an inset surrounded by {}). What is the best lyx approach? You might try the following key sequence (no spaces, I'm just adding them for legibility): \{ ctrl-M - right-arrow B \{ creates the inset (surrounded by LaTeX braces) to shrink the spacing. ctrl-M puts you in text mode, so that the minus sign becomes a hyphen (which is shorter). The right arrow gets you out of text mode (I assume you want B typeset in italics) but keeps you inside the braces. HTH, Paul
unary minus
Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. What is the best lyx approach?
Re: unary minus
Am 03.09.2010 15:13, schrieb Neal Becker: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. see this older mail from me: http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html regards Uwe
Re: unary minus
On 9/3/2010 9:13 AM, Neal Becker wrote: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. The braces just shrink the space between the minus sign and B. You can add them in the math editor by typing \{ (which will create an inset surrounded by {}). What is the best lyx approach? You might try the following key sequence (no spaces, I'm just adding them for legibility): \{ ctrl-M - right-arrow B \{ creates the inset (surrounded by LaTeX braces) to shrink the spacing. ctrl-M puts you in text mode, so that the minus sign becomes a hyphen (which is shorter). The right arrow gets you out of text mode (I assume you want B typeset in italics) but keeps you inside the braces. HTH, Paul
unary minus
Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. What is the best lyx approach?
Re: unary minus
Am 03.09.2010 15:13, schrieb Neal Becker: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. see this older mail from me: http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html regards Uwe
Re: unary minus
On 9/3/2010 9:13 AM, Neal Becker wrote: Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large. Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. The braces just shrink the space between the minus sign and B. You can add them in the math editor by typing \{ (which will create an inset surrounded by {}). What is the best lyx approach? You might try the following key sequence (no spaces, I'm just adding them for legibility): \{ ctrl-M - right-arrow B \{ creates the inset (surrounded by LaTeX braces) to shrink the spacing. ctrl-M puts you in text mode, so that the minus sign becomes a hyphen (which is shorter). The right arrow gets you out of text mode (I assume you want B typeset in italics) but keeps you inside the braces. HTH, Paul
Re: unary minus
On Mon, Oct 11, 2004 at 02:52:37PM +0200, Lyx User wrote: Is there a special unary minus in the math panel somewhere? No. Or does it actually exists in latex? It does not. TeX does or does not add a bit of space in certain places to differentiate between unary and binary minus. This works fairly well, but in some situation you have to fix this manually. I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. This might be a olace where such intervention is necessary although I'd think that TeX would _not_ add the operator space here. Andre'
Re: unary minus
On Mon, Oct 11, 2004 at 02:52:37PM +0200, Lyx User wrote: Is there a special unary minus in the math panel somewhere? No. Or does it actually exists in latex? It does not. TeX does or does not add a bit of space in certain places to differentiate between unary and binary minus. This works fairly well, but in some situation you have to fix this manually. I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. This might be a olace where such intervention is necessary although I'd think that TeX would _not_ add the operator space here. Andre'
Re: unary minus
On Mon, Oct 11, 2004 at 02:52:37PM +0200, Lyx User wrote: > Is there a special unary minus in the math panel somewhere? No. > Or does it actually exists in latex? It does not. TeX does or does not add a bit of space in certain places to differentiate between unary and binary minus. This works fairly well, but in some situation you have to fix this manually. > I did a search, but could not find anything better than just using > '-'. I think intervals such as $[-\infty, \infty)$ don't look very > nice. I could use some negative space, though I was wondering whether > someone figured this out for me already. This might be a olace where such intervention is necessary although I'd think that TeX would _not_ add the operator space here. Andre'
unary minus
Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Thanks.
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? No. Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Where do you need negative spaces? If the minus doesn't follow on a number or letter, it doesn't have surrounding space. (To avoid the space in general, set a LaTeX-brace around it, e.g. type a\{- b in LyX or $a{-}b$ in LaTeX.) The problem in $[-\infty, \infty]$ is, that the minus is too long. To avoid this, you can put the minus in mathematical text (that means \textrm (shortcut M-m m) in LyX). To have a middle size minus, write two minuses in \textrm. You can also use a half space (C-space in LyX) after the minus, I attached several possibilities. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet \layout Standard \begin_inset Formula $a{-}p=a-p$ \end_inset \layout Standard \begin_inset Formula $[-\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\,\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\,\infty,\infty]$ \end_inset \the_end
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. this is the default behaviour ... If you want to change this to a text minus with the same behaviour ( but it looks ugly! ), write into preamble: \DeclareMathSymbol{-}{\mathbin}{operators}{2D} Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
unary minus
Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Thanks.
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? No. Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Where do you need negative spaces? If the minus doesn't follow on a number or letter, it doesn't have surrounding space. (To avoid the space in general, set a LaTeX-brace around it, e.g. type a\{- b in LyX or $a{-}b$ in LaTeX.) The problem in $[-\infty, \infty]$ is, that the minus is too long. To avoid this, you can put the minus in mathematical text (that means \textrm (shortcut M-m m) in LyX). To have a middle size minus, write two minuses in \textrm. You can also use a half space (C-space in LyX) after the minus, I attached several possibilities. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet \layout Standard \begin_inset Formula $a{-}p=a-p$ \end_inset \layout Standard \begin_inset Formula $[-\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\,\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\,\infty,\infty]$ \end_inset \the_end
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. this is the default behaviour ... If you want to change this to a text minus with the same behaviour ( but it looks ugly! ), write into preamble: \DeclareMathSymbol{-}{\mathbin}{operators}{2D} Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
unary minus
Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Thanks.
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? No. Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. Where do you need negative spaces? If the minus doesn't follow on a number or letter, it doesn't have surrounding space. (To avoid the space in general, set a LaTeX-brace around it, e.g. type "a\{- b" in LyX or "$a{-}b$" in LaTeX.) The problem in "$[-\infty, \infty]$" is, that the minus is too long. To avoid this, you can put the minus in mathematical text (that means \textrm (shortcut M-m m) in LyX). To have a middle size minus, write two minuses in \textrm. You can also use a half space (C-space in LyX) after the minus, I attached several possibilities. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet \layout Standard \begin_inset Formula $a{-}p=a-p$ \end_inset \layout Standard \begin_inset Formula $[-\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{-}\,\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\infty,\infty]$ \end_inset \newline \begin_inset Formula $[\textrm{--}\,\infty,\infty]$ \end_inset \the_end
Re: unary minus
Lyx User wrote: Is there a special unary minus in the math panel somewhere? Or does it actually exists in latex? I did a search, but could not find anything better than just using '-'. I think intervals such as $[-\infty, \infty)$ don't look very nice. I could use some negative space, though I was wondering whether someone figured this out for me already. this is the default behaviour ... If you want to change this to a text minus with the same behaviour ( but it looks ugly! ), write into preamble: \DeclareMathSymbol{-}{\mathbin}{operators}{"2D} Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes