Using \( for starting a mathematical expression completes with ) rather than \), also quotation marks.
See original GitHub issueThe suggested formatting for mathematical expressions is \( ... \)
for inline expressions and \[ ... \]
for displays. However, LaTeX Workshop matches parentheses and brackets without respect to these rules, so typing in \(
will have it complete with \( ... )
, same with square brackets. It should probably match a \(
with a \)
at the end.
Also, left ticks, which in TeX are used for lefthand quotation marks, are automatically matched with apostrophes on the second half, as it should be, but if you insert a quote containing apostrophes inside
`` ...aasdf's... ''
,
they are removed from the end of the quote. I think this is a bug.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to write quotation marks in math environment? - TeX
To display items encased in single or double quotes while in math mode, it may be best to encase the item in question...
Read more >Brackets vs. Parentheses - Grammarist
Parentheses separate non-essential information from the sentence. Brackets indicate changes or comments within quoted material.
Read more >Mid-Sentence Punctuation Marks – The Simple Math of ...
Quotation marks are used (1) with direct quotes and (2) with the titles of shorter works. Remember that commas and periods always go...
Read more >A Guide to Writing Mathematics - UC Davis Computer Science
Mastering the ability to write clear mathematical explanations is important for non-mathematicians as well. As you continue taking math courses in college, you ......
Read more >U.S. Government Printing Office Style Manual - Punctuation
When matter in brackets makes more than one paragraph, start each paragraph ... formally any matter that forms a complete sentence, question, or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Open File > Preferences > User Snippets, select “LaTeX” in the dialog and a file named “latex.json” should open.
Paste the above snippet to the appropriate place inside the file and save. After that try typing the following inside a TeX file
--im
(which is my chosen prefix) and press tab. VSCode should now replace the prefix with\(...\)
.Unfortunately, the math mode pairing for
\(
is not supported by vscode. Specifically,won’t work. There can be some dirty hack like listening to user input and programatically add an addtional
\
. However, I am hesitated to do so since it can be against vscode’s design principle, and quality control can be a big issue. Though I will push a small fix on the pairing of ` and '. Further discussion is welcomed.