From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28358 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Markdown to PDF via TeX: Tyring to change section title color Date: Sat, 15 May 2021 17:12:19 -0700 Message-ID: References: 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="21380"; mail-complaints-to="usenet@ciao.gmane.io" To: Randy Yates , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB4OGQGCQMGQELWHR4DQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 16 02:12:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f185.google.com ([209.85.160.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1li4OY-0005Oy-TZ for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 16 May 2021 02:12:34 +0200 Original-Received: by mail-qt1-f185.google.com with SMTP id b19-20020ac84f130000b02901d543c52248sf2408396qte.1 for ; Sat, 15 May 2021 17:12:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621123954; cv=pass; d=google.com; s=arc-20160816; b=qBz/0MJIKJWxqUd9VfZtuKSleJkctGqdgcY7F8Vn+RZQxAjpkq46ITa6viHzuM2iHG ltyQvwB00aygIg8UoWlaH9GlAglRpctlK8fZ+Vx6HtGFXppjDTi7tvg3sUPNrZciwy9p iyhgbPkbsfKLYNrf/tdlG3aKi70GBhgPU7kfEXqXxPTGZCXZZaSn7L/jgTo72XqZc7mx 6XDwXwMuFjBdEBMknZYRn3A4tsBHI1hFwEh+vH0keqC1z4oQ4AEcNS8gdebxUQ8r9sBy 42Ccg8PFRdLg8c/uf48A5mqdLCKLmX+AgdQOOVK/cQx2swTPsftVx/gCFUjTEHy2u//A n5Kw== 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 :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=AIjTKXDKxbZyi/apmbiZEoBN41wbvTYCX8o57J3s/cw=; b=MyomcG4oVWNwE//uC6/iS95ljDHD/IPPSoBTcVxOAoDBK/Nom6NkEBIiBrDgzT0SkQ OB5CEzTs9wNlWuUx1pktk3S5XARmwv8SQM4Me+H/DT2JZeiy1qgeslUxx5PcIeElNWlH eFraxClwkB+74PRV2R6FYbKjqfhhJQw8axRjNmefnTaEz9SjrxN4AO4+qUYUBLxDQC51 IBVPslfJy6M+o/vzqBEk3cGiS1jffESP2Iau8xJtC7evzifM549wlR0biIqZRIDCote0 jvVrT9BHl8f5a6i3maGG1VUpvxwPxmIcE++mKeB1mBBAP2FUCwquwZw+EuqcBYl/QS5X uu+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=CCt9ISIB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=AIjTKXDKxbZyi/apmbiZEoBN41wbvTYCX8o57J3s/cw=; b=XM5Su1E9HbqrVyXnvcqhKKNTok+jBj6kw5uFYSiPhUw2aGBfJi/ghRVTvoq154XVa3 HWYopbmiiJ+I/Z4n999LSVEuxoiNZtPwTG8gTgVlcjEt+1aKnlFhmXZljGWt3t+/qD+9 JnnWTALCEvlLGMHglsNhj+CA9I1LBrYXjbStwyVoIVjyRCbPekaMKu0+1Fl4SyGndXBW NhDZ7woDMLREpG7tNH5GRzxN5DMnVwmw7zpQTk/F82xoVrP00W0s8VK+m2eTnGCHlex1 ASeUra+GpleK8lpfiS+D4EsAb9yd4C3jKt5Sbq05IiYyAKexsXsM4SYeO7eWi6wjVe5R CGwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=AIjTKXDKxbZyi/apmbiZEoBN41wbvTYCX8o57J3s/cw=; b=Rox8LZ+ra2ibkVMyHB3ex2F3bwmVLkitHv+lkF9IuPD/hu+Isu3TRbHYroyMrHPCW/ hvzmVhYutRnPR6FfNVIC1BtZEUmqSp3UrJS1TzYTMzlAU+mhiWfEKKmbiADl+aORinhm tHAK5yEbAlZvQ/UMXKcian70jgzCAFNeMLX7GIoyaxdrNb2rpOdGXzCoMHQVgX7cNS9g K0UgxljpMUmK+GHjlG+oxlJm7UFTprRdiv6wboVZHuEuoFzsO09Nsqv1GKgcM5fugoSJ Jf5CysI2ksbhdbzAxGwEgxnPHg3v8s6Ygu0prnqoHUVrcI1QWCZKCgGCELXI10BM6ZUg Qy6w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533uqzrjEiCLkIX84z4gCHcY0Cw8mBxP5sTcV5XBAidfPbDJQvhA 9p8PnLwF0tXEnO1klx9X0SM= X-Google-Smtp-Source: ABdhPJyK6m96GXoh2FnXFoLBrEXUlcaIu0ZZ54MUaue6d/M5tpCWXzge/sxVY0WtHGh0+00If5+ovA== X-Received: by 2002:ad4:5766:: with SMTP id r6mr14473038qvx.23.1621123954064; Sat, 15 May 2021 17:12:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ae9:f017:: with SMTP id l23ls773154qkg.2.gmail; Sat, 15 May 2021 17:12:32 -0700 (PDT) X-Received: by 2002:ae9:efd1:: with SMTP id d200mr49712342qkg.379.1621123952626; Sat, 15 May 2021 17:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621123952; cv=none; d=google.com; s=arc-20160816; b=Fe1yHkaW7m1rK4385IhQCjQnSSzppqap6qBoiybmeZG1KKriptEec/N8QI1eIgGTAI mdHPv4CytQ8zmrw2SDjJ2aq76tS9TZzQiCfX3GFk0/R5U1/5o1afZnyok1RmujfHWVfX wCuwWckvymgjIPRuECPZmvjNs6SSmIwYyWWjjfLB1m5Y762ud0rnlGI0RS1rE1Mei0M+ ZQUzyD/49o+7+cx52auXGtkwLt8J+E3vdZJHNdPqVcG/fpERPPTKkJv53QmNnR2bc0th dE3DWy36SR3/v/lZDnS4zyxwxuByjfabNCCYg/vxkOWT+ar5/gI3VkAR4o1o8j7cC4H4 I0ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=7OD4E8WxiR5BcYZlQ8cuSNRuxHgAHzwwz2mYjPMKNuE=; b=B5dmwfIUW4Aa/CY2A/9fyHBJnhgfiKlbkXIBBptZP5Uqy4dAFErO7uwrzzoIembO0Y TRgMtLkmd+xZjfc/ctzGaAacoCmcheDigT6/Kk4SLIvA4HcL0joOPWY1fKz9bGuomJDa bKl9IpML0Rnb2FyllHWuCtgRFwdjMFKLn190+wNRLK+BWd7kpzb5bXje7knjw1dw2xqu 8alZHKgbStpKnzU7SVOlW+H7UkTUBh/0BL1D+Ga46+BFgpJiKpyiPTmDrKz2lo+WiXvl wJYh2EzIdz1U8zIvEQvCKiXZ1978P0GYmIKg9fG0S2beJnMptc8v75X1GLDUgdab2BMl pOyA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=CCt9ISIB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com. [2607:f8b0:4864:20::534]) by gmr-mx.google.com with ESMTPS id g22si851040qtx.4.2021.05.15.17.12.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 May 2021 17:12:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) client-ip=2607:f8b0:4864:20::534; Original-Received: by mail-pg1-x534.google.com with SMTP id 6so2167260pgk.5 for ; Sat, 15 May 2021 17:12:32 -0700 (PDT) X-Received: by 2002:a63:f90d:: with SMTP id h13mr54060997pgi.18.1621123951073; Sat, 15 May 2021 17:12:31 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g2sm6584516pfj.218.2021.05.15.17.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 17:12:30 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id BE639A231; Sat, 15 May 2021 20:12:19 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=CCt9ISIB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28358 Archived-At: Randy Yates writes: > Don't use markdown as your source document format. Latex's capabilities for > generating rich output are far, far greater than markdown, This is true. > which can't even generate numbered section headers. It can. pandoc -f markdown --number-sections > 1. Elegant mathematics Also accessible from within pandoc markdown, which allows you to use tex math and even macros. > 2. An extensive bibliography/citation system Pandoc's markdown has one too (see Citations in the user's guide and pandoc --citeproc). > 3. The ability to natively generate graphics using Tikz/Pgm. This can be done in pandoc markdown using a filter: https://github.com/pandoc/lua-filters/tree/master/diagram-generator Although it's true that LaTeX is more expressive and more powerful than markdown, but many users may find that pandoc's extended markdown has all the power they need. In addition, there are advantages to writing in this more limited format, especially if you may need to target output formats other than PDF. I discuss this in my TUG 2020 talk "Pandoc for TeXnicians": video: https://www.youtube.com/watch?v=T9uZJFO54iM slides: https://johnmacfarlane.net/tug-2020-pandoc-for-texnicians.pdf > So in general, choose a source document format that's the least "lossy" in > terms of typographical capability, then translation to other formats incurs > the least loss possible. Conversions from LaTeX to other formats are notorious for being lossy -- precisely *because* of the expressiveness of LaTeX. I look at a couple examples in the talk. If translation to other formats is an issue, you've got good reason to use a less expressive source format which can be translated more reliably.