Jean-Marc Lasgouttes wrote:

>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> Angus> How the file is stored/output can be selected using the three
> Angus> check buttons. The idea is to enable this on a file-by-file
> Angus> basis. Ie, the database must be first selected in the browser
> Angus> for the buttons to become active.
> 
> Angus> ("TeX magic" might be better labelled as "Name only").
> 
> This seems very very complicated to me. 

Oh, not really. But it is definitely too complicated for LyX to be 
able to tell me what I want and gt it right everytime.

> The user does not care about such subtleties. What I propose 
> that you do is
> 
> 1/ after browsing (in which directories does it browse, anyway?),
> you have an absolute path /foo/bar.bib.

That is correct. (I'm not sure. Will look this evening.)
However, the user will also be able to enter a file by typing it into 
the input widget. That can, of course, be a relative path.

> 2/ if Makerelpath(/foo/bar.bib,buffer_path) does not start with ..,
> use a relative path

This is where I disagree. I, for example, tend to use a doc directory 
with different papers in doc/some_sub_dir. However, they all share a 
common doc/references.bst file, stored in the lyx file as 
../references.bst

That sounds entirely reasonable to me.

> 3/ if bar.bib can be found by findtexfile.bst, then just use that
> [this is the TeX magic case]. You may have to make sure that the
> current directory is not the document directory, so that you know it

Good. I agree with this entirely.

I think that I start to see a solution. Will mull things over further 
when I have some time.

-- 
Angus

Reply via email to