Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Izzard, Robert Dr (Physics)
astro-LyX
Commits
0927f9fc
Commit
0927f9fc
authored
Jun 15, 2020
by
Izzard, Robert Dr (Physics)
Browse files
update markdown maker with comments
parent
9fbb2432
Changes
1
Hide whitespace changes
Inline
Side-by-side
make_markdown.sh
View file @
0927f9fc
#!/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
\\\$
/
\&
rarr;/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
\\\$
/
\&
rarr;/g;"
>
astro-lyx.md
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment