lyx-1.4 cvs assertion crash when resetting wrong language

2005-11-02 Thread Helge Hafting

Used todays cvs, opened a existing document.
(Written in british language, which is unusual here)
Wrote two lines of text, used edit-text style to give them
different font sizes  sans serif.  This is a customized heading.
Marked it, inserted a box(minipage) around it.
Noticed the silly blue line that indicates different language
appeared under text inside the box. Argh - not that again. :-(

Selected the entire box and some more
Used edit-text style:
Decided to reset language.
Lyx-1.4cvs died with this assert:
 pasteSelection 0
Assertion triggered in void Paragraph::setFont(lyx::pos_type, const 
LyXFont) by failing check pos = size() in file paragraph.C:487

The document was saved.

Reloading the emergency saved stuff, I noticed the wrong language
was now gone, but the text sizes inside the box were also wrong.

The document was simple to fix, but I thought you'd like to hear
about the assert.

Helge Hafting


lyx-1.4 cvs assertion crash when resetting wrong language

2005-11-02 Thread Helge Hafting

Used todays cvs, opened a existing document.
(Written in british language, which is unusual here)
Wrote two lines of text, used edit-text style to give them
different font sizes  sans serif.  This is a customized heading.
Marked it, inserted a box(minipage) around it.
Noticed the silly blue line that indicates different language
appeared under text inside the box. Argh - not that again. :-(

Selected the entire box and some more
Used edit-text style:
Decided to reset language.
Lyx-1.4cvs died with this assert:
 pasteSelection 0
Assertion triggered in void Paragraph::setFont(lyx::pos_type, const 
LyXFont) by failing check pos = size() in file paragraph.C:487

The document was saved.

Reloading the emergency saved stuff, I noticed the wrong language
was now gone, but the text sizes inside the box were also wrong.

The document was simple to fix, but I thought you'd like to hear
about the assert.

Helge Hafting


lyx-1.4 cvs assertion crash when resetting "wrong" language

2005-11-02 Thread Helge Hafting

Used todays cvs, opened a existing document.
(Written in british language, which is unusual here)
Wrote two lines of text, used edit->text style to give them
different font sizes & sans serif.  This is a customized heading.
Marked it, inserted a box(minipage) around it.
Noticed the silly blue line that indicates "different language"
appeared under text inside the box. Argh - not that again. :-(

Selected the entire box and some more
Used edit->text style:
Decided to "reset" language.
Lyx-1.4cvs died with this assert:
 pasteSelection 0
Assertion triggered in void Paragraph::setFont(lyx::pos_type, const 
LyXFont&) by failing check "pos <= size()" in file paragraph.C:487

The document was saved.

Reloading the emergency saved stuff, I noticed the wrong language
was now gone, but the text sizes inside the box were also wrong.

The document was simple to fix, but I thought you'd like to hear
about the assert.

Helge Hafting


Re: Installing LyX from CVS

2005-09-27 Thread Daniel Watkins
On Mon, 2005-09-26 at 23:57 +0100, Angus Leeming wrote:

 How recent is your copy of the cvs sources?

I discovered that the problem was basically this. I had used Cervisia to
try and download the sources (because CLI cvs scares me :p). I must have
chosen the wrong branch (or just generally screwed up) but now I've used
the CLI cvs commands detailed on the website, I'm fine (and, in fact,
using LyX for Economics homework as I write this).

Thanks for the help!

Dan




Re: Installing LyX from CVS

2005-09-27 Thread Daniel Watkins
On Mon, 2005-09-26 at 23:57 +0100, Angus Leeming wrote:

 How recent is your copy of the cvs sources?

I discovered that the problem was basically this. I had used Cervisia to
try and download the sources (because CLI cvs scares me :p). I must have
chosen the wrong branch (or just generally screwed up) but now I've used
the CLI cvs commands detailed on the website, I'm fine (and, in fact,
using LyX for Economics homework as I write this).

Thanks for the help!

Dan




Re: Installing LyX from CVS

2005-09-27 Thread Daniel Watkins
On Mon, 2005-09-26 at 23:57 +0100, Angus Leeming wrote:

> How recent is your copy of the cvs sources?

I discovered that the problem was basically this. I had used Cervisia to
try and download the sources (because CLI cvs scares me :p). I must have
chosen the wrong branch (or just generally screwed up) but now I've used
the CLI cvs commands detailed on the website, I'm fine (and, in fact,
using LyX for Economics homework as I write this).

Thanks for the help!

Dan




Installing LyX from CVS

2005-09-26 Thread Daniel Watkins
Hi,
I've been using LyX for a little while mainly for Maths work but with a
little script-writing thrown in there as well (I do Theatre Studies at
school). I absolutely love the program, and thought I'd like to see what
the latest version looked like. However, after autogen'ing, configuring
and a good few minutes of make'ing, the following error message was
thrown up:

text2.C:162:2: warning: #warning broken?
text2.C:1238:2: warning: #warning This will not work anymore when we
have multiple views of the same buffer
text2.C:1246:2: warning: #warning DEPM, look here
text2.C:1289:2: warning: #warning DEPM, look here
text2.C:677: warning: unused parameter =E2=80=98boundary=E2=80=99
text2.C: In member function =E2=80=98lyx::pos_type
LyXText::getColumnNearX(lyx::pit_type, const Row, int, bool)
const=E2=80=
=99:
text2.C:881: error: no matching function for call to =E2=80=98min(const
int=
,
long int)=E2=80=99
make[3]: *** [text2.o] Error 1
make[3]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make: *** [all-recursive] Error 1

It would be greatly appreciated if someone could shed some light on how
I can fix this. If this is the wrong list for this query, then I'd be
happy to be corrected.

Cheers in advance,
Dan



Re: Installing LyX from CVS

2005-09-26 Thread Angus Leeming
Daniel Watkins wrote:
 text2.C: In member function lyx::pos_type
 LyXText::getColumnNearX(lyx::pit_type, const Row, int, bool) const
 text2.C:881: error: no matching function for call to =E2=80=98min(const
 int , long int)

 It would be greatly appreciated if someone could shed some light on how
 I can fix this. If this is the wrong list for this query, then I'd be
 happy to be corrected.

Hi, Daniel.

You're probably better off posting such questions to lyx-devel AT
lists.lyx.org (replace  AT  with @).

How recent is your copy of the cvs sources?

In my version of the sources I have line 876 of text2.C as:
   876  return min(col, end - 1 - row.pos());
so your compiler message suggests to me that something isn't up to date
(compare line numbers).

Current version is 1.632:
$ grep text2.C src/CVS/Entries
/text2.C/1.632/Mon Sep 26 22:32:28 2005//

What compiler are you using and on what type of machine / OS?

-- 
Angus



Installing LyX from CVS

2005-09-26 Thread Daniel Watkins
Hi,
I've been using LyX for a little while mainly for Maths work but with a
little script-writing thrown in there as well (I do Theatre Studies at
school). I absolutely love the program, and thought I'd like to see what
the latest version looked like. However, after autogen'ing, configuring
and a good few minutes of make'ing, the following error message was
thrown up:

text2.C:162:2: warning: #warning broken?
text2.C:1238:2: warning: #warning This will not work anymore when we
have multiple views of the same buffer
text2.C:1246:2: warning: #warning DEPM, look here
text2.C:1289:2: warning: #warning DEPM, look here
text2.C:677: warning: unused parameter =E2=80=98boundary=E2=80=99
text2.C: In member function =E2=80=98lyx::pos_type
LyXText::getColumnNearX(lyx::pit_type, const Row, int, bool)
const=E2=80=
=99:
text2.C:881: error: no matching function for call to =E2=80=98min(const
int=
,
long int)=E2=80=99
make[3]: *** [text2.o] Error 1
make[3]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make: *** [all-recursive] Error 1

It would be greatly appreciated if someone could shed some light on how
I can fix this. If this is the wrong list for this query, then I'd be
happy to be corrected.

Cheers in advance,
Dan



Re: Installing LyX from CVS

2005-09-26 Thread Angus Leeming
Daniel Watkins wrote:
 text2.C: In member function lyx::pos_type
 LyXText::getColumnNearX(lyx::pit_type, const Row, int, bool) const
 text2.C:881: error: no matching function for call to =E2=80=98min(const
 int , long int)

 It would be greatly appreciated if someone could shed some light on how
 I can fix this. If this is the wrong list for this query, then I'd be
 happy to be corrected.

Hi, Daniel.

You're probably better off posting such questions to lyx-devel AT
lists.lyx.org (replace  AT  with @).

How recent is your copy of the cvs sources?

In my version of the sources I have line 876 of text2.C as:
   876  return min(col, end - 1 - row.pos());
so your compiler message suggests to me that something isn't up to date
(compare line numbers).

Current version is 1.632:
$ grep text2.C src/CVS/Entries
/text2.C/1.632/Mon Sep 26 22:32:28 2005//

What compiler are you using and on what type of machine / OS?

-- 
Angus



