Re: Way to do unsorted multiple bibliography

2012-06-25 Thread Julien Babinot
stefano franchi  gmail.com> writes:

> 
> On Sat, Jun 23, 2012 at 12:41 AM, Julien Babinot
>  9online.fr> wrote:
> > Julien Babinot  9online.fr> writes:
> >
> >>
> >> stefano franchi  gmail.com> writes:
> >>
> >> >
> >> > On Thu, Jun 21, 2012 at 9:08 PM, julien.babinot
> >> >  9online.fr> wrote:
> > After some tests i finally succeeded to insert the bibliography via 
biblatex.
> > Actually, there was two problems:
> > - All files have to be put in a folder with no space: i changed the 
> > previous 
one
> > to C:/Test/Publi1
> 
> This may be a problem with bibtex rather than with biblatex. At any
> rate, I it's good practice to avoid spaces in paths when using any
> tex-related tool, in my opinion.
> 
> > - The absolut path have to be written like this: 
\bibliography{C:/Test/Publi1}
> > (without the .bib)
> 
> Yes, the old \bibliography command does not want extensions.
> 
> > Then everything is working fine.
> >
> > Strong of this success i tried to use biblatex with my thesis files, which 
are
> > several chapters included in a main document lyx. When i visualize each 
chapter
> > separately, it is working fine.
> > To do the multiple bibliography in each chapter from this master file, i 
> > had 
a
> > look on the wiki: http://wiki.lyx.org/BibTeX/Tips#secbib
> 
> You may want to take a look at the bibtlatex manual as well, where the
> issue is discussed.
> 
> > From here i have several questions:
> > - To build bibtexall.exe, i used this
> > way:http://logix4u.net/component/content/article/27-tutorials/44-how-to-
create-
> > windows-executable-exe-from-python-script with the code given on the wiki 
page.
> > Is it correct to proceed like this? Or do i just need to put the code in a 
.txt
> > file and then to rename it?
> > I supposed that first method was the good one, and i put this file in what 
seems
> > to be the "path" mentioned on the wiki, namely C:\Program Files\MiKTeX
> > 2.9\miktex\bin (i am with windows XP, MikteX distribution). Is it correct 
> > to 
put
> > the bibtexall.exe file here?
> 
> I can't help here, not being a Windows user
> 
> > - On my main document i use the following preamble:
> > \usepackage[style=nature,natbib=true]{biblatex}
> > \bibliography{C:/Test/Publi1,C:/Test/Publi2}
> > but references are not appearing.
> > If i change to:
> > \usepackage[style=nature,natbib=true]{biblatex}
> > \bibliography{Publi1,Publi2}
> > then the bibliography of the first chapter works well, but there is no in 
the
> > second. It seems strange to have to use an absolute path for single 
document,
> > and a relative path for a multiple?? And why in the multiple only the
> > bibliography of the first chapter works well? Could it be a problem with
> > bibtexall?
> 
> It could be, you may want to look at the latex log to find out what is
> happening. You are using \printbibliograpy commands at the end of each
> chapter, aren't you?
> 
> Again, try making a simple, multichapter example to aid debugging and
> perhaps post it to the list.
> 
> Cheers,
> 
> Stefano
> 


Hi Stefano,

I read the biblatex manual and fixed some issues. I changed the bibliography 
command to \addbibresource and when i compile a simple document it works 
perfectly.
To build a multiple bibliography, i used the commands \begin{refsection} and 
\end{refsection}in each chapter, and in the preamble of my master document, i 
used the preamble:
\usepackage[style=nature]{biblatex}
\addbibresource{Publi1}
\addbibresource{Publi2}

Unfortunately in this case my references are not recognized and appear in bold.
If i remove the environments \begin{refsection} and \end{refsection} then my 
references are appearing but are incremented as an only bib file, from 1 to 40 
instead of 2x 1 to 20. I guess this behavior is normal as no section are 
defined. 
So at the end, i think it should be a problem of the bibtexall script that does 
not do the job. Do you think there could be other problems?
If not i will post an other message specific to the installation if bibtexall 
on 
windows environment.

Thanks a lot for your help

