From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11707 Path: news.gmane.org!not-for-mail From: Mike Hynes <91mbbh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Newsgroups: gmane.text.pandoc Subject: LaTeX Headers/Macros in pandoc conversion Date: Fri, 9 Jan 2015 10:27:22 -0800 (PST) Message-ID: <90cb9924-0ed1-441a-8ef2-f2e3928a165c@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_380_1263304751.1420828042012" X-Trace: ger.gmane.org 1420828049 874 80.91.229.3 (9 Jan 2015 18:27:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 18:27:29 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZY7Z4KS4EBBCV3YCSQKGQED2MQCGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 09 19:27:25 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yh0-f59.google.com ([209.85.213.59]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y9eHL-0001sw-T5 for gtp-pandoc-discuss@m.gmane.org; Fri, 09 Jan 2015 19:27:24 +0100 Original-Received: by mail-yh0-f59.google.com with SMTP id f10sf1390032yha.4 for ; Fri, 09 Jan 2015 10:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=tGJanGK43eFQstjqeIheQgm8HRMIuMtfILyc2nm69LE=; b=pgrp2yb/X+Z8DWurpBQtQ+p4ciUlXLrIWX+pKZ+O0UMRS4jY5+P5wHLUfErriLs2R0 /8lgb4F2zu8ZGKTJEMAxt5dUdMGV8JD7s0dzNmnv6xtSSemT1hAYeJH9psu8i/qOhrvH 2NanJHDTzvEpYwNPH74d2ra9uatyo7eVB2RbDH6Mq94TiNGEh//14O6jwS+ZGAbknO4g dveumX1whDqbViKVKmUsDOtJAOX+hDr8qP3Yvx++hUzJnxGys7if7PBMIz3KmcyzUIlJ l9HDe0ZSyT4pF5m0dH0C7BukMkZ6QAcT95Hi5uiypIT84YDgSb8KZL3J7UFVy5nX6NWp a1eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=tGJanGK43eFQstjqeIheQgm8HRMIuMtfILyc2nm69LE=; b=js9jpnk7wv2t/W95ANaGI1f+E/t4Ocy7n7xgEpMrPpoBZAl8jXm3rpIcaiYwyKPp42 6pqkJ3hIW24Tz5S2wzOYweO8L6tb1dzTvTnJb0QwErf4rilcpe0q43Pqv+u3x3gYg6A/ JTETILAxdJbahuYAJnJ6MUWntaXdRhaSRSkQbaMUuQ+n3R0yx3vz3sHF9/iMLW12yz73 polCEodNyyoQ4trzKDdRErasBtrlhSAByHA7pNTO1l6xhqmKrd4E7qyLvw6l7y9ZE1/X 0PmiUaZJ4WGjHcBlcFuJOPuOkDx1gaWb3Ic0vAH4SFM0ju0NRjS9CQtN+0arGC+UfR5r UiQA== X-Received: by 10.182.78.65 with SMTP id z1mr121092obw.10.1420828043235; Fri, 09 Jan 2015 10:27:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.224.194 with SMTP id re2ls616259obc.29.gmail; Fri, 09 Jan 2015 10:27:22 -0800 (PST) X-Received: by 10.182.33.65 with SMTP id p1mr114792obi.11.1420828042573; Fri, 09 Jan 2015 10:27:22 -0800 (PST) X-Original-Sender: 91mbbh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:11707 Archived-At: ------=_Part_380_1263304751.1420828042012 Content-Type: multipart/alternative; boundary="----=_Part_381_192132168.1420828042012" ------=_Part_381_192132168.1420828042012 Content-Type: text/plain; charset=UTF-8 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. ------=_Part_381_192132168.1420828042012 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

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

My latex document= s generally have the following format:

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

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

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

That is, I use almost *no* latex commands in my writing, and make f= requent use of macros to simplify inclusion tables, figures, algorithms, ma= thematical formulae, etc.

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

Can someone please direct me to the = most efficient way of processing my tex files, given their macro-heavy form= at? 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_381_192132168.1420828042012-- ------=_Part_380_1263304751.1420828042012--