From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14007 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 16:30:43 +0100 Message-ID: <565725A3.1070208@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 1448551865 30715 80.91.229.3 (26 Nov 2015 15:31:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 15:31:05 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBJOL3SZAKGQEOSQYDGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 26 16:30:44 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm0-f64.google.com ([74.125.82.64]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1yVP-0002OM-KW for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Nov 2015 16:30:43 +0100 Original-Received: by wmec201 with SMTP id c201sf5052355wme.1 for ; Thu, 26 Nov 2015 07:30:46 -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=FkvYiA3fj8AM67PB3z3tvhP+2AVxIL0EfJ0Adh5yMsE=; b=Gou/fHH7hvVIAZhE5EZRBucuzkolvM2pLdEtNVET8FVA2PfJVQV9BYm8KmCgXgzTyd R72Sk/RrTm4yzyClcxS0ypOW1bKr91LwZjuQStU+SH3mSYBmZSOYfLM/fe3AKkMNMtr5 Cb/rMcK5vLcg1dw/j3gUES3YNOnZ32JpQii/tcv8ghvks3zePCmieLme6U/TSP9ZmgpO 25ILQqnqKj5vZmfLNFyfCIEJw8TjhI92iWZRMt602a2UZjSVHQBF4eUP+C8yL+NmqV/A tv/DpAwlLCd5KzlwF6BZbunfU560KybPsbpHhZWzEuDwvpI7wKOaiVTj+gto/gYEz7ca SDBg== X-Received: by 10.25.40.5 with SMTP id o5mr141406lfo.3.1448551846072; Thu, 26 Nov 2015 07:30:46 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.5.3 with SMTP id 3ls90648lff.43.gmail; Thu, 26 Nov 2015 07:30:45 -0800 (PST) X-Received: by 10.112.157.161 with SMTP id wn1mr8219998lbb.15.1448551845058; Thu, 26 Nov 2015 07:30:45 -0800 (PST) Original-Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b]) by gmr-mx.google.com with ESMTPS id k189si113644wmg.2.2015.11.26.07.30.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 07:30:45 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::22b as permitted sender) client-ip=2a00:1450:400c:c09::22b; Original-Received: by mail-wm0-x22b.google.com with SMTP id c201so26115823wme.1 for ; Thu, 26 Nov 2015 07:30:45 -0800 (PST) X-Received: by 10.194.129.135 with SMTP id nw7mr49379768wjb.148.1448551844839; Thu, 26 Nov 2015 07:30:44 -0800 (PST) Original-Received: from [192.168.1.253] ([178.249.150.249]) by smtp.gmail.com with ESMTPSA id wz4sm17306287wjc.34.2015.11.26.07.30.43 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 07:30:43 -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::22b 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:14007 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? > > Thanks, > > Rainer You could write a filter which moves them there: * traverse the AST looking for figures and tables. * append each one found to a global list variable. * Remove the found float or replace it with something which produces no output, in the place where it used to be. * After traversal append the list with the floats at the end of the document data list. /bpj