From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32419 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel 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 13:55:29 +0200 Message-ID: <87tty3yco7.fsf@zeitkraut.de> References: <51f74822-bf97-46c2-864d-1ba0183086e6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12948"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBXOYSCQQMGQEUBYUPBY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Mar 29 14:17:37 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f62.google.com ([209.85.221.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phUkD-0003CB-Gn for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Mar 2023 14:17:37 +0200 Original-Received: by mail-wr1-f62.google.com with SMTP id y4-20020adfc7c4000000b002d633dc129asf1509666wrg.0 for ; Wed, 29 Mar 2023 05:17:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680092257; cv=pass; d=google.com; s=arc-20160816; b=YrCnDLYdX/gezk3K06uJ4fSbYfHBevu+r8ExMVxgquf+lilG00Yh2avmNd5RR5gyv5 4aba8y3EfIFaJspKaS0rk/N/xTK0n6yiggrl9ehBF7higcxDapJjlY7IxdSBY8wCPtWj 583MPMIoJlgu8hofV72RYdrYoKMEMCPWleYopE20UEXiueIHXvMhlb5c6fmuRSh/GJZS MRb+WMTqyNrMSNeyTaCeKCwqEUc4E/6sQ8TY5N2sk0BUWfLpYa1YIdFZK2p6r09OEExH YGTguxiSjWfGeFxOBdk6Y0qpGfxVXtSYNshvFNnnQjjGkkgGp6vYICn+pVbhnGyhjvsw j+2w== 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:mime-version:message-id :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=jrJG65TrgksKh9EqLGcxBIxgt4+e2TpIyVL9SY4wTcQ=; b=mIpD5mjSeCUkpTnwEeFa+kfMrLDy+TiOV3znUNgZRyFDerBXG5Czp+l59/duwZHQW2 O/2wgSZr1cUA5+VDxVpiSeyfRKWw1vkn81tLsaNAg6Yh9OKMptukkgX7LSG14nE799lm MD1RrqK+ECKYcDdjCHX/psvEQzucLrBjzsC+XOk+WFH1NCA2npydINh2YyMl6zf4U9sc GN+kymiV1BFn2EPHyI4JKU06SGYUQAXF7J1AM16F9K9fmy0k/RDXVdhfxbgoJQhtZ6bm 97QFsxm/WJAxt6Nq6lMTaMPkD0lJhyYMm3ndnqsnmLDUmvhw1H3zfYVibAiN0K555YwI xSew== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680092257; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references:sender:from :to:cc:subject:date:message-id:reply-to; bh=jrJG65TrgksKh9EqLGcxBIxgt4+e2TpIyVL9SY4wTcQ=; b=gbkgDiiM5N18rfNz1v8atgt6JCTwRvqgqpVngaU1uwWoPFoAKmakNAETaLrnW7CLFI YBxdpLDlFTKSDGjZN/zdfks2R15quUCmFC5pl/JICFqIxj7NdsfVNAhRmoubUCAeFV6e RgUuwimu25H7T2hI+PETTZAJ5y4Ga8cq86i2VZmrfmeMEqrzEejXddtthyMw7igTH2eO mNNUpstKCXVMi/TpsETE5gmt7omGtyYD35A/ncCpRih1KV58nFGVAqsfZ08Gn/CpRTxQ ovXLZeCmG5A3EwPPAMNIuxpMnKoXRNdDcAmvv2igaE3OdHIomPgOTPOIicuWn/sb7Ko2 oqEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680092257; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=jrJG65TrgksKh9EqLGcxBIxgt4+e2TpIyVL9SY4wTcQ=; b=WmZu2b98K9YAIbUb7Ozrnms0+AHZL6/zbQh55JVMhuUziYIw64czBH1PncQUNnq4s9 W+tzKdz/8tixyt/SnmTPyS6jv0m+FpYxUCW0myolghmiYMvGgmmprmH5wS/uS2m3OSGJ fDPhAjUXPvN6Y0lkAujAb7EnJO5ha39xOjGAHrOszrybpRWksm3NVTuxqMBLfAhoWHHQ DSGuTesKJ0kBTywWf4dfxlEe1MpzME1kmbGbcUSgFqqOJOyI2C9g+R6kIWD1kB93g4l9 sM89W2ZrGab9htmxVIzpp6+QKknfnyqi Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9fQgPQ6japuZvEJ7hSlWtQ32VGGRm29zBiTsGyZaToalPCQJDTh agSGwjbex3C5p6TrF/Y68Rs= X-Google-Smtp-Source: AKy350Yfpmg+QPEBcVrMW15fq69lXQhPBHkZA2fFBDkiJGEuS8tEQXOmKdWQzDjC2VCC7izptRMedA== X-Received: by 2002:adf:e98d:0:b0:2c5:7eb5:97a6 with SMTP id h13-20020adfe98d000000b002c57eb597a6mr4121543wrm.12.1680092256983; Wed, 29 Mar 2023 05:17:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:5e81:0:b0:2cf:ef77:1717 with SMTP id ck1-20020a5d5e81000000b002cfef771717ls23275858wrb.0.-pod-prod-gmail; Wed, 29 Mar 2023 05:17:32 -0700 (PDT) X-Received: by 2002:a5d:4fd0:0:b0:2cc:459b:8bc8 with SMTP id h16-20020a5d4fd0000000b002cc459b8bc8mr15172145wrw.6.1680092252260; Wed, 29 Mar 2023 05:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680092252; cv=none; d=google.com; s=arc-20160816; b=H63ldWIBXRcy9CAPraD64C2QY/4LTl1+YxMV7zcWi2LUooHtpvh6rRgicAcJbiRA79 bG69XpUBGSPKIixU15BmGIIe+nTbg/ONtJ63YtCs1jenm3tMcL6/mwe/l5Un+qyZrf1T i0V4K9lgTZNoDeYzsQWBSVh+EHeUr/5DRcyzpzeZ3qKx3q0ynsC8oEATXZx/JLfFNLoa C1yJdC5EDMiMKgqyjuM5UJcIu7G8ZDbQZZCfYzomRyr3ZUPFoK+gU/bKLJWyBRneAztL juRhVilzE5DLRWXtgxBctlAzhmMxAJvjK/42P8Fkm42c+P+IdyYWY6wZ/bQKytBYc/oi ylMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=+WB70HciKmHcucW2ZMJT/VtP5/y3RAjazAujGagQBEU=; b=AfChCTvc7TTaq2UiKC3zVuRNUFLGHKduRRwa3h/pUIpOQKkwLSAdztJVOx/JPBPcMi r3Uuk/9J7NW3aIeGTBDaSFn0cTgdWz0SwOEkfnebOYXb4vz3v+sNqyXm43pVY5EIJFZT ngd9y5CsqzgeAaIKiVEIcGnKhOXnvE8Fhu4FzAWJw8f+Pw3A1VR3vbN/Bq1jIY7ocNzI xRhjjN84JqZbrUcqCY3UnB25CkdfoUownqB3kVg/WhAyGiPp1huNdogHD/gZW7S+G9aV Wg9ffPUW1x4UikE/vm4xguIG7Qfrz2rvZOSnAL0wID3no0pIZtFzDa4N+w7GPNERrjfk XHMw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171]) by gmr-mx.google.com with ESMTPS id bj17-20020a0560001e1100b002c5995fb581si1560814wrb.6.2023.03.29.05.17.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 05:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4PmltK6N9cz9scZ for ; Wed, 29 Mar 2023 14:17:29 +0200 (CEST) In-reply-to: <51f74822-bf97-46c2-864d-1ba0183086e6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:32419 Archived-At: 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