Re: svninfo packages and similar in LyX

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:44 PM, Julien Rioux wrote:

> Sure, try to start with the minimal attached file
>
> at the prompt, do:
>
> svn add svn.lyx
> svn propset svn:keywords "Id" svn.lyx
> svn commit
> svn update
>
> then open the file with lyx and view->dvi (or whatever)
>
> it works here
>

Here as well.

So I have to use svn.update, to get the version with the svn-info included.

Thanks a lot,

Rainer



> Cheers,
> Julien
>



-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: svninfo packages and similar in LyX

2009-12-14 Thread Julien Rioux
Sure, try to start with the minimal attached file

at the prompt, do:

svn add svn.lyx
svn propset svn:keywords "Id" svn.lyx
svn commit
svn update

then open the file with lyx and view->dvi (or whatever)

it works here

Cheers,
Julien


svn.lyx
Description: Binary data


Re: svninfo packages and similar in LyX

2009-12-13 Thread Rainer M Krug
Thanks for all your comments, but I am confused now.

Could you please provide an example LyX file and neccesary commands which
need to be executed in the shell (Linux)? Just that I see how it works.

Cheers,

Rainer

On Fri, Dec 11, 2009 at 7:57 PM, Julien Rioux wrote:

> Abdelrazak Younes  writes:
> >
> > Rainer M Krug wrote:
> > > When I put the following into the preamble:
> > >
> >
> > So you'll need to do the same:
> >
> > $ svn propset svn:keyword "URL Author Date Rev" BlackboxProtocol.lyx
> > property 'svn:keyword' set on 'BlackboxProtocol.lyx'
> >
>
> You also need
>
> \svnInfo $Id:$
>
> in your preamble to "define" what \svnId should include when it is
> expanded.
>
> From the svninfo doc, sec. 2.2:
>
> http://ctan.org/tex-archive/macros/latex/contrib/svninfo/svninfo.pdf
>
>
>


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: svninfo packages and similar in LyX

2009-12-11 Thread Julien Rioux
Abdelrazak Younes  writes:
> 
> Rainer M Krug wrote:
> > When I put the following into the preamble:
> > 
> 
> So you'll need to do the same:
> 
> $ svn propset svn:keyword "URL Author Date Rev" BlackboxProtocol.lyx
> property 'svn:keyword' set on 'BlackboxProtocol.lyx'
> 

You also need

\svnInfo $Id:$ 

in your preamble to "define" what \svnId should include when it is expanded.

>From the svninfo doc, sec. 2.2:

http://ctan.org/tex-archive/macros/latex/contrib/svninfo/svninfo.pdf




Re: svninfo packages and similar in LyX

2009-12-11 Thread Abdelrazak Younes

Pavel Sanda wrote:

Abdelrazak Younes wrote:
If you find this info useful maybe you someone can add somewhere in the 
Wiki?


Abdel, you dont read manuals! its already there :)


Sorry!

Ah... now I remember that you requested me to put that in the manuals... 
which I never did. Obviously you did it :-)


Abdel.



Re: svninfo packages and similar in LyX

2009-12-11 Thread Pavel Sanda
Abdelrazak Younes wrote:
> If you find this info useful maybe you someone can add somewhere in the 
> Wiki?

Abdel, you dont read manuals! its already there :)

pavel


Re: svninfo packages and similar in LyX

2009-12-11 Thread Abdelrazak Younes

Rainer M Krug wrote:

Hi

I am using version control (svn) for my LyX files, and I would like to put
the revision and other info into the document by using prelim2e.

My problem is (at least I think so) that packages like svninfo are using the
name of the .tex file to obtain the versioning info. This obviously does not
work, as the .lyx file is versioned.


When I put the following into the preamble:


\usepackage{svninfo}

\usepackage{prelim2e}

\renewcommand{\PrelimWords}{%

Draft -- \textsf{RandomClearing.lyx} -- svn ID: \svnId

}


I get:

Draft – RandomClearing.lyx – svn ID: –sourcefile– –revision– –time– –owner–
– 11th December 2009

at the bottom of my document.

Is there another package which would be able to give me the svn info from
the .lyx file to include it into the final compiled document (pdf)?


I don't know of any other package but if you don't mind the extra '$' 
characters, you can just use the svn keywords in plain text _within_ 
LyX. For example, '$Revision: $' will be filled out with the revision 
number:

  $Revision: 695 $

'$Id: $' will give you something like:
  $Id: BlackboxProtocol.lyx 695 2009-10-20 07:49:38Z younes $

This works because the lyx file format is text and also because I added 
some properties to my lyx file:


$ svn propget svn:keywords BlackboxProtocol.lyx
URL Author Date Rev Id

So you'll need to do the same:

$ svn propset svn:keyword "URL Author Date Rev" BlackboxProtocol.lyx
property 'svn:keyword' set on 'BlackboxProtocol.lyx'

If you find this info useful maybe you someone can add somewhere in the 
Wiki?


Abdel.



Re: svninfo packages and similar in LyX

2009-12-11 Thread Pavel Sanda
Rainer M Krug wrote:
> Is there another package which would be able to give me the svn info from
> the .lyx file to include it into the final compiled document (pdf)?

in manuals there are another few hints about how to put svn info into lyx
documents. the in-built support is problematic mainly due to svn shortcomings.

you can try to post if you will find solution through svninfo package, maybe we
can reuse it somehow for lyx itself.

pavel