Commit 0927f9fc authored by Izzard, Robert Dr (Physics)'s avatar Izzard, Robert Dr (Physics)
Browse files

update markdown maker with comments

parent 9fbb2432
#!/bin/bash
#
# make markdown version of astro-lyx.lyx
#
# use lyx to export astro-lyx.lyx in latex
lyx --export latex astro-lyx.lyx
# remove inputenc and fontenc (these freeze pandoc)
cat astro-lyx.tex |grep -v inputenc|grep -v fontenc > a.tex ; mv a.tex astro-lyx.tex
# run through pandoc to make markdown version
iconv -t utf-8 astro-lyx.tex | pandoc -s --wrap=none -f latex -t markdown | perl -pe "s/\{.*? \.unnumbered\}//g; s/\\\$\\\\rightarrow\\\$/\→/g;" > astro-lyx.md
# export also as pdf
lyx --export pdf astro-lyx.lyx
iconv -t utf-8 astro-lyx.tex | pandoc -s --wrap=none -f latex -t markdown | perl -pe "s/\{.*? \.unnumbered\}//g; s/\\\$\\\\rightarrow\\\$/\→/g;" > astro-lyx.md
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment