From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/4953 Path: news.gmane.org!not-for-mail From: Larry Cai Newsgroups: gmane.text.pandoc Subject: Re: how to enable minted instead of verbatim in generate latex format from markdown Date: Tue, 23 Oct 2012 13:16:13 +0800 Message-ID: References: <9ee3b098-d73c-460e-97c4-7cd1d4c430b3@googlegroups.com> <20121022215352.GA13799@protagoras.phil.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04462c0aa6a58104ccb31195 X-Trace: ger.gmane.org 1350969379 28859 80.91.229.3 (23 Oct 2012 05:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 05:16:19 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZ6BVHSZIFRBHWQTCCAKGQERDXCG3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 23 07:16:27 2012 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f58.google.com ([209.85.220.58]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TQWql-0003gR-Vh for gtp-pandoc-discuss@m.gmane.org; Tue, 23 Oct 2012 07:16:24 +0200 Original-Received: by mail-pa0-f58.google.com with SMTP id fb11sf3086009pad.3 for ; Mon, 22 Oct 2012 22:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=GKSeinLA/1OBWuOO1w2WeqcWZ5zyjIA2om+L8+98EAE=; b=o9QS5b6khwRCtkevrwVbnJ/N74iHx/fYXjKCy0+3R+woF98rfuxP0Z6pqaajgCY5YD AsSGYtc7uOaZxtUq0R5pSj8LWwHFBh2A9zljoJ9KMFNkRmMmcbNd5SMv01Q5ZoREOEmn eveKr9gX1RHay6yLft1FmSXp19Hbhugln/6wBBKQmzl/ToJPLWysY1uNbYIQI/BRfVuC GOgIcsp3dpYLqErI7MdQkgPfVsbA/yRp2V9j46B6DTDNQ7FQYeb9sOQGJJhjDIxx4R0Z 3cMCnlUs3K1tMeHnySJ9cml8qmAC1EiEF28xLcxXp8h4mmuZmk0W3R28tRgFsw8j4p46 ypOg== Original-Received: by 10.50.189.135 with SMTP id gi7mr6260193igc.0.1350969375310; Mon, 22 Oct 2012 22:16:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.12.233 with SMTP id b9ls209606igc.4.gmail; Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Original-Received: by 10.50.170.72 with SMTP id ak8mr7028130igc.0.1350969374630; Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Original-Received: by 10.50.170.72 with SMTP id ak8mr7028129igc.0.1350969374612; Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Original-Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by gmr-mx.google.com with ESMTPS id s15si1653471igi.1.2012.10.22.22.16.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Received-SPF: pass (google.com: domain of larry.caiyu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.181 as permitted sender) client-ip=209.85.214.181; Original-Received: by mail-ob0-f181.google.com with SMTP id un3so3557098obb.26 for ; Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Original-Received: by 10.182.152.97 with SMTP id ux1mr9010741obb.13.1350969374188; Mon, 22 Oct 2012 22:16:14 -0700 (PDT) Original-Received: by 10.182.37.225 with HTTP; Mon, 22 Oct 2012 22:16:13 -0700 (PDT) In-Reply-To: <20121022215352.GA13799-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> X-Original-Sender: larry.caiyu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of larry.caiyu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.181 as permitted sender) smtp.mail=larry.caiyu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:4953 Archived-At: --f46d04462c0aa6a58104ccb31195 Content-Type: text/plain; charset=ISO-8859-1 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 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. --f46d04462c0aa6a58104ccb31195 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank for quick reply, probably it is almost the same.

<= span style=3D"font-size:14px;line-height:19.600000381469727px">Currently I = reuse the ProGit scripts to generate latex using pandoc, and tune latex fil= es in detail.

And In pdf, I want to have shade+syntax highlight, and expected l= atex code
<= br>
\definecolor{bg}{rgb}{0.95,0.95,0.95}
\begin{minted= }[bgcolor=3Dbg]{bash}
$ sudo apt-get install ruby1.9.1
$ sudo apt-get install pandoc
$ sudo apt-get install texlive-xete= x
$ sudo apt-get install texlive-latex-recommended
$ su= do apt-get install texlive-latex-extra
\end{minted}

// in my script, I will add [bgcolor=3Dbg] into generated la= tex if minted is used directly.

In curren= t solution, highlighting-kate (or=A0pygments ) w= ill generate the formatted latex instead. =A0While if minted package is used, i= t 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

O= n Tue, Oct 23, 2012 at 5:53 AM, John MacFarlane <fiddlosopher@gmail.c= om> wrote:
minted is only supported by the LaTeX reader= , not the LaTeX writer.

+++ Larry Cai [Oct 22 12 12:57 ]:

> =A0 =A0BTW: 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 &= quot;pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@googlegroups= .com.



--
= True software development embraces consistent inconsistency.
blog: http://codeslife.com

--
You received this message because you are subscribed to the Google Groups &= quot;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@go= oglegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--f46d04462c0aa6a58104ccb31195--