Matnlarga ishlov berish LaTex text Formatting


Underline and Strikethrough


Download 0.75 Mb.
bet6/18
Sana09.04.2023
Hajmi0.75 Mb.
#1344635
1   2   3   4   5   6   7   8   9   ...   18
Bog'liq
Matnlarga ishlov berish

Underline and Strikethrough
Underlining a text is possible with the simple \underline command in LaTeX, but like the case changing commands, it comes with its problems. A long piece of text in the scope of \underline command will not break properly to the next line. To solve this problem, we can use the ulem package . This package mainly changes the way \emph command works: instead of using italics, it emphasizes the text with underlining it. We can set it to not break the regular working scheme of \emph command by adding it with normalem option. This package introduces \uline command for making a text underlined. It also comes with six more different ways to differentiate a piece of text with strikes and lines: \uuline double-underlines a text, \uwave underlines a text with a wavy line, \sout creates a strikethrough text, \xout strikes the text with hatching, \dashuline underlines a text with a dashed line and \dotuline underlines a text with a dotted line. Below, the effects of these commands are shown.

\usepackage{ulem}
\begin{document}
\uline{Underlined}
\uuline{Double-Underlined}
\uwave{Wavy-Underlined}
\sout{Strikethrough}
\xout{Struck with Hatching}
\dashuline{Dashed Underline}
\dotuline{Dotted Underline}
\end{document}

Old Style Numbers
The default LaTeX font Computer Modern, and many other fonts come with two sets of numeral characters, the regular numbers and old style numbers. These old style numerals have different heights and depths from the standard ones. They are also known as medieval or lowercase figures. We can print these numbers by using \oldstylenums command. In the next example, we print two sets of numbers together.
...
1234567890
\oldstylenums{1234567890}
...

Summary

  • There are three font families to choose from: Serif Font Family (\textrm), Sans Serif Font Family (\textsf) and Monospaced Font Family (\texttt)

  • We can change the shape of the font using these commands: \textit for Italic, \textsl for Slanted and \textsc for Small Capitals. Slanted is a non-cursive version of Italic.

  • We can write in Bold by using \textbf command.

  • Bold-extra package lets the usage of bold characters in Monospaced Font Family and Small Capitals shape.

  • To emphasize text we can use \emph command, which prints italic text to emphasize in upright text and upright text to emphasize in italic text.

  • Textcase package helps changing the letter case without a problem. It comes with \MakeTextUppercase and \MakeTextLowercase commands.

  • To underline a text, we can use \underline command.

  • Ulem package haves more options to underline, such as double underline (\uuline) and dashed underline (\dashuline). It also has a strikethrough option (\sout).

  • LaTeX also has an \oldstylenums command, which will print old style numerals.


Download 0.75 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   18




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling