<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Thu Jun 20, 2013 6:26 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Thu Jun 20, 2013 6:26 am</pubDate>
  <lastBuildDate>Thu Jun 20, 2013 6:26 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: unexpeted EOF?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=15178#15178</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=849'&gt;1slipperyfish&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 07, 2006 8:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      thankyou so much &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; that's it &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; i was going cross eyed looking for about an hour trying to find a typo &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
thanks agian&lt;br /&gt;
paul</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=15178#15178</comments>
                                        <author>1slipperyfish</author>
                                        <pubDate>Sat Jan 07, 2006 8:04 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=15178#15178</guid>
                                      </item>
                                      <item>
                                        <title>Re: unexpeted EOF?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=15176#15176</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2335'&gt;dogsby&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 07, 2006 7:47 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Are you missing a quote from the end of line 36?&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;Printing $LATEXFILE$COUNTER.tex&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=15176#15176</comments>
                                        <author>dogsby</author>
                                        <pubDate>Sat Jan 07, 2006 7:47 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=15176#15176</guid>
                                      </item>
                                      <item>
                                        <title>unexpeted EOF?</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=15175#15175</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=849'&gt;1slipperyfish&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 07, 2006 7:31 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      when i try to run lxprint i get this message&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;/home/paul/bin/lxprint: line 41: unexpected EOF while looking for matching `''&lt;br /&gt;
/home/paul/bin/lxprint: line 46: syntax error: unexpected end of file&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
the code is&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
if &amp;#91; &amp;quot;$1&amp;quot; = --help &amp;#93;; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;Use lxprint to print out laTex files in one easy step.&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;Just supply the name of a .tex file as an argument!&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot; * or the base name of a numbered sequence of .tex files&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot; to print them all!&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;exit 0&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
LATEXFILE=&amp;quot;$1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#If the filename supplied as an argument exists,&lt;br /&gt;
#then print it out.&lt;br /&gt;
if &amp;#91; -f &amp;quot;$LATEXFILE&amp;quot; &amp;#93;; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;DVIFILE=&amp;quot;$&amp;#40;echo &amp;quot;$LATEXFILE&amp;quot; | sed 's/tex$/dvi/'&amp;#41;&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;latex &amp;quot;$LATEXFILE&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;dvips &amp;quot;$DVIFILE&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#If the filename doesn't exist as supplied, see if&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#it's a base filename-- for example. if the user &lt;br /&gt;
&amp;nbsp; &amp;nbsp;#supplied '02projections' as an argument and the file&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#print another file.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if &amp;#91; -f &amp;quot;&amp;#123;$LATEXFILE&amp;#125;1.tex&amp;quot;&amp;#93;; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#The variable COUNTER will hold the current number&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#in the sequence we're printing.We'll start at 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#and use expr to add one to it each time we&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#print another file.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;COUNTER=1&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;while &amp;#91; -f &amp;quot;$LATEXFILE$COUNTER.tex&amp;quot; &amp;#93;; do&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;Printing $LATEXFILE$COUNTER.tex&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;latex &amp;quot;$LATEXFILE$COUNTER.tex&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;dvips &amp;quot;$LATEXFILE$COUNTER.dvi&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;COUNTER=$&amp;#40;expr $COUNTER +1&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;done&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; else&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;There doesn't seem to be a file called $LATEXFILE.&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;exit 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
it's probably just a typo as you know what i'm like &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
also if i put a &quot;;&quot; at the end of every line would this cause any problems?&lt;br /&gt;
any help would be greatly appreciated &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
paul</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=15175#15175</comments>
                                        <author>1slipperyfish</author>
                                        <pubDate>Sat Jan 07, 2006 7:31 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=15175#15175</guid>
                                      </item></channel></rss>