From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30151 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: help with command to use latex template Date: Tue, 8 Feb 2022 08:32:47 +0000 Message-ID: References: <2cc84802-8c88-4447-9840-6d64e3305878n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28513"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBEGWRCIAMGQEAQSVQUQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 08 09:34:30 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f186.google.com ([209.85.208.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHLxE-0007D6-UA for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Feb 2022 09:34:28 +0100 Original-Received: by mail-lj1-f186.google.com with SMTP id a13-20020a2e88cd000000b002386c61ffe2sf5765865ljk.7 for ; Tue, 08 Feb 2022 00:34:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644309268; cv=pass; d=google.com; s=arc-20160816; b=FVNiwv2q7K8MHsyfv1sbw020d3V5l+O5bq0woXVxhOIKCxSMf4XlOX5W7sGm49TgDO KE4tG5YsSGx+nG684XXIgO887T4AUKmqUNyEYIXbRzOACibUGI4LVHVqddbgwJYvD1Em aSgNNnSK5MlCXHJPtyOSKZ1OdZYrDF3TrnYFcnLicsibOLrvGgh5vO+0YVtu+eE1ttXm SHw5s3yvKt/7mGl/ikmulqJEwxCoaI0nMJ4ItBjCrXTE+SE2id/50hQ3u3+tTR64verB uH/9tyBRKGO1n1/jKiGhM2lb7T/a71Af4se6FF2Mhc6LTuUqrn8zaYF8fOdVDNgwHped gs4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=UonBLa/E56mRCNmqM5lrxaAG9JD7209F2vLYYBJyDRA=; b=TAeiE1FvrfUiScRXFDMWsk7AiXkflF+DYoU1kgmdtRk63vJgVwMhD9pTyhfq6K3A6q fQxEYgwcMW8iR29qxF9UaiDT1QfrXZqDcyVvSsLfrkYR8eW4ze2neSxMQQeZ07JaPhkG 9dZCUKGsvMEqKCYk+mnyCh976971ZZel19E6gXdIILBc8ZpfHejTNXzMxxroUU9KoiX6 Prs4ped6FhIehCFaqZ0g/j+lMwusqmOKUJs7e2lmI8koPvQk289JuKBU2IQFTGVuhGym LemO1F6nVB+1tfgpXPCZZKUPq2Kkyvy7kxCO5f0GnXFALPbBm3KIoojQR3cvJ6Wed7kq 0Eog== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="GmG/pYmh"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=UonBLa/E56mRCNmqM5lrxaAG9JD7209F2vLYYBJyDRA=; b=SQqbw2MuB0yaxVUcoZe/AVQjOE6mYfZSBtawm0zBmFRHZSQ8clKxcMNU2+dHfsA8Xb 2TX42NyExG2YDjuRRPaMeZk4SWhfu5OSMp3/vWCtdczPWKxI1ffsvzA3UOwG6t7JQZxm j2veiWMj1dKOBLLVHZsQtDU3zz3uWQFiSHutykoZSJxda7IcwFE/T+yBPAZ8UERK9Oa2 95kiVfYg2/gyePnhGwqN6IvpftaWtGRW+hgpJrAiO4IJxQXQOYBePIc+yoSmgOOBuqQx DgUACCakvj40MMl2F6MBzPKNK5+9GnW5H32YUnEJeLdgFSHLtBPDgmgpsIlv2odt8Xy0 +9GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=UonBLa/E56mRCNmqM5lrxaAG9JD7209F2vLYYBJyDRA=; b=pACAyqsNNo3se7HSRBGboFyjyHwnuEUUKnEGu8E1QMK143vXZqlkJ9x2MQpYxoXeN9 59Jj+xUJy4gBa/oObugqhxN0nFS4oQcETW1bfnWO7kOiv4fm3bnEGe3dDHbwI5wfME/s UGjGmUfNyN0MPhOTWdqPUKyOAYRmXHSE6i9Guc3BOkSp049HbMqt+qM9IARkAS57gTLJ HGgPbBwKF48F7uw6km/mw1ppUHl+JpUR1LhKjjvnCUqGCmFtC303fhuXhH4yQ32M438D UQZDzSM/Iw29jgG9h2TiFcSpw3cb4jGo3EtV+USV0Etm Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532WG3ZQa+XL7NSoKFipriQNUeaPem+LjGx2z4snAlb0uIyAptU9 wZIv2u7Gwlw+fKz62GWpYTc= X-Google-Smtp-Source: ABdhPJzP/4UcqdSHcggsmCPP6vkNv47xqoHe5zr20gtXeocaj2qa9z2fIluj1R8nX3dxOFahXlfdTw== X-Received: by 2002:ac2:58f7:: with SMTP id v23mr2261335lfo.390.1644309268385; Tue, 08 Feb 2022 00:34:28 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:22d1:: with SMTP id g17ls7329115lfu.2.gmail; Tue, 08 Feb 2022 00:34:23 -0800 (PST) X-Received: by 2002:a05:6512:3c94:: with SMTP id h20mr352568lfv.480.1644309263752; Tue, 08 Feb 2022 00:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644309263; cv=none; d=google.com; s=arc-20160816; b=H6wMZ5tCWVbRBmBeDce8JPomZrLG/66d5NMFQv3wP1kMa8qTX+Rk1s7vcTcPZ8aenv kbvzl7UrjLfo7wppEfF5f52rXA/m5ypd/txLrDM2oETnsyCiUCz0ObUA32KFksLHkj+D irOjj9r6a9LjZSDGOMr2X/B3idz07Uzmx83+9oHBfkwvP/OAYHjg44Ls6SuGhbHrUeUh jmJPVlN2eFGDd81izgUWaUgTvrgWVAr67OB1AuXHW1r+QsTg9cDP2NMu1m5Vq6qYTXIN MNeK1CURdNSC/+51a/QqLAFyPcKarEX3rN1jCFANyZ1m84oDDOtZ3D32iWNS0TcbGNps +h/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=gCIeIX00CMRYlkkrSLmYpUzLLTLpDTnu7WFrEg+RIdI=; b=SPln/hZgrRdAC7yTykNc7MOGsuBc3bJtWd4yXg78QJr2dKLjyN6AOzR7DUQOMcFY6H Z0WnlPpYfv5qF24nRPxBh/7kR225rhErQaLXhkVqlEvNNhpl45bYqUJeplYbiJJHllxE c17wr8UvTA6FkL/NGlIg3cJR7JsESeIQ1CJw7sBqkj+HicnqzBYFBUi00/uvcCr3lh5L 0vo1qKjfoQeUDc7Ahqw1k4pmnXFsNDxhtXavn2rhfGJ4welTxlgsHqF4tCoIjHlcd1px sMlYXfuCcUHMsFwb6kLau6qj9H7Tx6WfpogDaLrSN/fmB7AWLdvGhAYiP2dH6wrBpDZM A1aQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="GmG/pYmh"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id w7si580268lfr.2.2022.02.08.00.34.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 00:34:23 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0550B240101 for ; Tue, 8 Feb 2022 09:34:22 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JtGWy3Q0qz9rxN for ; Tue, 8 Feb 2022 09:34:22 +0100 (CET) Content-Disposition: inline In-Reply-To: <2cc84802-8c88-4447-9840-6d64e3305878n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="GmG/pYmh"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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.io gmane.text.pandoc:30151 Archived-At: You get a TeX error, not a "file not found" one, so the problem lies in you= r template (maybe a brace that is not closed). After you have fixed it, don= 't forget to remove document.aux if it exists before launching the conversi= on again. Le Monday 07 February 2022 =C3=A0 06:32:52PM, -william- a =C3=A9crit : > MacOS 12.2 > TexShop v.4.68 >=20 > I have a template.tex file created in the xelatex program. It is located = at > /.local/share/pandoc/templates/template.tex. I want pandoc to convert > document.docx to document.pdf, using that template.tex. I can't get my co= mmands > to work. >=20 > - **command** pandoc document.docx -f docx -t pdf --pdf-engine=3D/Users/= / > Library/TeXShop/Engines/xelatex.engine --template=3D/Users//.local/= share/ > pandoc/templates/template.tex -o document.pdf > - **result** Error producing PDF. ! End of file on the terminal... why? >=20 > - **command** pandoc document.docx -f docx -t pdf -o document.pdf --templ= ate=3D/ > Users//.local/share/pandoc/templates/template.tex --pdf-engine=3Dxe= latex > - **result** Error producing PDF. ! Latex Error: Missing \begin{document}= . >=20 > - **command** pandoc document.docx --pdf-engine=3Dxelatex -o document.pdf > --template=3D/Users//.local/share/pandoc/templates/template.tex > - **result** Error producing PDF. ! Latex Error: Missing \begin{document}= . >=20 > What command do I have to give pandoc to make the conversion? >=20 > Thanks in advance for help. >=20 > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/2cc84802-8c88-4447-9840-6d64e3305878n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/2cc84802-8c88-4447-9= 840-6d64e3305878n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/YgIqr5RGmRZS0R/Q%40localhost.