Cheers

Julien



Re: Way to do unsorted multiple bibliography

2012-06-23 Thread stefano franchi
On Sat, Jun 23, 2012 at 12:41 AM, Julien Babinot
 wrote:
> Julien Babinot  9online.fr> writes:
>
>>
>> stefano franchi  gmail.com> writes:
>>
>> >
>> > On Thu, Jun 21, 2012 at 9:08 PM, julien.babinot
>> >  9online.fr> wrote:
> After some tests i finally succeeded to insert the bibliography via biblatex.
> Actually, there was two problems:
> - All files have to be put in a folder with no space: i changed the previous 
> one
> to C:/Test/Publi1

This may be a problem with bibtex rather than with biblatex. At any
rate, I it's good practice to avoid spaces in paths when using any
tex-related tool, in my opinion.

> - The absolut path have to be written like this: \bibliography{C:/Test/Publi1}
> (without the .bib)

Yes, the old \bibliography command does not want extensions.

> Then everything is working fine.
>
> Strong of this success i tried to use biblatex with my thesis files, which are
> several chapters included in a main document lyx. When i visualize each 
> chapter
> separately, it is working fine.
> To do the multiple bibliography in each chapter from this master file, i had a
> look on the wiki: http://wiki.lyx.org/BibTeX/Tips#secbib

You may want to take a look at the bibtlatex manual as well, where the
issue is discussed.

> From here i have several questions:
> - To build bibtexall.exe, i used this
> way:http://logix4u.net/component/content/article/27-tutorials/44-how-to-create-
> windows-executable-exe-from-python-script with the code given on the wiki 
> page.
> Is it correct to proceed like this? Or do i just need to put the code in a 
> .txt
> file and then to rename it?
> I supposed that first method was the good one, and i put this file in what 
> seems
> to be the "path" mentioned on the wiki, namely C:\Program Files\MiKTeX
> 2.9\miktex\bin (i am with windows XP, MikteX distribution). Is it correct to 
> put
> the bibtexall.exe file here?

I can't help here, not being a Windows user

> - On my main document i use the following preamble:
> \usepackage[style=nature,natbib=true]{biblatex}
> \bibliography{C:/Test/Publi1,C:/Test/Publi2}
> but references are not appearing.
> If i change to:
> \usepackage[style=nature,natbib=true]{biblatex}
> \bibliography{Publi1,Publi2}
> then the bibliography of the first chapter works well, but there is no in the
> second. It seems strange to have to use an absolute path for single document,
> and a relative path for a multiple?? And why in the multiple only the
> bibliography of the first chapter works well? Could it be a problem with
> bibtexall?

It could be, you may want to look at the latex log to find out what is
happening. You are using \printbibliograpy commands at the end of each
chapter, aren't you?

Again, try making a simple, multichapter example to aid debugging and
perhaps post it to the list.

Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Way to do unsorted multiple bibliography

2012-06-22 Thread Julien Babinot
Julien Babinot  9online.fr> writes:

> 
> stefano franchi  gmail.com> writes:
> 
> > 
> > On Thu, Jun 21, 2012 at 9:08 PM, julien.babinot
> >  9online.fr> wrote:
> > > Dear Lyx users,
> > > First of all, i would like to know if there is one favoured package for my
> > > purpose between bibunits, chapterbib or biblatex?
> > 
> > I have never used bibunits or chapterbib, but I can confirm that
> > biblatex can do chapter bibliographies quite easily. It  lets you
> > choose the sorting scheme (including the unsorted option). Even though
> > biblatex is not completely integrated into Lyx, using it from lyx is
> > quite easy. All you need is to load the BOTH the biblatex package and
> > the bib files from the preamble. Using a standard bibliography in a
> > lyx note allows you to choose references "the Lyx way." See the  wiki
> > page on biblatex for the details: http://wiki.lyx.org/BibTeX/Biblatex
> > 
> > Cheers,
> > 
> > Stefano
> > 
> > Note: the wiki page has a warning about biber as not yet mature
> > product. While biber is certainly not as mature as bibtex, I have
> > found it extremely stable. On the plus side, biber allows you to use
> > UTF-8 encoded bibliography files---a great bonus if you work with
> > languages containing diacritics (i.e. accents).  I have switched to
> > biber about three years ago and never regretted it.
> > 
> 
> Hi Stefano,
> 
> Thanks a lot for your answer. Following your advice, i am starting to use 
> biblatex. To get used of it, I am making a simple test on a single document 
with 
> one bibliography.
> I entered the preamble in Lyx, put my bibliography in a Lyx note and inserted 
> some citations via the Lyx tool "insert citation".
> However when i try to preview, my references are not recognized (they appear 
as 
> a bold number, and nothing appears after \printbibliography ERT).
> My .bib file is in the same folder than my .lyx file, but as i understand lyx 
> cannot find it. I replaced the relative path of my file in the preamble by 
> the 
> absolut path but it has no effect. Am i doing something wrong?
> 
> Thanks again a lot for your help
> 
> PS: here is my preamble:
> \usepackage[style=numeric]{biblatex}
> \bibliography{Publi1}
> or 
> \usepackage[style=numeric]{biblatex}
> \bibliography{C:/Documents and Settings/Julien/Bureau/Test biblio/Publi1.bib}
> 
> I also tried to put my file in an absolute path with no spaces but i have 
> same 
> result...
> 
> 

Hi again,

After some tests i finally succeeded to insert the bibliography via biblatex.
Actually, there was two problems:
- All files have to be put in a folder with no space: i changed the previous 
one 
to C:/Test/Publi1
- The absolut path have to be written like this: \bibliography{C:/Test/Publi1}
(without the .bib)
Then everything is working fine.

Strong of this success i tried to use biblatex with my thesis files, which are 
several chapters included in a main document lyx. When i visualize each chapter 
separately, it is working fine. 
To do the multiple bibliography in each chapter from this master file, i had a 
look on the wiki: http://wiki.lyx.org/BibTeX/Tips#secbib
>From here i have several questions:
- To build bibtexall.exe, i used this 
way:http://logix4u.net/component/content/article/27-tutorials/44-how-to-create-
windows-executable-exe-from-python-script with the code given on the wiki page. 
Is it correct to proceed like this? Or do i just need to put the code in a .txt 
file and then to rename it?
I supposed that first method was the good one, and i put this file in what 
seems 
to be the "path" mentioned on the wiki, namely C:\Program Files\MiKTeX 
2.9\miktex\bin (i am with windows XP, MikteX distribution). Is it correct to 
put 
the bibtexall.exe file here?
- On my main document i use the following preamble:
\usepackage[style=nature,natbib=true]{biblatex}
\bibliography{C:/Test/Publi1,C:/Test/Publi2}
but references are not appearing.
If i change to:
\usepackage[style=nature,natbib=true]{biblatex}
\bibliography{Publi1,Publi2}
then the bibliography of the first chapter works well, but there is no in the 
second. It seems strange to have to use an absolute path for single document, 
and a relative path for a multiple?? And why in the multiple only the 
bibliography of the first chapter works well? Could it be a problem with 
bibtexall?

I am sorry to ask questions that are probably stupid but i am totally lost.

Many thanks

Julien






Re: Way to do unsorted multiple bibliography

2012-06-22 Thread Julien Babinot
stefano franchi  gmail.com> writes:

> 
> On Thu, Jun 21, 2012 at 9:08 PM, julien.babinot
>  9online.fr> wrote:
> > Dear Lyx users,
> > First of all, i would like to know if there is one favoured package for my
> > purpose between bibunits, chapterbib or biblatex?
> 
> I have never used bibunits or chapterbib, but I can confirm that
> biblatex can do chapter bibliographies quite easily. It  lets you
> choose the sorting scheme (including the unsorted option). Even though
> biblatex is not completely integrated into Lyx, using it from lyx is
> quite easy. All you need is to load the BOTH the biblatex package and
> the bib files from the preamble. Using a standard bibliography in a
> lyx note allows you to choose references "the Lyx way." See the  wiki
> page on biblatex for the details: http://wiki.lyx.org/BibTeX/Biblatex
> 
> Cheers,
> 
> Stefano
> 
> Note: the wiki page has a warning about biber as not yet mature
> product. While biber is certainly not as mature as bibtex, I have
> found it extremely stable. On the plus side, biber allows you to use
> UTF-8 encoded bibliography files---a great bonus if you work with
> languages containing diacritics (i.e. accents).  I have switched to
> biber about three years ago and never regretted it.
> 

