public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'Saku Laesvuori' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Pandoc filter to always convert markdown quote block (with >) to LaTeX "\begin{quote}"
Date: Sat, 26 Aug 2023 16:32:43 +0300	[thread overview]
Message-ID: <C5F1072F-96A6-4551-9C21-84AB1339427B@laesvuori.fi> (raw)
In-Reply-To: <6df4869d-77f3-40a7-b396-0555ace7cfaen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

26. elokuuta 2023 15.34.57 GMT+03:00 - <paulschillinger93-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> kirjoitti:
>That sounds good, but could you expand on the example a bit more?
>
>I try running this: `pandoc -f markdown-blank_before_blockquote -r 
>markdown-auto_identifiers -w latex test.md -o test.tex` and this has the 
>same output as before.

The -r and -f flags are alternatives, so I assume the later -r overwrites the -f. Try `pandoc -f markdown-blank_before_blockquote-auto_identifiers -w latex test.md -o test.tex`.

>
>On Saturday, August 26, 2023 at 2:30:32 p.m. UTC+2 Saku Laesvuori wrote:
>
>> 26. elokuuta 2023 14.47.42 GMT+03:00 - <paulschi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> kirjoitti:
>> >
>> >
>> >I just switched from pdftex to luatex and now some stuff is working 
>> >differently.
>> >
>> >In my markdown files I use quote blocks with *>* I'd like to always be 
>> >converted to *\begin{quote}*
>> >
>> >e.g. my note might look like this
>> >*page-number 23 *
>> >*> abc text other text *
>> >
>> >*> second quote block *
>> >
>> >because there's no newline before the first blockquote, LaTeX or Pandoc 
>> >instead turn it into *\textgreater{}* which prints it as page-number 
>> "*23>abc 
>> >text*"
>> >
>> >How would a filter look that instead prints it as desired, so
>> >*page-number 23 *
>> >*\begin{quote} *
>> >*abc text*
>> >* \end{quote} *
>> >*other text etc. *
>>
>> You can't easily do that with a filter, but you can just disable the 
>> `blank_before_blockquote` extension, i.e. run `pandoc -f 
>> markdown-blank_before_blockquote ...`
>>
>>
>

-- 
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/C5F1072F-96A6-4551-9C21-84AB1339427B%40laesvuori.fi.


  parent reply	other threads:[~2023-08-26 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-26 11:47 -
     [not found] ` <2a015fad-470a-45bc-8b5c-4b31ec1db746n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-26 12:30   ` 'Saku Laesvuori' via pandoc-discuss
     [not found]     ` <DCB96F73-E986-4C8F-A2D1-67521B05A357-fz/45XiaGUo8FY+3fohqFA@public.gmane.org>
2023-08-26 12:34       ` -
     [not found]         ` <6df4869d-77f3-40a7-b396-0555ace7cfaen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-26 13:32           ` 'Saku Laesvuori' via pandoc-discuss [this message]
     [not found]             ` <C5F1072F-96A6-4551-9C21-84AB1339427B-fz/45XiaGUo8FY+3fohqFA@public.gmane.org>
2023-08-26 13:39               ` -

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C5F1072F-96A6-4551-9C21-84AB1339427B@laesvuori.fi \
    --to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).