Text FormattingWriting the "span" Operator

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
zainah
Posts: 6
Joined: Sat Mar 24, 2012 8:21 am

Writing the "span" Operator

Post by zainah »

Dear all,

how to write the equation below correctly?

Code: Select all

A=span{g_1, ad_fg_1, \cdots, {ad_f}^{n_1 -1} g_1}



Thanks

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Writing the "span" Operator

Post by localghost »

Declare a new operator by the amsmath package. The package manual gives more details.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}   % loads »amsmath«

\DeclareMathOperator{\Span}{span}

\begin{document}
  \[
    A=\Span\{g_1, ad_fg_1, \cdots, {ad_f}^{n_1 -1} g_1\}
  \]
\end{document}
Note the syntax of the new operator. The command \span is a TeX primitive, thus already defined.


Best regards and welcome to the board
Thorsten
Post Reply