From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14009 Path: news.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Conversion tex to docx - endfloat package? Date: Thu, 26 Nov 2015 20:31:03 +0100 Message-ID: <56575DF7.2050202@gmail.com> References: <7e3777d8-7ceb-4493-83bc-3b972a1cdb76@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; format=flowed X-Trace: ger.gmane.org 1448566275 2972 80.91.229.3 (26 Nov 2015 19:31:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 19:31:15 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB6V33WZAKGQE6FLTBGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 26 20:31:08 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lf0-f60.google.com ([209.85.215.60]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a22G0-0003xR-C8 for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Nov 2015 20:31:04 +0100 Original-Received: by lfs39 with SMTP id 39sf30342624lfs.1 for ; Thu, 26 Nov 2015 11:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:from:subject:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-type:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=MJNyURhc0XKhHl/Qrfn06cjqpXKdrT0hLuJfvdAjZ90=; b=jXAgnYYIH2s/NoY4JtGOBIAI5kpHPSBbEHNGlQMsye8tjuGi25oy7DsLXlwjoUcLHy omgp+JtGRusf37vXPM6llgtJHMZd2MbjEOnSzkH+n0vTX+3C95ua/0nGW4uF9uPS2pS8 5Wh8Lm3mgCslajnBB7rV0q10Ge+Kmik02cqdhGwqHIHO8pQBFB5tEJGVFjOWG292ps+z Zz576bJrpYIt2D1Z8yY2KWmiWNstszi+pPMw6FeV3Z3imTjpg+UD0iWpJkBma6iVQyjt iWdVke/YdPSabZPSV+7avZjsx4tK3mUtph0of2V05cZTZu9zc2ioz3CaOesdmWJ5D6l5 lYIw== X-Received: by 10.25.157.71 with SMTP id g68mr586443lfe.13.1448566266963; Thu, 26 Nov 2015 11:31:06 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.20.222 with SMTP id 91ls97407lfu.10.gmail; Thu, 26 Nov 2015 11:31:06 -0800 (PST) X-Received: by 10.112.146.131 with SMTP id tc3mr8557776lbb.18.1448566265979; Thu, 26 Nov 2015 11:31:05 -0800 (PST) Original-Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com. [2a00:1450:400c:c09::232]) by gmr-mx.google.com with ESMTPS id d185si125358wmf.0.2015.11.26.11.31.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 11:31:05 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::232 as permitted sender) client-ip=2a00:1450:400c:c09::232; Original-Received: by mail-wm0-x232.google.com with SMTP id v187so43865356wmv.1 for ; Thu, 26 Nov 2015 11:31:05 -0800 (PST) X-Received: by 10.28.13.138 with SMTP id 132mr5961477wmn.62.1448566265629; Thu, 26 Nov 2015 11:31:05 -0800 (PST) Original-Received: from [192.168.1.253] ([178.249.150.249]) by smtp.gmail.com with ESMTPSA id cv3sm29401657wjc.20.2015.11.26.11.31.03 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 11:31:03 -0800 (PST) Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <7e3777d8-7ceb-4493-83bc-3b972a1cdb76-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::232 as permitted sender) smtp.mailfrom=melroch-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14009 Archived-At: Den 2015-11-26 kl. 13:39, skrev Rainer M Krug: > Hi > > I am using pandoc to convert a tex document to docx for my co-authors > (which works very nicely!), and they want to have figures and tables at > the end of the document. > > I am using in LaTeX the package endfloat for this. Using pdflatex, this > works perfectly to generate the pdf, but when I use pandoc to convert > the tex to a docx, the package "endfloat" is ignored and all floats are > where they would be without "endfloat". > > Is there a way to force all floats (figures and tables) to the end of > the document in pandoc? I should have mentioned before that pandoc doesn't compile the LaTeX, it just parses the LaTeX markup into an AST, discarding anything it cannot represent, and builds a document in another format from the AST. However pandoc lets you run filters on the AST after having read the original document and before constructing the new document, and it is (was) fairly simple towrite a filter which collects all figures and tables at a designated place in the document. You can read about using filters here: You can find such a filter as I described before here: There are both a perl and a python version. Make sure to read the description! EDIT: it occurs to me that you sprobably want to put all tables together in one place and all figures together in another place. Reply to this mail if that is the case! /bpj