Created
October 19, 2017 08:22
-
-
Save kidmose/6f0c45a6c8ab4593084255cf63fcee9e to your computer and use it in GitHub Desktop.
Makefile for building building latex into html suitable for word import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Handy for converting (any?) latex into HTML, formatted such that Microsoft Word reads it nicely. | |
# Copyright: WTFPL, http://www.wtfpl.net/ | |
# Author: Egon Kidmose <kidmose@gmail.com> | |
# Requires: working latex, make and tex4ht | |
# Dependecy installation on linux mint, debian like: | |
# sudo apt-get install tex4ht dvipng | |
# Usage: | |
# make clean word | |
word: | |
htlatex ${filename}.tex 'html,word' 'symbol/!' '-cvalidate' | |
bibtex ${filename}.aux | |
htlatex ${filename}.tex 'html,word' 'symbol/!' '-cvalidate' | |
htlatex ${filename}.tex 'html,word' 'symbol/!' '-cvalidate' | |
clean: | |
bash -c 'rm -vf ${filename}*.{4ct,4tc,aux,bbl,blg,css,dvi,htm,html,idv,lg,log,log,odt,out,pdf,png,ps,spl,svg,tmp,xref}' | |
rm -vf texput.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment