1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3cdf0e10cSrcweir
4*52ac0773SAndrew Rist<!--***********************************************************
5cdf0e10cSrcweir *
6*52ac0773SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
7*52ac0773SAndrew Rist * or more contributor license agreements.  See the NOTICE file
8*52ac0773SAndrew Rist * distributed with this work for additional information
9*52ac0773SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
10*52ac0773SAndrew Rist * to you under the Apache License, Version 2.0 (the
11*52ac0773SAndrew Rist * "License"); you may not use this file except in compliance
12*52ac0773SAndrew Rist * with the License.  You may obtain a copy of the License at
13*52ac0773SAndrew Rist *
14*52ac0773SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
15*52ac0773SAndrew Rist *
16*52ac0773SAndrew Rist * Unless required by applicable law or agreed to in writing,
17*52ac0773SAndrew Rist * software distributed under the License is distributed on an
18*52ac0773SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*52ac0773SAndrew Rist * KIND, either express or implied.  See the License for the
20*52ac0773SAndrew Rist * specific language governing permissions and limitations
21*52ac0773SAndrew Rist * under the License.
22*52ac0773SAndrew Rist *
23*52ac0773SAndrew Rist ***********************************************************-->
24*52ac0773SAndrew Rist
25*52ac0773SAndrew Rist
26cdf0e10cSrcweir
27cdf0e10cSrcweir<helpdocument version="1.0">
28cdf0e10cSrcweir<meta>
29cdf0e10cSrcweir<topic id="textsmath0103091200xml" indexer="include" status="PUBLISH">
30cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Indexes and Exponents</title>
31cdf0e10cSrcweir<filename>/text/smath/01/03091200.xhp</filename>
32cdf0e10cSrcweir</topic>
33cdf0e10cSrcweir<history>
34cdf0e10cSrcweir<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
35cdf0e10cSrcweir<lastedited date="2004-10-12T10:12:17">converted from old format - fpe
36cdf0e10cSrcweirdedr: fixed #i30770#</lastedited>
37cdf0e10cSrcweir</history>
38cdf0e10cSrcweir</meta>
39cdf0e10cSrcweir<body>
40cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3150746"><bookmark_value>indexes and exponents in $[officename] Math</bookmark_value>
41cdf0e10cSrcweir<bookmark_value>exponents and indexes in $[officename] Math</bookmark_value>
42cdf0e10cSrcweir</bookmark>
43cdf0e10cSrcweir<paragraph role="heading" id="hd_id3150746" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/smath/01/03091200.xhp" name="Indexes and Exponents">Indexes and Exponents</link></paragraph>
44cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153730" xml-lang="en-US" l10n="U" oldref="2">Here, you will find basic information about indexes and exponents in <emph>$[officename] Math</emph>. You can try the examples described here to help you understand the details discussed. (The quotation marks in this text are for emphasis purposes only and are not part of the examples.)</paragraph>
45cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149884" xml-lang="en-US" l10n="U" oldref="3">The index and exponent for a character are displayed one on top of the other, left-justified to the base character. For example, type <emph>a_2^3</emph> or <emph>a^3_2</emph>. This can be in any order. Instead of <emph>'_'</emph> and <emph>'^'</emph>, you can use <emph>'sub'</emph> and <emph>'sup'</emph>.</paragraph>
46cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148387" xml-lang="en-US" l10n="U" oldref="4">However, it is no longer possible to use the following patterns</paragraph>
47cdf0e10cSrcweir<paragraph role="code" id="par_id3149029" xml-lang="en-US" l10n="U" oldref="5">a_2_3</paragraph>
48cdf0e10cSrcweir<paragraph role="code" id="par_id3155985" xml-lang="en-US" l10n="U" oldref="6">a^2^3</paragraph>
49cdf0e10cSrcweir<paragraph role="code" id="par_id3153923" xml-lang="en-US" l10n="U" oldref="7">a_2^3_4</paragraph>
50cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153724" xml-lang="en-US" l10n="U" oldref="8">Each sub-/superscript position of a base character can only be used once. You must use brackets to indicate the desired result. The following examples illustrate this</paragraph>
51cdf0e10cSrcweir<paragraph role="code" id="par_id3151185" xml-lang="en-US" l10n="U" oldref="9">a_{2_3}</paragraph>
52cdf0e10cSrcweir<paragraph role="code" id="par_id3151272" xml-lang="en-US" l10n="U" oldref="10">a^{2^3}</paragraph>
53cdf0e10cSrcweir<paragraph role="code" id="par_id3156316" xml-lang="en-US" l10n="U" oldref="11">a_2^{3_4}</paragraph>
54cdf0e10cSrcweir<paragraph role="code" id="par_id3145207" xml-lang="en-US" l10n="U" oldref="12">a_{2^3}^{4_5}</paragraph>
55cdf0e10cSrcweir<paragraph role="tip" id="par_id3151173" xml-lang="en-US" l10n="U" oldref="13">Unlike other formula editors where "<emph>_</emph>" and " <emph>^</emph> " only refer to the next character ("a_24" refers only to the "2"), $[officename] Math refers to the entire number(s)/name(s)/text. If you want to put superscripts and subscripts in sequence, the expression can be written as follows: a_2{}^3 or a^3{}_2</paragraph>
56cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154260" xml-lang="en-US" l10n="U" oldref="15">To write tensors, <emph>$[officename] Math</emph> provides several options. In addition to the notation "R_i{}^{jk}{}_l", common in other applications, additional notations can be used, namely "R_i{}^jk{}_l" and "{{R_i}^jk}_l."</paragraph>
57cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147516" xml-lang="en-US" l10n="U" oldref="16">Super- and subscripts to the left of the base character can also be right-justified. To do this, the new commands "lsub" and "lsup" are used. Both commands have the same effect as "sub" and "sup", except that they are left of the base character. See also "a lsub 2 lsup 3."</paragraph>
58cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154276" xml-lang="en-US" l10n="U" oldref="17">The rules governing unambiguity and the necessity of using brackets remain the same. In principle, this can be achieved with <emph>{}_2^3 a</emph>.</paragraph>
59cdf0e10cSrcweir<paragraph role="note" id="par_id3152961" xml-lang="en-US" l10n="U" oldref="18">The commands "sub" and "sup" are also available as "rsub" and "rsup".</paragraph>
60cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3158437" xml-lang="en-US" l10n="U" oldref="20">Using the "csub" and "csup" commands, you can write super- and subscripts directly above or below a character. An example is "a csub y csup x". Combinations of indexes and exponents together are also possible: "abc_1^2 lsub 3 lsup 4 csub 55555 csup 66666."</paragraph>
61cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154570" xml-lang="en-US" l10n="U" oldref="21">Super- and subscripts can be attached to most unary and binary operators. Two examples: "a div_2 b a&lt;csub n b +_2 h" and "a toward csub f b x toward csup f y."</paragraph>
62cdf0e10cSrcweir<paragraph role="warning" id="par_id3155904" xml-lang="en-US" l10n="CHG" oldref="19">Be sure to also enter all spaces between characters when entering these examples into the <emph>Commands</emph> window.</paragraph>
63cdf0e10cSrcweir</body>
64cdf0e10cSrcweir</helpdocument>
65