* how to enable minted instead of verbatim in generate latex format from markdown @ 2012-10-22 19:57 Larry Cai [not found] ` <9ee3b098-d73c-460e-97c4-7cd1d4c430b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Larry Cai @ 2012-10-22 19:57 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 963 bytes --] From pandoc release, it is mentioned that "minted" latex package is supported besides verbatim since 1.9.1.2 Currently if I set normal code segment like $ pandoc -v It will use "\begin{verbatim}" ~~~ {.bash} $ pandoc -v ~~~ It will generate \begin{Shaded} \begin{Highlighting}[] \NormalTok{$ pandoc -v } \end{Highlighting} \end{Shaded} How can I generate minted based latex instead ? BTW: minted seems is better for code syntax highlight rgs/larry -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/pandoc-discuss/-/YyPePFbZm3EJ. For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 1473 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <9ee3b098-d73c-460e-97c4-7cd1d4c430b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: how to enable minted instead of verbatim in generate latex format from markdown [not found] ` <9ee3b098-d73c-460e-97c4-7cd1d4c430b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2012-10-22 21:53 ` John MacFarlane [not found] ` <20121022215352.GA13799-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: John MacFarlane @ 2012-10-22 21:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw minted is only supported by the LaTeX reader, not the LaTeX writer. +++ Larry Cai [Oct 22 12 12:57 ]: > BTW: minted seems is better for code syntax highlight What features does minted have that you can't get with pandoc/highlighting-kate? ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20121022215352.GA13799-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>]
* Re: how to enable minted instead of verbatim in generate latex format from markdown [not found] ` <20121022215352.GA13799-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> @ 2012-10-23 5:16 ` Larry Cai 0 siblings, 0 replies; 3+ messages in thread From: Larry Cai @ 2012-10-23 5:16 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2178 bytes --] Thank for quick reply, probably it is almost the same. Currently I reuse the ProGit scripts to generate latex using pandoc, and tune latex files in detail. And In pdf, I want to have shade+syntax highlight, and expected latex code \definecolor{bg}{rgb}{0.95,0.95,0.95} \begin{minted}[bgcolor=bg]{bash} $ sudo apt-get install ruby1.9.1 $ sudo apt-get install pandoc $ sudo apt-get install texlive-xetex $ sudo apt-get install texlive-latex-recommended $ sudo apt-get install texlive-latex-extra \end{minted} // in my script, I will add [bgcolor=bg] into generated latex if minted is used directly. In current solution, highlighting-kate (or pygments ) will generate the formatted latex instead. While if minted package is used, it will handle the syntax highlight in its package like virbatim, It is more clean for me to handle. There are some one2one mapping like line numbers as well. rgs/larry On Tue, Oct 23, 2012 at 5:53 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > minted is only supported by the LaTeX reader, not the LaTeX writer. > > +++ Larry Cai [Oct 22 12 12:57 ]: > > > BTW: minted seems is better for code syntax highlight > > What features does minted have that you can't get with > pandoc/highlighting-kate? > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > > -- True software development embraces consistent inconsistency. blog: http://codeslife.com -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out. [-- Attachment #2: Type: text/html, Size: 4035 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-23 5:16 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-10-22 19:57 how to enable minted instead of verbatim in generate latex format from markdown Larry Cai [not found] ` <9ee3b098-d73c-460e-97c4-7cd1d4c430b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2012-10-22 21:53 ` John MacFarlane [not found] ` <20121022215352.GA13799-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> 2012-10-23 5:16 ` Larry Cai
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).