Skip to content

Commit

Permalink
Add rule to extract abstract as GFM markdwon
Browse files Browse the repository at this point in the history
  • Loading branch information
compor committed Oct 9, 2024
1 parent b9a13bf commit 8939dd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ ${PDF_PAPER}: ${TEX_MAIN_PAPER} ${IMAGES}
${PDF_SUBMISSION}: ${TEX_MAIN_SUBMISSION} ${IMAGES}
latexmk ${TEX_MAIN_SUBMISSION}

abstract: ${TEX_MAIN_PAPER}
# check that pandoc exists
@pandoc --version
sed -n '/\\begin{abstract}/,/\\end{abstract}/p' $< | sed '/\\begin{abstract}/d; /\\end{abstract}/d' | pandoc -f latex -t gfm -o $@.md

paper: ${PDF_PAPER}

submission: ${PDF_SUBMISSION}
Expand Down

0 comments on commit 8939dd4

Please sign in to comment.