From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32420 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: What happens when the -t option is different from the file extension after -o Date: Wed, 29 Mar 2023 14:28:04 +0100 Message-ID: References: <51f74822-bf97-46c2-864d-1ba0183086e6n@googlegroups.com> <87tty3yco7.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c5f23605f809f2be" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14016"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBQX2SCQQMGQEEPLSHBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Mar 29 15:29:42 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f64.google.com ([209.85.208.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phVry-0003Tg-EQ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Mar 2023 15:29:42 +0200 Original-Received: by mail-ed1-f64.google.com with SMTP id k14-20020a508ace000000b005024a8cef5csf11166379edk.22 for ; Wed, 29 Mar 2023 06:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680096582; cv=pass; d=google.com; s=arc-20160816; b=Ft51k5aTb6uV9ndRcpwkR5bHTBv+w6GTSD5PTQzHUCTiDP6qMo+IEmXTq756Zh3mDL xQqsyznTVOt0tfBVfjEBihXNtQgI4kxcWbYw4m2FT7HIAK8tbEXIAXJysb9F1j9Yknx6 EajlYNREXjSjrUA+se+VhCQGpFLSHXKifwSgcmPGdNxpDBnIUSq/n9EjVrzTM03PgvtO vMjDh9fMb9iFVrNZmgZqcBaGsfny6D4lIq4boX3oe93cDwpPoZNYLJ4ma5gS89lG5Tpe Z+/5g1g7gid1Miv/6fTfNPMfjC5NLE9eyTEjA4/0jptOk5Viq7hBTywh8xlLo9VQyxjG +uoA== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=1rRFuFaGdPEhco2XSw6IPml4oxiCccpkjzyBbGFCULc=; b=BdjOHeo8lu4VfUMuVBhp5e96gjzzhomsn4YcK7v7Bj8dg5dIlphjQ2ZhfaSMHEu7sR dE+yRRvj+nMUWJ/U9SwtUsMjMyLdhhJjjZCVZmPgUQHXrhYOsSRzBnOYvBzGPtx0HW2Q X1SPVM3YDsdskIcF6O69I9LkfiVtVNF/bb+LaIWTkTSvJytRNpBH1/QhB4xqGW35Y7HE FN4yI2dMv1hEMEXlfiDt5AB81V3eL7lgbFjXAldL3Lr7Ibm9rLwKpM5fUHpFV1NdsqnV znG8pz5AvMOdBi4Bbc3jL9FNR0rIljWVDpzav7ghANzmEyD3ELXxj5PRxo9umV5woO+z R7hQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=nNsUaksC; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680096582; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=1rRFuFaGdPEhco2XSw6IPml4oxiCccpkjzyBbGFCULc=; b=suKS9iJKCUPFPUSkngTlhBhDTNOVH8iUPu/yPUY/5fdTz1tihZxnvfdUNnJBZwxxc1 tkPnLVSVP5QAkl5H3YB2Puu4OO2yOKl8jRqT5vTsrCY6Rs7XCxAU+pEwnGrj6z5wQEzS ex/OVFxpqbYl3ucI+dLoR6mqQVp3rCaLz7UXgy00bwiKitteFrTi9wx2V1mKKzgPQPWo 3mPYRTrpYLfhKK9AMFL2TatRraIO2kASkPpKVBKB695qWMSc4+i+aaNcdrY88zSKTSTV FYTA7VgkFvF3HCIQaG3v7Cxu5jjHYj2Hf2uTC0S8GYt5Sd+kTgfWpQ1Vsjdf4myuXlZA aUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680096582; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1rRFuFaGdPEhco2XSw6IPml4oxiCccpkjzyBbGFCULc=; b=wc5/CDX1oax7T+MWuReRgpsiNS+srB8x20TGcLKveo0E1ns+bC/wuD2Ltj9zeaW8Nz bLw/wga65zFoq6mofTFLDP5s8To6fZAVw435uoTjWljrDm8DWaLjOUqYEMXvLw5DsoMy ngduXfY9sATr0v/BLiBv+6n+k3F/i0Fob00K2s8z9j93MbfPs7hRQd5RlHe416bf5zUg ZsbdK2v6tjjg5gM2jxJygxivtwGJwEqNdSGMfrVwr1Utji6mQ+ASVhYrM7sMUPc+Y5vU UXIlgwrJ8NtBFsGzW14EEsIpZ5RydabvvPGuKACDVnCMODLvn X-Gm-Message-State: AAQBX9fljK394wkSKctalkh48KLqeIDZH4mgzzKo1sEvZzMOw/N7Mt3Q hqkSgxHPG4bpRpmB/K8qTA4= X-Google-Smtp-Source: AKy350ZwuL/h+u683uvHlF1Cs3w+tQUUc74jeDdhqVS73w4zOp2MU4ue5iUx5yZOQGehXX7AjQudrQ== X-Received: by 2002:a17:906:ce4d:b0:932:a358:f88f with SMTP id se13-20020a170906ce4d00b00932a358f88fmr9749210ejb.8.1680096581845; Wed, 29 Mar 2023 06:29:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:8c09:b0:931:a3bb:127e with SMTP id ta9-20020a1709078c0900b00931a3bb127els10421993ejc.1.-pod-prod-gmail; Wed, 29 Mar 2023 06:29:37 -0700 (PDT) X-Received: by 2002:ac2:46ea:0:b0:4ea:e789:25b with SMTP id q10-20020ac246ea000000b004eae789025bmr754006lfo.30.1680096495733; Wed, 29 Mar 2023 06:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680096495; cv=none; d=google.com; s=arc-20160816; b=ML8V/I18Yftpv1MeJgkUn1CmQ3tpHtezAajs4tYxacAJbtiQkfUwB/h/spUI+1BWaf 1RfQNUMuXK+VAguUQeG4uW1pQrVTRD7yG/CI0TTDCH7zSofb3iMzsWa8KrImyV5uP3oN WL6j67SHDSCTKxNHX+FG3OMUAudjPTas14F4I/Qmp15sWr/N8JLDta+lumk0pumRMs33 Gy4kNbusnrhmBIEFgW3S4+mOYqaPyO+w1pYM6xzR0/Hu+5B7FyzNH1TkZV2wg63psYys kjjpxRe66+Kkqpi3XqgE7N8GqLbgieqlgH2NBLQa0pAKpeE2c9x5QhbwxYhZSuCwevjN KDWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FdmFv4ghmu9VQ/pAkU0R2R1mXvUPVYecZ+wDv2nHoQQ=; b=hozzVjHrDZLhK2M0zmUu2b17KR7TM1tcIZEjWehE8JcpGkRcqu+EnEpW1xECcSzf30 N1ifC4uY6IIjzCkGlZ70tQnVRGri2GROXuRLdUtgJGYQLY9ze35wdSfsawl/LNZQuYMv VsD1hmRCk9ubfqbU8IMbeoiQTtqGE0zBnb5iB8p6RdD3rJNWJ0pWaqcyRTKOnok5K4v9 fmDGJEZe2Ufp4/18CrajvCDAEM/vaptndmgpgOZ0lRLC/gj/b1TbIlbJIIZBfT1Bd/2M wj8eqw9OblmTnMA1CGoq/yjXNUqZJIHY0YSOf7MfmDAcmjBFibrnDK+P80P9XYOnqPqV Mlgw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=nNsUaksC; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com. [2a00:1450:4864:20::534]) by gmr-mx.google.com with ESMTPS id bp13-20020a056512158d00b004dcbff74a12si962745lfb.8.2023.03.29.06.28.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 06:28:15 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::534 as permitted sender) client-ip=2a00:1450:4864:20::534; Original-Received: by mail-ed1-x534.google.com with SMTP id er13so22278278edb.9 for ; Wed, 29 Mar 2023 06:28:15 -0700 (PDT) X-Received: by 2002:a05:6402:11c6:b0:4ad:739c:b38e with SMTP id j6-20020a05640211c600b004ad739cb38emr1448216edw.1.1680096495000; Wed, 29 Mar 2023 06:28:15 -0700 (PDT) In-Reply-To: <87tty3yco7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=nNsUaksC; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32420 Archived-At: --000000000000c5f23605f809f2be Content-Type: text/plain; charset="UTF-8" George, If you set pandoc's --verbose flag then you get a lot of detailed output, including the wkhtmltopdf command line and the generated HTML (that is passed to wkhtmltopdf). If you'd be happy to share any or all of this output (or send it to me directly), I'd be happy to take a look and see whether anything obvious is going on. Cheers, William On Wed, 29 Mar 2023 at 13:17, Albert Krewinkel wrote: > Hi George, > > George Emad writes: > > > 1) Is this a normal use case when I use different file extension than > > the format after -t ? > > Absolutely. Pandoc supports multiple PDF engines, and both the `-t` and > `--pdf-engine` parameters are taken into account when deciding which > format and which engine should be used. If the `--pdf-engine` parameter > is given, then pandoc uses that engine together with the appropriate > output format; if `-t`/`--to` is given then a engine is picket. > > Here's the list of formats and suitable engines: > > - latex: pdflatex, lualatex, xelatex, latexmk, tectonic > - html: wkhtmltopdf, weasyprint, pagedjs, prince > - context: context > - ms: pdfroff > - typst: typst > > The first engine for each format is the default engine. So by using `-t` > you triggered PDF generation through wkhtmltopdf, which, it appears, is > installed on your system. > > > 2) How can I fix this bug with the TOC ? > > My recommendation would be to try one of the alternative engines. If > that doesn't work, please file a bug report in the issue tracker at > https://github.com/jgm/pandoc/issues > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/87tty3yco7.fsf%40zeitkraut.de > . > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxg8XZST4fSrEM6j-E%3DN1o7gzspsQ%3DVC5G_RCdZXA3NjBA%40mail.gmail.com. --000000000000c5f23605f809f2be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
George,

