On Mon, Oct 25, 2004 at 07:54:48AM +0000, 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'

Reply via email to