* Number every two lines in codeblocks
@ 2017-03-13 21:28 Luis Fernado Silva Castro de Araújo
[not found] ` <5843f636-904c-44b6-b10d-1a5aec67aa13-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Luis Fernado Silva Castro de Araújo @ 2017-03-13 21:28 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1318 bytes --]
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=2}?
--
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.
[-- Attachment #1.2: Type: text/html, Size: 4373 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Number every two lines in codeblocks
[not found] ` <5843f636-904c-44b6-b10d-1a5aec67aa13-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-03-14 8:48 ` John MacFarlane
[not found] ` <20170314084818.GC74529-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2017-03-14 17:46 ` Melroch
1 sibling, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2017-03-14 8:48 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
No, there's no way to do that.
+++ Luis Fernado Silva Castro de Araújo [Mar 13 17 14:28 ]:
> 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.
--
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/20170314084818.GC74529%40Johns-MBP.home.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Number every two lines in codeblocks
[not found] ` <5843f636-904c-44b6-b10d-1a5aec67aa13-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-03-14 8:48 ` John MacFarlane
@ 2017-03-14 17:46 ` Melroch
1 sibling, 0 replies; 5+ messages in thread
From: Melroch @ 2017-03-14 17:46 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2557 bytes --]
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újo" <
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=2}?
>
>
> --
> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/5843f636-904c-44b6-b10d-1a5aec67aa13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CADAJKhBycWez3eyMLGtoGBxU2P7U8mXwztY%3DYOmJZK-1m1Sj7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 6095 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Number every two lines in codeblocks
[not found] ` <20170314084818.GC74529-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
@ 2021-08-01 14:21 ` 'Tim Menzies' via pandoc-discuss
[not found] ` <ed568cdb-b9bc-466a-bfa5-bfa7643e305dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: 'Tim Menzies' via pandoc-discuss @ 2021-08-01 14:21 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]
I write to ask if, five years later, has that situation changed? e.g. using
lua filters cant i print every (say) fifth num?
t
On Tuesday, March 14, 2017 at 4:48:35 AM UTC-4 John MacFarlane wrote:
> No, there's no way to do that.
>
> +++ Luis Fernado Silva Castro de Araújo [Mar 13 17 14:28 ]:
> > 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.
>
>
--
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/ed568cdb-b9bc-466a-bfa5-bfa7643e305dn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1424 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Number every two lines in codeblocks
[not found] ` <ed568cdb-b9bc-466a-bfa5-bfa7643e305dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-08-01 16:24 ` John MacFarlane
0 siblings, 0 replies; 5+ messages in thread
From: John MacFarlane @ 2021-08-01 16:24 UTC (permalink / raw)
To: 'Tim Menzies' via pandoc-discuss, pandoc-discuss
What output format, HTML?
"'Tim Menzies' via pandoc-discuss"
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> writes:
> I write to ask if, five years later, has that situation changed? e.g. using
> lua filters cant i print every (say) fifth num?
>
> t
>
> On Tuesday, March 14, 2017 at 4:48:35 AM UTC-4 John MacFarlane wrote:
>
>> No, there's no way to do that.
>>
>> +++ Luis Fernado Silva Castro de Araújo [Mar 13 17 14:28 ]:
>> > 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.
>>
>>
>
> --
> 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/ed568cdb-b9bc-466a-bfa5-bfa7643e305dn%40googlegroups.com.
--
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/m2tuk9nne3.fsf%40johnmacfarlane.net.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-01 16:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 21:28 Number every two lines in codeblocks Luis Fernado Silva Castro de Araújo
[not found] ` <5843f636-904c-44b6-b10d-1a5aec67aa13-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-03-14 8:48 ` John MacFarlane
[not found] ` <20170314084818.GC74529-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2021-08-01 14:21 ` 'Tim Menzies' via pandoc-discuss
[not found] ` <ed568cdb-b9bc-466a-bfa5-bfa7643e305dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-01 16:24 ` John MacFarlane
2017-03-14 17:46 ` Melroch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).