If you set pandoc's --verbo= se flag then you get a lot of detailed=C2=A0output, including the wkhtmltop= df command line and the generated HTML (that is passed to wkhtmltopdf).

If you'd be happy to share any or all of this out= put (or send it to me directly), I'd be happy to take a look and see wh= ether anything obvious is going on.

Cheers,
<= div>William

On Wed, 29 Mar 2023 at 13:17, Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>= wrote:
Hi Georg= e,

George Emad <engr.georgeemad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> 1) Is this a normal use case when I use different file extension than<= br> > the format after -t ?

Absolutely. Pandoc supports multiple PDF engines, and both the `-t` and
`--pdf-engine` parameters are taken into account when deciding which
format and which engine should be used. If the `--pdf-engine` parameter
is given, then pandoc uses that engine together with the appropriate
output format; if `-t`/`--to` is given then a engine is picket.

Here's the list of formats and suitable engines:

=C2=A0 - latex: pdflatex, lualatex, xelatex, latexmk, tectonic
=C2=A0 - html: wkhtmltopdf, weasyprint, pagedjs, prince
=C2=A0 - context: context
=C2=A0 - ms: pdfroff
=C2=A0 - typst: typst

The first engine for each format is the default engine. So by using `-t` you triggered PDF generation through wkhtmltopdf, which, it appears, is
installed on your system.

> 2) How can I fix this bug with the TOC ?

My recommendation would be to try one of the alternative engines. If
that doesn't work, please file a bug report in the issue tracker at
https://github.com/jgm/pandoc/issues


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87tty3y= co7.fsf%40zeitkraut.de.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEe_xxg8XZST4fSrEM6j-E%3DN1o7gzspsQ%= 3DVC5G_RCdZXA3NjBA%40mail.gmail.com.
--000000000000c5f23605f809f2be--