From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17185 Path: news.gmane.org!.POSTED!not-for-mail From: Melroch Newsgroups: gmane.text.pandoc Subject: Re: Number every two lines in codeblocks Date: Tue, 14 Mar 2017 18:46:48 +0100 Message-ID: References: <5843f636-904c-44b6-b10d-1a5aec67aa13@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0431ca93def2054ab46937 X-Trace: blaine.gmane.org 1489513705 7118 195.159.176.226 (14 Mar 2017 17:48:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2017 17:48:25 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBCOZUDDAKGQEKGK5L3Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 14 18:48:20 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f64.google.com ([209.85.213.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnqWy-0005JC-Pc for gtp-pandoc-discuss@m.gmane.org; Tue, 14 Mar 2017 18:46:45 +0100 Original-Received: by mail-vk0-f64.google.com with SMTP id d188sf32198346vka.0 for ; Tue, 14 Mar 2017 10:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:in-reply-to:references:from:date:message-id :subject:to: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=EqZo/JxLOmSEdnTbilpeVMPTZ2+ha4R1+LAT0sWjwvk=; b=sexucYDIacgI6nbghi2+ykm5wNilhyhPoD7GwbL+DoPtzLTMfp8wM2gpCOdCyy8as4 nfW8vGgjVsdAfsS27o8eb+6hQ5fYdKxCTs379pueI15elgwGho3vMEts0EGIbb9FDm/M t8XeoUyEN0cJAs1q6iCBwQBKXsvmlFLf23GIjoY3a037C5/kYhTMxO/9kv95hRpq1vwz hpugiV0V4GuWMB2bKTo9YhMBfs1GteX9t7Kr0mPFtmVLTO1yylWjZdWAvtSrC/SU3k5w 2UM9AmKCcj13mWEB/sxSrlI9T9+w0FV4wcADEHYhF5UGjeA+QXaNwkuVaKrP+Y8+6KnP EhKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :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=EqZo/JxLOmSEdnTbilpeVMPTZ2+ha4R1+LAT0sWjwvk=; b=qB7/I5dln8luKFMZGtNULNIDalig9ucos+zHsELBgpkHuO5djQEvGhlRPbLXtkf2FO vgAg//8DmNLsepCfOVvoedCosX8nqoqeRye1aETNQ9KSU94fAMqe8BPVWdxyKXdSiB+M 9lDklNC3RjCAnyg3s/ba88cNEpqlMUHOoAxSQXTVgFzbD276UHzR9iuEb1UVQvNCdsQy jEIYjNDc7tcj2sdqTgFFiP77CRqyhkOJXJvjonEoyUkWuzaeRWLWqCssUqarAc2UMQLR BydcxXoyYbTO+wXtDJGyPHMe8R3tyeNgXFW1wN9MR6jBDxVK5FJsOEiyZoFvFStdyvYX smbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:in-reply-to:references:from :date:message-id:subject:to: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=EqZo/JxLOmSEdnTbilpeVMPTZ2+ha4R1+LAT0sWjwvk=; b=hzh8l1iqJ2I7E98euMQksqf6KNcgdedt88IUcNwAVoLppqBJUgHrXW25RpFU4IIIK7 1khveeNBqZO85TGM46fvLcOut29ZeJa6xRScKHeTPzEw8hUQeX+Dj2xmBNMTwQRaCHEq Ou5c6P92obdJCyYUAuNbaoddQV8HnI3+vHx5Md2KWHyfbXJh1pB9gp9UDjaO6Dv+SN3N oXgj2r/e6wPIZeHjYPwwxGm43YmbZ1p7qC4GGDQH3qu0bILaJ/s0PMcKlZ0qzIwzi4UI dMsRwwIooR0vWzRouGsZv0o3aFWI3q+9ZknQt2LNyqPhnQ9R2TBZaQtbj1QjHI39Do4Q Kleg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFeK/H0/pMLF4/sXMBpY1nW1WTUYf80xNgKDZBEWiQgHk3DD9E1wQCce3/hXa9QM41Lsvg== X-Received: by 10.36.65.23 with SMTP id x23mr87302ita.3.1489513610673; Tue, 14 Mar 2017 10:46:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.120.76 with SMTP id p73ls2442211itc.6.canary-gmail; Tue, 14 Mar 2017 10:46:49 -0700 (PDT) X-Received: by 10.99.127.86 with SMTP id p22mr19655746pgn.107.1489513609735; Tue, 14 Mar 2017 10:46:49 -0700 (PDT) Original-Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com. [2607:f8b0:400d:c09::230]) by gmr-mx.google.com with ESMTPS id r198si2949325ywe.4.2017.03.14.10.46.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 10:46:49 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::230 as permitted sender) client-ip=2607:f8b0:400d:c09::230; Original-Received: by mail-qk0-x230.google.com with SMTP id p64so254065817qke.1 for ; Tue, 14 Mar 2017 10:46:49 -0700 (PDT) X-Received: by 10.55.189.130 with SMTP id n124mr38730272qkf.235.1489513609419; Tue, 14 Mar 2017 10:46:49 -0700 (PDT) Original-Received: by 10.55.165.209 with HTTP; Tue, 14 Mar 2017 10:46:48 -0700 (PDT) Original-Received: by 10.55.165.209 with HTTP; Tue, 14 Mar 2017 10:46:48 -0700 (PDT) In-Reply-To: <5843f636-904c-44b6-b10d-1a5aec67aa13-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com 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.org gmane.text.pandoc:17185 Archived-At: --94eb2c0431ca93def2054ab46937 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If you are outputting LaTeX or PDF via LaTeX you can use a filter which wraps the codeblock in a suitable "listings" or "minted" environment and turns the whole into a raw LaTeX block. If I don't misremember I have already rewritten my first attempt at such a filter. I'll look for it tomorrow. /bpj Den 13 mar 2017 22:29 skrev "Luis Fernado Silva Castro de Ara=C3=BAjo" < luis.nando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > Is it possible to ask pandoc to number lines in a codeblock only in a > certain frequency? For example number lines every two or five lines. > > MWE: > > ```{#lst:code .r .numberLines} > library("MVN") > hzTest(noNAs[c("fas","dd", "rh_lateralorbitofrontal_area", > "lh_frontalpole_area", > "rh_caudalanteriorcingulate_area", > "rh_cuneus_area", "rh_precentral_area", > "rh_middletemporal_area", "lh_precuneus_area", > "lh_lateralorbitofrontal_area", > "rh_postcentral_area", > "lh_caudalmiddlefrontal_area")]) > > ``` > > but something like {#lst:code .r .numberLines modulo=3D2}? > =E2=80=8B > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pandoc-discuss/5843f636-904c-44b6-b10d-1a5aec67aa13% > 40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhBycWez3eyMLGtoGBxU2P7U8mXwztY%3DYOmJZK-1m1Sj7A%40mail= .gmail.com. For more options, visit https://groups.google.com/d/optout. --94eb2c0431ca93def2054ab46937 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If you are outputting LaTeX or PDF via LaTeX you can use = a filter which wraps the codeblock in a suitable "listings" or &q= uot;minted" environment and turns the whole into a raw LaTeX block. If= I don't misremember I have already rewritten my first attempt at such = a filter. I'll look for it tomorrow.

/bpj


Den 13 mar 2017 22:29 skrev "Lui= s Fernado Silva Castro de Ara=C3=BAjo" <luis.nando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:

Is it p= ossible to ask pandoc to number lines in a codeblock only in a certain freq= uency? For example number lines every two or five lines.

MWE:

```{#lst:code .r .nu=
mberLines}
library("MVN")
hzTest(noNAs[c("fas","dd", "rh_lateralorbitofronta=
l_area",
                       "lh_frontalpole_area",=20
                       "rh_caudalanteriorcingulate_area",
                       "rh_cuneus_area", "rh_precentral_area=
",
                       "rh_middletemporal_area", "lh_precune=
us_area",
                       "lh_lateralorbitofrontal_area",=20
                       "rh_postcentral_area",
                       "lh_caudalmiddlefrontal_area")])

```

but something like {#lst:code .r .numberLines modulo=3D2}?

=E2=80=8B

--
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@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com. To view this discussion on the web visit https:= //groups.google.com/d/msgid/pandoc-discuss/5843f636-904c-44b6-b10= d-1a5aec67aa13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhBycWez3eyMLGtoGBxU2P7U8mXwztY%3D= YOmJZK-1m1Sj7A%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--94eb2c0431ca93def2054ab46937--