Re: Article layout for plos?

2012-03-22 Thread Niklas Huldén

On 22.3.2012 20:36, David L. Johnson wrote:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:

I have an objection to the use of bibitems in LyX: If you use BibTeX
you can choose the bibliographic standard such as Vancouver, etc,
besides the BibTeX sorts bibliography items in the required order
acordingly to the standard; with LyX's bibitems you simply cannot do
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen the
need to bother with bibtex.  Most of my papers have maybe 5-10
references, that is certainly easy enough to do "by hand".



The bibitems are also extremely convenient to use if you have to cite 
more odd sources like interviews from certain archives and so on. I 
usually have two environments for my sources; first the oddballs from 
different archives as bibitems, followed by the literature references as 
a BibTeX bibliography. Both can be seen in the LyX citing menus.


Niklas Huldén


Re: underfull/ overfull badboxes

2012-03-22 Thread Steve Litt
On Thu, 22 Mar 2012 13:21:52 -0700 (PDT)
Marcelo Acuña  wrote:

> > Jürgen
> 
> > > \tolerance is [...]
> > 
> > thanks
> > 
> > >> I need a flexibilty in the page height (really text height)
> > >> because I have some problems with prematures page break for a few
> > >> milimeters but I don`t know how to get it. Is tolerance or
> > >> emergencystretch the way for get it?
> > 
> > >I would try \enlargethispage{10pt} (or any value of your choice) on
> > >the respective page.
> > 
> >  Yes. I use it, but I want a global solution, not to go page for
> > page and put a command that may be a headhache. I don`t know if it
> > is possible.
> > 
> > Marcelo
> [StevET]
> You basically mean Widow/Orphan protection, right?
> 
> 
> I get Widow/Orphan protection by mean of usual stuff in preamble.
> 
> (This leads me to believe that Lyx could add the option for a single
> click add these commands to avoid problems for newbies.)
> 
> My problem is:  I have two columms in all works. Time to time, I get
> a premature page break (column break) and a huge and ugly blank space
> and disbalanced columns in a page.
>  I need to get back some text from the next column. And  I want to
> have a global solution in the preamble  for this problem and not a
> case by case ERT workaround.
> 
> Marcelo

Hi Marcelo,

Yes, case by case workarounds, whether ERT or content modifications,
reduce the quality of life.

Two columns is challenging because each column is narrow relative to
the number of characters in a line, so you have to settle for more
intercharacter and interword variation. Look carefully at any newspaper
and you'll see that even they have these almost unacceptable variations.

I'm not quite sure what would cause a huge vertical empty space except
a heading (section, subsection, etc) or a graphic. What I'd recommend
is to find each of these huge empty spaces and try to find what's in
common with each. Another troubleshooting technique might be to make a
small test document that incorporates one of those huge spaces and not
much else, then export to LaTeX, and then on the command line compile
with LaTeX and watch the warnings. Then try to fix it in LaTeX, and
once you can do that, see if you can find a global fix.








Re: Bibliography handling by LyX

2012-03-22 Thread Richard Heck

On 03/22/2012 06:51 PM, Alex Vergara Gil wrote:

El 22/03/2012 02:50 p.m., Richard Heck escribió:

On 03/22/2012 04:02 PM, Alex Vergara Gil wrote:


El 22/03/2012 12:36 p.m., David L. Johnson escribió:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use 
BibTeX you can choose the bibliographic standard such as 
Vancouver, etc, besides the BibTeX sorts bibliography items in the 
required order acordingly to the standard; with LyX's bibitems you 
simply cannot do this and is like turning back to MS Office. Is 
this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never 
seen the need to bother with bibtex.  Most of my papers have maybe 
5-10 references, that is certainly easy enough to do "by hand".


When I wrote my MSc thesis I must handled with 80 citations in a 100 
page piece of work, imagine sort them one by one and changing from 
order of apearance to alphabetical just to adjust your work to the 
requirements of the institute!!! It is indeed old fashioned, you 
must tell the software what kind of bibliography you need and it 
must automatically reshape and sort it. BibTeX does this work, why 
LyX can't?


Sorry, I don't understand. Of course you can use BibTeX with LyX. Or 
you can just use bibitems. It's up to you. If you use bibitems, 
though, then you have to sort them. Why? Because


Off course I can use BibTeX with LyX, but to generalize the use of it 
as a redaction system editors will prefer, it is better to have all 
the main things in a solely archive, not figures off course, but the 
bibliography...


