I hava an input file name like /path/to/orgfiles/file.org
I have an output file name like /path/to/mdfiles/file.md
This two path have been set into two variables:
inputfile
= "/path/to/orgfiles/file.org"
outputfile
= "/path/to/mdfiles/file.md"
Now I want to use org-export-to-file
from ox.el
to export inputfile to outputfile, how?
It seems that org-export-to-file
can only export file from the current buffer, I couldn't find any function which can specified the INPUT file :(
I tried org-publish
but it seems should be used when project involved, doesn't meet my need too.
org
to take a certain file and export it to an arbitrary path. You can wrap export function to open your file in a buffer, export it, and then use the return value, which will be the name of the exported file to move it where you want your output to be. – DoMiNeLa10 Sep 8 '18 at 11:18