<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LaTeX Source Specials</title>
	<atom:link href="http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/feed/" rel="self" type="application/rss+xml" />
	<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/</link>
	<description>Algorithms are everywhere.</description>
	<lastBuildDate>Sun, 30 Aug 2009 23:42:14 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-457</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 09 Jun 2006 00:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-457</guid>
		<description>Thanks.

I have installed the auctex package you suggested (the one for windows). It contains tex-mik.el and adding  (require &#039;tex-mik) to my _emacs improved the situation so that the suggested command was now &quot;yap -1 main.tex&quot;, but no lines numbers... 

Eventually, I figured out that I need to turn on src-specials by adding to my _emacs
(setq TeX-source-specials-mode t)
This can be done also via the customize auctex pulldown menu (which is the way I figured it out).

Anyway, it now works quite well. THANKS!</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>I have installed the auctex package you suggested (the one for windows). It contains tex-mik.el and adding  (require &#8216;tex-mik) to my _emacs improved the situation so that the suggested command was now &#8220;yap -1 main.tex&#8221;, but no lines numbers&#8230; </p>
<p>Eventually, I figured out that I need to turn on src-specials by adding to my _emacs<br />
(setq TeX-source-specials-mode t)<br />
This can be done also via the customize auctex pulldown menu (which is the way I figured it out).</p>
<p>Anyway, it now works quite well. THANKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick Woo</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-451</link>
		<dc:creator>Maverick Woo</dc:creator>
		<pubDate>Thu, 08 Jun 2006 22:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-451</guid>
		<description>I believe it&#039;s due to the &lt;code&gt;TeX-command-list&lt;/code&gt; customization. See if my comment at 17:35 (below) helps.</description>
		<content:encoded><![CDATA[<p>I believe it&#8217;s due to the <code>TeX-command-list</code> customization. See if my comment at 17:35 (below) helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick Woo</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-450</link>
		<dc:creator>Maverick Woo</dc:creator>
		<pubDate>Thu, 08 Jun 2006 22:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-450</guid>
		<description>Basically you need to set your &lt;code&gt;TeX-command-list&lt;/code&gt; correctly.

Usually, in your &lt;code&gt;.emacs&lt;/code&gt;, you do &lt;code&gt;(require &#039;tex-site)&lt;/code&gt; and in &lt;code&gt;tex-site.el&lt;/code&gt; you customize the AUC TeX global variables, such as &lt;code&gt;TeX-command-list&lt;/code&gt;. In modern versions of AUC TeX (I use 11.11, not exactly newest), there is a &lt;code&gt;tex-mik.el&lt;/code&gt; that provides a set of sensible defaults. You can just put &lt;code&gt;(require &#039;tex-mik)&lt;/code&gt; at the end of your &lt;code&gt;tex-site.el&lt;/code&gt;.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Basically you need to set your <code>TeX-command-list</code> correctly.</p>
<p>Usually, in your <code>.emacs</code>, you do <code>(require 'tex-site)</code> and in <code>tex-site.el</code> you customize the AUC TeX global variables, such as <code>TeX-command-list</code>. In modern versions of AUC TeX (I use 11.11, not exactly newest), there is a <code>tex-mik.el</code> that provides a set of sensible defaults. You can just put <code>(require 'tex-mik)</code> at the end of your <code>tex-site.el</code>.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-448</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 08 Jun 2006 21:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-448</guid>
		<description>It&#039;s very useful, but can you please say briefly how to activate/configure auctex? How do you tell it to use yap or acrobat? I tried C-c C-c and it &quot;suggests&quot; the command line &quot;xdvi main.tex&quot; (no yap and no line numbers).</description>
		<content:encoded><![CDATA[<p>It&#8217;s very useful, but can you please say briefly how to activate/configure auctex? How do you tell it to use yap or acrobat? I tried C-c C-c and it &#8220;suggests&#8221; the command line &#8220;xdvi main.tex&#8221; (no yap and no line numbers).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernhard</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-446</link>
		<dc:creator>Bernhard</dc:creator>
		<pubDate>Thu, 08 Jun 2006 20:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-446</guid>
		<description>Thanks, this works for me now. I do have AucTex installed but I didn&#039;t have a command line for yap in the package. So I wrote it into my .emacs-file under custom-set-variables, which seems to be OK.</description>
		<content:encoded><![CDATA[<p>Thanks, this works for me now. I do have AucTex installed but I didn&#8217;t have a command line for yap in the package. So I wrote it into my .emacs-file under custom-set-variables, which seems to be OK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick Woo</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-442</link>
		<dc:creator>Maverick Woo</dc:creator>
		<pubDate>Thu, 08 Jun 2006 18:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-442</guid>
		<description>So far (and I mean the last 9 years) gnuclientw has been working very solidly for me.

Notice you really want gnuclientw instead of the &quot;non-w&quot; version. The &quot;w version&quot; will exit once the file has been passed to Emacs. The &quot;non-w version&quot; will wait until Emacs is closed. The latter is not what you want. (It&#039;s similar to java vs javaw.)</description>
		<content:encoded><![CDATA[<p>So far (and I mean the last 9 years) gnuclientw has been working very solidly for me.</p>
<p>Notice you really want gnuclientw instead of the &#8220;non-w&#8221; version. The &#8220;w version&#8221; will exit once the file has been passed to Emacs. The &#8220;non-w version&#8221; will wait until Emacs is closed. The latter is not what you want. (It&#8217;s similar to java vs javaw.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick Woo</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-441</link>
		<dc:creator>Maverick Woo</dc:creator>
		<pubDate>Thu, 08 Jun 2006 18:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-441</guid>
		<description>If you use AUC TeX, then this is actually the formatted output of 

&quot;yap -1 -s%n%b %d&quot;

Of course, these three variables only make sense in that package. If you really don&#039;t want to use AUC TeX (but I really recommend using it), then you have to extract the line number %n (see function &quot;what-line&quot; on how to get it robustly) and the current file name %b (see &quot;buffer-file-name&quot;). As for the actual DVI filename %d, there is really no generic way since it is built from the value of the TeX-master variable in AUC TeX.</description>
		<content:encoded><![CDATA[<p>If you use AUC TeX, then this is actually the formatted output of </p>
<p>&#8220;yap -1 -s%n%b %d&#8221;</p>
<p>Of course, these three variables only make sense in that package. If you really don&#8217;t want to use AUC TeX (but I really recommend using it), then you have to extract the line number %n (see function &#8220;what-line&#8221; on how to get it robustly) and the current file name %b (see &#8220;buffer-file-name&#8221;). As for the actual DVI filename %d, there is really no generic way since it is built from the value of the TeX-master variable in AUC TeX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernhard</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-440</link>
		<dc:creator>Bernhard</dc:creator>
		<pubDate>Thu, 08 Jun 2006 17:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-440</guid>
		<description>Another thing, I just played around with gnuserve and on my machine it seems that gnuclient is much more stable than gnuclientw. Very often, &quot;gnuclientw filename.txt&quot; would switch to the emacs window but not open the file &quot;filename.txt&quot;. This seems to be better with gnuclient. Let me know if you have similar experiences with that.</description>
		<content:encoded><![CDATA[<p>Another thing, I just played around with gnuserve and on my machine it seems that gnuclient is much more stable than gnuclientw. Very often, &#8220;gnuclientw filename.txt&#8221; would switch to the emacs window but not open the file &#8220;filename.txt&#8221;. This seems to be better with gnuclient. Let me know if you have similar experiences with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernhard</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/07/latex-source-specials/comment-page-1/#comment-435</link>
		<dc:creator>Bernhard</dc:creator>
		<pubDate>Thu, 08 Jun 2006 05:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=147#comment-435</guid>
		<description>Thanks,

could you give me the command line to open yap from emacs? I mean the general one that is in your .emacs-file.
In other words, I might not always want to go to line 65, so what is the emacs-variable for the current line number and current tex-file?</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>could you give me the command line to open yap from emacs? I mean the general one that is in your .emacs-file.<br />
In other words, I might not always want to go to line 65, so what is the emacs-variable for the current line number and current tex-file?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