Hopefully for 2.1, we are going to have a "LyX bundle" that will solve 
all such problems, including figures, to make it easy to exchange data 
with others. Right now, we have the ability to export a LyX archive that 
will bundle all these things, too.


As initial step I would like to recommend developers to include an 
option to export bibitems to BibTeX, and a final option should be 
the use of BibTeX to produce the bibliography from bibitems. This is 
not too hard to do since most of the work is already done!


To do this, you'd have to be able to figure out who the author is, 
what the title is, etc, etc, etc. It is not going to be possible to 
figure that out in any reliable way.


By using the same algoritms that are already used for the modernCV 
example (separators }{)


If this means writing everything as ERT, it doesn't look good. I can 
imagine making LyX's internal storage of bibitems look more like BibTeX, 
then creating a BibTeX file on the fly for compilation, etc. There's 
already a bug about this, partly, to make bibitems easier to use with 
natbib. But it doesn't make much sense to me to go much farther. BibTeX 
isn't that hard to use, and one can exchange files using LyX's existing 
archive format, or just exchange two files. It isn't that hard.


Richard



Re: Bibliography handling by LyX

2012-03-22 Thread Alex Vergara Gil

El 22/03/2012 02:50 p.m., Richard Heck escribió:

On 03/22/2012 04:02 PM, Alex Vergara Gil wrote:


El 22/03/2012 12:36 p.m., David L. Johnson escribió:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use 
BibTeX you can choose the bibliographic standard such as Vancouver, 
etc, besides the BibTeX sorts bibliography items in the required 
order acordingly to the standard; with LyX's bibitems you simply 
cannot do this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen 
the need to bother with bibtex.  Most of my papers have maybe 5-10 
references, that is certainly easy enough to do "by hand".


When I wrote my MSc thesis I must handled with 80 citations in a 100 
page piece of work, imagine sort them one by one and changing from 
order of apearance to alphabetical just to adjust your work to the 
requirements of the institute!!! It is indeed old fashioned, you must 
tell the software what kind of bibliography you need and it must 
automatically reshape and sort it. BibTeX does this work, why LyX can't?


Sorry, I don't understand. Of course you can use BibTeX with LyX. Or 
you can just use bibitems. It's up to you. If you use bibitems, 
though, then you have to sort them. Why? Because
Off course I can use BibTeX with LyX, but to generalize the use of it as 
a redaction system editors will prefer, it is better to have all the 
main things in a solely archive, not figures off course, but the 
bibliography...


As initial step I would like to recommend developers to include an 
option to export bibitems to BibTeX, and a final option should be the 
use of BibTeX to produce the bibliography from bibitems. This is not 
too hard to do since most of the work is already done!


To do this, you'd have to be able to figure out who the author is, 
what the title is, etc, etc, etc. It is not going to be possible to 
figure that out in any reliable way.


Richard
By using the same algoritms that are already used for the modernCV 
example (separators }{)


Alex



Re: Bibliography handling by LyX

2012-03-22 Thread Richard Heck

On 03/22/2012 04:02 PM, Alex Vergara Gil wrote:


El 22/03/2012 12:36 p.m., David L. Johnson escribió:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use BibTeX 
you can choose the bibliographic standard such as Vancouver, etc, 
besides the BibTeX sorts bibliography items in the required order 
acordingly to the standard; with LyX's bibitems you simply cannot do 
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen 
the need to bother with bibtex.  Most of my papers have maybe 5-10 
references, that is certainly easy enough to do "by hand".


When I wrote my MSc thesis I must handled with 80 citations in a 100 
page piece of work, imagine sort them one by one and changing from 
order of apearance to alphabetical just to adjust your work to the 
requirements of the institute!!! It is indeed old fashioned, you must 
tell the software what kind of bibliography you need and it must 
automatically reshape and sort it. BibTeX does this work, why LyX can't?


Sorry, I don't understand. Of course you can use BibTeX with LyX. Or you 
can just use bibitems. It's up to you. If you use bibitems, though, then 
you have to sort them. Why? Because


As initial step I would like to recommend developers to include an 
option to export bibitems to BibTeX, and a final option should be the 
use of BibTeX to produce the bibliography from bibitems. This is not 
too hard to do since most of the work is already done!


To do this, you'd have to be able to figure out who the author is, what 
the title is, etc, etc, etc. It is not going to be possible to figure 
that out in any reliable way.


Richard



Re: underfull/ overfull badboxes

2012-03-22 Thread Marcelo Acuña
> Jürgen

