From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32856 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jianhua Liu Newsgroups: gmane.text.pandoc Subject: How to indent the entire fenced code block together with line numbers in pdf? Date: Wed, 21 Jun 2023 09:26:06 -0700 (PDT) Message-ID: <7736202e-28b6-4fab-92dc-8e1a5acaac3an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18137_1745024892.1687364766413" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7130"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDG33VVRUIMBBH6JZSSAMGQESCW4KWY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 21 18:26:11 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f61.google.com ([209.85.160.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qC0ep-0001ij-54 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 21 Jun 2023 18:26:11 +0200 Original-Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-19f97a46598sf4909332fac.2 for ; Wed, 21 Jun 2023 09:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687364770; x=1689956770; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=kgie0mXpvi3h9hRHCDEzzgB8WwEFzJDDlr8fJtk07v0=; b=q8oxmHl1r0REmBkNAKhQTpjS87FHVkvMD24uM73RTxDHUvmj4VYNLz5ZJuiYx164j4 5sj2u95A3ZLdkQ4nUmEnveU5Vcs3j4UOUJy2fqRSyUyWoHTISLP6pmLSSXpfth4tvRpB HgNQtnrvlVt+Y/4dIlAE8g4fWs1AAFMebAqdGCuf6dF5CcjXoCADWy0/HUM9N7FZwl95 aBuWknBEPqd5AfakRllJXJFv9U6f8Y2VH4XuHhVnbc4wC3hdFciSLi6UY+AU+cV/pLD5 mJ73RnYAYcGclR5HcMvxHnRGYAC4PMysaNfiy0jBSu2hqkWza1dd80v+9yBimrF9ahGD 8eiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687364770; x=1689956770; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=kgie0mXpvi3h9hRHCDEzzgB8WwEFzJDDlr8fJtk07v0=; b=lhVHZ+4KiZNgndu5drWyfOaJnEEWzCUxsXZLw2607KEVMKDE8/Qlf3pyglH/G0ZGQn TNtWVaTw8meVj0hEUjkrJGOvrSlVBgomyRTlmTaKt+ZW9VGv0DDDdsv7tMV8NncVCgsS pf6MeqycgD4Rr3BPGTa2wEdO1u8tQ4zmRjoC5Kf+RDJwg5PggQdaEii1mfgvvWd/92bK cPLNpvBtkjF3oysEPB0vYMpGHX/+vH20xz7qGPOeg5nMvBSpz5AvY75ZFY6djmT/kkP2 1D7JYTyTBznxDsxyxRyaMQtGOzG/ZUBUg42klKhDdJa4VziqqfI6/dLQpUH060jqt1vk uvDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687364770; x=1689956770; 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:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=kgie0mXpvi3h9hRHCDEzzgB8WwEFzJDDlr8fJtk07v0=; b=PBAJgwTTjoKNOpHQxuzslNfY4NZ33Ld3wLoSbQfG1jzWl4GWK6fFHeYeb+SP6/lZcQ bEHnepOMJ+78yNtzXzxGQrJCVMTBEt8wdBro8bAFLBDMYFu0c7rjXevbzr2kxoTT6s0x X1hARp6IkbngeGZvKLc13SHREX/Hn4DD7cV1Baf8LsytAUNNR+PMFF7igvReqzkxBIe7 KuGBhPPNQ1zJ63GmrhvGyaJf5qaJbkyp19vTSC9L13yIFEk94QatzaQATvVZ54kj0n+v KDZMt7iLM1WJLPWS3yH8dpwHx3BMmf9ZU6lhsfjif5w7Ta7WzT59sgdswXk4zt10FSyj Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwojWlHFvfZxyX5p4zJ0cP7FMpelfxO841qA7WHDQtyzZIdtxxo UfgFd/dA3sPWrpa6KdtLGdM= X-Google-Smtp-Source: ACHHUZ64GphjIVfYue9FNSWwJcLfl7Y1ZReL0ggOJ1Qx9W2iKv+Jw22zizzagBjfOLIXyJbEvR9XRA== X-Received: by 2002:a05:6870:e0cd:b0:19e:d407:a753 with SMTP id a13-20020a056870e0cd00b0019ed407a753mr16304322oab.46.1687364770063; Wed, 21 Jun 2023 09:26:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:4d0c:b0:1a3:4345:7008 with SMTP id pn12-20020a0568704d0c00b001a343457008ls569259oab.0.-pod-prod-04-us; Wed, 21 Jun 2023 09:26:07 -0700 (PDT) X-Received: by 2002:a9d:754a:0:b0:6b5:8ad8:d8c5 with SMTP id b10-20020a9d754a000000b006b58ad8d8c5mr1546820otl.2.1687364766975; Wed, 21 Jun 2023 09:26:06 -0700 (PDT) X-Original-Sender: jianhua.liu.88-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:32856 Archived-At: ------=_Part_18137_1745024892.1687364766413 Content-Type: multipart/alternative; boundary="----=_Part_18138_778244304.1687364766413" ------=_Part_18138_778244304.1687364766413 Content-Type: text/plain; charset="UTF-8" I am trying to have the following changes to the fenced code block in the pdf output produced by Pandoc via pdflatex: 1. Change the font size to \small. This was done by using the following instruction at https://groups.google.com/g/pandoc-discuss/c/YQiDefzWoQY/m/jm2rn7HgXlwJ. 2. Indent the entire block together with line numbers to the right for a certain amount, say 0.3 in. Without line numbers, we can use a filter to fake the indentation. I'd like to know how this can be done by changing a Latex head file so that the code as well as the line numbers will be indented together. Thanks, JH -- 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/7736202e-28b6-4fab-92dc-8e1a5acaac3an%40googlegroups.com. ------=_Part_18138_778244304.1687364766413 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to have the following changes to the fenced code block in the p= df output produced by Pandoc via pdflatex:

1. Change t= he font size to \small. This was done by using the following instruction at= =C2=A0https://groups.google.com/g/pandoc-discuss/c/YQiDefzWoQY/m/jm2rn7HgXl= wJ.=C2=A0

2. Indent the entire block together wi= th line numbers to the right for a certain amount, say 0.3 in. Without line= numbers, we can use a filter to fake the indentation. I'd like to know how= this can be done by changing a Latex head file so that the code as well as= the line numbers will be indented together.=C2=A0

Thanks,
JH

--
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/7736202e-28b6-4fab-92dc-8e1a5acaac3an%40googlegroups.= com.
------=_Part_18138_778244304.1687364766413-- ------=_Part_18137_1745024892.1687364766413--