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

clean up markdown with regex

parent 78aac8f1
How to write astrophysics papers with LyX {#how-to-write-astrophysics-papers-with-lyx .unnumbered}
How to write astrophysics papers with LyX
==========================================
You have to install some files into your personal LyX directory. On *UNIX* this is in `$HOME/.lyx` but on your system it may be elsewhere.
......@@ -19,7 +19,7 @@ You have to install some files into your personal LyX directory. On *UNIX* this
7. Restart LyX
Monthly Notices {#monthly-notices .unnumbered}
Monthly Notices
---------------
1. Install the MNRAS LaTeX style files on your system (e.g. in `$HOME/.latex/`)\
......@@ -32,12 +32,12 @@ Monthly Notices {#monthly-notices .unnumbered}
4. Change the text to include your writing
Astronomy and Astrophysics {#astronomy-and-astrophysics .unnumbered}
Astronomy and Astrophysics
--------------------------
To follow
Galaxies {#galaxies .unnumbered}
Galaxies
--------
To follow
#!/bin/bash
lyx --export latex astro-lyx.lyx
pandoc --wrap=none -f latex -t markdown astro-lyx.tex > astro-lyx.md
pandoc --wrap=none -f latex -t markdown astro-lyx.tex | perl -pe "s/\{.*? \.unnumbered\}//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