> > \tolerance is [...]
> 
> thanks
> 
> >> I need a flexibilty in the page height (really text height)
> >> because I have some problems with prematures page break for a few
> >> milimeters but I don`t know how to get it. Is tolerance or
> >> emergencystretch the way for get it?
> 
> >I would try \enlargethispage{10pt} (or any value of your choice) on
> >the respective page.
> 
>  Yes. I use it, but I want a global solution, not to go page for page
> and put a command that may be a headhache. I don`t know if it is
> possible.
> 
> Marcelo
[StevET]
You basically mean Widow/Orphan protection, right?


I get Widow/Orphan protection by mean of usual stuff in preamble.

(This leads me to believe that Lyx could add the option for a single click add 
these commands to avoid problems for newbies.)

My problem is:  I have two columms in all works. Time to time, I get a 
premature 
page break (column break) and a huge and ugly blank space and 
disbalanced columns in a page.
 I need to get back some text from the next column. And  I want to have a 
global solution in the preamble  for this problem and not a case by case ERT 
workaround.

Marcelo


Re: LyX on Windows with UNC home directories

2012-03-22 Thread Julien Rioux

On 21/03/2012 11:10 AM, Matthias Hunstig wrote:

Dear LyX users and developers,

LyX has a problem with Windows users that have their home directory on a UNC 
path. http://wiki.lyx.org/LyX/Troubleshooting mentions these problems for Lyx 
1.5 already. (Recent versions do start, but have no classes available.)

I have been struggling with this for a long time. The workaround described in 
the link (saving some steps by running configure.py directly from the 
AppData\Lyx2.0 folder) worked for me on Windows XP.

Now, on Windows 7, it does not work anymore. Today, I have done some 
experiments but unfortunately not found a solution yet.
What I have found out is that

-  Under local users, LyX states "~\AppData\Roaming\Lyx2.0" as the user 
directory. I have not seen the tilde on Windows before, but it works.

-  Under network users, it states 
"\\server\user\ntdata\Anwendungsdaten\LyX2.0"
 as the user directory.

-  Running reconfigure from LyX as the network user gives some messages 
in the status line that can be traced back to the fact that cmd.exe does not 
accept UNC folders.

Is there any way to reliably make LyX run as a user with a UNC home directory? 
Could it help to just give LyX a different user directory to work in? If so, 
how can that be done?

I think this issue really needs to be fixed soon - People with home directories 
on serves are not uncommon and LyX is practically unusable for them.

Regards

Matthias



Hi Matthias,

Thanks for the descriptive report of the problem and your investigation 
of it.


Please, could you add a ticket to the bug tracker at 
http://www.lyx.org/trac/wiki/BugTrackerHome with as much information as 
you can. Your email already is very descriptive of your investigation, 
it would help to have this recorded on the bug tracker until someone 
tries to tackle the bug.


I'm also cc'ing the dev list to see if anyone has any immediate ideas.

Regards,
Julien


Bibliography handling by LyX (was: Article layout for plos?)

2012-03-22 Thread Alex Vergara Gil


El 22/03/2012 12:36 p.m., David L. Johnson escribio':

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use BibTeX 
you can choose the bibliographic standard such as Vancouver, etc, 
besides the BibTeX sorts bibliography items in the required order 
acordingly to the standard; with LyX's bibitems you simply cannot do 
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen 
the need to bother with bibtex.  Most of my papers have maybe 5-10 
references, that is certainly easy enough to do "by hand".


When I wrote my MSc thesis I must handled with 80 citations in a 100 
page piece of work, imagine sort them one by one and changing from order 
of apearance to alphabetical just to adjust your work to the 
requirements of the institute!!! It is indeed old fashioned, you must 
tell the software what kind of bibliography you need and it must 
automatically reshape and sort it. BibTeX does this work, why LyX can't? 
As initial step I would like to recommend developers to include an 
option to export bibitems to BibTeX, and a final option should be the 
use of BibTeX to produce the bibliography from bibitems. This is not too 
hard to do since most of the work is already done!

--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams


Saludos
~-o--{}--o-~
Alex Vergara Gil
MSc. Fi'sica Nuclear
Laboratorio Secundario de Calibracio'n Dosime'trica
Centro de Proteccio'n e Higiene de las Radiaciones
Calle No. 4113 e/ 41 y 47  Playa, C de la Habana
C.P.11300 La Habana, Cuba
Direccio'n postal A.P.6195 C.P.10600
Telf: (537)6829681, (537)6821803
Fax: (537)2030165



