Re: Lyx and CVS
Hi Kayvan, Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). can i use this code similar with CVS? Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
roland schmitz wrote: Hi Kayvan, Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). can i use this code similar with CVS? Roland Yes. https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 CVS uses rcs (actually has it built in now) as its underlying system, so all the RCS key words work as listed. It is CVS that I use, and when I tested Kayvan's advice against my repository, I found it working beautifully. -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
Hi Todd, hi list, https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 CVS uses rcs (actually has it built in now) as its underlying system, so all the RCS key words work as listed. It is CVS that I use, and when I tested Kayvan's advice against my repository, I found it working beautifully. great, i'll use it this weekend. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
Hi Kayvan, Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). can i use this code similar with CVS? Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
roland schmitz wrote: Hi Kayvan, Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). can i use this code similar with CVS? Roland Yes. https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 CVS uses rcs (actually has it built in now) as its underlying system, so all the RCS key words work as listed. It is CVS that I use, and when I tested Kayvan's advice against my repository, I found it working beautifully. -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
Hi Todd, hi list, https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 CVS uses rcs (actually has it built in now) as its underlying system, so all the RCS key words work as listed. It is CVS that I use, and when I tested Kayvan's advice against my repository, I found it working beautifully. great, i'll use it this weekend. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
Hi Kayvan, > Put the following in your LaTeX preamble: > % RCS style. > \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} > [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} > > Then, in your document (or in your preamble), do: > \RCSdef $Revision$ > \RCSdef $Date$ > > Now, you can use \RCSRevision or \RCSDate in your document (in a > LaTeX ERT inset). can i use this code similar with CVS? Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
roland schmitz wrote: > > Hi Kayvan, > > > Put the following in your LaTeX preamble: > > % RCS style. > > \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} > > [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} > > > > Then, in your document (or in your preamble), do: > > \RCSdef $Revision$ > > \RCSdef $Date$ > > > > Now, you can use \RCSRevision or \RCSDate in your document (in a > > LaTeX ERT inset). > > can i use this code similar with CVS? > > Roland > Yes. https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 CVS uses rcs (actually has it built in now) as its underlying system, so all the RCS key words work as listed. It is CVS that I use, and when I tested Kayvan's advice against my repository, I found it working beautifully. -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
Hi Todd, hi list, > https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html#SEC97 > CVS uses rcs (actually has it built in now) as its underlying system, so > all > the RCS key words work as listed. > It is CVS that I use, and when I tested Kayvan's advice against my > repository, > I found it working beautifully. great, i'll use it this weekend. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
Roland Schmitz [EMAIL PROTECTED] wrote: the cvs version or revision tags (on the titlepage, or in the page headings/footer). Is/how it possibe to query cvs automaticly before printing the thesis, which number/tag is actual used in cvs, and insert this result into the text before printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
Re: Lyx and CVS
Hi Alexis, I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. This sounds quite simple, before i started this thread, i googled the web with linux lyx cvs and found countless pages which doesn't help me. Is there any source to read for me? Until this weekend, i can't check it it, but i can read about it, if i know where. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: Hi Alexis, I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. This sounds quite simple, before i started this thread, i googled the web with linux lyx cvs and found countless pages which doesn't help me. Is there any source to read for me? Until this weekend, i can't check it it, but i can read about it, if i know where. Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
Re: Lyx and CVS
Kayvan A. Sylvan wrote: On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: Hi Alexis, SNIP keywords, which CVS uses to do the same thing. Try putting '$Revision$' SNIP Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). Thank you Very much. I have been looking for a way do do it with out the $'s and :'s for quite a while. Bosses did not seem to understand why I wanted to have version control markers in my text when it looked so ugly, this makes it look Pretty. Now I just have to make them understand that using the revision control version indicator of documents is more meaningful than a never updated hand version marker. :} -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 07:54:48AM +, Alexis Huxley wrote: Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Sounds a bit complicated. Why not using TeX? \def\striprevision$Revision #1${#1} \striprevision$Revision$ should produce 1.2.3.4 if something (e.g. RCS) replaces '$Revision$' by '$Revision 1.2.3.4$. Andre'
Re: Lyx and CVS
Roland Schmitz [EMAIL PROTECTED] wrote: the cvs version or revision tags (on the titlepage, or in the page headings/footer). Is/how it possibe to query cvs automaticly before printing the thesis, which number/tag is actual used in cvs, and insert this result into the text before printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
Re: Lyx and CVS
Hi Alexis, I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. This sounds quite simple, before i started this thread, i googled the web with linux lyx cvs and found countless pages which doesn't help me. Is there any source to read for me? Until this weekend, i can't check it it, but i can read about it, if i know where. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: Hi Alexis, I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. This sounds quite simple, before i started this thread, i googled the web with linux lyx cvs and found countless pages which doesn't help me. Is there any source to read for me? Until this weekend, i can't check it it, but i can read about it, if i know where. Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
Re: Lyx and CVS
Kayvan A. Sylvan wrote: On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: Hi Alexis, SNIP keywords, which CVS uses to do the same thing. Try putting '$Revision$' SNIP Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). Thank you Very much. I have been looking for a way do do it with out the $'s and :'s for quite a while. Bosses did not seem to understand why I wanted to have version control markers in my text when it looked so ugly, this makes it look Pretty. Now I just have to make them understand that using the revision control version indicator of documents is more meaningful than a never updated hand version marker. :} -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 07:54:48AM +, Alexis Huxley wrote: Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Sounds a bit complicated. Why not using TeX? \def\striprevision$Revision #1${#1} \striprevision$Revision$ should produce 1.2.3.4 if something (e.g. RCS) replaces '$Revision$' by '$Revision 1.2.3.4$. Andre'
Re: Lyx and CVS
Roland Schmitz <[EMAIL PROTECTED]> wrote: > the cvs version or revision tags (on the titlepage, or in the page > headings/footer). > Is/how it possibe to query cvs automaticly before printing the thesis, which > number/tag is actual used in cvs, and insert this result into the text before > printing starts? I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ $LastChangedRevision$') and this works fine. You can use the RCS keywords, which CVS uses to do the same thing. Try putting '$Revision$' in your document. Look at RCS's co(1) man page for a list of keywords. Unfortunately these (in RCS/CVS and SVN case) expand to the corresponding value *plus* the keyword text, i.e. not just: 1.2.3.4 but: $Revision 1.2.3.4$ which may look a bit messier than than you consider acceptable. In this case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, and then lyx --export that to a printable format. Remember that the keyword will correspond to the last *committed* version; edits made after checking out will not affect the version number displayed. So always commit before printing if you want the correct number to be embedded in the doc. HTH Alexis
Re: Lyx and CVS
Hi Alexis, > I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ > $LastChangedRevision$') and this works fine. You can use the RCS > keywords, which CVS uses to do the same thing. Try putting '$Revision$' > in your document. Look at RCS's co(1) man page for a list of > keywords. This sounds quite simple, before i started this thread, i googled the web with "linux lyx cvs" and found countless pages which doesn't help me. Is there any source to read for me? Until this weekend, i can't check it it, but i can read about it, if i know where. Thanx Roland -- Mit freundlichem GrussYours sincerely Roland Schmitz Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: > Hi Alexis, > > > I embed Subversion keywords in my LyX documents (e.g. '$HeadURL$ > > $LastChangedRevision$') and this works fine. You can use the RCS > > keywords, which CVS uses to do the same thing. Try putting '$Revision$' > > in your document. Look at RCS's co(1) man page for a list of > > keywords. > This sounds quite simple, before i started this thread, i googled the web > with "linux lyx cvs" and found countless pages which doesn't help me. Is > there any source to read for me? Until this weekend, i can't check it it, > but i can read about it, if i know where. Put the following in your LaTeX preamble: % RCS style. \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} Then, in your document (or in your preamble), do: \RCSdef $Revision$ \RCSdef $Date$ Now, you can use \RCSRevision or \RCSDate in your document (in a LaTeX ERT inset). ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Re: Lyx and CVS
"Kayvan A. Sylvan" wrote: > > On Mon, Oct 25, 2004 at 04:46:20PM +0200, roland schmitz wrote: > > Hi Alexis, > > > > > keywords, which CVS uses to do the same thing. Try putting '$Revision$' > Put the following in your LaTeX preamble: > > % RCS style. > \def\RCSdef $#1${\typeout{RCS keyword string: [EMAIL PROTECTED]: {} :.} > [EMAIL PROTECTED]: #2 :#3.{\expandafter\def\csname RCS#1\endcsname{#2}} > > Then, in your document (or in your preamble), do: > > \RCSdef $Revision$ > \RCSdef $Date$ > > Now, you can use \RCSRevision or \RCSDate in your document (in a > LaTeX ERT inset). Thank you Very much. I have been looking for a way do do it with out the $'s and :'s for quite a while. Bosses did not seem to understand why I wanted to have version control markers in my text when it looked so "ugly", this makes it look "Pretty". Now I just have to make them understand that using the revision control "version indicator" of documents is more meaningful than a never updated hand version marker. :} -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter
Re: Lyx and CVS
On Mon, Oct 25, 2004 at 07:54:48AM +, Alexis Huxley wrote: > Unfortunately these (in RCS/CVS and SVN case) expand to the > corresponding value *plus* the keyword text, i.e. not just: > > 1.2.3.4 > > but: > > $Revision 1.2.3.4$ > > which may look a bit messier than than you consider acceptable. In this > case maybe you need to 'make' a stripped version. I.e. edit mydoc.lyx, > and then use a Makefile to 'sed' this to mydoc-not-for-editing.lyx, > and then lyx --export that to a printable format. Sounds a bit complicated. Why not using TeX? \def\striprevision$Revision #1${#1} \striprevision$Revision$ should produce 1.2.3.4 if something (e.g. RCS) replaces '$Revision$' by '$Revision 1.2.3.4$. Andre'