Difference between revisions of "Documentation/FAQ/Formula/How do I change the font of a subformula?"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
Line 8: Line 8:
 
You can use one of the following font attributes:
 
You can use one of the following font attributes:
  
*<font color="brown">'''italic a '''</font>typesets ''' a '''in italic shape.
+
*<font color="brown">'''italic a'''</font> typesets ''' a '''in italic shape.
*so does<font color="brown">''' ital a'''</font>.
+
*so does <font color="brown">'''ital a'''</font>.
*<font color="brown">'''nitalic a '''</font>typesets ''' a ''' in upright shape (abbreviation for not italic).
+
*<font color="brown">'''nitalic a'''</font> typesets ''' a ''' in upright shape (abbreviation for not italic).
*<font color="brown">'''bold a '''</font>typesets ''' a ''' in boldface.
+
*<font color="brown">'''bold a'''</font> typesets ''' a ''' in boldface.
*<font color="brown">'''nbold a '''</font>typesets ''' a ''' with normal weight (abbreviation for not bold).
+
*<font color="brown">'''nbold a'''</font> typesets ''' a ''' with normal weight (abbreviation for not bold).
  
  
Line 18: Line 18:
 
which are used as follows:
 
which are used as follows:
  
*<font color="brown">'''font serif a '''</font>typesets ''' a ''' in a serifed font, usually Times.
+
*<font color="brown">'''font serif a'''</font> typesets ''' a ''' in a serif font, usually Times.
*<font color="brown">'''font sans a '''</font>typesets ''' a ''' in a sans serif font, usually Helvetica or Arial.
+
*<font color="brown">'''font sans a'''</font> typesets ''' a ''' in a sans serif font, usually Helvetica or Arial.
*<font color="brown">'''font fixed a '''</font>typesets ''' a ''' in a fixed-width font, usually Courier.
+
*<font color="brown">'''font fixed a'''</font> typesets ''' a ''' in a fixed-width font, usually Courier.
  
  
Font attributes can be combined as in this example:
+
Font attributes can be combined, as in this example:
  
Enter<font color="brown">''' bold font sans A '''</font>to get <B><FONT FACE="Arial, sans-serif">A</FONT></B>.
+
Enter <font color="brown">'''bold font sans A'''</font> to get <B><FONT FACE="Arial, sans-serif">A</FONT></B>.
  
  
You can apply font attributes to an entire subformula if you group it with<font color="brown">''' { } '''</font>or other brackets. Example:
+
You can apply font attributes to an entire subformula if you group it with <font color="brown">'''{ }'''</font> or other brackets. Example:
  
Enter<font color="brown">''' a b bold {c d} e '''</font>to typeset ab<B>cd</B>e.
+
Enter <font color="brown">''' b bold {c d} e'''</font> to typeset ab<B>cd</B>e.
  
  
 
When several font attributes are applied, the innermost takes precedence as shown in this example:
 
When several font attributes are applied, the innermost takes precedence as shown in this example:
  
Enter<font color="brown">''' bold {a b nbold c d} '''</font>to get <B>ab</B>c<B>d</B>.
+
Enter <font color="brown">'''bold {a b nbold c d}'''</font> to get <B>ab</B>c<B>d</B>.
  
  
 
{{SeeAlso|EN|
 
{{SeeAlso|EN|
* [[Documentation/FAQ/Formula/How do I change the fonts used in my formula?|How do I change the fonts used in my formula?]] to change the fonts used in ''Math'' }}  
+
* [[Documentation/FAQ/Formula/How do I change the fonts used in my formula?|How do I change the fonts used in my formula?]] to change the fonts used in ''Math''}}  
 
<section end=answer/>
 
<section end=answer/>
  
 
[[Category:Documentation/FAQ/Formula]]
 
[[Category:Documentation/FAQ/Formula]]

Latest revision as of 13:27, 7 October 2021


How do I change the font of a subformula?


You can use one of the following font attributes:

  • italic a typesets a in italic shape.
  • so does ital a.
  • nitalic a typesets a in upright shape (abbreviation for not italic).
  • bold a typesets a in boldface.
  • nbold a typesets a with normal weight (abbreviation for not bold).


In addition Math uses a set of three generic font families, which are used as follows:

  • font serif a typesets a in a serif font, usually Times.
  • font sans a typesets a in a sans serif font, usually Helvetica or Arial.
  • font fixed a typesets a in a fixed-width font, usually Courier.


Font attributes can be combined, as in this example:

Enter bold font sans A to get A.


You can apply font attributes to an entire subformula if you group it with { } or other brackets. Example:

Enter b bold {c d} e to typeset abcde.


When several font attributes are applied, the innermost takes precedence as shown in this example:

Enter bold {a b nbold c d} to get abcd.




See Also


Personal tools