Re: Article layout for plos?

2012-03-22 Thread David L. Johnson

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use BibTeX 
you can choose the bibliographic standard such as Vancouver, etc, 
besides the BibTeX sorts bibliography items in the required order 
acordingly to the standard; with LyX's bibitems you simply cannot do 
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen the 
need to bother with bibtex.  Most of my papers have maybe 5-10 
references, that is certainly easy enough to do "by hand".


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



Re: Article layout for plos?

2012-03-22 Thread Alex Vergara Gil
I have an objection to the use of bibitems in LyX: If you use BibTeX you 
can choose the bibliographic standard such as Vancouver, etc, besides 
the BibTeX sorts bibliography items in the required order acordingly to 
the standard; with LyX's bibitems you simply cannot do this and is like 
turning back to MS Office. Is this a bug? does some other guy hasn't see 
this behaviour of the bibliography environment? For me it is clearly a 
bug, but that is just my opinion. So I only use BibTeX right now.


Saludos
~-o--{}--o-~
Alex Vergara Gil
MSc. Fi'sica Nuclear
Laboratorio Secundario de Calibracio'n Dosime'trica
Centro de Proteccio'n e Higiene de las Radiaciones
Calle No. 4113 e/ 41 y 47  Playa, C de la Habana
C.P.11300 La Habana, Cuba
Direccio'n postal A.P.6195 C.P.10600
Telf: (537)6829681, (537)6821803
Fax: (537)2030165


El 22/03/2012 10:59 a.m., Richard Heck escribio':

On 03/22/2012 12:53 PM, UD wrote:

-/-If journals want LaTeX, not LyX, then you have to export to LaTeX./

Some publishers are willing to accept Lyx instead of Latex (MIT 
press, for instance).
If authors knew that they have to handle Latex in addition to Lyx it 
might

appear to some (many?) as too much to handle.

As I said, IF a journal wants LaTeX, then you just export to LaTeX. No 
other special handling
is required, except possibly embedding bibliography information (see 
below).


-/-I don't understand. They don't have to be in separate files. You 
can just use the bibliography environment if you want.

/
If I insert/list/bibliography I just get a link to the bibtex 
database, and the actual citation entries are not part of the file

that I can send to a publisher or a colleague.

There is a bibliography style, in the same place you choose Section, 
Chapter, etc, so you don't have to use BibTeX.


We keep meaning to finish this bugfix that would automatically include 
the contents of the BBL file on export. There is a simple script that 
will do so attached to that bug, but getting it to work in the general 
case is hard.


Richard



Re: Article layout for plos?

2012-03-22 Thread Richard Heck

On 03/22/2012 12:53 PM, UD wrote:

-/-If journals want LaTeX, not LyX, then you have to export to LaTeX./

Some publishers are willing to accept Lyx instead of Latex (MIT press, 
for instance).
If authors knew that they have to handle Latex in addition to Lyx it 
might

appear to some (many?) as too much to handle.

As I said, IF a journal wants LaTeX, then you just export to LaTeX. No 
other special handling

is required, except possibly embedding bibliography information (see below).

-/-I don't understand. They don't have to be in separate files. You 
can just use the bibliography environment if you want.

/
If I insert/list/bibliography I just get a link to the bibtex 
database, and the actual citation entries are not part of the file

that I can send to a publisher or a colleague.

There is a bibliography style, in the same place you choose Section, 
Chapter, etc, so you don't have to use BibTeX.


We keep meaning to finish this bugfix that would automatically include 
the contents of the BBL file on export. There is a simple script that 
will do so attached to that bug, but getting it to work in the general 
case is hard.


Richard



Re: Article layout for plos?

2012-03-22 Thread UD

-/-If journals want LaTeX, not LyX, then you have to export to LaTeX./

Some publishers are willing to accept Lyx instead of Latex (MIT press, 
for instance).

If authors knew that they have to handle Latex in addition to Lyx it might
appear to some (many?) as too much to handle.

-/-I don't understand. They don't have to be in separate files. You can 
just use the bibliography environment if you want.

/
If I insert/list/bibliography I just get a link to the bibtex database, 
and the actual citation entries are not part of the file

that I can send to a publisher or a colleague.

Ehud Kaplan

On 03/20/2012 09:01 PM, Richard Heck wrote:

On 03/20/2012 11:27 AM, UD wrote:
To encourage the use of Lyx by scientists of all stripes,  would be 
useful at some point to have Lyx

produce journal-ready documents /without/ exporting explicitly to Latex.


