For a project, I would like to use
.md files and convert them to a
.docx file. I would also like to include some
\latex\ commands within the
.md files. I just do not want to mess up the system that I am currently using because it works well. Which is contradictory, but hopefully it can be done.
Here is my pandoc setup:
pandoc --reference-doc=pandoc/reference.docx frontmatter1.md fm2.md fm3.md fm4.md f5.md ch1.md ch2.md ch3.md bib.md endmatter.md em.md -o article.docx
I know latex makes much more sense for what I am trying to do above, but working with
.docx is a painstaking process. The reference.docx solution works well for me. I just highlight the sections and select the style.
Finally, my question. Can I insert
\latex\ commands such as
\newpage at the end of my
.md files? So far, I have been unsuccessful.
Here is an example of a
.md file I would like to get working with latex / pandoc / word:
# heading Some text here. ## subheading More text here. \newpage