Installing LyX from CVS

2005-09-26 Thread Daniel Watkins
Hi,
I've been using LyX for a little while mainly for Maths work but with a
little script-writing thrown in there as well (I do Theatre Studies at
school). I absolutely love the program, and thought I'd like to see what
the latest version looked like. However, after autogen'ing, configuring
and a good few minutes of make'ing, the following error message was
thrown up:

text2.C:162:2: warning: #warning broken?
text2.C:1238:2: warning: #warning This will not work anymore when we
have multiple views of the same buffer
text2.C:1246:2: warning: #warning DEPM, look here
text2.C:1289:2: warning: #warning DEPM, look here
text2.C:677: warning: unused parameter =E2=80=98boundary=E2=80=99
text2.C: In member function =E2=80=98lyx::pos_type
LyXText::getColumnNearX(lyx::pit_type, const Row&, int&, bool&)
const=E2=80=
=99:
text2.C:881: error: no matching function for call to =E2=80=98min(const
int=
&,
long int)=E2=80=99
make[3]: *** [text2.o] Error 1
make[3]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/daniel/lyx/lyx-devel/src'
make: *** [all-recursive] Error 1

It would be greatly appreciated if someone could shed some light on how
I can fix this. If this is the wrong list for this query, then I'd be
happy to be corrected.

Cheers in advance,
Dan



Re: Installing LyX from CVS

2005-09-26 Thread Angus Leeming
Daniel Watkins wrote:
> text2.C: In member function lyx::pos_type
> LyXText::getColumnNearX(lyx::pit_type, const Row&, int&, bool&) const
> text2.C:881: error: no matching function for call to =E2=80=98min(const
> int &, long int)

> It would be greatly appreciated if someone could shed some light on how
> I can fix this. If this is the wrong list for this query, then I'd be
> happy to be corrected.

Hi, Daniel.

You're probably better off posting such questions to lyx-devel AT
lists.lyx.org (replace " AT " with "@").

How recent is your copy of the cvs sources?

In my version of the sources I have line 876 of text2.C as:
   876  return min(col, end - 1 - row.pos());
so your compiler message suggests to me that something isn't up to date
(compare line numbers).

Current version is 1.632:
$ grep text2.C src/CVS/Entries
/text2.C/1.632/Mon Sep 26 22:32:28 2005//

What compiler are you using and on what type of machine / OS?

-- 
Angus



Re: Lyx and CVS

2004-10-26 Thread roland schmitz
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

2004-10-26 Thread Todd Denniston
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

2004-10-26 Thread roland schmitz
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

2004-10-26 Thread roland schmitz
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

2004-10-26 Thread Todd Denniston
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

2004-10-26 Thread roland schmitz
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

2004-10-26 Thread roland schmitz
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

2004-10-26 Thread Todd Denniston
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

2004-10-26 Thread roland schmitz
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

2004-10-25 Thread Alexis Huxley
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

2004-10-25 Thread roland schmitz
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

2004-10-25 Thread Kayvan A. Sylvan
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

2004-10-25 Thread Todd Denniston
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

2004-10-25 Thread Andre Poenitz
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

2004-10-25 Thread Alexis Huxley
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

2004-10-25 Thread roland schmitz
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

2004-10-25 Thread Kayvan A. Sylvan
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

2004-10-25 Thread Todd Denniston
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

2004-10-25 Thread Andre Poenitz
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

2004-10-25 Thread Alexis Huxley
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

2004-10-25 Thread roland schmitz
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

2004-10-25 Thread Kayvan A. Sylvan
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

2004-10-25 Thread Todd Denniston
"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

2004-10-25 Thread Andre Poenitz
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'


Lyx and CVS

2004-10-24 Thread Roland Schmitz
Hi,

while writing my master thesis, i started to use cvs to track changes in the 
text, pictures, measuremet results ... . Inside of my thesis i want to use 
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?

-- 
Thanx

Roland


P.S. I'll be probably offline till friday.


Lyx and CVS

2004-10-24 Thread Roland Schmitz
Hi,

while writing my master thesis, i started to use cvs to track changes in the 
text, pictures, measuremet results ... . Inside of my thesis i want to use 
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?

-- 
Thanx

Roland


P.S. I'll be probably offline till friday.


Lyx and CVS

2004-10-24 Thread Roland Schmitz
Hi,

while writing my master thesis, i started to use cvs to track changes in the 
text, pictures, measuremet results ... . Inside of my thesis i want to use 
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?

-- 
Thanx

Roland


P.S. I'll be probably offline till friday.