From paulepanter at users.sourceforge.net Thu Sep 4 13:20:35 2008 From: paulepanter at users.sourceforge.net (Paul Menzel) Date: Thu, 04 Sep 2008 13:20:35 +0200 Subject: OT: tips for directory structure for recurring LaTeX projects Message-ID: <1220527235.8598.2.camel@mattotaupa.wohnung.familie-menzel.net> Dear list, searching for latex vcs home latex structure vcs latex directory structure vcs in Google did not result in anything useful to me. If you can point me to an information source dealing with this, I will be more than thankful. I do write letters and protocols using LaTeX with KOMA-Script (texdoc scrguien). Now I want to start using a VCS. ## Current layout The layout right now is something like this. letters/ 20080101--BankOfIndia--AccountCreation/ Makefile # make [dvi|pdf] creates the respective output for me 20080101--BankOfIndia--AccountCreation.tex # name and address of \ addressee 20080101--BankOfIndia--AccountCreation.pdf # final result logo.eps logo.png style1.lco # Letter Class Option, defines my sender information, \ letter head, ? (scrlettr2 from KOMA-Script) 20080202--BoC--AccountRemoval/ Makefile # make [dvi|pdf] creates the respective output for me 20080202--BoC--AccountRemoval.tex # name and address of \ addressee 20080202--BoC--AccountRemoval.pdf # final result logo.eps logo.png style2.lco # Letter Class Option, defines my sender information, \ letter head, ? ### Workflow So wanting to write a new letter, I do cp -r directoryOfLastLetter 20080904--vcs-home--questions cd 20080904--vcs-home--questions mv directoryOfLastLetter.tex 20080904--vcs-home--questions.tex rm directoryOfLastLetter.* # adapt variable NAME in Makefile to new name # maybe choose different style ? I have to change Makefile \ und tex-file also # edit letter make ## structure using VCS I was wondering to set it up like letters/ logo.eps # under VC logo.png # under VC style1.lco # under VC style2lco # under VC sent/ pdf/ 20080101--BankOfIndia--AccountCreation.pdf # under VC 20080202--BoC--AccountRemoval.pdf # under VC eps/ 20080101--BankOfIndia--AccountCreation/ Makefile # under VC 20080101--BankOfIndia--AccountCreation.tex # under VC 20080101--BankOfIndia--AccountCreation.pdf # final result logo.eps # symlink ../logo.eps logo.png # symlink ../logo.png style1.lco # symlink ../style1.lco 20080202--BoC--AccountRemoval/ Makefile # under VC 20080202--BoC--AccountRemoval.tex # under VC 20080202--BoC--AccountRemoval.pdf # final result logo.eps # symlink ../logo.eps logo.png # symlink ../logo.png style2.lco # symlink ../style2.lco ### Workflow cp -r directoryOfLastLetter 20080904--vcs-home--questions # or \ svn cp cd 20080904--vcs-home--questions git-mv directoryOfLastLetter.tex 20080904--vcs-home--questions.tex\ or svn mv rm directoryOfLastLetter.* # adapt variable NAME in Makefile to new name # maybe change lco-file ? adapt Makefile and tex-file # edit letter git-commit -a make # edit and commit until done cp 20080904--vcs-home--questions.pdf ../sent/pdf/ git-commit -a #### Pros: ? Saving a genuine copy of the letter in sent. Because later wanting to recreate a letter might output different looking result because of a different version of e. g. LaTeX or style.lco has changed. (But this is dependent from VCS. I should have created this before.) #### Cons: ? The Makefile is copied more than needed. The only difference is the NAME variable. Solution: ? name every letter letter.tex and just rename it when copying to sent/ ? Still some renaming stuff to do. Ok, a name has to be entered. Solutions: ? Set up a template directory, which can be checked out somehow? Ok, I hope you could understand my setup. I think, thinking about this I came up with some more issues. But I can not remember right now. I know a lot is personal preference. But maybe you have set up a workflow you are satisfied with, which you can share. Thanks in advance, Paul -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: From madduck at madduck.net Fri Sep 19 19:07:28 2008 From: madduck at madduck.net (martin f krafft) Date: Fri, 19 Sep 2008 18:07:28 +0100 Subject: OT: tips for directory structure for recurring LaTeX projects In-Reply-To: <1220527235.8598.2.camel@mattotaupa.wohnung.familie-menzel.net> References: <1220527235.8598.2.camel@mattotaupa.wohnung.familie-menzel.net> Message-ID: <20080919170728.GB22849@lapse.rw.madduck.net> also sprach Paul Menzel [2008.09.04.1220 +0100]: > I do write letters and protocols using LaTeX with KOMA-Script > (texdoc scrguien). Now I want to start using a VCS. I use something similar to you, but I have all my letter-writing classes and files in $TEXMFHOME, where they are in VCS: http://git.madduck.net/v/etc/texmf.git and I use vimplate to create new letters. -- martin | http://madduck.net/ | http://two.sentenc.es/ a: no. q: should i include quotations after my reply? spamtraps: madduck.bogus at madduck.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature (see http://martin-krafft.net/gpg/) URL: