Discussion:
text over a symbol
Srinivas Nedunuri
2005-06-03 21:57:46 UTC
Permalink
hello I was wondering how you get text or a symbol above some other symbol
in Lyx when you're doing it as part of some linear expression. For example:

xyz abc
A1 ---------> A2 -------> etc

Doing it as a 1x2 matrix it doesn't come out quite right

thanks!
Paul A. Rubin
2005-06-03 22:10:10 UTC
Permalink
Post by Srinivas Nedunuri
hello I was wondering how you get text or a symbol above some other symbol
xyz abc
A1 ---------> A2 -------> etc
Doing it as a 1x2 matrix it doesn't come out quite right
thanks!
Try a 1x3 matrix with the part that's supposed to be inline in the
middle row and a hard space (C-space) in the bottom row to prevent LaTeX
from collapsing it.

-- Paul
--
******************************************************************************************
Paul A. Rubin Phone:
(517) 432-3509
Department of Management Fax: (517)
432-1111
The Eli Broad Graduate School of Management E-mail: rubin-mhe/***@public.gmane.org
Michigan State University
http://www.msu.edu/~rubin/
East Lansing, MI 48824-1122 (USA)
******************************************************************************************
Mathematicians are like Frenchmen: whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different. J. W. v. GOETHE
Uwe Stöhr
2005-06-03 22:58:03 UTC
Permalink
Post by Srinivas Nedunuri
hello I was wondering how you get text or a symbol above some other symbol
xyz abc
A1 ---------> A2 -------> etc
You can use the commands \xleftarrow or \xrightarrow respectively. Just
type them in a formula followed by a space and you'll see the arrow with
two blue boxes for the over/underset.

Generally you can "accentuate" characters with the commands \overset and
\underset. (The different behaviour of the two comands in the attached
file is a known LyX-bug.)

Attached an example LyX-file.

regards Uwe
Srinivas Nedunuri
2005-06-04 03:34:02 UTC
Permalink
Its almost what I want. What I really want is a double arrow (==>), and I
see that unfortunately latex doesn't have a \xRightarrow (or at least Lyx
doesn't recognize it). I tried using the \overset command (\underset just
produces a complete mess) and again its almost what I want but it doesnt
elongate the arrow to accomodate the label. Oh well, thanks for the tip.

----- Original Message -----
From: "Uwe Stöhr" <uwestoehr-S0/***@public.gmane.org>
To: "Srinivas Nedunuri" <nedunuri-***@public.gmane.org>
Cc: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Friday, June 03, 2005 5:58 PM
Subject: Re: text over a symbol
Post by Uwe Stöhr
Post by Srinivas Nedunuri
hello I was wondering how you get text or a symbol above some other symbol
xyz abc
A1 ---------> A2 -------> etc
You can use the commands \xleftarrow or \xrightarrow respectively. Just
type them in a formula followed by a space and you'll see the arrow with
two blue boxes for the over/underset.
Generally you can "accentuate" characters with the commands \overset and
\underset. (The different behaviour of the two comands in the attached
file is a known LyX-bug.)
Attached an example LyX-file.
regards Uwe
----------------------------------------------------------------------------
----
Post by Uwe Stöhr
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\options fleqn
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single
\papersize Custom
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1
1
34
-1
\end_bullet
\bullet 2
2
35
-1
\end_bullet
\bullet 3
2
7
-1
\end_bullet
\layout Standard
command
\series bold
\backslash
xrightarrow
\series default
\begin_inset Formula \[
A1\xrightarrow{xyz}A2\xrightarrow{abc}\textrm{etc}\]
\end_inset
\layout Standard
command
\series bold
\backslash
overset
\series default
and
\series bold
\backslash
longrightarrow
\series default
\begin_inset Formula \[
A1\overset{xyz}{\longrightarrow}A2\]
\end_inset
\layout Standard
command
\series bold
\backslash
underset
\series default
and
\series bold
\backslash
longrightarrow
\series default
\begin_inset Formula \[
A1\underset{xyz}{\longrightarrow}A2\]
\end_inset
\the_end
Loading...