* How to automatically add the "References" section?
@ 2015-02-28 21:25 Chao Xu
[not found] ` <c3a8f3dc-35d9-45da-94cb-d4ae06e3446b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Chao Xu @ 2015-02-28 21:25 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1088 bytes --]
I'm using pandoc markdown, and output as html files.
Every time I write an article and use some reference, say [@Dow1999]. I
have to add a new section # References to the end of my file so the
reference section has a title.
Is there a way so I don't have to do this manually?
An ad hoc workaround I have right now is
1. Check if a string contain any references. (using a regular expression.)
2. Add "# References" to the end of the string if this is true.
3. Feed the resulting string to pandoc's html writer.
--
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/c3a8f3dc-35d9-45da-94cb-d4ae06e3446b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1605 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to automatically add the "References" section?
[not found] ` <c3a8f3dc-35d9-45da-94cb-d4ae06e3446b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-02 19:52 ` Learned Hand
[not found] ` <a539e4d8-747f-437e-b8d0-b493ba727792-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Learned Hand @ 2015-03-02 19:52 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]
What OS are you using and what editor?
Am Samstag, 28. Februar 2015 22:25:36 UTC+1 schrieb Chao Xu:
>
> I'm using pandoc markdown, and output as html files.
>
> Every time I write an article and use some reference, say [@Dow1999]. I
> have to add a new section # References to the end of my file so the
> reference section has a title.
>
> Is there a way so I don't have to do this manually?
>
> An ad hoc workaround I have right now is
> 1. Check if a string contain any references. (using a regular expression.)
> 2. Add "# References" to the end of the string if this is true.
> 3. Feed the resulting string to pandoc's html writer.
>
--
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/a539e4d8-747f-437e-b8d0-b493ba727792%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1861 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to automatically add the "References" section?
[not found] ` <a539e4d8-747f-437e-b8d0-b493ba727792-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-02 20:11 ` Chao Xu
[not found] ` <CAJQg2_34q-hVt7UTFKrx6JJNPVtw_drL8A2wqEV8s4cmw+77MA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Chao Xu @ 2015-03-02 20:11 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]
I'm using sublime text and mac os. but it's not about the editor.
I want to write this in Haskell so any user don't have to manually input "#
References".
Are there known ways to do this in pandoc (for example, a way to check if
the input contain some references) or I should just be happy with my adhoc
solution.
Best,
Chao Xu
On Mon, Mar 2, 2015 at 1:52 PM, Learned Hand <olmu.mail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:
> What OS are you using and what editor?
>
> Am Samstag, 28. Februar 2015 22:25:36 UTC+1 schrieb Chao Xu:
>>
>> I'm using pandoc markdown, and output as html files.
>>
>> Every time I write an article and use some reference, say [@Dow1999]. I
>> have to add a new section # References to the end of my file so the
>> reference section has a title.
>>
>> Is there a way so I don't have to do this manually?
>>
>> An ad hoc workaround I have right now is
>> 1. Check if a string contain any references. (using a regular expression.)
>> 2. Add "# References" to the end of the string if this is true.
>> 3. Feed the resulting string to pandoc's html writer.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/wcpsdumtW90/unsubscribe.
> To unsubscribe from this group and all its topics, 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/a539e4d8-747f-437e-b8d0-b493ba727792%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/a539e4d8-747f-437e-b8d0-b493ba727792%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/CAJQg2_34q-hVt7UTFKrx6JJNPVtw_drL8A2wqEV8s4cmw%2B77MA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 4082 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to automatically add the "References" section?
[not found] ` <CAJQg2_34q-hVt7UTFKrx6JJNPVtw_drL8A2wqEV8s4cmw+77MA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-03-03 0:35 ` John MacFarlane
0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2015-03-03 0:35 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
See https://github.com/jgm/pandoc-citeproc/pull/40
I'm inclined to merge this.
+++ Chao Xu [Mar 02 15 14:11 ]:
> I'm using sublime text and mac os. but it's not about the editor.
> I want to write this in Haskell so any user don't have to manually
> input "# References".
> Are there known ways to do this in pandoc (for example, a way to check
> if the input contain some references) or I should just be happy with my
> adhoc solution.
>
> Best,
> Chao Xu
> On Mon, Mar 2, 2015 at 1:52 PM, Learned Hand
> <[1]olmu.mail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
> What OS are you using and what editor?
> Am Samstag, 28. Februar 2015 22:25:36 UTC+1 schrieb Chao Xu:
>
> I'm using pandoc markdown, and output as html files.
> Every time I write an article and use some reference, say [@Dow1999]. I
> have to add a new section # References to the end of my file so the
> reference section has a title.
> Is there a way so I don't have to do this manually?
> An ad hoc workaround I have right now is
> 1. Check if a string contain any references. (using a regular
> expression.)
> 2. Add "# References" to the end of the string if this is true.
> 3. Feed the resulting string to pandoc's html writer.
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> [2]https://groups.google.com/d/topic/pandoc-discuss/wcpsdumtW90/unsu
> bscribe.
> To unsubscribe from this group and all its topics, send an email to
> [3]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [4]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [5]https://groups.google.com/d/msgid/pandoc-discuss/a539e4d8-747f-43
> 7e-b8d0-b493ba727792%40googlegroups.com.
> For more options, visit [6]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 [7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [8]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [9]https://groups.google.com/d/msgid/pandoc-discuss/CAJQg2_34q-hVt7UTFK
> rx6JJNPVtw_drL8A2wqEV8s4cmw%2B77MA%40mail.gmail.com.
> For more options, visit [10]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:olmu.mail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
> 2. https://groups.google.com/d/topic/pandoc-discuss/wcpsdumtW90/unsubscribe
> 3. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 4. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 5. https://groups.google.com/d/msgid/pandoc-discuss/a539e4d8-747f-437e-b8d0-b493ba727792-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 6. https://groups.google.com/d/optout
> 7. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 8. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 9. https://groups.google.com/d/msgid/pandoc-discuss/CAJQg2_34q-hVt7UTFKrx6JJNPVtw_drL8A2wqEV8s4cmw+77MA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org?utm_medium=email&utm_source=footer
> 10. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-03 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-28 21:25 How to automatically add the "References" section? Chao Xu
[not found] ` <c3a8f3dc-35d9-45da-94cb-d4ae06e3446b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-02 19:52 ` Learned Hand
[not found] ` <a539e4d8-747f-437e-b8d0-b493ba727792-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-02 20:11 ` Chao Xu
[not found] ` <CAJQg2_34q-hVt7UTFKrx6JJNPVtw_drL8A2wqEV8s4cmw+77MA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-03 0:35 ` John MacFarlane
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).