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