-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from Mathpix/dev/olga/4417-support-underline-…
…in-text-mode-v3 PR into master from dev/olga/4417-support-underline-in-text-mode-v3
- Loading branch information
Showing
25 changed files
with
881 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
## Underline, bold and italize text | ||
|
||
We can print bold, italicized, and underlined text using the commands `\textbf`, `\textit`, and `\underline`, respectively. | ||
|
||
For example: | ||
``` | ||
\textbf{Bold text} | ||
\textit{Italic text} | ||
\underline{Underlined text} | ||
``` | ||
|
||
This example produces the following output: | ||
|
||
![](images/latex-underline/latex-underline_01.png) | ||
|
||
|
||
## Double underline | ||
|
||
Double underlining text can be done easily using the command `\underline` twice or using the command `\uuline`: | ||
|
||
``` | ||
\underline{\underline{Double underlined text!}} | ||
\uuline{Double underlined text!} | ||
``` | ||
|
||
produces the output: | ||
|
||
![](images/latex-underline/latex-underline_02.png) | ||
|
||
|
||
## Wavy underlined text | ||
|
||
We can easily create wavy underlined text using the command `\uwave{}`. Here is an illustrative example: | ||
|
||
``` | ||
\uwave{This text is underlined with a wavy line!} | ||
``` | ||
|
||
which produces the following result: | ||
|
||
![](images/latex-underline/latex-underline_03.png) | ||
|
||
|
||
## Strikethrough text | ||
|
||
The command `\sout{}` which can be used to strikethrough text. Check this example: | ||
|
||
``` | ||
\sout{Text with a horizontal line through its center!} | ||
``` | ||
|
||
compiling this code yields: | ||
|
||
![](images/latex-underline/latex-underline_04.png) | ||
|
||
|
||
## Slash through letter | ||
|
||
The command `\xout{}` can be used to create a hatching effect through text. Here is a basic usage of this command: | ||
|
||
``` | ||
\xout{Text with hatching pattern!} | ||
``` | ||
|
||
This code yields the following: | ||
|
||
![](images/latex-underline/latex-underline_05.png) | ||
|
||
|
||
## Dashed and dotted underline | ||
|
||
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: | ||
|
||
``` | ||
\dashuline{Dashed Underline} | ||
\dotuline{Dotted Underline} | ||
``` | ||
|
||
which produces the following output: | ||
|
||
![](images/latex-underline/latex-underline_06.png) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { RuleInline } from 'markdown-it'; | ||
export declare const textUnderline: RuleInline; | ||
export declare const textOut: RuleInline; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export declare const renderUnderlineText: (tokens: any, idx: any, options: any, env: any, slf: any) => string; | ||
export declare const renderUnderlineOpen: (tokens: any, idx: any, options: any, env: any, slf: any) => string; | ||
export declare const renderUnderlineClose: (tokens: any, idx: any, options: any, env: any, slf: any) => string; | ||
export declare const renderOutOpen: (tokens: any, idx: any, options: any, env: any, slf: any) => string; | ||
export declare const renderOutText: (tokens: any, idx: any, options: any, env: any, slf: any) => any; |
Oops, something went wrong.