Skip to content
Snippets Groups Projects
Commit d54ebaef authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

clean up markdown with regex

parent 78aac8f1
No related branches found
No related tags found
No related merge requests found
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. 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 ...@@ -19,7 +19,7 @@ You have to install some files into your personal LyX directory. On *UNIX* this
7. Restart LyX 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/`)\ 1. Install the MNRAS LaTeX style files on your system (e.g. in `$HOME/.latex/`)\
...@@ -32,12 +32,12 @@ Monthly Notices {#monthly-notices .unnumbered} ...@@ -32,12 +32,12 @@ Monthly Notices {#monthly-notices .unnumbered}
4. Change the text to include your writing 4. Change the text to include your writing
Astronomy and Astrophysics {#astronomy-and-astrophysics .unnumbered} Astronomy and Astrophysics
-------------------------- --------------------------
To follow To follow
Galaxies {#galaxies .unnumbered} Galaxies
-------- --------
To follow To follow
#!/bin/bash #!/bin/bash
lyx --export latex astro-lyx.lyx 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment