From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32422 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: George Emad Newsgroups: gmane.text.pandoc Subject: Re: What happens when the -t option is different from the file extension after -o Date: Thu, 30 Mar 2023 01:23:25 -0700 (PDT) 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/mixed; boundary="----=_Part_492_183054772.1680164605313" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40571"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD77F6VHVQJBB7UNSWQQMGQEYDH6BJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Mar 30 10:23:30 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f57.google.com ([209.85.160.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phnZB-000ANI-Bw for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Mar 2023 10:23:29 +0200 Original-Received: by mail-oa1-f57.google.com with SMTP id 586e51a60fabf-177bf70751bsf9562227fac.16 for ; Thu, 30 Mar 2023 01:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680164608; 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=gymu9mJGPaLbkwNajLGKK1vrnUaDhrVGU+NpmMw3gFA=; b=Poao3a74S3/IOwGbRLnlKrKDwzeBFYWdFjGzSfR0MJxm5e8rXuUJnletH1z82Jxx+A iHCqfYnLGT4rbBjEJGx0D7H6MhXm6IbyXOzESEXbdSj5KSMpXP8q70u2q0YQGesQ9v1N PrcqnJsmGd7ig7rOlxIdX+jHUfDHmqaXs+T3o/ey/RWSoOSFsv37KEJw9t4xd1UpDMfK LL/VugPPwe1sFJwABy63OzBDLgZZAS/HF2a5LNn5FTxOjFbJ5KD+otPUlBisXHpUBZPY cItZcwOE+NWfdBPqmxfarTcD1HzrHlPHVOwRJMX5h8dDzgK9S068LZpdDF3iK/3CAT3z xSHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680164608; 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 :from:to:cc:subject:date:message-id:reply-to; bh=gymu9mJGPaLbkwNajLGKK1vrnUaDhrVGU+NpmMw3gFA=; b=KYs9I4wZjN35znCP+0as+GnRSKg6mLUSKDKL8pAA5zb4yrHGRSO1PUIKLqI/JCwPht 0Ct8qsSNmIc02nBcWSqyICTSTvmNQaLD+5LqdrFxUGlbodbnFmcTYjvjIAusdFLjaeEI f0UlKOZYeRNyP5pJQbSHiR2Tp3nW/tfbSspETYvmhZ3Zb/CcsY85pMzntZWWWeok8m9I RpcMojf9BMHnZwIPegfoiQCnIfIzc+mbMLUsmBetshEx7sajCypa9ZMvXYm1J6HEe7HT rl3XOxIaJLH4TM7stonhQIADQ8taWVl8A1hbXyCAi4uscu7TN+9ZPX7V+kexaSFJxnkC ItgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680164608; 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=gymu9mJGPaLbkwNajLGKK1vrnUaDhrVGU+NpmMw3gFA=; b=o47EaGxsmWpQ/85sIK0jIBmV9jIWt1vchm3kFw10KK0Tb9yqsDU+KFqxiDUgMt6W6l Z5HATRCpcFqTXulpkSrRdbTJoD7+wejkGUXEnfQ0yO9cne1hKdGDGGTLh8xPYA4Is868 1Jk1deZRnWHjsYuCdKQbrdIBicrcGzcaHUrkzZ+yOvx61w9wA/qyE6s4TvjBMFTC7hEc PDFNnFUSUMF26tcttyXUbJ+Z5KCYQtYbL2LcgJ8GCORL5FZWHrWMt6m06xoQ8ALVIWXB /p2kV6SWzVtyNFD2V8EY+Kft12gieFuQXeKmjG8/kb45thWjJynQoqivKMyBpXHWBiSl Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUNnye89EQSQnfSbFbZj1epCC35W5z0GT0NtAh49xSCSToiQGUF 1zut2sPtZ33o8gpuMOmbAMk= X-Google-Smtp-Source: AK7set9irumkongUiGqyNPKRCAqf90/n5VQNe2NT6naEySeOR48aimcFkJW+NddzkMCGeX12giKpVg== X-Received: by 2002:a05:6830:1bed:b0:69f:bb3:2163 with SMTP id k13-20020a0568301bed00b0069f0bb32163mr7314688otb.3.1680164608311; Thu, 30 Mar 2023 01:23:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:670c:b0:180:3ed:d762 with SMTP id gb12-20020a056870670c00b0018003edd762ls459989oab.2.-pod-prod-gmail; Thu, 30 Mar 2023 01:23:26 -0700 (PDT) X-Received: by 2002:a05:6871:d8d:b0:176:42a5:a544 with SMTP id vi13-20020a0568710d8d00b0017642a5a544mr5640316oab.2.1680164606000; Thu, 30 Mar 2023 01:23:26 -0700 (PDT) In-Reply-To: <87tty3yco7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: engr.georgeemad-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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32422 Archived-At: ------=_Part_492_183054772.1680164605313 Content-Type: multipart/alternative; boundary="----=_Part_493_1828400071.1680164605313" ------=_Part_493_1828400071.1680164605313 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Albert,=20 Thanks for your reply, trying weasyprint, solved the problem of the TOC, it= =20 introduced some other formatting differences, as I was adapting everything= =20 to wkhtmltopdf,=20 Thanks for your suggestion will try to analyze the problem with wkhtmltopdf= =20 tho and open a issue on their repo instead of pandoc then.=20 Regards,=20 George. On Wednesday, March 29, 2023 at 2:17:37=E2=80=AFPM UTC+2 Albert Krewinkel w= rote: > 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 > > > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > --=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/c09063fb-6540-4e79-ba8b-904e3eed4486n%40googlegroups.com. ------=_Part_493_1828400071.1680164605313 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Albert,=C2=A0

Thanks for your reply, trying weasyprint, so= lved the problem of the TOC, it introduced some other formatting difference= s, as I was adapting everything to wkhtmltopdf,=C2=A0
Thanks for your = suggestion will try to analyze the problem with wkhtmltopdf tho and open a = issue on their repo instead of pandoc then.=C2=A0

Regards,=C2=A0=
George.

On Wednesday, March 29, 2023 at 2:17:37=E2=80=AFPM UTC+2 Al= bert Krewinkel wrote:
Hi George,

George Emad <engr.ge...@g= mail.com> writes:

> 1) Is this a normal use case when I use different file extension t= han
> 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/jg= m/pandoc/issues


--=20
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 &= 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/c09063fb-6540-4e79-ba8b-904e3eed4486n%40googlegroups.= com.
------=_Part_493_1828400071.1680164605313-- ------=_Part_492_183054772.1680164605313--