If journals want LaTeX, not LyX, then you have to export to LaTeX.

After all, Lyx's purpose was to hide the Latex engine, which scares 
many novices.
Making Lyx journal-friendly will require, among other things, 
simplifying the bibliography system,
so that the bibliography and the rest of the text do not have to be 
in separate files.


I don't understand. They don't have to be in separate files. You can 
just use the bibliography environment if you want.


There is a bug we have been meaning to fix, though, that will just 
automatically include the necessary bibliography info in the exported 
LaTeX file.


Richard



-


Re: Getting lyx to recognise biber

2012-03-22 Thread stefano franchi
On Thu, Mar 22, 2012 at 6:41 AM, Roey Angel  wrote:
> To have it recognise it I needed to:
> 1. insert a note at the end of the document and within it insert the Bibtex
> bibliography.
> 2. change the name of the .bib data base to not include any dots (my former
> filename was something like data.base.name.bib and that doesn't work).

I believe that's the standard way of using biblatex in LyX (besides
pushing citations from external programs).
No wonder the biblatex module was not working for you.

I am glad to hear your problem is solved.


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: Getting lyx to recognise biber

2012-03-22 Thread Roey Angel
Works great.
Thanks!







Re: Slow scrolling

2012-03-22 Thread Olivier Ripoll

On 21.03.2012 16:56, Marc de Bruijn wrote:

Jerry  qwest.net>  writes:


On Jan 3, 2012, at 8:31 AM, Pavel Sanda wrote:


Olivier Ripoll wrote:

I reported the very same sysmptoms a few weeks ago but until now it seems I
was the only person to see it, although I could see it on 2 machines
(different OS versions of windows, different CPU different graphic cards).
So I am somehow glad it's happening to you (sorry).





You're probably missing some libraries, are you getting any errors when running
./configure?

--
MdB


Hi,

I'm using binaries and tried both Uwe and Joost versions with exactly 
same result.


Best regards,

Olivier




Re: Getting lyx to recognise biber

2012-03-22 Thread Jürgen Spitzmüller
Roey Angel wrote:
> Now my only problem is that I'd like to change the global settings to 
> format all citations as (author year) rather than have to click on 
> each citation to change it.
> 
> Is the any way to do this?

Try

\renewrobustcmd*{\citet}{%
  \@ifstar
{\AtNextCite{\defcounter{maxnames}{999}}%
 \parencite}
{\parencite}}

in preamble.

HTH
Jürgen



Re: Getting lyx to recognise biber

2012-03-22 Thread Roey Angel
Brilliant tip Stefano! Problem is *nearly* solved.
It turns out that using zotero and lyz citations get pushed using \citet
command, which makes citations look like 'author (year)'.
I couldn't change that using the dialogue box because lyx wouldn't recognise
my .bib database.
To have it recognise it I needed to:
1. insert a note at the end of the document and within it insert the Bibtex
bibliography.
2. change the name of the .bib data base to not include any dots (my former
filename was something like data.base.name.bib and that doesn't work).

Now my only problem is that I'd like to change the global settings to 
format all citations as (author year) rather than have to click on 
each citation to change it.

Is the any way to do this?

Thanks again,
Roey





Re: Special formatting for branches in exported PDF?

2012-03-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 22/03/12 07:24, Bert Lloyd wrote:
> Hi LyXers,
> 
> I am finding the Branches function to be incredibly useful for adding notes 
> and questions to
> shared documents. I would like to know if there is a way to have specific 
> formats applied to
> certain branches when exporting to PDF. In particular, I would like to have 
> the text 
> highlighted, but it would also be useful if the text appeared in a special 
> color, emphasized,
> boldface, etc.

I can not answer your question directly (but I don't think this is possible out 
of the box, as
branches are parts of documents which can contain other formating.), but I 
would suggest to look
at the package "todonotes", in the module "ToDo Notes Environment" (I think it 
is part of the
standard LyX?).

This inserts ToDo notes on the margin or in the text, they can be formated as 
wanted, and enabled
/ disabled easily.

Other option: define your own inset as a module, in which you should be able to 
add a branch with
specific formating?

Hope this helps,

Rainer

> 
> Many thanks in advance.
> 
> - BL


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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9q4jUACgkQoYgNqgF2egoQMgCePD6KdixLzz82PZ+Rv/E5SUUN
tBIAn0/5vU2uRCpoOfrT/0q/+bO1H5T7
=Vowq
-END PGP SIGNATURE-