You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I've found a (admitted, rather crude) way to include pdf images for latex files and png's for html files. It's pretty redneck engineering right now, but it does what it need to. Basically I create two figure subdirectories, one called 'pdf' and one called 'png'. Place your respective images in each, with the same filename. The makefile below than copies your source directory, find and replaces pdf to png using sed and copies everything to the right directory.
I'm not that great with git yet, so not sure how to do a pull request, sorry. Also, people more familiar with sed, please let me know how to make the replacement more robust!
The text was updated successfully, but these errors were encountered:
Hi everyone,
I've found a (admitted, rather crude) way to include pdf images for latex files and png's for html files. It's pretty redneck engineering right now, but it does what it need to. Basically I create two figure subdirectories, one called 'pdf' and one called 'png'. Place your respective images in each, with the same filename. The makefile below than copies your source directory, find and replaces pdf to png using sed and copies everything to the right directory.
rm -rf "$(INPUTDIR)"/html/ mkdir "$(INPUTDIR)"/html/ cp "$(INPUTDIR)"/*.md "$(INPUTDIR)"/html/ sed -i "" "s/pdf/png/g" "$(INPUTDIR)"/html/*.md pandoc "$(INPUTDIR)"/html/*.md \ -o "$(OUTPUTDIR)/thesis.html" \ --standalone \ --template="$(STYLEDIR)/template.html" \ --bibliography="$(BIBFILE)" \ --csl="$(STYLEDIR)/ref_format.csl" \ --include-in-header="$(STYLEDIR)/style.css" \ --toc \ --number-sections\ --mathjax rm -rf "$(OUTPUTDIR)/source/figures" mkdir "$(OUTPUTDIR)/source/figures" cp -r "$(INPUTDIR)/figures/png" "$(OUTPUTDIR)/source/figures" rm -rf "$(INPUTDIR)"/html/
I'm not that great with git yet, so not sure how to do a pull request, sorry. Also, people more familiar with sed, please let me know how to make the replacement more robust!
The text was updated successfully, but these errors were encountered: