From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32136 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Converting Rust-book to PDF fails Date: Wed, 1 Feb 2023 15:02:01 -0800 Message-ID: <746F5C2D-BD17-4509-9EB5-3B2D5646AD73@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_68BB7171-D2D6-4A12-80DB-C0EC5780EFAE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="426"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBB3G65OPAMGQEKSUWIRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 02 00:02:08 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f60.google.com ([209.85.160.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pNM7D-000AWr-IL for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 02 Feb 2023 00:02:07 +0100 Original-Received: by mail-oa1-f60.google.com with SMTP id 586e51a60fabf-15fddea3ee9sf83222fac.21 for ; Wed, 01 Feb 2023 15:02:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675292526; cv=pass; d=google.com; s=arc-20160816; b=CMW8Jbt/FZd5geJJpJrGouM8NWi/3+6g1UDCJip0Zyqk3LrHlQ4hYpQGHffsqDsvnp MHTttbG60RRKyml60Wae8EPI756qMKCoyDIcIunqEzHZlBIgxmffu64JrAAJ4RCe/DTM tHiXo74c7jQWJmXDCMVDWTwOkl1EncLN7hgjW7AXGVLE1XFZrLQcxxmt4um4KTHoKO+Z FQyjPff9WnfoQWniW7Ug53g2s7bWqG5B8psTQmYSCcb/rdHSoPA9FOiGdA31kE9VTp+N yLAOnfSGLQqxS7E4r9m7nClrTPIPpEIK1jd6ygnkQzS8rXQ822HTMt/uDfPKerHBtcTs GF+g== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=2te1NbsMREubt1+rfjKYt/B7NXETAI0NR9/PAzfcZZk=; b=SqyE2DzwFUfGCvnU1kMXaE2dvtoREtad/cJaoPs+7599M1u/zVbrTr2dxUAcGsz92k +bNHwjWnPmju5JO6OBUoxJQ+gNNT5SeKwL5aLjviRwIynG4Fnc4V00sLxwB6D4vHTD+Q MOd38+3aSvRn78xWfFgv9iVy7ibnZLliiyyyCJ+seNvK8+F9oywbIpS69SbZ4kbN1kWa yhhfot95K5HWA31kVn59kpshinpbgNQ1rcKGdGyMBoK9DdVMs4pUQt05vB6NiM5wT7Hs ePUFADHKzpmwC5gsrxXY7elyWEHt0IkfaYR/xl9HVko1riYkUK3UkrLCXHL8GCLtvgTL dstg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GInMFvM8; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=2te1NbsMREubt1+rfjKYt/B7NXETAI0NR9/PAzfcZZk=; b=IHv5gks12Revi29IVN5T10cUb6aaWCOsCVIGqKcICNYXAAdOFjkaQbrvSY4XiRbWC+ RhvUK8aC72LkylHCB/T2TScAZ8sYqvufn2RWQUI+x1E2O7p/BzKibWVycwP1lOy6KyGV Ea2fzrEde6e7O6a4xawG2DHDOEq6eiz/LGpY/f9tZspqDeRbEtMsMu5Dc6MIiwWDVKFM bqHa/ojCB3SvTj3IfjgnEtjVU19+9B0mT7kBJrOL8s1rtlFJ2gKX6ZlJB9o64Z02Np9y PKyvL4uOWFcU3woAV+GJdfj6hCMg8TD1yFexjJl3vNf3lu/UtnnVjxTtMAiPIUjYzxOc pA3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=2te1NbsMREubt1+rfjKYt/B7NXETAI0NR9/PAzfcZZk=; b=is/ywbwenz1bk/EmK1EJCcJFmRlXd82qDdeCDoAe8Kbe46GopUyZcuIC5+Mc+nJ2Tt Vo+neR7232uc+uzUKhJABE0GgQ8d6NoZDM9KLTs9F0bg+bMuevD7Xo/7ZkHpaQrzqNhK qEDZwhg1i0gya6FqyGWnNIs3CRjPgr5jCmdq8PlhZi+GZpugisqAKx5aB5w0M6Ux84oM L8rRx3qEKFzBtyE7egzOTNDzQt83/sKe1l8kf7UOHc5ZXJq/eUjfLdOTASD91Iypusf0 yWWdEp2v0E8uZxQVssIDU/6qHCuEl1cHPT7uLRQ799+XAglGPGSDjoJg2C2zEv4GETz+ 1u1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=2te1NbsMREubt1+rfjKYt/B7NXETAI0NR9/PAzfcZZk=; b=lEEGAoUGeMmUXlndPzLasoStrbYTphTmGWTwCICo0IVD3FJ2CnbOSvVKZF3tyFoMUR 4i2LYGPRwTPu/vktgiqWJCpJ5AwRAk/ZfWm5jTntAsFYTZkbZ2A0vfnk2AFWeBLfZPK0 Zpy0M/w9Mpbmmztobl08MizPrw6kmi22qqAW4pqXSIhse6N/h2phq7HR3sxKbl87ZOlC 0SRKuntfZnUb8xkWKVdKsX3ijgOaFaXV7QEI55A9I68CUdL6XBzOwlqnopSishIwog1c dhGW4M23UcLwuh89JpK5H5emqredKnQVyD3i/er4ODzYCW Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVY0HVFW+4htmN693kZ8nh8xvzItv+/kfFlHf1pF4vtCQQSEE+c MTtZOQl7Iwo3q0i16/jaQEE= X-Google-Smtp-Source: AK7set+WSJxaK+M0WBR0PtyQisBHVWZICQaohyyZw0bkvnoUytsFHOxcr5Z9fq+dNmV77P5tfU8r9w== X-Received: by 2002:a05:6870:42cf:b0:163:4123:b81e with SMTP id z15-20020a05687042cf00b001634123b81emr60534oah.217.1675292526201; Wed, 01 Feb 2023 15:02:06 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:e741:0:b0:4ae:b912:67cf with SMTP id n1-20020a4ae741000000b004aeb91267cfls829oov.10.-pod-prod-gmail; Wed, 01 Feb 2023 15:02:03 -0800 (PST) X-Received: by 2002:a4a:4155:0:b0:517:968f:73c0 with SMTP id x82-20020a4a4155000000b00517968f73c0mr1759439ooa.0.1675292523834; Wed, 01 Feb 2023 15:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675292523; cv=none; d=google.com; s=arc-20160816; b=Fv8ba6A/e6Q0H2cA1GbrFopIfwWTR+4US3v+BrO4/5Yx3tL/NQF2d/jAWfbN5rA93p p9Fz222njIB46ihxRhE92jqHiS/aIkOcQ479u1H1I6FB42fJ1p8ac6RJ/S9B4VygOb67 sPAWtqfYhLI+W3oBPo0FULw5eW9m+bd/fs5b0UshuL5075ejd5ti9tUGlCQLkhhGoe/7 tQM8lGyA4N0lmOme/5lbHcYNkVpmG0nngJPGl5v3SM8RqePreXS7XckjPPEAROEvGrwq OstqWb7H5ZkspIgxQ4PI291fWYdZKX7a+bQDeyUhcG3ReNkyJYTPVbCh1xjFy13l2fGh 4w+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=1dIlsyyMISeHOPw5HgQuvllwJisEy5Z4KFEUAaymlwU=; b=0yMUZHuy0i8B1/i9Qhj8YuwH5j2DwKAyb8VUzOvCC6us3OVmQOK7P1NWDI2yIT198u k8WqSWhzQy9XR1EmD7OCJC2WQoxzx29qLNlAoq9T3lNsvGASzGpQ09RwOqDGcMYWmT+Y E1EQ8veczCvS8JNEMdIUONcH38g8ZbbV7UB0bOuVB8WVFW1a+6LuSnOz7WdUFqiEAV7V 3pZu15X4Gj6H6kIFE7lMe09Vl45SGBeDPd36QpBOFnhfG3TcmLnPe4gX3oVOjdhHsXDI KrUR7OaG3vPL4T87EypmCuszqwdE0eI/y0P/4VET2WM1vnnp3UiwLaQKQ8afjj4kPKFy DJlw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GInMFvM8; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com. [2607:f8b0:4864:20::102b]) by gmr-mx.google.com with ESMTPS id d19-20020a4aeb93000000b004a399d01471si1583258ooj.1.2023.02.01.15.02.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Feb 2023 15:02:03 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) client-ip=2607:f8b0:4864:20::102b; Original-Received: by mail-pj1-x102b.google.com with SMTP id e10-20020a17090a630a00b0022bedd66e6dso3841386pjj.1 for ; Wed, 01 Feb 2023 15:02:03 -0800 (PST) X-Received: by 2002:a05:6a20:3d92:b0:be:da0c:fc62 with SMTP id s18-20020a056a203d9200b000beda0cfc62mr5452537pzi.38.1675292523107; Wed, 01 Feb 2023 15:02:03 -0800 (PST) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id l26-20020a65681a000000b00477bfac06b7sm9526822pgt.34.2023.02.01.15.02.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2023 15:02:02 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GInMFvM8; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE 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.io gmane.text.pandoc:32136 Archived-At: --Apple-Mail=_68BB7171-D2D6-4A12-80DB-C0EC5780EFAE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Looks like you=E2=80=99re using a custom template; you=E2=80=99re probably = missing something we do in the default template. Get the default using pandoc -D latex and compare it to what you=E2=80=99re using. > On Feb 1, 2023, at 1:22 PM, Mouse Mousevich wrote: >=20 > pandoc-2.19.2, pdflatex from TeXLive-2022. > Rust-book set of .md files from https://github.com/killercup/trpl-ebook.g= it (version from 2016). >=20 > Conversion to LaTeX seems to succeed, but subsequent invocation of pdflat= ex fails. >=20 > I printed out arguments passed to pandoc: > pandoc args: --from=3Dmarkdown+smart+grid_tables+pipe_tables-simple_table= s+raw_html+implicit_figures+footnotes+intraword_underscores+auto_identifier= s-inline_code_attributes --embed-resources --standalone --highlight-style= =3Dtango --top-level-division=3Dchapter --table-of-contents --template=3Dli= b/template.tex --pdf-engine=3Dpdflatex --to=3Dlatex --pdf-engine-opt=3D--in= teraction=3Dnonstopmode --variable papersize=3Dletterpaper --output=3Ddist/= trpl-2019-05-04.letter.pdf; plus book itself >=20 > Error message from pdflatex: >=20 > Error producing PDF. >=20 > ! Missing number, treated as zero. >=20 > =20 >=20 > ( >=20 > l.306 \begin >=20 >=20 >=20 > This is what the (apparently) relevant fragment of the LaTeX file looks l= ike: >=20 > 299 =E2=94=82 \begin{longtable}[]{@{} >=20 > 300 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabc= olsep) * \real{0.4189}} >=20 > 301 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabc= olsep) * \real{0.0676}} >=20 > 302 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabc= olsep) * \real{0.0676}} >=20 > 303 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabc= olsep) * \real{0.0676}} >=20 > 304 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabc= olsep) * \real{0.3784}}@{}} >=20 > 305 =E2=94=82 \toprule() >=20 > 306 =E2=94=82 \begin{minipage}[b]{\linewidth}\raggedright >=20 > 307 =E2=94=82 Target >=20 > 308 =E2=94=82 \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedr= ight >=20 > 309 =E2=94=82 std >=20 > 310 =E2=94=82 \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedr= ight >=20 >=20 >=20 >=20 > --=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/e52155b1-2b00-4cee-8816-53906072ede7n%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/e52155b1-2b00-4cee-8816-53= 906072ede7n%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/746F5C2D-BD17-4509-9EB5-3B2D5646AD73%40gmail.com. --Apple-Mail=_68BB7171-D2D6-4A12-80DB-C0EC5780EFAE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Looks like you=E2=80=99re = using a custom template; you=E2=80=99re probably missing something we do in= the default template.
Get the default using
pandoc -D latex
and compare it to what you=E2=80= =99re using.

