public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Parsing a mixed markdown/latex document
@ 2015-09-08 18:34 Gustaf Rydevik
       [not found] ` <fcdbb3c6-0880-4a3e-bd97-8f85b0078d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Gustaf Rydevik @ 2015-09-08 18:34 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1347 bytes --]

Hi,

I am trying to use pandoc-citeprocs excellent bibliography functions to 
replace the latex-native bibtex alternatives. 

In order to do this I have, starting with a latex document, replaced 
\cite{xxx} with [@xxx], split out the headers and bottoms into a latex 
template, and run pandoc with the citeproc filter. The references work 
beautifully, but unfortunately pandoc messes up some of the latex code 
(understandably). comment markers %  gets escaped, "\["  and "\]" gets 
replaced by {[}, etcetera. 

Is there any way to make pandoc be less "greedy" in trying to preserve 
special characters etcetera, and/or a way to just run the citeproc script 
looking for "[@dfsdf]" - code to replace?  it would be such a neat workflow 
if it worked! 

Best regards,
Gustaf 

-- 
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/fcdbb3c6-0880-4a3e-bd97-8f85b0078d68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1904 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Parsing a mixed markdown/latex document
       [not found] ` <fcdbb3c6-0880-4a3e-bd97-8f85b0078d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-09-08 19:24   ` John MACFARLANE
  0 siblings, 0 replies; 2+ messages in thread
From: John MACFARLANE @ 2015-09-08 19:24 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Why not just use pandoc's latex reader?

    pandoc -f latex --filter pandoc-citeproc --bibliography mybib.bib

If you use simple enough latex, this should work okay. And
then you don't need to modify the source at all.

+++ Gustaf Rydevik [Sep 08 15 11:34 ]:
>   Hi,
>   I am trying to use pandoc-citeprocs excellent bibliography functions to
>   replace the latex-native bibtex alternatives.
>   In order to do this I have, starting with a latex document, replaced
>   \cite{xxx} with [@xxx], split out the headers and bottoms into a latex
>   template, and run pandoc with the citeproc filter. The references work
>   beautifully, but unfortunately pandoc messes up some of the latex code
>   (understandably). comment markers %  gets escaped, "\["  and "\]" gets
>   replaced by {[}, etcetera.
>   Is there any way to make pandoc be less "greedy" in trying to preserve
>   special characters etcetera, and/or a way to just run the citeproc
>   script looking for "[@dfsdf]" - code to replace?  it would be such a
>   neat workflow if it worked!
>   Best regards,
>   Gustaf
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/fcdbb3c6-0880-4a3e-
>   bd97-8f85b0078d68%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/fcdbb3c6-0880-4a3e-bd97-8f85b0078d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-08 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 18:34 Parsing a mixed markdown/latex document Gustaf Rydevik
     [not found] ` <fcdbb3c6-0880-4a3e-bd97-8f85b0078d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-09-08 19:24   ` 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).