Skip to content

A simple .tex to .md file converter I wrote using Python for CS 70 homework.

Notifications You must be signed in to change notification settings

jinkang-0/MarkdownFromTex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Markdown From Tex

A short Python script I wrote to convert the .tex homework files in CS 70 into workable markdown files (primarily for Obsidian view).

I'll try to keep this updated to make it compatible with other tex commands when they show up on the homework in the future.

Requirements:

  • Have Python installed (tested in Python 3.10.11)

Instructions for use:

  1. Download converter.py
  2. Put the .tex file in the same folder as converter.py
  3. In the terminal, run python converter.py
    • Alternatively: Type python converter.py <file_path> in the terminal, replacing <file_path> with the relative file path to the .tex file
  4. The .md file will be outputted and ready to go in the same folder

Note: Feel free to edit how the files are parsed and formatted at the bottom of converter.py

Note 2: I'd also recommend the VS Code Extension LaTeX workshop for working with TeX files

About

A simple .tex to .md file converter I wrote using Python for CS 70 homework.

Topics

Resources

Stars

Watchers

Forks

Languages