public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* LaTeX Headers/Macros in pandoc conversion
@ 2015-01-09 18:27 Mike Hynes
       [not found] ` <90cb9924-0ed1-441a-8ef2-f2e3928a165c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Mike Hynes @ 2015-01-09 18:27 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1795 bytes --]

Hello,

I am trying to use pandoc to convert my latex files into other doc types, 
mainly html and doc.

My latex documents generally have the following format:

\input{header}
\begin{document}
   body text as usual
\end{document}

The file header.tex is either contained in the same directory, or in 
~/texmf/tex/latex/headers/. In my headers, I have frequently-used macros 
such as:

\newcommand{\FIG}[3]{
\begin{figure}[h!] 
\centering 
\includegraphics[width=#2\columnwidth,angle=0]{#1} 
\caption{#3}
\label{fig:#1}
\end{figure} 
} 

That is, I use almost *no* latex commands in my writing, and make frequent 
use of macros to simplify inclusion tables, figures, algorithms, 
mathematical formulae, etc.

I would like to run pandoc on such documents, but am having trouble. My 
macros are not getting parsed, and when I run pandoc with 
--template=$USER/texmf/tex/latex/report.tex (or with an -H flag), I often 
just have the file echoed back to with, without any conversion of the 
specified input files.

Can someone please direct me to the most efficient way of processing my tex 
files, given their macro-heavy format? I can't seem to find the correct 
flags in the documentation for what I'm trying to do.

Thanks

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/90cb9924-0ed1-441a-8ef2-f2e3928a165c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2305 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-01-10 17:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 18:27 LaTeX Headers/Macros in pandoc conversion Mike Hynes
     [not found] ` <90cb9924-0ed1-441a-8ef2-f2e3928a165c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-09 18:44   ` Matthew Pickering
     [not found]     ` <CALuQ0m_pvBqPZvXnOjsT8+Ev5+xRKz8osw_zVuhW=sKMGESz9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-09 19:11       ` Mike Hynes
     [not found]         ` <ef300118-1ee9-4e4e-8cb8-1cc47dc4d192-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-09 19:13           ` Mike Hynes
2015-01-09 19:33   ` John MacFarlane
     [not found]     ` <20150109193307.GA90254-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
2015-01-09 20:12       ` Mike Hynes
     [not found]         ` <039f5de8-68e3-42a7-9f9c-cdc6bde24bc4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-09 20:22           ` Mike Hynes
     [not found]             ` <40a476ba-e1a8-413e-ab7e-584f21f70101-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-09 22:31               ` Matthew Pickering
     [not found]                 ` <CALuQ0m9YSVo7qSaUZg2nf+3JnUL7aN-tscHMt1xONj2dCUe5fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-09 22:43                   ` Mike Hynes
     [not found]                     ` <a7b24022-c931-46ed-a2bf-ae80a3ca79f0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-09 22:50                       ` Matthew Pickering
     [not found]                         ` <CALuQ0m8pi4zuxCiCCoa4uiS=8yAWAPeYoqRoODpJ32KquSgYCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-09 23:06                           ` Matthew Pickering
     [not found]                             ` <CALuQ0m8t5ejcyS6mZ05eZn+=JoGoJ8FK4i_mF0Wira7AHcPwjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-10  0:02                               ` Matthew Pickering
     [not found]                                 ` <CALuQ0m9f8Zvtnv=eyBGu=3afxZvLb3uCW=-i8cVWLDgxLwhCQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-10 17:00                                   ` Mike Hynes
     [not found]                                     ` <18984b29-d0e1-4f6c-85a3-3de241601d2c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-10 17:48                                       ` Mike Hynes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).