<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233</link>
    <title>MATLAB Central Newsreader - Publish to Latex: lstlisting instead of verbatim</title>
    <description>Feed for thread: Publish to Latex: lstlisting instead of verbatim</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 24 Feb 2009 14:09:01 -0500</pubDate>
      <title>Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#630463</link>
      <author>Uwe Brauer </author>
      <description>Hello &lt;br&gt;
&lt;br&gt;
may I propose to use the lstlisting environment for Latex files instead of verbatim. Lstlisting has much better support for Matlab than verbatim, concerning the formatting of Matlab commands.&lt;br&gt;
&lt;br&gt;
Uwe Brauer </description>
    </item>
    <item>
      <pubDate>Tue, 24 Feb 2009 21:14:01 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#630575</link>
      <author>Matthew Simoneau</author>
      <description>I looked at using listing, but was worried about introducing another dependency.</description>
    </item>
    <item>
      <pubDate>Wed, 25 Feb 2009 12:06:03 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#630690</link>
      <author>Uwe Brauer </author>
      <description>&quot;Matthew Simoneau&quot; &amp;lt;matthew@mathworks.com&amp;gt; wrote in message &amp;lt;go1nup$rol$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I looked at using listing, but was worried about introducing another dependency.&lt;br&gt;
&lt;br&gt;
looking at your email address I see that you are a working for mathworks.&lt;br&gt;
&lt;br&gt;
Which dependecies are you afraid off?</description>
    </item>
    <item>
      <pubDate>Fri, 27 Feb 2009 21:20:02 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#631402</link>
      <author>Matthew Simoneau</author>
      <description>I'm not really a LaTeX expert, so I don't know I've got this right.  My understanding is that this is a separate package that the user would have to install separately.</description>
    </item>
    <item>
      <pubDate>Fri, 27 Feb 2009 22:03:01 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#631420</link>
      <author>Uwe Brauer </author>
      <description>&quot;Matthew Simoneau&quot; &amp;lt;matthew@mathworks.com&amp;gt; wrote in message &amp;lt;go9le2$43l$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm not really a LaTeX expert, so I don't know I've got this right.  My understanding is that this is a separate package that the user would have to install separately.&lt;br&gt;
&lt;br&gt;
Well some years ago, this was correct, but meanwhile the most popular latex distribution (texlive for the linux world and miktex) include lslistings.&lt;br&gt;
&lt;br&gt;
To be on the save side it could be implemented optionally:&lt;br&gt;
publish('foo.m','latex','lslistings')&lt;br&gt;
&lt;br&gt;
or something like this&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Uwe</description>
    </item>
    <item>
      <pubDate>Mon, 02 Mar 2009 19:17:01 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#631970</link>
      <author>Matthew Simoneau</author>
      <description>Thanks for the info, Uwe.  I'll put this back in the enhancement pile.&lt;br&gt;
&lt;br&gt;
Just so you know, you can copy toolbox/matlab/codetools/private/mxdom2latex.xsl, modify it to your liking, and specify it as a custom stylesheet.</description>
    </item>
    <item>
      <pubDate>Tue, 03 Mar 2009 10:39:01 -0500</pubDate>
      <title>Re: Publish to Latex: lstlisting instead of verbatim</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245233#632093</link>
      <author>Uwe Brauer </author>
      <description>&quot;Matthew Simoneau&quot; &amp;lt;matthew@mathworks.com&amp;gt; wrote in message &amp;lt;gohbbd$rig$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks for the info, Uwe.  I'll put this back in the enhancement pile.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just so you know, you can copy toolbox/matlab/codetools/private/mxdom2latex.xsl, modify it to your liking, and specify it as a custom stylesheet.&lt;br&gt;
&lt;br&gt;
Great! I do this, the only thing I am uncertain about is how to specify it as a custom  stylesheet, but I would just make a backup copy of the old one and modify the mxdom2latex.xsl &lt;br&gt;
Uwe</description>
    </item>
  </channel>
</rss>

