964 B
964 B
Convert files using pandoc
Use pandoc with "-s" flag to produce a standalone document and "-o" to redirect output to a file.
In the example a file "foo" is converted from odt
to org
pandoc -s -o foo.org foo.odt
Check the manual for more information:
man pandoc
Convert multiple files using 'xarg'
Convert all odt
files to emacs-org
:
find . -type f -name '*.odt' -print-1 | xargs -0 -n2 -P2 pandoc {} -f odt -o {}.org
A for loop can be used to convert all markdown files in a directory to emacs-org mode
files, e.g.
for i in *.md ; do echo "$i" && pandoc -s $i -o $i.org ; done
Convert a bibliography text
Use citeproc to convert a '.bib' file to html
pandoc ./bib/biblio.bib -s --citeproc -o arquivo.html