Hi Stefano,

Thanks a lot for your answer. Following your advice, i am starting to use 
biblatex. To get used of it, I am making a simple test on a single document 
with 
one bibliography.
I entered the preamble in Lyx, put my bibliography in a Lyx note and inserted 
some citations via the Lyx tool "insert citation".
However when i try to preview, my references are not recognized (they appear as 
a bold number, and nothing appears after \printbibliography ERT).
My .bib file is in the same folder than my .lyx file, but as i understand lyx 
cannot find it. I replaced the relative path of my file in the preamble by the 
absolut path but it has no effect. Am i doing something wrong?

Thanks again a lot for your help

PS: here is my preamble:
\usepackage[style=numeric]{biblatex}
\bibliography{Publi1}
or 
\usepackage[style=numeric]{biblatex}
\bibliography{C:/Documents and Settings/Julien/Bureau/Test biblio/Publi1.bib}

I also tried to put my file in an absolute path with no spaces but i have same 
result...






Re: Way to do unsorted multiple bibliography

2012-06-22 Thread stefano franchi
On Thu, Jun 21, 2012 at 9:08 PM, julien.babinot
 wrote:
> Dear Lyx users,
> First of all, i would like to know if there is one favoured package for my
> purpose between bibunits, chapterbib or biblatex?

I have never used bibunits or chapterbib, but I can confirm that
biblatex can do chapter bibliographies quite easily. It  lets you
choose the sorting scheme (including the unsorted option). Even though
biblatex is not completely integrated into Lyx, using it from lyx is
quite easy. All you need is to load the BOTH the biblatex package and
the bib files from the preamble. Using a standard bibliography in a
lyx note allows you to choose references "the Lyx way." See the  wiki
page on biblatex for the details: http://wiki.lyx.org/BibTeX/Biblatex

Cheers,

Stefano

Note: the wiki page has a warning about biber as not yet mature
product. While biber is certainly not as mature as bibtex, I have
found it extremely stable. On the plus side, biber allows you to use
UTF-8 encoded bibliography files---a great bonus if you work with
languages containing diacritics (i.e. accents).  I have switched to
biber about three years ago and never regretted it.


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Way to do unsorted multiple bibliography

2012-06-21 Thread julien.babinot

Dear Lyx users,

I am writting my PhD thesis with this great software that is Lyx. 
Compared to a well-known WYSIWYG program, the benefits are just 
outstanding.
However, i have an unsolved problem concerning the bibliography of my 
thesis. I want to make a separate bibliography for each chapter (placed 
at the end of them), without overall bibliography. I want this 
bibliography to be unsorted, i.e. numbered in the order of citation.
Unfortunately, the native package included with Lyx for multiple 
bibliography, bibtopic, does not support unsorted bibliographies.
I had a look on this page to solve my problem: 
http://wiki.lyx.org/BibTeX/Tips#secbib
My knowledge in Latex being very poor, those procedures are perhaps not 
detailled enough for me and i am still not able to buid my multiple 
unsorted bibliography.
First of all, i would like to know if there is one favoured package for 
my purpose between bibunits, chapterbib or biblatex?
Then, do you know where i could find a detailled procedure for the 
installation and use of the best package in Lyx? I tried to use biblatex 
and chapterbib; i used this procedure to build bibtexall:

http://logix4u.net/component/content/article/27-tutorials/44-how-to-create-windows-executable-exe-from-python-script
Is it correct to proceed like this? I placed the as-made bibtexall.exe 
in the .bin folder of MikteX, but i don't know if this first step is 
already not correct or if i am not including the references and 
bibliography correctly (because it is of course not working)...


To summarize, i am totally lost and i would greatly appreciate any help!

Thanks a lot

Julien