Improving Interoperability between Markdown and Latex

Use case or problem

End goal of note taking as a grad student/researcher is to - be able to reference it back or create report/articles. Articles/reports are usually created in latex for most of STEM community.

Being able to quickly convert markdown to latex (using some regex parser e.g. # becomes section, ## becomes subsection etc.) could be productive for scientific community in general.

Also, enhancing look and feel of rendered markdown as a latex document could also be great. e.g. rendering equation numbers, heading numbers, figure and table numbers could be useful.

Proposed solution

  1. Support for syntax to write blocks as definition, theorem & proof (similar to theorem are proposition, corollary, lemma etc) which can be easily extracted by regex to convert to latex.
  2. Captioning for figures, tables
  3. label and referencing for definition, theorem, proposition, figures, tables within obsidian. Syntax for defining labels and references that is different from current linking [[]] so that it can be recognised by regex and can be converted to appropriate latex syntax.

Current workaround (optional)

Currently I manually copy markdown to latex and do the modifications line by line. It does take fair amount of time.

Related feature requests (optional)

link to discussion From Markdown to VsCode (Latex) - best practices?

3 Likes

related LaTeX equations and sections labels with Markdown and Pandoc

moved to plugin ideas.

Found entire theses written in R-markdown published here - Chapter 4 Case studies | Cloudspotting. and corresponding markdown files are hosted on GitHub. It’d be nice if rmd style referencing of figures, tables and equations could be supported. maybe numbering etc won’t work in reading/live view but should be exportable!!

A figure/table is created with caption as below :

and referred within document as below :
Screenshot 2023-06-21 at 2.37.33 AM|100