Skip to content

Instantly share code, notes, and snippets.

View chunned's full-sized avatar

Hayden Nolan chunned

View GitHub Profile
@chunned
chunned / latex-aligner.py
Created March 24, 2022 20:33
Turns a normal LaTeX environment into an align environment.
import os
# MUST SET YOUR DIRECTORY ON THE FOLLOWING LINE - i.e. "C:\\Users\\User1\\Documents"
DIRECTORY = ""
def getFileNames():
filelist = [] # List of files that we will work on is stored here
files = os.listdir(DIRECTORY) # Contains a list of all files in the directory
for i in files:
# Find all .md files, store names in filelist: