[OS X TeX] How use git with TeXShop projects?

Herbert Schulz herbs at wideopenwest.com
Mon Oct 19 19:54:09 EDT 2020


> On Oct 19, 2020, at 5:34 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> 
> Have you used the vc package at all? I tried it on a document in TeXShop, inserting the lines 
> 
> 	\immediate\write18{sh ./vc}
> 	\input{vc}
> 
> at the top of the document. And I put the files vc and vc-git.awk in the document’s directory.
> 
> On running latex (with TeXShop’s Typeset menu item), I get error:
> 
> (./vc
> ./vc:1: You can't use `macro parameter character #' in vertical mode.
> l.1 #
>      !/bin/sh
> 
> What am I doing wrong?
> 
>> On 19 Oct2020, at 2:12 PM, Robert Love <rblove_lists at comcast.net> wrote:
>> 
>> I think you can discount RCS.   Git & Mecurial are the distributed source control tools and Subversion is the older one.
>> 
>> There is a LaTeX package vc to help with marking the version number in the document.   I need to figure out how modify my latexmk to use it.
>> 
>>> On Oct 7, 2020, at 4:54 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>>> 
>>> I’d like direct advice and pointers to documentation on using a revision control system with both a local repository and a repository in the cloud for projects done in TeXShop.
>>> 
>>> Considerations:
>>> 
>>> 	- Except for having downloaded many archives from github, I’ve never used a revision control system before
>>> 	
>>> 	- I’m agnostic with respect to the particular revison control system. I suppose Subversion and GIT are the chief contenders today.  Or RCS?
>>> 
>>> 	- I’m aware of http://www.tug.org/pracjourn/2007-3/scharrer/scharrer.pdf, but that’s a bit old (and Windows oriented)
>>> 
>>> 	- Are there any hooks in TeXShop for facilitating use of a revision control system directly within it?
>>> 
>>> Although I’m engaged in a single-author project, my understanding is that using a revision control system would be a lot safer than my current, “manual” system of (i) having the Mac utility app Forever Save 2 automatically save each TeX file each time it’s saved within TeXShop; (ii) daily backing up the current files in the project into a .tar via a little shell script; and (ii) of course the usual local backup to TimeMachine and remote backup to a cloud-based system such as AWS S3/Glacier.
>>> 
>>> ---
>>> Murray Eisenberg			murrayeisenberg at gmail.com
>>> 503 King Farm Blvd #101	Home (240)-246-7240
>>> Rockville, MD 20850-6667	Mobile (413)-427-5334

Howdy,

First, to use \write18 you must turn on --shell-escape.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)



More information about the MacOSX-TeX mailing list