Skip to content

Inserting/escaping special characters in text #1182

Answered by cderv
arnaudgallou asked this question in Q&A
Discussion options

You must be logged in to vote

Special character needs to be considered depending how you insert them.

When you are writing between $ $, you'll right them in an inline math environment where \geq is defined. If you want to add the mathematical symbol greater than or equal, it seems the right play. You could also write $4 \geq 2$. with 4$\geq$2 this is not identified as an equation, and \geq is not recognized. hence not shown in output.

When you are writing in body, you are writing Markdown syntax. So if you want to use LaTeX directly to insert some symbol, you need to tell Pandoc to parse the content as raw LaTeX. For example, inserting Unicode character in LaTeX can work using XeLaTeX engine and special \char comment …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@arnaudgallou
Comment options

@cderv
Comment options

Answer selected by arnaudgallou
Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

@cderv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants