Text FormattingOperator: vector representation in a particular frame

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pc0019
Posts: 2
Joined: Mon Feb 27, 2012 1:59 pm

Operator: vector representation in a particular frame

Post by pc0019 »

Hi,

I'm not sure if I'm looking for a symbol, or some way to format an existing symbol (probably \longrightarrow).

At the moment I have:
vector1.png
vector1.png (2.77 KiB) Viewed 1826 times
Using the following latex, LaTeX respectively:

Code: Select all

\vec{e}_0
	\begin{array}{c}
		\longrightarrow \\ O
	\end{array}
	(1,0,0,0)

\vec{e}_0 \overrightarrow{O} (1,0,0,0)
But I would like:
vector2.png
vector2.png (1.93 KiB) Viewed 1826 times
Please ignore all details aside from the placement of the arrow and the 'O'. I can't seem to get them right! Any help would be greatly appreciated.

Many thanks,
Patch
Last edited by Stefan Kottwitz on Mon Feb 27, 2012 3:00 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Operator: vector representation in a particular frame

Post by Stefan Kottwitz »

Hi Patch,

you could use \xrightarrow of amsmath:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
  \vec{e}_0 \xrightarrow[\mathcal{O}]{} (1,0,0,0)
\]
\end{document}
vector.png
vector.png (2.34 KiB) Viewed 1821 times
Stefan
LaTeX.org admin
pc0019
Posts: 2
Joined: Mon Feb 27, 2012 1:59 pm

Re: Operator: vector representation in a particular frame

Post by pc0019 »

Stefan, thank you for your quick response - and for cleaning up my original post! This is exactly what I wanted.
Post Reply