[texworks] Document Version-ing and synctex Previewing
Charlie Sharpsteen
chuck at sharpsteen.net
Mon Jun 20 01:27:28 CEST 2011
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