On Feb 1, 2023, at 1:22 PM, Mouse Mousevich <uri-OVIABD91gjs3uPMLIKxrzw@public.gmane.org> wrote:
pandoc-2.19.2, p= dflatex from TeXLive-2022.
Rust-book set of .md files from&n= bsp;https://github.com/killercup/trpl-ebook.git (version from = 2016).

<= /div>
Conversion to LaTeX seems to succeed,= but subsequent invocation of pdflatex fails.
<= br class=3D"">
I printed out arguments passed to pando= c:

pandoc args: --from=3Dmarkdown+smart+= grid_tables+pipe_tables-simple_tables+raw_html+implicit_figures+footnotes+i= ntraword_underscores+auto_identifiers-inline_code_attributes --embed-resour= ces --standalone --highlight-style=3Dtango --top-level-division=3Dchapter -= -table-of-contents --template=3Dlib/template.tex --pdf-engine=3Dpdflatex --= to=3Dlatex --pdf-engine-opt=3D--interaction=3Dnonstopmode --variable papers= ize=3Dletterpaper --output=3Ddist/trpl-2019-05-04.letter.pdf; plus book its= elf

Error message from pdflatex:

Error pr= oducing PDF.

! Missing number, treated as zero.

<to be read again> 

     =               (

l.306 \= begin


This is what the (a= pparently) relevant fragment of the LaTeX file looks like:

299   =E2=94=82 \begin{longtable}[]{@{}

 300 &n= bsp; =E2=94=82   >{\raggedright\arraybackslash}p{(\columnwidth - 8\= tabcolsep) * \real{0.4189}}

 301   =E2=94=82 &nb= sp; >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real= {0.0676}}

 302   =E2=94=82   >{\raggedri= ght\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.0676}}

 303   =E2=94=82   >{\raggedright\arraybackslash= }p{(\columnwidth - 8\tabcolsep) * \real{0.0676}}

 304=   =E2=94=82   >{\raggedright\arraybackslash}p{(\columnwidth -= 8\tabcolsep) * \real{0.3784}}@{}}

 305   =E2=94= =82 \toprule()

 306   =E2=94=82 \begin{minipage}= [b]{\linewidth}\raggedright

 307   =E2=94=82 Tar= get

 308   =E2=94=82 \end{minipage} & \begin= {minipage}[b]{\linewidth}\raggedright

 309   =E2= =94=82 std

 310   =E2=94=82 \end{minipage} &= \begin{minipage}[b]{\linewidth}\raggedright



--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://grou= ps.google.com/d/msgid/pandoc-discuss/e52155b1-2b00-4cee-8816-53906072ede7n%= 40googlegroups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/746F5C2D-BD17-4509-9EB5-3B2D5646AD73%40gmail.com.
--Apple-Mail=_68BB7171-D2D6-4A12-80DB-C0EC5780EFAE--