#!/usr/bin/python # Name: SpeedTex # http://akiscode.com/articles/speedtex.shtml # Copyright (c) 2009 Stephen Akiki # MIT License (Means you can do whatever you want with this) # See http://www.opensource.org/licenses/mit-license.php # Language: Python # Purpose: Make the writing of LaTex easier #########################Imports############################### # -- os: Used for various system calls # -- re: Used for regex ############################################################### import os, re #########################Config################################ # This section contains the variables that can be # tweaked in order to change the programs workings ############################################################### InputFile = r'input.st' # The SpeedTex File OutputFile = r'APChemNotes.tex' # The name of the resulting LaTex # AND PDF file #########################Symbols############################### # This hash is the main way of dealing with markup that do # not have variables in it (such as section, line, or img) # see later on for that ############################################################### symbols = { r'>':r'}', r'--\(toc\)':r'\\tableofcontents', r'