help3xsl/default.css                    |   10 ++
 help3xsl/online_transform.xsl           |   19 +++++
 source/text/smath/01/03090700.xhp       |    8 +-
 source/text/smath/01/03090901.xhp       |    2 
 source/text/smath/01/03090902.xhp       |    2 
 source/text/smath/01/03090903.xhp       |    2 
 source/text/smath/01/03090904.xhp       |    2 
 source/text/smath/01/03090905.xhp       |    2 
 source/text/smath/01/03090906.xhp       |    2 
 source/text/smath/01/03090907.xhp       |    2 
 source/text/smath/01/03090908.xhp       |    2 
 source/text/smath/01/03090909.xhp       |    2 
 source/text/smath/01/03090910.xhp       |    2 
 source/text/smath/01/03091100.xhp       |  108 +++++++++++++-------------------
 source/text/smath/01/03091200.xhp       |   16 ++--
 source/text/smath/guide/align.xhp       |    4 -
 source/text/smath/guide/attributes.xhp  |    4 -
 source/text/smath/guide/brackets.xhp    |    4 -
 source/text/smath/guide/comment.xhp     |    4 -
 source/text/smath/guide/limits.xhp      |    8 +-
 source/text/smath/guide/parentheses.xhp |    6 -
 source/text/smath/guide/text.xhp        |    4 -
 22 files changed, 110 insertions(+), 105 deletions(-)

New commits:
commit e6095165acb81b895d5671a4414faf7885a622ff
Author:     Olivier Hallot <olivier.hal...@libreoffice.org>
AuthorDate: Wed Dec 26 12:54:58 2018 -0200
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Wed Dec 26 22:15:20 2018 +0100

    Review code in help page and mute l10n when OK
    
    + Added "smathcode" role to render smath code paragraphs
    + let smath code samples be copied to clipboard.
    
    Change-Id: I580c162d0c77f51d0de817ca143a845abf56eca9
    Reviewed-on: https://gerrit.libreoffice.org/65621
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/help3xsl/default.css b/help3xsl/default.css
index 6cb76ce38..0870b7a1b 100644
--- a/help3xsl/default.css
+++ b/help3xsl/default.css
@@ -39,14 +39,15 @@ h5,
 h6,
 .listitem,
 .listitemintable,
-.tablecontent,
-.input {
+.tablecontent {
     font-family: -apple-system, system-ui, "Segoe UI", Roboto, Ubuntu, 
Cantarell, "Noto Sans", "DejaVu Sans", "Lucida Grande", "Helvetica Neue", 
Helvetica, Arial, sans-serif, FreeSerif, NanumGothic, "Noto Sans Tibetan", 
Taprom;
 }
 .input {
+    background-color: rgba(0,0,0,0.04);
     transition-property: background-color;
     transition-duration: 150ms;
     border-bottom: 1px dashed rgba(0,0,0,0.1);
+    font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida 
Sans Typewriter", "Courier New", Courier, Monaco, monospace;
 }
 [data-tooltip]{
   position:relative;
@@ -115,6 +116,11 @@ pre,
     padding: 1px 3px;
     font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida 
Sans Typewriter", "Courier New", Courier, Monaco, monospace;
 }
+.smathcode {
+    border-radius: 2px;
+    padding: 1px 3px;
+    font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida 
Sans Typewriter", "Courier New", Courier, Monaco, monospace;
+}
 .acronym {
     font-weight: bold;
 }
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index ad285480d..5fa01a773 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -538,7 +538,7 @@
             </xsl:call-template>
         </xsl:when>
 
-        <xsl:when test="contains(' note warning tip ',@role)">
+        <xsl:when test="@role='note' or @role='tip' or @role='warning'">
             <xsl:call-template name="insertnote">
                 <xsl:with-param name="type" select="@role" />
             </xsl:call-template>
@@ -552,6 +552,10 @@
             <xsl:value-of select="." />
         </xsl:when>
 
+        <xsl:when test="@role='smathcode'">
+            <p id="{@id}" class="smathcode"><span class="input" 
data-tooltip="{$ui_copyclip}"><xsl:apply-templates /></span></p>
+        </xsl:when>
+
         <xsl:when test="@role='logocode'">
             <xsl:call-template name="insertlogocode" />
         </xsl:when>
@@ -579,7 +583,7 @@
             </xsl:call-template>
         </xsl:when>
 
-        <xsl:when test="contains(' note warning tip ',@role)">
+        <xsl:when test="@role='note' or @role='tip' or @role='warning'">
             <xsl:call-template name="insertnote">
                 <xsl:with-param name="type" select="@role" />
             </xsl:call-template>
@@ -589,6 +593,17 @@
             <xsl:apply-templates />
         </xsl:when>
 
+        <xsl:when test="@role='bascode' or @role='pycode'">
+            <xsl:value-of select="." />
+        </xsl:when>
+
+        <xsl:when test="@role='smathcode'">
+            <p id="{@id}" class="smathcode"><span class="input" 
data-tooltip="{$ui_copyclip}"><xsl:apply-templates /></span></p>
+        </xsl:when>
+
+        <xsl:when test="@role='logocode'">
+            <xsl:call-template name="insertlogocode" />
+        </xsl:when>
         <xsl:otherwise>
             <xsl:call-template name="insertpara" />
         </xsl:otherwise>
diff --git a/source/text/smath/01/03090700.xhp 
b/source/text/smath/01/03090700.xhp
index e3afbb91f..b62ebb875 100644
--- a/source/text/smath/01/03090700.xhp
+++ b/source/text/smath/01/03090700.xhp
@@ -288,10 +288,10 @@
 </listitem>
 </list>
 <paragraph role="heading" id="hd_id8036133" xml-lang="en-US" level="3">To 
align using the "matrix" command</paragraph>
-<paragraph role="code" id="par_id5398419" xml-lang="en-US" 
localize="false">matrix{</paragraph>
-<paragraph role="code" id="par_id1456343" xml-lang="en-US" 
localize="false">alignr sin^2 x + cos^2 x#{}={}#alignl 1 ##</paragraph>
-<paragraph role="code" id="par_id4572588" xml-lang="en-US" 
localize="false">alignr cos^2 x #{}={} #alignl 1 - sin^2 x</paragraph>
-<paragraph role="code" id="par_id2879726" xml-lang="en-US" 
localize="false">}</paragraph>
+<paragraph role="smathcode" id="par_id5398419" xml-lang="en-US" 
localize="false">matrix{</paragraph>
+<paragraph role="smathcode" id="par_id1456343" xml-lang="en-US" 
localize="false">alignr sin^2 x + cos^2 x#{}={}#alignl 1 ##</paragraph>
+<paragraph role="smathcode" id="par_id4572588" xml-lang="en-US" 
localize="false">alignr cos^2 x #{}={} #alignl 1 - sin^2 x</paragraph>
+<paragraph role="smathcode" id="par_id2879726" xml-lang="en-US" 
localize="false">}</paragraph>
 <paragraph role="heading" id="par_idN10F70" xml-lang="en-US" 
level="3">Aligning to the left</paragraph>
 <paragraph role="paragraph" id="par_id3149645" xml-lang="en-US">If a line or 
an expression begins with text, it is aligned on the left by default. You can 
change this with any of the <emph>align</emph> commands. An example is 
<emph>stack{a+b-c*d#alignr "text"}</emph>, where "text" appears aligned to the 
right. Note that text must always be surrounded by quotation marks.</paragraph>
 <paragraph role="paragraph" id="par_id3149966" xml-lang="en-US">The standard 
centralized formulas can be aligned to the left without using the <emph>Format 
- Align</emph> menu. To do this, place an empty character string, that is, the 
inverted commas which surround any text "", before the section of formula that 
you want to align. For example, typing <emph>"" a+b newline "" c+d</emph> 
results in both equations being left-aligned instead of centered.</paragraph>
diff --git a/source/text/smath/01/03090901.xhp 
b/source/text/smath/01/03090901.xhp
index 1d5125461..f127bf28f 100644
--- a/source/text/smath/01/03090901.xhp
+++ b/source/text/smath/01/03090901.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3153818" xml-lang="en-US">
     <image id="img_id3148870" src="media/helpimg/smzb1.png" width="95px" 
height="80px"><alt id="alt_id3148870" xml-lang="en-US">Symbols with 
Indices</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3150051" xml-lang="en-US" 
localize="false"><item type="input">D_mn^ size /2 LEFT(3 OVER 2 
RIGHT)</item></paragraph>
+<paragraph role="smathcode" id="par_id3150051" xml-lang="en-US" 
localize="false">D_mn^ size /2 LEFT(3 OVER 2 RIGHT)</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090902.xhp 
b/source/text/smath/01/03090902.xhp
index 2ddd62693..7abcfb5a8 100644
--- a/source/text/smath/01/03090902.xhp
+++ b/source/text/smath/01/03090902.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3153912" xml-lang="en-US">
     <image id="img_id3149126" src="media/helpimg/smzb2.png" width="95px" 
height="80px"><alt id="alt_id3149126" xml-lang="en-US">Symbols with 
Indices</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3154766" xml-lang="en-US" 
localize="false"><item type="input">%SIGMA_g^{{}+{}}lsup 3</item></paragraph>
+<paragraph role="smathcode" id="par_id3154766" xml-lang="en-US" 
localize="false">%SIGMA_g^{{}+{}}lsup 3</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090903.xhp 
b/source/text/smath/01/03090903.xhp
index dd208fd5c..26b31aaab 100644
--- a/source/text/smath/01/03090903.xhp
+++ b/source/text/smath/01/03090903.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3148866" xml-lang="en-US">
     <image id="img_id3153246" src="media/helpimg/smzb3.png" width="175px" 
height="80px"><alt id="alt_id3153246" xml-lang="en-US">Symbols with 
Indices</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3153808" xml-lang="en-US" 
localize="false"><item type="input">%PHI^{i_1 i_2 dotsaxis i_n}_{k_1 k_2 
dotsaxis k_n}</item></paragraph>
+<paragraph role="smathcode" id="par_id3153808" xml-lang="en-US" 
localize="false">%PHI^{i_1 i_2 dotsaxis i_n}_{k_1 k_2 dotsaxis k_n}</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090904.xhp 
b/source/text/smath/01/03090904.xhp
index b8b5096e5..52468f2e4 100644
--- a/source/text/smath/01/03090904.xhp
+++ b/source/text/smath/01/03090904.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3153915" xml-lang="en-US">
     <image id="img_id3150213" src="media/helpimg/smzb5.png" width="550px" 
height="135px"><alt id="alt_id3150213" xml-lang="en-US">Matrix with varying 
font sizes</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3146965" xml-lang="en-US" 
localize="false"><item type="input">func G^{(%alpha" ," %beta)}_{ x_m x_n} = 
left[ matrix { arctan(%alpha) # arctan(%beta) ## x_m + x_n # x_m - x_n 
}right]</item> </paragraph>
+<paragraph role="smathcode" id="par_id3146965" xml-lang="en-US" 
localize="false">func G^{(%alpha" ," %beta)}_{ x_m x_n} = left[ matrix { 
arctan(%alpha) # arctan(%beta) ## x_m + x_n # x_m - x_n }right]</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090905.xhp 
b/source/text/smath/01/03090905.xhp
index 250cb876c..5d20c47de 100644
--- a/source/text/smath/01/03090905.xhp
+++ b/source/text/smath/01/03090905.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3153912" xml-lang="en-US">
     <image id="img_id3149126" src="media/helpimg/smzb4.png" width="345px" 
height="190px"><alt id="alt_id3149126" xml-lang="en-US">Matrix</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3153808" xml-lang="en-US" 
localize="false"><item type="input">font sans bold size *2 A 
=left[matrix{A_11#A_12#dotsaxis#A_{1n}##A_21#{} 
#{}#A_{2n}##dotsvert#{}#{}#dotsvert##A_{n1}#A_{n2}#dotsaxis#A_nn}right]</item> 
</paragraph>
+<paragraph role="smathcode" id="par_id3153808" xml-lang="en-US" 
localize="false">font sans bold size *2 A 
=left[matrix{A_11#A_12#dotsaxis#A_{1n}##A_21#{} 
#{}#A_{2n}##dotsvert#{}#{}#dotsvert##A_{n1}#A_{n2}#dotsaxis#A_nn}right]</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090906.xhp 
b/source/text/smath/01/03090906.xhp
index fc23f0ce6..2808349e6 100644
--- a/source/text/smath/01/03090906.xhp
+++ b/source/text/smath/01/03090906.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3148866" xml-lang="en-US">
     <image id="img_id3150210" src="media/helpimg/smzb6.png" width="300px" 
height="245px"><alt id="alt_id3150210" xml-lang="en-US">Matrix in bold 
font</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3154763" xml-lang="en-US" 
localize="false"><item type="input">bold { f(x", "y) = left [ stack { x + y 
over z + left lbrace matrix { 2 # 3 # 4 ## 4 # 5 # 6 ## 6 # 7 # 8} right rbrace 
# {y + sin (x)} over %alpha # z + y over g } right ]}</item></paragraph>
+<paragraph role="smathcode" id="par_id3154763" xml-lang="en-US" 
localize="false">bold { f(x", "y) = left [ stack { x + y over z + left lbrace 
matrix { 2 # 3 # 4 ## 4 # 5 # 6 ## 6 # 7 # 8} right rbrace # {y + sin (x)} over 
%alpha # z + y over g } right ]}</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090907.xhp 
b/source/text/smath/01/03090907.xhp
index 09edc9c6c..01efab1fc 100644
--- a/source/text/smath/01/03090907.xhp
+++ b/source/text/smath/01/03090907.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3153912" xml-lang="en-US">
     <image id="img_id3148871" src="media/helpimg/smzb7.png" width="255px" 
height="60px"><alt id="alt_id3148871" xml-lang="en-US">Functions</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3154764" xml-lang="en-US" 
localize="false"><item type="input">func f(x","y)={x sin x~ tan y} over {cos 
x}</item> </paragraph>
+<paragraph role="smathcode" id="par_id3154764" xml-lang="en-US" 
localize="false">func f(x","y)={x sin x~ tan y} over {cos x}</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090908.xhp 
b/source/text/smath/01/03090908.xhp
index f823c2de7..6b7e0077d 100644
--- a/source/text/smath/01/03090908.xhp
+++ b/source/text/smath/01/03090908.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3148870" xml-lang="en-US">
     <image id="img_id3153917" src="media/helpimg/smzb8.png" width="303px" 
height="83px"><alt id="alt_id3153917" xml-lang="en-US">Square Root</alt></image>
 </paragraph>
-<paragraph role="code" id="par_id3153914" xml-lang="en-US" 
localize="false"><item type="input">%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t 
over M_{(t=0)}-1}~"."</item></paragraph>
+<paragraph role="smathcode" id="par_id3153914" xml-lang="en-US" 
localize="false">%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t over 
M_{(t=0)}-1}~"."</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090909.xhp 
b/source/text/smath/01/03090909.xhp
index 7f4fae7a9..ef796e22d 100644
--- a/source/text/smath/01/03090909.xhp
+++ b/source/text/smath/01/03090909.xhp
@@ -42,6 +42,6 @@
 </section>
 <paragraph role="paragraph" id="par_id3151243" xml-lang="en-US">
     <image id="img_id3148871" src="media/helpimg/smzb9.png" width="300px" 
height="90px"><alt id="alt_id3148871" xml-lang="en-US">Integral and Sum Ranges, 
Font Size</alt></image></paragraph>
-<paragraph role="code" id="par_id3150052" xml-lang="en-US" 
localize="false"><item type="input">f(t)=int from size*1.5 0 to 1 
left[g(t')+sum from i=1 to N h_i(t')right]</item> </paragraph>
+<paragraph role="smathcode" id="par_id3150052" xml-lang="en-US" 
localize="false">f(t)=int from size*1.5 0 to 1 left[g(t')+sum from i=1 to N 
h_i(t')right]</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03090910.xhp 
b/source/text/smath/01/03090910.xhp
index 96e0feff3..65955e7b8 100644
--- a/source/text/smath/01/03090910.xhp
+++ b/source/text/smath/01/03090910.xhp
@@ -37,6 +37,6 @@
 <paragraph role="paragraph" id="par_id3148703" xml-lang="en-US">
 <image id="img_id3151242" src="media/helpimg/smzb10.png" width="295px" 
height="40px"><alt id="alt_id3151242" xml-lang="en-US">Icon</alt>
        </image></paragraph>
-<paragraph role="code" id="par_id3150048" xml-lang="en-US" 
localize="false"><item type="input">%rho(font sans bold q","%omega) = int func 
e^{i %omega t}%rho(font sans bold q","t)"d"t</item></paragraph>
+<paragraph role="smathcode" id="par_id3150048" xml-lang="en-US" 
localize="false">%rho(font sans bold q","%omega) = int func e^{i %omega 
t}%rho(font sans bold q","t)"d"t</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03091100.xhp 
b/source/text/smath/01/03091100.xhp
index 76fe0d0ac..310fb6175 100644
--- a/source/text/smath/01/03091100.xhp
+++ b/source/text/smath/01/03091100.xhp
@@ -29,121 +29,105 @@
 </topic>
 </meta>
 <body>
-<bookmark xml-lang="en-US" branch="index" 
id="bm_id3147341"><bookmark_value>brackets and grouping in $[officename] 
Math</bookmark_value>
-<bookmark_value>grouping and brackets in $[officename] Math</bookmark_value>
+<bookmark xml-lang="en-US" branch="index" id="bm_id3147341">
+    <bookmark_value>brackets and grouping in Math</bookmark_value>
+    <bookmark_value>grouping and brackets in Math</bookmark_value>
 </bookmark>
 <paragraph role="heading" id="hd_id3147341" xml-lang="en-US" level="1"><link 
href="text/smath/01/03091100.xhp" name="Brackets and Grouping">Brackets and 
Grouping</link></paragraph>
-<paragraph role="paragraph" id="par_id3150342" xml-lang="en-US">Note: the 
quotation marks in the examples are used to emphasize text and do not belong to 
the content of the formulas and commands.</paragraph>
+<paragraph role="note" id="par_id3150342" xml-lang="en-US">The quotation marks 
in the examples are used to emphasize text and do not belong to the content of 
the formulas and commands.</paragraph>
 <paragraph role="warning" id="par_id3146962" xml-lang="en-US">When typing 
example formulas into the <emph>Commands</emph> window, note that spaces are 
often required for correct structure.</paragraph>
-<paragraph role="paragraph" id="par_id3149054" xml-lang="en-US">Braces "{}" 
are used to group expressions together to form one new expression. For example, 
"sqrt {x * y}" is the square root of the entire product x*y, while "sqrt x * y" 
is the square root of x multiplied by y. Braces do not require an extra 
space.</paragraph>
+<paragraph role="paragraph" id="par_id3149054" xml-lang="en-US">Braces "{}" 
are used to group expressions together to form one new expression. For example, 
<input>sqrt {x * y}</input> is the square root of the entire product x*y, while 
<input>sqrt x * y</input> is the square root of x multiplied by y. Braces do 
not require an extra space.</paragraph>
 <paragraph role="paragraph" id="par_id3151392" xml-lang="en-US">Set brackets 
were previously inserted in the Elements pane or directly in the Commands 
window as "left lbrace &lt;?&gt; right rbrace". Now, a left and a right set 
bracket can also be inserted using "lbrace" and "rbrace", with or without 
wildcards.</paragraph>
-<paragraph role="paragraph" id="par_id3147403" xml-lang="en-US">There are a 
total of eight (8) different types of brackets available. The "ceil" and 
"floor" brackets are often used for rounding up or down the argument to the 
next integer: "lceil -3.7 rceil = -3" or "lfloor -3.7 rfloor = -4".</paragraph>
-<paragraph role="paragraph" id="par_id3146320" xml-lang="en-US">Operator 
brackets, also known as Bra-kets (angle brackets with a vertical line in 
between), are common in Physics notation: "langle a mline b rangle" or "langle 
a mline b mline c over d mline e rangle". The height and positioning of the 
vertical lines always corresponds exactly to the enclosing brackets.</paragraph>
+<paragraph role="paragraph" id="par_id3147403" xml-lang="en-US">There are a 
total of eight (8) different types of brackets available. The "ceil" and 
"floor" brackets are often used for rounding up or down the argument to the 
next integer: <input>lceil -3.7 rceil = -3</input> or <input>lfloor -3.7 rfloor 
= -4</input>.</paragraph>
+<paragraph role="paragraph" id="par_id3146320" xml-lang="en-US">Operator 
brackets, also known as Bra-kets (angle brackets with a vertical line in 
between), are common in Physics notation: <input>langle a mline b 
rangle</input> or <input>langle a mline b mline c over d mline e 
rangle</input>. The height and positioning of the vertical lines always 
corresponds exactly to the enclosing brackets.</paragraph>
 <paragraph role="paragraph" id="par_id3157870" xml-lang="en-US">All brackets 
may only be used in pairs. The brackets have some common 
characteristics:</paragraph>
 <paragraph role="paragraph" id="par_id3155761" xml-lang="en-US">All types of 
brackets have the same grouping function as described for "{}" 
brackets.</paragraph>
 <paragraph role="paragraph" id="par_id3145590" xml-lang="en-US">All types of 
brackets, including those that are visible, permit empty group definition. The 
enclosed expression may therefore be empty.</paragraph>
-<paragraph role="paragraph" id="par_id3154562" xml-lang="en-US">Brackets do 
not adjust their size to the enclosed expression. For example, if you want "( a 
over b )" with a bracket size adjusted to a and b you must insert "left" and 
"right". Entering "left(a over b right)" produces appropriate sizing. If, 
however, the brackets themselves are part of the expression whose size is 
changed, they are included the size change: "size 3(a over b)" and "size 12(a 
over b)". The sizing of the bracket-to-expression ratio does not change in any 
way.</paragraph>
+<paragraph role="paragraph" id="par_id3154562" xml-lang="en-US">Brackets do 
not adjust their size to the enclosed expression. For example, if you want 
<input>( a over b )</input> with a bracket size adjusted to a and b you must 
insert "left" and "right". Entering <input>left(a over b right)</input> 
produces appropriate sizing. If, however, the brackets themselves are part of 
the expression whose size is changed, they are included the size change: 
<input>size 3(a over b)</input> and <input>size 12(a over b)</input>. The 
sizing of the bracket-to-expression ratio does not change in any 
way.</paragraph>
 <paragraph role="paragraph" id="par_id3153002" xml-lang="en-US">Since "left" 
and "right" ensure unique assignment of the brackets, every single bracket can 
be used as an argument for these two commands, even placing right brackets on 
the left side, or left brackets on the right. Instead of a bracket you can use 
the "none" qualifier, which means that there is no bracket shown and that there 
is no space reserved for a bracket. Using this, you can create the following 
expressions:</paragraph>
 <list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3150014" xml-lang="en-US">left lbrace x right 
none</paragraph>
+<paragraph role="smathcode" id="par_id3150014" xml-lang="en-US" 
localize="false">left lbrace x right none</paragraph>
 </listitem>
 <listitem>
-<paragraph role="code" id="par_id3149877" xml-lang="en-US">left [ x right 
)</paragraph>
+    <paragraph role="smathcode" id="par_id3149877" xml-lang="en-US" 
localize="false">left [ x right )</paragraph>
 </listitem>
 <listitem>
-<paragraph role="code" id="par_id3145241" xml-lang="en-US">left ] x right 
[</paragraph>
+    <paragraph role="smathcode" id="par_id3145241" xml-lang="en-US" 
localize="false">left ] x right [</paragraph>
 </listitem>
 <listitem>
-<paragraph role="code" id="par_id3156060" xml-lang="en-US">left rangle x right 
lfloor</paragraph>
+    <paragraph role="smathcode" id="par_id3156060" xml-lang="en-US" 
localize="false">left rangle x right lfloor</paragraph>
 </listitem>
 </list>
 <paragraph role="paragraph" id="par_id3150935" xml-lang="en-US">The same rules 
apply to "left" and "right" as to the other brackets: they also work as group 
builders and may enclose empty expressions.</paragraph>
 <paragraph role="paragraph" id="par_id3149030" xml-lang="en-US">The 
combination of mismatched brackets, single brackets and repositioned left and 
right brackets occurs often in mathematical formulas. The following is a 
formula that will create an error when typed:</paragraph>
 <list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3155989" xml-lang="en-US">[2, 3) - right open 
interval</paragraph>
+<paragraph role="smathcode" id="par_id3155989" xml-lang="en-US">[2, 3) - right 
open interval</paragraph>
 </listitem>
 </list>
-<paragraph role="paragraph" id="par_id3147169" xml-lang="en-US">Using "left" 
and "right" makes the above expression valid in $[officename] Math: "left [2, 3 
right )". However, the brackets do not have any fixed size because they adjust 
to the argument. Setting a single bracket is a bit cumbersome. Therefore, there 
you can display single brackets with a fixed size by placing a "\" (backslash) 
in front of normal brackets. These brackets then act like any other symbol and 
no longer have the special functionality of brackets; that is they do not work 
as group builders and their orientation corresponds to that of other symbols. 
See "size *2 \langle x \rangle" and "size *2 langle x rangle".</paragraph>
+<paragraph role="paragraph" id="par_id3147169" xml-lang="en-US">Using "left" 
and "right" makes the above expression valid in $[officename] Math: <input>left 
[2, 3 right )</input>. However, the brackets do not have any fixed size because 
they adjust to the argument. Setting a single bracket is a bit cumbersome. 
Therefore, there you can display single brackets with a fixed size by placing a 
"\" (backslash) in front of normal brackets. These brackets then act like any 
other symbol and no longer have the special functionality of brackets; that is 
they do not work as group builders and their orientation corresponds to that of 
other symbols. See <input>size *2 \langle x \rangle</input> and <input>size *2 
langle x rangle</input>.</paragraph>
 <paragraph role="paragraph" id="par_id3153720" xml-lang="en-US">The complete 
overview is as follows</paragraph>
 <list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3149715" xml-lang="en-US">\{ or \lbrace, \} 
or \rbrace</paragraph>
+<paragraph role="smathcode" id="par_id3149715" xml-lang="en-US">\{ or \lbrace, 
\} or \rbrace</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3150756" xml-lang="en-US">\(, \)</paragraph>
+    <paragraph role="smathcode" id="par_id3150756" xml-lang="en-US" 
localize="false">\(, \)</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3145207" xml-lang="en-US">\[, \]</paragraph>
+    <paragraph role="smathcode" id="par_id3145207" xml-lang="en-US" 
localize="false">\[, \]</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3153153" xml-lang="en-US">\langle, 
\rangle</paragraph>
+    <paragraph role="smathcode" id="par_id3153153" xml-lang="en-US" 
localize="false">\langle, \rangle</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3150263" xml-lang="en-US">\lceil, 
\rceil</paragraph>
+    <paragraph role="smathcode" id="par_id3150263" xml-lang="en-US" 
localize="false">\lceil, \rceil</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3147252" xml-lang="en-US">\lfloor, 
\rfloor</paragraph>
+    <paragraph role="smathcode" id="par_id3147252" xml-lang="en-US" 
localize="false">\lfloor, \rfloor</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3154690" xml-lang="en-US">\lline, 
\rline</paragraph>
+    <paragraph role="smathcode" id="par_id3154690" xml-lang="en-US" 
localize="false">\lline, \rline</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="code" id="par_id3145414" xml-lang="en-US">\ldline, 
\rdline</paragraph>
+    <paragraph role="smathcode" id="par_id3145414" xml-lang="en-US" 
localize="false">\ldline, \rdline</paragraph>
 </listitem>
 </list>
 <paragraph role="paragraph" id="par_id3147514" xml-lang="en-US">In this way, 
intervals like the one above can be built in <emph>$[officename] Math</emph> 
without any problems: \[2", "3\) or "\]2", "3\[ (Attention: These quotation 
marks are part of the entry.)</paragraph>
 <paragraph role="note" id="par_id3153532" xml-lang="en-US">Please note that 
the quotation marks must be entered and can be obtained with 
<emph>Shift+2</emph> and not with typographical quotation marks. Generally, 
punctuation marks (like the comma in this case) are set as text. Although it is 
also possible to type "\[2,~3\)" the above option is preferable. In the 
previous example, "fixed size" always describes a bracket size dependent on the 
font size used.</paragraph>
-<paragraph role="paragraph" id="par_id3153674" xml-lang="en-US">Nesting groups 
within each other is relatively problem-free. In the formula hat "{a + b}" the 
"hat" is displayed simply over the center of "{a + b}". Also, "color red lceil 
a rceil" and "grave hat langle x * y rangle" work as expected. The result of 
the latter can be compared to "grave {hat langle x * y rangle}". These 
attributes do not compete, but rather can be combined.</paragraph>
-<paragraph role="paragraph" id="par_id3147526" xml-lang="en-US">This differs 
slightly for competing or mutually influencing attributes. This is often the 
case with font attributes. For example, which color does the b have in "color 
yellow color red (a + color green b)", or which size does it have in "size *4 
(a + size /2 b)"? Given a base size of 12, does it have the size 48, 6 or even 
24 (which could be seen as a combination)? The following are basic resolution 
rules, which will be followed consistently in the future. In general, the rules 
apply to all group operations. This only has a visible effect on the font 
attributes, like "bold", "ital", "phantom", "size", "color" and 
"font":</paragraph>
+<paragraph role="paragraph" id="par_id3153674" xml-lang="en-US">Nesting groups 
within each other is relatively problem-free. In the formula <input>hat "{a + 
b}"</input>  the "hat" is displayed simply over the center of "{a + b}". Also, 
<input>color red lceil a rceil</input> and <input>grave hat langle x * y 
rangle</input>  work as expected. The result of the latter can be compared to 
<input>grave {hat langle x * y rangle}</input>. These attributes do not 
compete, but rather can be combined.</paragraph>
+<paragraph role="paragraph" id="par_id3147526" xml-lang="en-US">This differs 
slightly for competing or mutually influencing attributes. This is often the 
case with font attributes. For example, which color does the b have in 
<input>color yellow color red (a + color green b)</input>, or which size does 
it have in <input>size *4 (a + size /2 b)</input>? Given a base size of 12, 
does it have the size 48, 6 or even 24 (which could be seen as a combination)? 
The following are basic resolution rules, which will be followed consistently 
in the future. In general, the rules apply to all group operations. This only 
has a visible effect on the font attributes, like "bold", "ital", "phantom", 
"size", "color" and "font":</paragraph>
 <list type="unordered">
 <listitem>
-<paragraph role="listitem" id="par_id3152952" xml-lang="en-US">Group 
operations in sequence are treated as if every single operation is enclosed by 
braces. They are nested, and in every level there can be no more than one 
operation. Here is an example of a formula with many group operations: "size 12 
color red font sans size -5 (a + size 8 b)" like "{size 12{color red{font 
sans{size -5 (a + {size 8 b})}}}}".</paragraph>
+    <paragraph role="listitem" id="par_id3152952" xml-lang="en-US">Group 
operations in sequence are treated as if every single operation is enclosed by 
braces. They are nested, and in every level there can be no more than one 
operation. Here is an example of a formula with many group 
operations:</paragraph>
+    <paragraph role="smathcode" id="par_id541545830604094" 
localize="false">size 12 color red font sans size -5 (a + size 8 b)" like 
"{size 12{color red{font sans{size -5 (a + {size 8 b})}}}}.</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
 <paragraph role="listitem" id="par_id3158441" xml-lang="en-US">This example 
formula is then interpreted from left to right. The operations only affect its 
corresponding group (or expression). Operations further to the right "replace" 
or "combine themselves with" their predecessors.</paragraph>
 </listitem>
-</list>
-<list type="unordered">
 <listitem>
-<paragraph role="listitem" id="par_id3150994" xml-lang="en-US">A group 
operation does not have any effect on higher-level operations but rather 
affects only lower-level groups and expressions, including their brackets and 
super-/subscripts. For example, "a + size *2 (b * size -8 c_1)^2"</paragraph>
+    <paragraph role="listitem" id="par_id3150994" xml-lang="en-US">A group 
operation does not have any effect on higher-level operations but rather 
affects only lower-level groups and expressions, including their brackets and 
super-/subscripts. For example,</paragraph>
+    <paragraph role="smathcode" id="par_id501545831523103" localize="false">a 
+ size *2 (b * size -8 c_1)^2</paragraph>
 </listitem>
 </list>
-<paragraph role="note" id="par_id3154196" xml-lang="en-US">"color ..." and 
"font ..." as well as "size n" (n is a decimal) replace any preceding 
operations of the same type</paragraph>
-<paragraph role="note" id="par_id3154136" xml-lang="en-US">for "size +n", 
"size -n", "size *n", and "size /n" the effects of the operations are 
combined,</paragraph>
-<paragraph role="note" id="par_id3146934" xml-lang="en-US">"size *2 size -5 a" 
would be double the starting size minus 5</paragraph>
-<paragraph role="note" id="par_id3149297" xml-lang="en-US">"font sans ( a + 
font serif b)"</paragraph>
-<paragraph role="note" id="par_id3155174" xml-lang="en-US">"size *2 ( a + size 
/2 b )"</paragraph><comment>UFI: no more StarSymbol font. Removed the following 
paras</comment><comment>id="par_id3151327" For the StarSymbol Unicode font 
there are 2 exceptions to these rules:
-id="par_id3148998" It ignores "font" commands. Otherwise, there would often be 
different characters from the ones desired, for example, "font sans (a oplus 
b)" would then neither have brackets nor an "oplus".
-id="par_id3143281" The "ital" command is ignored, for example, "ital (a + b)". 
This happens because italicized mathematical symbols are uncommon, even in 
combination with text in italics.</comment><paragraph role="tip" 
id="par_id3154906" xml-lang="en-US">To change the size of a formula, use "size 
+" or -,*,/. Do not use "size n". These can easily be used in any context. This 
enables you to copy to other areas by using Copy and Paste, and the result 
remains the same. Furthermore, such expressions survive a change of base size 
in the menu better than when using "size n". If you use only "size *" and "size 
/" (for example, "size *1.24 a or size /0.86 a") the proportions remain 
intact.</paragraph>
-<paragraph role="tip" id="par_id3147587" xml-lang="en-US">Examples (with a 
base size of 12 and 50% for indexes):</paragraph>
-<paragraph role="tip" id="par_id3148734" xml-lang="en-US">Exactly identical 
proportions with "size 18 a_n" and "size *1.5 a_n".</paragraph>
-<paragraph role="tip" id="par_id3152766" xml-lang="en-US">This differs in 
different contexts: "x^{size 18 a_n}" and "x^{size *1.5 a_n}"</paragraph>
-<paragraph role="tip" id="par_id3157986" xml-lang="en-US">Examples with size 
+n for a comparison. They look identical:</paragraph>
-<paragraph role="codeintip" id="par_id3158001" xml-lang="en-US">a_{size 8 
n}</paragraph>
-<paragraph role="codeintip" id="par_id3147332" xml-lang="en-US">a_{size +2 
n}</paragraph>
-<paragraph role="codeintip" id="par_id3155143" xml-lang="en-US">a_{size *1.333 
n}</paragraph>
-<paragraph role="tip" id="par_id3147129" xml-lang="en-US">The following 
examples, however, do not look identical:</paragraph>
-<paragraph role="codeintip" id="par_id3147073" xml-lang="en-US">x^{a_{size 8 
n}}</paragraph>
-<paragraph role="codeintip" id="par_id3147086" xml-lang="en-US">x^{a_{size +2 
n}}</paragraph>
-<paragraph role="codeintip" id="par_id3154386" xml-lang="en-US">x^{a_{size 
*1.333 n}}</paragraph>
-<paragraph role="tip" id="par_id3153354" xml-lang="en-US">Note that all n here 
have different sizes. The size 1.333 results from 8/6, the desired size divided 
by the default index size 6. (Index size 50% with a base size of 12)</paragraph>
+<paragraph role="paragraph" id="par_id3154196" xml-lang="en-US">"color ..." 
and "font ..." as well as "size n" (n is a decimal) replace any preceding 
operations of the same type</paragraph>
+<paragraph role="paragraph" id="par_id3154136" xml-lang="en-US">for "size +n", 
"size -n", "size *n", and "size /n" the effects of the operations are 
combined,</paragraph>
+<paragraph role="paragraph" id="par_id3146934" xml-lang="en-US"><input>size *2 
size -5 a</input> would be double the starting size minus 5</paragraph>
+<paragraph role="smathcode" id="par_id3149297" xml-lang="en-US" 
localize="false">font sans ( a + font serif b)</paragraph>
+<paragraph role="smathcode" id="par_id3155174" xml-lang="en-US" 
localize="false">size *2 ( a + size /2 b )</paragraph>
+<paragraph role="tip" id="par_id3154906" xml-lang="en-US">To change the size 
of a formula, use "size +" or -,*,/. Do not use "size n". These can easily be 
used in any context. This enables you to copy to other areas by using Copy and 
Paste, and the result remains the same. Furthermore, such expressions survive a 
change of base size in the menu better than when using "size n". If you use 
only <input>size *</input> and <input>size /</input> (for example, <input>size 
*1.24 a</input> or <input>size /0.86 a</input>) the proportions remain 
intact.</paragraph>
+<paragraph role="paragraph" id="par_id3147587" xml-lang="en-US">Examples (with 
a base size of 12 and 50% for indexes):</paragraph>
+<paragraph role="paragraph" id="par_id3148734" xml-lang="en-US">Exactly 
identical proportions with <input>size 18 a_n</input> and <input>size *1.5 
a_n</input>.</paragraph>
+<paragraph role="paragraph" id="par_id3152766" xml-lang="en-US">This differs 
in different contexts: <input>x^{size 18 a_n}</input> and <input>x^{size *1.5 
a_n}</input></paragraph>
+<paragraph role="paragraph" id="par_id3157986" xml-lang="en-US">Examples with 
<input>size +n</input> for a comparison. They look identical:</paragraph>
+<paragraph role="smathcode" id="par_id3158001" xml-lang="en-US" 
localize="false">a_{size 8 n}</paragraph>
+<paragraph role="smathcode" id="par_id3147332" xml-lang="en-US" 
localize="false">a_{size +2 n}</paragraph>
+<paragraph role="smathcode" id="par_id3155143" xml-lang="en-US" 
localize="false">a_{size *1.333 n}</paragraph>
+<paragraph role="paragraph" id="par_id3147129" xml-lang="en-US">The following 
examples, however, do not look identical:</paragraph>
+<paragraph role="smathcode" id="par_id3147073" xml-lang="en-US" 
localize="false">x^{a_{size 8 n}}</paragraph>
+<paragraph role="smathcode" id="par_id3147086" xml-lang="en-US" 
localize="false">x^{a_{size +2 n}}</paragraph>
+<paragraph role="smathcode" id="par_id3154386" xml-lang="en-US" 
localize="false">x^{a_{size *1.333 n}}</paragraph>
+<paragraph role="note" id="par_id3153354" xml-lang="en-US">All n here have 
different sizes. The size 1.333 results from 8/6, the desired size divided by 
the default index size 6. (Index size 50% with a base size of 12)</paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/smath/01/03091200.xhp 
b/source/text/smath/01/03091200.xhp
index eff123cb8..f69b6bc38 100644
--- a/source/text/smath/01/03091200.xhp
+++ b/source/text/smath/01/03091200.xhp
@@ -18,7 +18,7 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  -->
-       
+
 <helpdocument version="1.0">
 <meta>
 <topic id="textsmath0103091200xml" indexer="include" status="PUBLISH">
@@ -37,14 +37,14 @@
 <paragraph role="paragraph" id="par_id3153730" xml-lang="en-US">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>
 <paragraph role="paragraph" id="par_id3149884" xml-lang="en-US">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>
 <paragraph role="paragraph" id="par_id3148387" xml-lang="en-US">However, it is 
no longer possible to use the following patterns</paragraph>
-<paragraph role="code" id="par_id3149029" xml-lang="en-US">a_2_3</paragraph>
-<paragraph role="code" id="par_id3155985" xml-lang="en-US">a^2^3</paragraph>
-<paragraph role="code" id="par_id3153923" xml-lang="en-US">a_2^3_4</paragraph>
+<paragraph role="smathcode" id="par_id3149029" xml-lang="en-US" 
localize="false">a_2_3</paragraph>
+<paragraph role="smathcode" id="par_id3155985" xml-lang="en-US" 
localize="false">a^2^3</paragraph>
+<paragraph role="smathcode" id="par_id3153923" xml-lang="en-US" 
localize="false">a_2^3_4</paragraph>
 <paragraph role="paragraph" id="par_id3153724" xml-lang="en-US">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>
-<paragraph role="code" id="par_id3151185" xml-lang="en-US">a_{2_3}</paragraph>
-<paragraph role="code" id="par_id3151272" xml-lang="en-US">a^{2^3}</paragraph>
-<paragraph role="code" id="par_id3156316" 
xml-lang="en-US">a_2^{3_4}</paragraph>
-<paragraph role="code" id="par_id3145207" 
xml-lang="en-US">a_{2^3}^{4_5}</paragraph>
+<paragraph role="smathcode" id="par_id3151185" xml-lang="en-US" 
localize="false">a_{2_3}</paragraph>
+<paragraph role="smathcode" id="par_id3151272" xml-lang="en-US" 
localize="false">a^{2^3}</paragraph>
+<paragraph role="smathcode" id="par_id3156316" xml-lang="en-US" 
localize="false">a_2^{3_4}</paragraph>
+<paragraph role="smathcode" id="par_id3145207" xml-lang="en-US" 
localize="false">a_{2^3}^{4_5}</paragraph>
 <paragraph role="tip" id="par_id3151173" xml-lang="en-US">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>
 <paragraph role="paragraph" id="par_id3154260" xml-lang="en-US">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>
 <paragraph role="paragraph" id="par_id3147516" xml-lang="en-US">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>
diff --git a/source/text/smath/guide/align.xhp 
b/source/text/smath/guide/align.xhp
index dded2a68c..318989973 100644
--- a/source/text/smath/guide/align.xhp
+++ b/source/text/smath/guide/align.xhp
@@ -38,9 +38,9 @@
 <paragraph role="heading" id="hd_id3154657" xml-lang="en-US" level="3">How do 
you align characters in $[officename] Math quickly and easily?</paragraph>
 <paragraph role="paragraph" id="par_id3150249" xml-lang="en-US">To accomplish 
this, you must define empty groups and character strings. They do not require 
any space, but carry information that helps in the alignment 
process.</paragraph>
 <paragraph role="paragraph" id="par_id3153912" xml-lang="en-US">To create 
empty groups, enter curly brackets <emph>{}</emph> in the Commands window. In 
the following example, the goal is to achieve a line break so that the plus 
signs are beneath one another, even though one less character is entered in the 
upper line:</paragraph>
-<paragraph role="code" id="par_id3153246" xml-lang="en-US" 
localize="false">a+a+a+{} newline {}{}{}{}{}a+a+a+a</paragraph>
+<paragraph role="smathcode" id="par_id3153246" xml-lang="en-US" 
localize="false">a+a+a+{} newline {}{}{}{}{}a+a+a+a</paragraph>
 <paragraph role="paragraph" id="par_id3143229" xml-lang="en-US">Empty 
character strings are a simple way to ensure that texts and formulas are 
left-aligned. They are defined using double inverted commas "" . Make sure you 
do not use any typographic inverted commas. Example:</paragraph>
-<paragraph role="code" id="par_id3153809" xml-lang="en-US">"A further 
example." newline a+b newline ""c-d</paragraph>
+<paragraph role="smathcode" id="par_id3153809" xml-lang="en-US">"A further 
example." newline a+b newline ""c-d</paragraph>
 <embed href="text/shared/00/00000004.xhp#related"/>
 <embed href="text/smath/guide/brackets.xhp#brackets"/>
 </body>
diff --git a/source/text/smath/guide/attributes.xhp 
b/source/text/smath/guide/attributes.xhp
index 1e0a489c7..d16e7afd4 100644
--- a/source/text/smath/guide/attributes.xhp
+++ b/source/text/smath/guide/attributes.xhp
@@ -41,8 +41,8 @@
 <paragraph role="heading" id="hd_id3154484" xml-lang="en-US" level="3">Can 
default formats in $[officename] Math be modified?</paragraph>
 <paragraph role="paragraph" id="par_id3148870" xml-lang="en-US">Some parts of 
formulas are always formatted bold or italic by default.</paragraph>
 <paragraph role="paragraph" id="par_id3150210" xml-lang="en-US">You can remove 
these attributes using "nbold" and "nitalic". Example:</paragraph>
-<paragraph role="code" id="par_id3143231" xml-lang="en-US" localize="false">a 
+ b</paragraph>
-<paragraph role="code" id="par_id3153810" xml-lang="en-US" 
localize="false">nitalic a + bold b.</paragraph>
+<paragraph role="smathcode" id="par_id3143231" xml-lang="en-US" 
localize="false">a + b</paragraph>
+<paragraph role="smathcode" id="par_id3153810" xml-lang="en-US" 
localize="false">nitalic a + bold b.</paragraph>
 <paragraph role="paragraph" id="par_id3149872" xml-lang="en-US">In the second 
formula, the a is not italic. The b is bold. You cannot change the plus sign by 
this method.</paragraph>
 <section id="relatedtopics">
 <embed href="text/smath/guide/main.xhp#main"/>
diff --git a/source/text/smath/guide/brackets.xhp 
b/source/text/smath/guide/brackets.xhp
index c5083fb58..a119b628d 100644
--- a/source/text/smath/guide/brackets.xhp
+++ b/source/text/smath/guide/brackets.xhp
@@ -40,9 +40,9 @@
 <paragraph role="heading" id="hd_id3154511" xml-lang="en-US" 
level="3">Inserting fractions into formulas</paragraph>
 <paragraph role="paragraph" id="par_id3146971" xml-lang="en-US">In the case of 
a fraction whose numerator and denominator consist of a product, a sum, and so 
on, the values that belong together must be bracketed together.</paragraph>
 <paragraph role="paragraph" id="par_id3149021" xml-lang="en-US">Use the 
following syntax:</paragraph>
-<paragraph role="code" id="par_id3083280" xml-lang="en-US" localize="false">{a 
+ c} over 2 = m</paragraph>
+<paragraph role="smathcode" id="par_id3083280" xml-lang="en-US" 
localize="false">{a + c} over 2 = m</paragraph>
 <paragraph role="paragraph" id="par_id3154703" xml-lang="en-US">or</paragraph>
-<paragraph role="code" id="par_id3150297" xml-lang="en-US" localize="false">m 
= {a + c} over 2</paragraph>
+<paragraph role="smathcode" id="par_id3150297" xml-lang="en-US" 
localize="false">m = {a + c} over 2</paragraph>
 <section id="relatedtopics">
 <embed href="text/smath/guide/parentheses.xhp#parentheses"/>
 </section>
diff --git a/source/text/smath/guide/comment.xhp 
b/source/text/smath/guide/comment.xhp
index 102fb94c4..60b84f695 100644
--- a/source/text/smath/guide/comment.xhp
+++ b/source/text/smath/guide/comment.xhp
@@ -18,7 +18,7 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  -->
-       
+
 <helpdocument version="1.0">
 <meta>
 <topic id="textsmathguidecommentxml" indexer="include" status="PUBLISH">
@@ -38,7 +38,7 @@
 <paragraph role="heading" id="hd_id3154657" xml-lang="en-US" level="3">How 
does one attach comments that don't appear in the document to a 
formula?</paragraph>
 <paragraph role="paragraph" id="par_id3149499" xml-lang="en-US">A comment 
begins with a double percent sign <emph>%%</emph>, and extends to the next 
line-end character (Enter key). Everything that lies in between is ignored and 
is not printed out. If there are percent signs in the text, they are treated as 
part of the text.</paragraph>
 <paragraph role="paragraph" id="par_idN105D0" 
xml-lang="en-US">Example:</paragraph>
-<paragraph role="code" id="par_idN105D3" xml-lang="en-US">a^2+b^2=c^2 %% 
Pythagorean theorem.</paragraph>
+<paragraph role="smathcode" id="par_idN105D3" xml-lang="en-US">a^2+b^2=c^2 %% 
Pythagorean theorem.</paragraph>
 <section id="relatedtopics">
 <embed href="text/smath/guide/main.xhp#main"/>
 </section>
diff --git a/source/text/smath/guide/limits.xhp 
b/source/text/smath/guide/limits.xhp
index 961baa296..c09fbc820 100644
--- a/source/text/smath/guide/limits.xhp
+++ b/source/text/smath/guide/limits.xhp
@@ -52,15 +52,15 @@
 </listitem>
 <listitem>
 <paragraph role="paragraph" id="par_id3304239" xml-lang="en-US">In the input 
window, the first placeholder or marker is selected, and you can start to enter 
the lower limit: </paragraph>
-<paragraph role="code" id="par_id8679158" xml-lang="en-US">k = 0</paragraph>
+<paragraph role="smathcode" id="par_id8679158" xml-lang="en-US" 
localize="false">k = 0</paragraph>
 </listitem>
 <listitem>
 <paragraph role="paragraph" id="par_id8471327" xml-lang="en-US">Press F4 to 
advance to the next marker, and enter the upper limit:</paragraph>
-<paragraph role="code" id="par_id4731894" xml-lang="en-US">n</paragraph>
+<paragraph role="smathcode" id="par_id4731894" xml-lang="en-US" 
localize="false">n</paragraph>
 </listitem>
 <listitem>
 <paragraph role="paragraph" id="par_id759300" xml-lang="en-US">Press F4 to 
advance to the next marker, and enter the summand:</paragraph>
-<paragraph role="code" id="par_id651875" xml-lang="en-US">s^k</paragraph>
+<paragraph role="smathcode" id="par_id651875" xml-lang="en-US" 
localize="false">s^k</paragraph>
 </listitem>
 <listitem>
 <paragraph role="paragraph" id="par_id6756187" xml-lang="en-US">Now the 
formula is complete. Click into your text document outside the formula to leave 
the formula editor.</paragraph>
@@ -73,7 +73,7 @@
 </listitem>
 <listitem>
 <paragraph role="paragraph" id="par_id1965697" xml-lang="en-US">Click in the 
input window and enter the following line:</paragraph>
-<paragraph role="code" id="par_id9004486" xml-lang="en-US" 
localize="false">int from{a} to{b} f(x)`dx</paragraph>
+<paragraph role="smathcode" id="par_id9004486" xml-lang="en-US" 
localize="false">int from{a} to{b} f(x)`dx</paragraph>
 <paragraph role="paragraph" id="par_id4651020" xml-lang="en-US">A small gap 
exists between f(x) and dx, which you can also enter using the Elements pane: 
select the <emph>Formats</emph> item from the list on the top, then the 
<emph>Small Gap</emph> icon.</paragraph>
 </listitem>
 </list>
diff --git a/source/text/smath/guide/parentheses.xhp 
b/source/text/smath/guide/parentheses.xhp
index 1291fc9f0..087d7df78 100644
--- a/source/text/smath/guide/parentheses.xhp
+++ b/source/text/smath/guide/parentheses.xhp
@@ -38,9 +38,9 @@
 </variable></paragraph>
 <paragraph role="heading" id="hd_id3150751" xml-lang="en-US" level="3">In 
<item type="productname">%PRODUCTNAME</item> Math, can brackets be shown 
separately so that the distance between them is freely definable?</paragraph>
 <paragraph role="paragraph" id="par_id3083281" xml-lang="en-US">You can set 
individual brackets using "left" and "right", but the distance between the 
brackets will not be fixed, as they adapt to the argument. Nevertheless, there 
is a way to display brackets so that the distance between them is fixed. To 
accomplish this, place a "\" (backslash) before the normal brackets. These 
brackets now behave like any other symbol and the alignment is the same as with 
other symbols:</paragraph>
-<paragraph role="code" id="par_id3155960" xml-lang="en-US" 
localize="false">left lbrace x right none</paragraph>
-<paragraph role="code" id="par_id3148489" xml-lang="en-US" 
localize="false">size *2 langle x rangle</paragraph>
-<paragraph role="code" id="par_id3150344" xml-lang="en-US" 
localize="false">size *2 { \langle x \rangle }</paragraph>
+<paragraph role="smathcode" id="par_id3155960" xml-lang="en-US" 
localize="false">left lbrace x right none</paragraph>
+<paragraph role="smathcode" id="par_id3148489" xml-lang="en-US" 
localize="false">size *2 langle x rangle</paragraph>
+<paragraph role="smathcode" id="par_id3150344" xml-lang="en-US" 
localize="false">size *2 { \langle x \rangle }</paragraph>
 <section id="relatedtopics">
 <embed href="text/smath/guide/brackets.xhp#brackets"/>
 </section>
diff --git a/source/text/smath/guide/text.xhp b/source/text/smath/guide/text.xhp
index ffd78bd43..9fee8c00c 100644
--- a/source/text/smath/guide/text.xhp
+++ b/source/text/smath/guide/text.xhp
@@ -39,10 +39,10 @@
 <paragraph role="paragraph" id="par_id337229" xml-lang="en-US">Some text 
strings get interpreted as operators automatically. Sometimes this is not what 
you want. If you want to write W<emph>*</emph> (a letter with a superscripted 
asterisk), the asterisk will be interpreted as a multiplication operator. 
Enclose the direct text within double quotes or add spaceholders.</paragraph>
 <paragraph role="paragraph" id="par_idN105D0" 
xml-lang="en-US">Examples:<comment>collected from several issues: i78812, 
i9167,  i21484, i25573</comment></paragraph>
 <paragraph role="paragraph" id="par_id521866" xml-lang="en-US">An imported 
MathType formula contains the following string</paragraph>
-<paragraph role="code" id="par_id9413739" xml-lang="en-US" localize="false">W 
rSup { size 8{*} }</paragraph>
+<paragraph role="smathcode" id="par_id9413739" xml-lang="en-US" 
localize="false">W rSup { size 8{*} }</paragraph>
 <paragraph role="paragraph" id="par_id755943" xml-lang="en-US">If you have set 
up Math to convert imported MathType formulas (in <switchinline 
select="sys"><caseinline select="MAC">%PRODUCTNAME - 
Preferences</caseinline><defaultinline>Tools - 
Options</defaultinline></switchinline> - Load/Save - Microsoft Office), you see 
the formula with a placeholder instead of the asterisk.</paragraph>
 <paragraph role="paragraph" id="par_id5988952" xml-lang="en-US">Change {*} to 
{} * {} as in the following formula:</paragraph>
-<paragraph role="code" id="par_id3304544" xml-lang="en-US" localize="false">W 
rSup { size 8{} * {} }</paragraph>
+<paragraph role="smathcode" id="par_id3304544" xml-lang="en-US" 
localize="false">W rSup { size 8{} * {} }</paragraph>
 <paragraph role="paragraph" id="par_id4941557" xml-lang="en-US">You can also 
use W^"*" to enter the character as direct text.</paragraph>
 <paragraph role="paragraph" id="par_id9961851" xml-lang="en-US">Some formulas 
start with an = sign. Use "=" to enter that character as direct 
text.</paragraph>
 <section id="relatedtopics">
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to