mathpix-markdown-it 1.2.11 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,6 +104,8 @@ Auto increment counter to 8 \footnote{text should be 8}
104
104
 
105
105
  ![](doc/images/latex-footnotes/latex-footnotes_01.png)
106
106
 
107
+ - [Latex underline](doc/latex-underline.md)
108
+
107
109
  # What is mathpix-markdown-it?
108
110
 
109
111
  **mathpix-markdown-it** is an open source implementation of the mathpix-markdown spec written in Typescript.
@@ -0,0 +1,83 @@
1
+ ## Underline, bold and italize text
2
+
3
+ We can print bold, italicized, and underlined text using the commands `\textbf`, `\textit`, and `\underline`, respectively.
4
+
5
+ For example:
6
+ ```
7
+ \textbf{Bold text}
8
+ \textit{Italic text}
9
+ \underline{Underlined text}
10
+ ```
11
+
12
+ This example produces the following output:
13
+
14
+ ![](images/latex-underline/latex-underline_01.png)
15
+
16
+
17
+ ## Double underline
18
+
19
+ Double underlining text can be done easily using the command `\underline` twice or using the command `\uuline`:
20
+
21
+ ```
22
+ \underline{\underline{Double underlined text!}}
23
+
24
+ \uuline{Double underlined text!}
25
+ ```
26
+
27
+ produces the output:
28
+
29
+ ![](images/latex-underline/latex-underline_02.png)
30
+
31
+
32
+ ## Wavy underlined text
33
+
34
+ We can easily create wavy underlined text using the command `\uwave{}`. Here is an illustrative example:
35
+
36
+ ```
37
+ \uwave{This text is underlined with a wavy line!}
38
+ ```
39
+
40
+ which produces the following result:
41
+
42
+ ![](images/latex-underline/latex-underline_03.png)
43
+
44
+
45
+ ## Strikethrough text
46
+
47
+ The command `\sout{}` which can be used to strikethrough text. Check this example:
48
+
49
+ ```
50
+ \sout{Text with a horizontal line through its center!}
51
+ ```
52
+
53
+ compiling this code yields:
54
+
55
+ ![](images/latex-underline/latex-underline_04.png)
56
+
57
+
58
+ ## Slash through letter
59
+
60
+ The command `\xout{}` can be used to create a hatching effect through text. Here is a basic usage of this command:
61
+
62
+ ```
63
+ \xout{Text with hatching pattern!}
64
+ ```
65
+
66
+ This code yields the following:
67
+
68
+ ![](images/latex-underline/latex-underline_05.png)
69
+
70
+
71
+ ## Dashed and dotted underline
72
+
73
+ The commands `\dashuline{}` and `\dotuline{}` as their names state can be used to create dashed and dotted lines under text respectively. Check the following code:
74
+
75
+ ```
76
+ \dashuline{Dashed Underline}
77
+
78
+ \dotuline{Dotted Underline}
79
+ ```
80
+
81
+ which produces the following output:
82
+
83
+ ![](images/latex-underline/latex-underline_06.png)