[comp.text.tex] How do you make a LEFT-SIDED superscript??

ian@polari.UUCP (ian searle) (06/28/91)

Help! does anybody out there know how to put a superscript on the
LEFT side of an expression, such as:

			A
			  dv
			 ----
			  dt

The reason for this is so that I can write equations with components
that are in different reference frames. It would be nice to have this
as a feature similar to v^{A}, but I'll take whatever I can get.

I have looked through the LaTeX book and cannot find any clues.

Thanks, Ian Searle 

geyer@galton.uchicago.edu (06/28/91)

In article <4598@polari.UUCP> ian@polari.UUCP (ian searle) writes:
>
>Help! does anybody out there know how to put a superscript on the
>LEFT side of an expression, such as:
>
>			A
>			  dv
>			 ----
>			  dt
>
>I have looked through the LaTeX book and cannot find any clues.

Just do it.

  \frac{^A dv}{dt}    or    ^A\frac{dv}{dt}

if you mean the latter.

For readability these can be turned into

  \frac{{}^A dv}{dt}    or    {}^A\frac{dv}{dt}

but Knuth says it doesn't matter, either form works.

See p. 129 in the TeXbook.  There is no point in looking in the LaTeX
book for things like this.  Lamport obviously meant that you look in
the TeXbook for what he doesn't cover.

Charles Geyer
Department of Statistics
University of Chicago
geyer@galton.uchicago.edu

yu@blue14 (Jenwei Yu) (06/28/91)

In article <4598@polari.UUCP> ian@polari.UUCP (ian searle) writes:
>
>Help! does anybody out there know how to put a superscript on the
>LEFT side of an expression, such as:
>
>			A
>			  dv
>			 ----
>			  dt
>
>The reason for this is so that I can write equations with components
>that are in different reference frames. It would be nice to have this
>as a feature similar to v^{A}, but I'll take whatever I can get.
>
>I have looked through the LaTeX book and cannot find any clues.
>
>Thanks, Ian Searle 

Try this:

$$ {\vphantom{{dv}\over{dt}}}^{A}{{dv}\over{dt}} $$

\vphantom will make an invisible box so that ^{A} will be put at the
proper height. Usually if you just want a left superscript on a character,
$^{whatever}$ will do.



Roscoe

-- 
########################################################################
#           Jenwei R. Yu                 Quantum Theory Project        #
#                                        Department of Chemistry       #
#                                        University of Florida         #

aitken@CS.Cornell.EDU (William E. Aitken) (06/29/91)

In article <29437@uflorida.cis.ufl.EDU> yu@blue14 (Jenwei Yu) writes:
>In article <4598@polari.UUCP> ian@polari.UUCP (ian searle) writes:
>>
>>Help! does anybody out there know how to put a superscript on the
>>LEFT side of an expression, such as:
>>
>>			A
>>			  dv
>>			 ----
>>			  dt
>>
>
>Try this:
>
>$$ {\vphantom{{dv}\over{dt}}}^{A}{{dv}\over{dt}} $$
>

Why are the braces needed around \vphantom{{dv}\over{dt}} ?
								--- Bill.

-- 
William E. Aitken <aitken@cs.cornell.edu>   | On Earth it is considered 
{uw-beaver,rochester,decvax}!cornell!aitken | ill mannered to kill your
Home: (607) 273-7810 Away : (607) 255-9206  | friends while commiting suicide
============================================*============= Avon ==============