From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11708 Path: news.gmane.org!not-for-mail From: Matthew Pickering Newsgroups: gmane.text.pandoc Subject: Re: LaTeX Headers/Macros in pandoc conversion Date: Fri, 9 Jan 2015 18:44:28 +0000 Message-ID: References: <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: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1420829079 17058 80.91.229.3 (9 Jan 2015 18:44:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 18:44:39 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCO2LGEC4AIBBDODYCSQKGQE5EZOSJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 09 19:44:35 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wi0-f184.google.com ([209.85.212.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y9eXu-0002l5-Bu for gtp-pandoc-discuss@m.gmane.org; Fri, 09 Jan 2015 19:44:30 +0100 Original-Received: by mail-wi0-f184.google.com with SMTP id ho1sf324696wib.1 for ; Fri, 09 Jan 2015 10:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=C79cQw40zrR0oLFZbv5cmzuxf6F92dfYjkMCUUhaMxU=; b=Avt7zG7fajgvUrqzE8YfHQY9o6taR765H1mDY4Y/Mpp4BBav+MrMRIFFGE/EZ9YPdk i1jKZRlJQOsqTZUBuhEBB7+viJNCuh6yMhEdv0/aVBjLIAZVDge/r8/IbdCOvAao63Nm HKwUt5yztXMIcl6e1zAA9A/gaXjgW9aUpE6ctRPlmdNVzwhVD0wYApIR/QNTMB8V801i HHeqhyByePsOG6hDETg9usH3NEkPavvROxCL2ep6tAFN+z+oGGbnOiT63ts3O/SEOpKg qiskadxFOp8vtBa/FeVxaFL45cMG8eTfzIq5UWC5BZD2AJ2enUNqZ46ldxmqwkzsED3Q gNmw== X-Received: by 10.152.87.43 with SMTP id u11mr31441laz.14.1420829069975; Fri, 09 Jan 2015 10:44:29 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.152.26.200 with SMTP id n8ls439119lag.15.gmail; Fri, 09 Jan 2015 10:44:29 -0800 (PST) X-Received: by 10.112.160.41 with SMTP id xh9mr442946lbb.12.1420829069057; Fri, 09 Jan 2015 10:44:29 -0800 (PST) Original-Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com. [2a00:1450:4010:c04::236]) by gmr-mx.google.com with ESMTPS id m9si967881lbp.0.2015.01.09.10.44.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 10:44:29 -0800 (PST) Received-SPF: pass (google.com: domain of matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c04::236 as permitted sender) client-ip=2a00:1450:4010:c04::236; Original-Received: by mail-lb0-x236.google.com with SMTP id u10so9478903lbd.13 for ; Fri, 09 Jan 2015 10:44:29 -0800 (PST) X-Received: by 10.112.72.168 with SMTP id e8mr23203953lbv.83.1420829068946; Fri, 09 Jan 2015 10:44:28 -0800 (PST) Original-Received: by 10.114.91.136 with HTTP; Fri, 9 Jan 2015 10:44:28 -0800 (PST) In-Reply-To: <90cb9924-0ed1-441a-8ef2-f2e3928a165c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c04::236 as permitted sender) smtp.mail=matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com 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:11708 Archived-At: Can you please provide a small complete example which shows the problem? On Fri, Jan 9, 2015 at 6:27 PM, Mike Hynes <91mbbh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > 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.