On May 6, 2006, at 8:50 AM, Jörg Sommer wrote:
> I manage latex files with svn. Some of the users use emacs and preview
> latex, but not all users use emacs. Some of them have problems. So it
> would be the best that only the emacs and preview latex users add this
> packages.
>
> A good way would be to apply a local patch to their working copy that
> inserts the corresponding lines.
>
> Sometimes it's needed to have local changes they become not public.
> Can
> svn help?
Rather than the set up above, I would suggest having the latex files
include a site-specific file that is ignored by svn (using setprop).
So the version in the repository looks something like the following
(or perhaps a slightly fancier variation where you include the file
"local.sty" if it exists and ignore it otherwise), where "local.sty"
is ignored by svn.
========STORED FILE
\documentclass{article}
\usepackage{blah}
\include{local}
\begin{document}
Blah, blah, blah
\end{document}
========END
Then have users with local needs adjust the file "local.sty" as
desired. Users should confirm that their latex file compiles (TeXs)
if the \include{local} line is commented out before they commit the
file (you may be able to use a pre-commit hook to enforce this, or if
you get fancier, have the include only occur if a document class-
option is set, so the test amounts to changing a documentclass option).
Aaron
Received on Sat May 6 19:10:34 2006