From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32138 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mouse Mousevich Newsgroups: gmane.text.pandoc Subject: Re: Converting Rust-book to PDF fails Date: Thu, 2 Feb 2023 11:35:09 -0800 (PST) Message-ID: <5c032897-574b-4c5f-bc54-6101ac925098n@googlegroups.com> References: <746F5C2D-BD17-4509-9EB5-3B2D5646AD73@gmail.com> <9a28d0fa-22da-49b8-a284-731a960473e9n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2130_1608894881.1675366509434" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8158"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI5P55D2AFBB3VA6CPAMGQE6MIU4DQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 02 20:35:14 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pNfMX-0001vx-U8 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 02 Feb 2023 20:35:14 +0100 Original-Received: by mail-oi1-f189.google.com with SMTP id u132-20020aca608a000000b00364e4f26dd3sf469390oib.3 for ; Thu, 02 Feb 2023 11:35:13 -0800 (PST) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=uICQfY+XBmz0YTbHwgmI+nYi4etxbbWuWWgZdfOtFik=; b=kCwUaLdPlOqwATB5G8FDUw8pLzjMLMhk3bnIQE79174RoNj+wUFTdVNrsu8BMMetDC z/S32u1i8nVxpf+N/muR8RvmLJjXxxHAdV2EKlgp9AGT5EgNPi6VCIiho17ME5hss2I0 uOzgFYxa6wak4EBSsCqSGqLtNZwNHuwrBTuS7FC0D7y5GSLKXxDFs8msRDAso4RzpW6Q yenbFIQeH7MmIIfZ+5/KWY474dsJ6DxnkDS4DzYBqVKsW+Fm7TB98Ieao5x3FX5Aj95H oFFPv0KyrEPMLUxPmy8SAkGbIFuVSZPYeBpokDem3tMj24BRnmBxq4oI8v6hkxrxN3p0 rU8g== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=uICQfY+XBmz0YTbHwgmI+nYi4etxbbWuWWgZdfOtFik=; b=FLaPFeExfmsF569/8U4N9akiWapOmYvFiPWxQJl/PB0UyimvZnlGCEUiJ6DZ7U6fug fSBShTd+L/gXduee6FdxjKbeQdhuTojzizD6bbPP5nxOq8MMgkieHexe+xk8NWWOmegi TtqKiVN+PhCzSq3bia0aQThBbdKcPAUv4eouQWEQ7E+u9ELJ4/jqVPp0aaxG7d9BvPT4 3kvaHNI6vwBs+VknnpGgjBhatOeCBqVoSJvKe/g4xatpLmGRLXgwgq+givZemhdykWoa MOAESHEovlm1TejwV3rcduroB2KnTqon1nWm7aBkrOQhhX3uHpuvDUim2mBBmZ5CjHjS /SYQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWloEVSwOvyKQoE0EXfhlZ+41CBOrce5UDuPe6auN+MN0oEt9K8 Q0KdzJ6X80tpnv2gGmPPUYI= X-Google-Smtp-Source: AK7set+3Wi5eASSmdQNIqWhqC/1KA015dodje25/xtxwxX89qvZwGoBSYqQCINSFfmG7DDAMzSVnhQ== X-Received: by 2002:aca:ac8e:0:b0:364:e920:8358 with SMTP id v136-20020acaac8e000000b00364e9208358mr184111oie.135.1675366512777; Thu, 02 Feb 2023 11:35:12 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:b11:b0:152:e7d4:7359 with SMTP id fq17-20020a0568710b1100b00152e7d47359ls1508305oab.2.-pod-prod-gmail; Thu, 02 Feb 2023 11:35:10 -0800 (PST) X-Received: by 2002:a05:6870:f6a2:b0:163:81dc:c61c with SMTP id el34-20020a056870f6a200b0016381dcc61cmr398213oab.21.1675366510096; Thu, 02 Feb 2023 11:35:10 -0800 (PST) In-Reply-To: <9a28d0fa-22da-49b8-a284-731a960473e9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: uri-OVIABD91gjs3uPMLIKxrzw@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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32138 Archived-At: ------=_Part_2130_1608894881.1675366509434 Content-Type: multipart/alternative; boundary="----=_Part_2131_282837541.1675366509434" ------=_Part_2131_282837541.1675366509434 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Replacing template.tex with the one provided by pandoc-3.0.1 (via pandoc -D= =20 latex), it does not crash anymore, but gives me this error/warning: Could not convert TeX math HOME/.cargo/bin* and [WARNING] Could not convert TeX math HOME/.cargo/bin*. Ensure that=20 directory is in your `, rendering as TeX: rectory is in your ` ^ unexpected '`' expecting "\\bangle", "\\brace", "\\brack", "\\choose", "\\displaystyle",= =20 "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle", "{",=20 "\\operatorname", letter, digit, ".", "!", "'", "''", "'''", "''''", "*",= =20 "+", ",", "-", ".", "/", ":", ":=3D", ";", "<", "=3D", ">", "?", "@", "~", = "_",=20 "^", "\\left", "\\", "\\hyperref" or end of input On Thursday, February 2, 2023 at 1:56:03 PM UTC-5 Mouse Mousevich wrote: > Attaching the template (template.tex) in question (from=20 > https://github.com/killercup/trpl-ebook.git). Since the rest of TeX Live= =20 > seems to work fine on my machine, the attached template is the natural=20 > suspect. Needless to say, I'd appreciate any help. Thanks! > > On Wednesday, February 1, 2023 at 6:02:06 PM UTC-5 fiddlosopher wrote: > >> Looks like you=E2=80=99re using a custom template; you=E2=80=99re probab= ly missing=20 >> 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: >> >> pandoc-2.19.2, pdflatex from TeXLive-2022. >> Rust-book set of .md files from=20 >> https://github.com/killercup/trpl-ebook.git (version from 2016). >> >> Conversion to LaTeX seems to succeed, but subsequent invocation of=20 >> pdflatex fails. >> >> I printed out arguments passed to pandoc: >> >> pandoc args:=20 >> --from=3Dmarkdown+smart+grid_tables+pipe_tables-simple_tables+raw_html+i= mplicit_figures+footnotes+intraword_underscores+auto_identifiers-inline_cod= e_attributes=20 >> --embed-resources --standalone --highlight-style=3Dtango=20 >> --top-level-division=3Dchapter --table-of-contents=20 >> --template=3Dlib/template.tex --pdf-engine=3Dpdflatex --to=3Dlatex=20 >> --pdf-engine-opt=3D--interaction=3Dnonstopmode --variable papersize=3Dle= tterpaper=20 >> --output=3Ddist/trpl-2019-05-04.letter.pdf; plus book itself >> >> Error message from pdflatex: >> >> Error producing PDF. >> >> ! Missing number, treated as zero. >> >> =20 >> >> ( >> >> l.306 \begin >> >> >> This is what the (apparently) relevant fragment of the LaTeX file looks= =20 >> like: >> >> 299 =E2=94=82 \begin{longtable}[]{@{} >> >> 300 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tab= colsep) *=20 >> \real{0.4189}} >> >> 301 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tab= colsep) *=20 >> \real{0.0676}} >> >> 302 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tab= colsep) *=20 >> \real{0.0676}} >> >> 303 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tab= colsep) *=20 >> \real{0.0676}} >> >> 304 =E2=94=82 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tab= colsep) *=20 >> \real{0.3784}}@{}} >> >> 305 =E2=94=82 \toprule() >> >> 306 =E2=94=82 \begin{minipage}[b]{\linewidth}\raggedright >> >> 307 =E2=94=82 Target >> >> 308 =E2=94=82 \end{minipage} & \begin{minipage}[b]{\linewidth}\ragged= right >> >> 309 =E2=94=82 std >> >> 310 =E2=94=82 \end{minipage} & \begin{minipage}[b]{\linewidth}\ragged= right >> >> >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/e52155b1-2b00-4cee-8816= -53906072ede7n%40googlegroups.com=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 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/5c032897-574b-4c5f-bc54-6101ac925098n%40googlegroups.com. ------=_Part_2131_282837541.1675366509434 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Replacing template.tex with the one provided by pandoc-3.0.1 (via pandoc -D= latex), it does not crash anymore, but gives me this error/warning:

Could not convert TeX math HOME/.cargo/bin*

and

[WARNI= NG] Could not convert TeX math HOME/.cargo/bin*. Ensure that directory is i= n your `, rendering as TeX:

=C2=A0 rectory = is in your `

=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^

= =C2=A0 unexpected '`'

=C2=A0 expecting "\\bangle", "\\brace", "\\brack", "\\choose", "\\di= splaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle", "{", "\= \operatorname", letter, digit, ".", "!", "'", "''", "'''", "''''", "*", "+"= , ",", "-", ".", "/", ":", ":=3D", ";", "<", "=3D", ">", "?", "@", "~= ", "_", "^", "\\left", "\\", "\\hyperref" or end of input


<= br />
On Thursday, February 2, 2023 at 1:56:03 PM UTC-5 Mouse Mousevich wrote:<= br/>
Attaching the= template (template.tex) in question (from=C2=A0https://github.com/killercup/trpl-ebook= .git). Since the rest of TeX Live seems to work fine on my machine, the= attached template is the natural suspect. Needless to say, I'd appreci= ate any help. Thanks!

On Wednesday, February 1, 2023 at 6:02:06 PM UTC-5 fidd= losopher wrote:
Looks like you= =E2=80=99re using a custom template; you=E2=80=99re probably missing someth= ing we do in the default template.
Get the default using
pand= oc -D latex
and compare it to what you=E2=80=99re using.
=
On Feb 1, 2023, at 1:22 PM, Mouse Mousevich <u...-OVIABD91gjs3uPMLIKxrzw@public.gmane.org> wrote:

=
pandoc-2.19.2, pdflatex from TeXLive-2= 022.
Rust-book set of .md files from=C2=A0https://github.com/killercup/trpl-e= book.git (version from 2016).

<= div>Conversion to LaTeX seems to succeed, but subsequent invocation o= f pdflatex fails.

I printed out arguments p= assed to pandoc:

pandoc args: --from=3Dmarkdown+smart+grid_tab= les+pipe_tables-simple_tables+raw_html+implicit_figures+footnotes+intraword= _underscores+auto_identifiers-inline_code_attributes --embed-resources --st= andalone --highlight-style=3Dtango --top-level-division=3Dchapter --table-o= f-contents --template=3Dlib/template.tex --pdf-engine=3Dpdflatex --to=3Dlat= ex --pdf-engine-opt=3D--interaction=3Dnonstopmode --variable papersize=3Dle= tterpaper --output=3Ddist/trpl-2019-05-04.letter.pdf; plus book itself

<= p>Error message from pdflatex:

Error producing PDF.

! Missing n= umber, treated as zero.

<to be read again>=C2=A0

=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (

l.30= 6 \begin


This is what the (apparently) relevant fragment o= f the LaTeX file looks like:

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

=C2=A0300 =C2=A0 =E2=94=82 =C2=A0 >{\raggedright\arraybacksla= sh}p{(\columnwidth - 8\tabcolsep) * \real{0.4189}}

=C2=A0301 =C2=A0 = =E2=94=82 =C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabco= lsep) * \real{0.0676}}

=C2=A0302 =C2=A0 =E2=94=82 =C2=A0 >{\ragged= right\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.0676}}

= =C2=A0303 =C2=A0 =E2=94=82 =C2=A0 >{\raggedright\arraybackslash}p{(\colu= mnwidth - 8\tabcolsep) * \real{0.0676}}

=C2=A0304 =C2=A0 =E2=94=82 = =C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \r= eal{0.3784}}@{}}

=C2=A0305 =C2=A0 =E2=94=82 \toprule()

=C2=A030= 6 =C2=A0 =E2=94=82 \begin{minipage}[b]{\linewidth}\raggedright

=C2=A0= 307 =C2=A0 =E2=94=82 Target

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

=C2=A0309 =C2=A0 = =E2=94=82 std

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



--
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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e52155b1-2b0= 0-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/pandoc-discuss/5c032897-574b-4c5f-bc54-6101ac925098n%40googlegroups.= com.
------=_Part_2131_282837541.1675366509434-- ------=_Part_2130_1608894881.1675366509434--