Ok, <div><br></div><div>So when using </div><div><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">    %& -job-name=These-Fair-Isles</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"> in the source, </span> if you directly manually open your output pdf in the Tw viewer, you can of course sync back to the source no problem, synctex knows the real source file name even though the produced .pdf has a different name.</div>

<div><br></div><div>.. its syncing the other way which is the problem source -> preview, I think this would be an editor (Tw) specific.</div><div><br></div><div>For current needs though, I'll just probably try to hook in on the TypeSet hook form script, and do a silent virtual auto saveAs using a version or time-stamp as part of the file name, perhaps into a subdirectory, and leave the main document always with the same name.and consequent .pdf name for syncing. </div>
<div>Basically mean that there'll be an auto-backup each time the document is typeset. As .tex are really comaparitively quite small,  this is quite good - could look at zipping as part of it.</div><div><br></div><div>
<font class="Apple-style-span" face="arial">But antway, having researched this ...</font></div><div><br></div><div>I see some very interesting switches for the Typeset command settings in preferences</div><div>in --<a href="http://www.google.com/codesearch#TCAOwTxChU8/trunk/src/TeXDocument.cpp&q=synctexoption%20package:http://texworks%5C.googlecode%5C.com&l=2464">http://www.google.com/codesearch#TCAOwTxChU8/trunk/src/TeXDocument.cpp&q=synctexoption%20package:http://texworks%5C.googlecode%5C.com&l=2464</a></div>
<div><br></div><div><pre id="c0"><span id="c0_2461" class="stx-line">                <span class="stx-keyword">if</span> (!synctexSupported)
</span><span id="c0_2462" class="stx-line">                        args.removeAll(<span class="stx-string">"$<span class="GEQUXKXGK" id="m_c0_1">synctexoption</span>"</span>);
</span><span id="c0_2463" class="stx-line">
</span><span id="c0_2464" class="stx-line">                args.replaceInStrings(<span class="stx-string">"$<span class="GEQUXKXGK" id="m_c0_2">synctexoption</span>"</span>, <span class="stx-string">"-synctex=1"</span>);
</span><span id="c0_2465" class="stx-line">                args.replaceInStrings(<span class="stx-string">"$fullname"</span>, fileInfo.fileName());
</span><span id="c0_2466" class="stx-line">                args.replaceInStrings(<span class="stx-string">"$basename"</span>, fileInfo.completeBaseName());
</span><span id="c0_2467" class="stx-line">                args.replaceInStrings(<span class="stx-string">"$suffix"</span>, fileInfo.suffix());
</span><span id="c0_2468" class="stx-line">                args.replaceInStrings(<span class="stx-string">"$directory"</span>, fileInfo.absoluteDir().absolutePath</span></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; "><br>
</span></font></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; ">And was wondering about the general options for use in Edit/Preferences/Typesetting and setting Processing Tools up, or editing existing ones.</span></font></pre>
<pre id="c0"><span class="Apple-style-span" style="font-family: arial; white-space: normal; ">I see $filename used there a bit,</span></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">What other options</span></font><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;"> are there please? Obviously $basename, $suffix, $directory as well.</span></font></pre>
<pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">I can look these up in Qt I suppose according to fileInfo.. as shown above.</span></font></pre><pre id="c0">
<font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; ">Can these be combined with straight ascii/utf8 when editing </span></font><span class="Apple-style-span" style="font-family: arial; white-space: normal; ">Edit/Preferences/Typesetting and setting Processing Tools?</span></pre>
<pre id="c0"><span class="Apple-style-span" style="font-family: arial; white-space: normal; ">And what other switches are built in please, good to know especially when adding exotic toolsets to processing tools. </span></pre>
<pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">Paul</span></font></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;"><br>
</span></font></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal; "><br></span></font></pre><pre id="c0"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;"><br>
</span></font></pre></div><div>Tw obviously picks up the document name changes .tex to .pdf an endeavours to scntex from source to that .pdf</div>
<div><br></div><div>So looking inside the generated </div><div><br></div><div>Paul</div><div><br></div><div><br><br><div class="gmail_quote">On 20 June 2011 11:40, Paul A Norman <span dir="ltr"><<a href="mailto:paul.a.norman@gmail.com" target="_blank">paul.a.norman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the suggestions Charlie,<br>
<br>
We have a reasonable mirroring operation in place covering both local<br>
and external storage.<br>
<br>
The reason for version numbering the documents is that it fits in with<br>
our local setup, and makes restoration of any lost text, through local<br>
diffing with Win-merge fast and effective, (opensource<br>
<a href="http://winmerge.org/" target="_blank">http://winmerge.org/</a> hopefully soon to be corss-platform<br>
<a href="https://bitbucket.org/grimmdp/winmerge" target="_blank">https://bitbucket.org/grimmdp/winmerge</a> ) .<br>
<br>
What I'm looking for is a way to tell TeXworks which pdf to use for<br>
syncing with the source text.<br>
<font color="#888888"><br>
Paul<br>
</font><div><div></div><div><br>
<br>
<br>
On 20 June 2011 11:27, Charlie Sharpsteen <<a href="mailto:chuck@sharpsteen.net" target="_blank">chuck@sharpsteen.net</a>> wrote:<br>
> On Sun, Jun 19, 2011 at 4:07 PM, Paul A Norman <<a href="mailto:paul.a.norman@gmail.com" target="_blank">paul.a.norman@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> For security of work, I both sync the files to storage(-s), and<br>
>> manually version number my .tex document(s) from time to time (one<br>
>> long monolithic) - not any version-ing on includes or like to worry<br>
>> about here.<br>
>><br>
>> E.g.<br>
>><br>
>> These-Fair-Isles-01.tex<br>
>> These-Fair-Isles-02.tex<br>
>> These-Fair-Isles-03.tex<br>
>><br>
>> And use a document pre-header of ...<br>
>><br>
>>     %& -job-name=These-Fair-Isles<br>
>><br>
>> Which nicely, under MiKTeX at least, makes the pdf as:<br>
>>      These-Fair-Isles.pdf<br>
>> and keeps it that way no matter what my document name version number is.<br>
>><br>
>> This means that the current document can always be linked to, and<br>
>> there is no obsolete .pdf garbage collection needed,<br>
>>  i.e. no great list of These-Fair-Isles-01.pdf,<br>
>> These-Fair-Isles-02.pdf, These-Fair-Isles-03.pdf ... pdfs  to be<br>
>> cleaned up later.<br>
>><br>
>> (All the .aux files etc nicely show up for deletion on File/Remove Aux Files)<br>
>><br>
>> Is there any setting I can put in the document to tell syntax to work<br>
>> on the document named in the top most header,<br>
>><br>
>>     %& -job-name=These-Fair-Isles<br>
>><br>
>> Or is there a similar command line I can include in the top of the<br>
>> document's header, so that Tw synctex preview will work please?<br>
>><br>
>> I.e. I would be working say at the moment in These-Fair-Isles-11.tex<br>
>> (or what ever)<br>
>> but always previewing  and syncing to These-Fair-Isles.pdf<br>
>><br>
>> Paul<br>
><br>
> Have you considered using a version control system such as Git,<br>
> Mercurial or SVN? Then you would just have one copy,<br>
> These-Fair-Isles.tex, and the ability to rewind to any prior version.<br>
> Plus, distributed systems like Git and Mercurial offer even more<br>
> security of work by allowing you to easily mirror your documents<br>
> across multiple computers in case the proverbial bolt of lightning<br>
> strikes your main machine.<br>
><br>
> -Charlie<br>
><br>
><br>
</div></div></blockquote></div><br></div>