<?xml version="1.0" encoding="UTF-8"?><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: A model dtx file</title>
	<atom:link href="http://www.texdev.net/2009/10/06/a-model-dtx-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/</link>
	<description>Coding in the TeX world</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:29:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matthew Leingang</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-2542</link>
		<dc:creator>Matthew Leingang</dc:creator>
		<pubDate>Thu, 29 Apr 2010 12:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-2542</guid>
		<description>Nice howto, and nice link @karlberry.  I hadn&#039;t thought of tex and latex being used on the same file to get different results.  

My tex IDE is TeXShop, and the trouble with editing large .dtx files with doc comments is that it doesn&#039;t automatically tag the section commands that are commented out.  Normally that&#039;s a Good Thing but it makes it hard to navigate in this usage.</description>
		<content:encoded><![CDATA[<p>Nice howto, and nice link @karlberry.  I hadn&#8217;t thought of tex and latex being used on the same file to get different results.  </p>
<p>My tex IDE is TeXShop, and the trouble with editing large .dtx files with doc comments is that it doesn&#8217;t automatically tag the section commands that are commented out.  Normally that&#8217;s a Good Thing but it makes it hard to navigate in this usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Berry</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1359</link>
		<dc:creator>Karl Berry</dc:creator>
		<pubDate>Thu, 08 Oct 2009 15:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1359</guid>
		<description>Very nice.  See also Scott&#039;s article in TUGboat: http://tug.org/TUGboat/Articles/tb29-2/tb92pakin.pdf</description>
		<content:encoded><![CDATA[<p>Very nice.  See also Scott&#8217;s article in TUGboat: <a href="http://tug.org/TUGboat/Articles/tb29-2/tb92pakin.pdf" rel="nofollow">http://tug.org/TUGboat/Articles/tb29-2/tb92pakin.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1358</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Thu, 08 Oct 2009 12:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1358</guid>
		<description>Tomek,

The idea of reusable information certainly came up. I think at the moment the LaTeX3 team have other things to think about, but its not forgotten. There&#039;s probably a need to try to sketch out some very general &quot;desirables&quot; and then work from there, rather than starting with what is around and trying to modify it. Perhaps once we get a bit further on with the lower level LaTeX3 stuff, this might get revisited.

Joseph</description>
		<content:encoded><![CDATA[<p>Tomek,</p>
<p>The idea of reusable information certainly came up. I think at the moment the LaTeX3 team have other things to think about, but its not forgotten. There&#8217;s probably a need to try to sketch out some very general &#8220;desirables&#8221; and then work from there, rather than starting with what is around and trying to modify it. Perhaps once we get a bit further on with the lower level LaTeX3 stuff, this might get revisited.</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomek</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1356</link>
		<dc:creator>Tomek</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1356</guid>
		<description>Unfortunately, the guards in my code example didn&#039;t made through, but I hope that the idea is clear nonetheless.</description>
		<content:encoded><![CDATA[<p>Unfortunately, the guards in my code example didn&#8217;t made through, but I hope that the idea is clear nonetheless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomek</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1355</link>
		<dc:creator>Tomek</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1355</guid>
		<description>I know about codedoc class but I&#039;m not sure whether it is any better. It&#039;s certainly no less complicated. I finally settled on writing a standard document but with ltxdoc class to take advantage of the code description markup. Now I would like to add some code documentation, so I&#039;m looking into the dtx thing again. One of the challenges for me is that I have a lua script in addition to regular LaTeX code.

After some experimentation I think I found a viable way of incorporating a regular document inside a .dtx file. The trick is to use the comment environment:

% \begin{comment}
%
\documentclass{ltxdoc}
\usepackage{verbatim,foo,bar}
\begin{document}
User interface documentation goes here
\DocInput{\jobname.dtx}% code documentation
\end{document}
%
% \end{comment}

As for the successor to dtx, I would like it to be (re)usable beyond paper output. To give an example of what I mean by that: LEd editor has a very nice feature of displaying syntax hints for commands. This is accomplished by special definition files that have to be prepared for each and every package. If one could extract this kind of information directly from the package documentation, then the whole process could be automated and all packages would benefit from the same level of support without any extra work.</description>
		<content:encoded><![CDATA[<p>I know about codedoc class but I&#8217;m not sure whether it is any better. It&#8217;s certainly no less complicated. I finally settled on writing a standard document but with ltxdoc class to take advantage of the code description markup. Now I would like to add some code documentation, so I&#8217;m looking into the dtx thing again. One of the challenges for me is that I have a lua script in addition to regular LaTeX code.</p>
<p>After some experimentation I think I found a viable way of incorporating a regular document inside a .dtx file. The trick is to use the comment environment:</p>
<p>% \begin{comment}<br />
%<br />
\documentclass{ltxdoc}<br />
\usepackage{verbatim,foo,bar}<br />
\begin{document}<br />
User interface documentation goes here<br />
\DocInput{\jobname.dtx}% code documentation<br />
\end{document}<br />
%<br />
% \end{comment}</p>
<p>As for the successor to dtx, I would like it to be (re)usable beyond paper output. To give an example of what I mean by that: LEd editor has a very nice feature of displaying syntax hints for commands. This is accomplished by special definition files that have to be prepared for each and every package. If one could extract this kind of information directly from the package documentation, then the whole process could be automated and all packages would benefit from the same level of support without any extra work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1354</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1354</guid>
		<description>Hello Tomek,

There are other approaches that don&#039;t require writing code as comments. The problem is that none of them are as widespread as the dtx format. (We had some discussion about the pros and cons of various approaches on the LaTeX3 mailing list. Some thought is probably needed to find the &quot;best&quot; way to create a successor to the current system.) I&#039;d point out that a lot of editors (Emacs, TeXworks and WinEdt, at least) can automatically start each line correctly.

As I&#039;ve said, I got the basic form of the dtx I&#039;ve explained from Will! If he fancies adding the code and explanation to his gallery, I&#039;d be quite happy.

By the way, any things that you&#039;d like more on? I currently have two or three more posts in mind.

Joseph</description>
		<content:encoded><![CDATA[<p>Hello Tomek,</p>
<p>There are other approaches that don&#8217;t require writing code as comments. The problem is that none of them are as widespread as the dtx format. (We had some discussion about the pros and cons of various approaches on the LaTeX3 mailing list. Some thought is probably needed to find the &#8220;best&#8221; way to create a successor to the current system.) I&#8217;d point out that a lot of editors (Emacs, TeXworks and WinEdt, at least) can automatically start each line correctly.</p>
<p>As I&#8217;ve said, I got the basic form of the dtx I&#8217;ve explained from Will! If he fancies adding the code and explanation to his gallery, I&#8217;d be quite happy.</p>
<p>By the way, any things that you&#8217;d like more on? I currently have two or three more posts in mind.</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomek</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1352</link>
		<dc:creator>Tomek</dc:creator>
		<pubDate>Wed, 07 Oct 2009 10:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1352</guid>
		<description>Thanks a lot for this writeup, Joseph. I particularly liked your explanation of the mechanics involved in using dtx/DocStrip combo. After reading &quot;dtxtut&quot; it wasn&#039;t so clear to me how it all comes together. 

One feature that I&#039;m not so fond of in .dtx format is writing user documentation as comments. This is fine for documenting the implementation but quite awkward for longer stretches of text such as description of the user interface.

Anyway, I think that have you a lot of good information in these .dtx series already, enough for a nice tutorial. Together with your model .dtx file this could make a nice addition to Will&#039;s dtxgallery (just a thought ;-).

I&#039;m looking forward to the rest of the series.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this writeup, Joseph. I particularly liked your explanation of the mechanics involved in using dtx/DocStrip combo. After reading &#8220;dtxtut&#8221; it wasn&#8217;t so clear to me how it all comes together. </p>
<p>One feature that I&#8217;m not so fond of in .dtx format is writing user documentation as comments. This is fine for documenting the implementation but quite awkward for longer stretches of text such as description of the user interface.</p>
<p>Anyway, I think that have you a lot of good information in these .dtx series already, enough for a nice tutorial. Together with your model .dtx file this could make a nice addition to Will&#8217;s dtxgallery (just a thought <img src='http://www.texdev.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>I&#8217;m looking forward to the rest of the series.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1351</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Wed, 07 Oct 2009 05:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1351</guid>
		<description>The think with open work is that you never really know the source of the ideas! Thanks for the info.</description>
		<content:encoded><![CDATA[<p>The think with open work is that you never really know the source of the ideas! Thanks for the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Robertson</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1348</link>
		<dc:creator>Will Robertson</dc:creator>
		<pubDate>Wed, 07 Oct 2009 03:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1348</guid>
		<description>Acknowledgements also to Scott Pakin who wrote the original &quot;dtxtut&quot;, which inspired most of my work here, and to Heiko Oberdiek from whom I adopted the &quot;LaTeX for doc&quot;, &quot;TeX for ins&quot; idea. None of this stuff is originally mine!</description>
		<content:encoded><![CDATA[<p>Acknowledgements also to Scott Pakin who wrote the original &#8220;dtxtut&#8221;, which inspired most of my work here, and to Heiko Oberdiek from whom I adopted the &#8220;LaTeX for doc&#8221;, &#8220;TeX for ins&#8221; idea. None of this stuff is originally mine!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jürgen Fenn (juergenfenn) 's status on Tuesday, 06-Oct-09 18:07:25 UTC - Identi.ca</title>
		<link>http://www.texdev.net/2009/10/06/a-model-dtx-file/#comment-1341</link>
		<dc:creator>Jürgen Fenn (juergenfenn) 's status on Tuesday, 06-Oct-09 18:07:25 UTC - Identi.ca</dc:creator>
		<pubDate>Tue, 06 Oct 2009 18:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=450#comment-1341</guid>
		<description>[...]  http://www.texdev.net/2009/10/06/a-model-dtx-file/        a few seconds ago  from seesmic [...]</description>
		<content:encoded><![CDATA[<p>[...]  <a href="http://www.texdev.net/2009/10/06/a-model-dtx-file/" rel="nofollow">http://www.texdev.net/2009/10/06/a-model-dtx-file/</a>        a few seconds ago  from seesmic [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

