Re: underfull/ overfull badboxes

2012-03-20 Thread Jürgen Spitzmüller
Marcelo Acuña wrote:
> 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.

You might want to try 
\vfuzz 

I never played with that myself, though.

Or simply enlarge the text height (via geometry). Maybe geometry even allows 
rubber lengths. I did not check that.

Jürgen


RE: Getting lyx to recognise biber

2012-03-20 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of Roey Angel 
[angel.r...@gmail.com]
Sent: Tuesday, March 20, 2012 8:48 PM

>I'm using lyx 2.0.0 because that's what's available through the ubuntu 
>repository.
>I could build it from source but only if that's what's  causing the problem.

There is an Ubuntu PPA:
https://launchpad.net/~lyx-devel/+archive/release
This allows you to easily install 2.0.3 without having to build from source.

Scott

Re: Article layout for plos?

2012-03-20 Thread Richard Heck

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-20 Thread Roey Angel
Thanks for the help, Jürgen.
ok now that it's in path lyx recognises biber, but trying to process my
 document
with it gives an error:
Package keyval Error: hash undefined.

I'm using lyx 2.0.0 because that's what's available through the ubuntu
 repository.
I could build it from source but only if that's what's  causing the problem.

Roey




Re: underfull/ overfull badboxes

2012-03-20 Thread Steve Litt
On Tue, 20 Mar 2012 11:20:07 -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

You basically mean Widow/Orphan protection, right?

StevET


Re: underfull/ overfull badboxes

2012-03-20 Thread Marcelo Acuña
>>> 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.
>Let me add that this:
>    \enlargethispage{\baselineskip}
>is the easy way to get an extra line if you need it. Note that you can also do:
>    \enlargethispage{-\baselineskip}
>to get one fewer line, which is sometimes better.
>Richard

 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.
 One fewer line is not usefull, I need to get back some text from the next 
column.
 I want to have a global solution in the preamble  for this problem.

Marcelo


Re: underfull/ overfull badboxes

2012-03-20 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

Re: underfull/ overfull badboxes

2012-03-20 Thread Richard Heck

On 03/20/2012 02:02 PM, Jürgen Spitzmüller wrote:



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.

Let me add that this:
\enlargethispage{\baselineskip}
is the easy way to get an extra line if you need it. Note that you can 
also do:

\enlargethispage{-\baselineskip}
to get one fewer line, which is sometimes better.

Richard



Re: underfull/ overfull badboxes

2012-03-20 Thread Jürgen Spitzmüller
Marcelo Acuña wrote:
> What is the meaning of tolerance and emergencystretch.

\tolerance is a penalty value that defines how much "badness" (in line 
setting) TeX accepts without yielding an error (and retrying to set the 
paragraph differently). The higher the value, the more interword space is 
tolerated.

\emergencystretch defines how much interword stretching TeX allows if 
necessary.

Details are explained here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull

> 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.

Jürgen



Re: underfull/ overfull badboxes

2012-03-20 Thread Marcelo Acuña
>> I've often been able to use \begin{sloppy} and \end{sloppy} to make

>> LaTeX less pedantic about where to break a line, and thereby cure both
>> these warnings and the extra space.

>Read this "essential guide to LaTeX2e usage"
>http://mirror.ctan.org/info/l2tabu/english/l2tabuen.pdf
>
>which lists among "the most severe mistakes in using LaTeX2e":
>Section 1.8: "Should I use \sloppy?" (the answer is: "Frankly speaking, the 
>\sloppy switch should not be used at all.")
>
>They suggest this preamble code, which works very well for me:
>\tolerance 1414
>\hbadness 1414
>\emergencystretch 1.5em
>\hfuzz 0.3pt
>\widowpenalty=1
>\vfuzz \hfuzz
>\raggedbottom
>Jürgen

 What is the meaning of tolerance and emergencystretch.
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?

Marcelo

Re: Article layout for plos?

2012-03-20 Thread UD
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.
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.


Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual & Computational Neuroscience
*Director*, Center for Excellence in Computational & Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029

On 03/20/2012 10:46 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am writing an article for plos, and was wondering:
has somebody written a layout for plos, and is there something I should be 
aware of? The document
class is article, so this is fine, but what bout their other requirements? I 
looked at their
template, and I have my doubts, that I can easily create a LaTeX file for final 
submission easily
with LyX - is this correct?

Thanks,

Rainer

- -- 
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/

iEYEARECAAYFAk9omFMACgkQoYgNqgF2egpdWwCfTM7+2lWQfSgLyldsku8cJqay
dc0AoIvWl8sm0tY8d+YTR5vNmwwxidqI
=jSm3
-END PGP SIGNATURE-


--



Silent Installation of Lyx on Windows

2012-03-20 Thread Konstantin Kabassanov
Hello,

Is there any command line parameter allowing to silently install Lyx with its 
default options? In particular we need it for automatic deployment...

Thanks. 



Re: underfull/ overfull badboxes

2012-03-20 Thread Jürgen Spitzmüller
Steve Litt wrote:
> He then shows paragraphs with and without \sloppy. If I were reading
> for information, and not as an artiste, I wouldn't notice the
> difference.

Really? To me, the typographic mess is quite obvious.

Jürgen


Article layout for plos?

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

Hi

I am writing an article for plos, and was wondering:
has somebody written a layout for plos, and is there something I should be 
aware of? The document
class is article, so this is fine, but what bout their other requirements? I 
looked at their
template, and I have my doubts, that I can easily create a LaTeX file for final 
submission easily
with LyX - is this correct?

Thanks,

Rainer

- -- 
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/

iEYEARECAAYFAk9omFMACgkQoYgNqgF2egpdWwCfTM7+2lWQfSgLyldsku8cJqay
dc0AoIvWl8sm0tY8d+YTR5vNmwwxidqI
=jSm3
-END PGP SIGNATURE-


Re: underfull/ overfull badboxes

2012-03-20 Thread Steve Litt
On Tue, 20 Mar 2012 07:40:42 +0100
Jürgen Spitzmüller  wrote:

> Steve Litt wrote:
> > I've often been able to use \begin{sloppy} and \end{sloppy} to make
> > LaTeX less pedantic about where to break a line, and thereby cure
> > both these warnings and the extra space.
> 
> Read this "essential guide to LaTeX2e usage"
> http://mirror.ctan.org/info/l2tabu/english/l2tabuen.pdf
> 
> which lists among "the most severe mistakes in using LaTeX2e":
> 
> Section 1.8: "Should I use \sloppy?" (the answer is: "Frankly
> speaking, the \sloppy switch should not be used at all.")
> 
> They suggest this preamble code, which works very well for me:
> 
> \tolerance 1414
> \hbadness 1414
> \emergencystretch 1.5em
> \hfuzz 0.3pt
> \widowpenalty=1
> \vfuzz \hfuzz
> \raggedbottom

:-)

To me, Section 1.8 was written as an argument FOR use of \begin{sloppy}
\end{sloppy}. His #2 solution is to change your verbiage. All I can say
to that is that his priorities are very different from mine, and I
don't envy him if, after his tweaking, his editor suggests a change
before his tweak.

He then shows paragraphs with and without \sloppy. If I were reading
for information, and not as an artiste, I wouldn't notice the
difference.

I have no comments on his suggestions for the preamble code -- I might
try that myself.

Thanks

SteveT


Re: multiline equation with a single number

2012-03-20 Thread Richard Heck

On 03/20/2012 07:34 AM, Bieniasz wrote:

Hi,

I have a new problem. I have a long, numbered equation, that does not
fit into the page width, so that I need to break it into two lines.
LyX has some provisions for doing this, but I cannot figure out how exactly
to proceed. If I press CTRL-ENTER within the numbered formula, I get two
numbered lines, but I need two lines with only one number. If I choose the
"multiline environment" I get indeed a formula with several lines, but no
numbering at all. So, my question is how to obtain a single equation, but
consisting of two lines, and with one number (at the end of the second line)?
Try the gather environment, and choose to number the second line: Edit> 
Math> Number This Line.


Richard



Re: LyX Windows install gone bad - python path problems?

2012-03-20 Thread Nick Keat
Nick Keat  imanova.co.uk> writes:

> 
> Hi
> 
> I am having problems with my install of LyX 2.0.3 on Win7 64 bit. I hadn't 
> used it for a few weeks, but when I tried to use it last week, I came up with 
> a
> number of configuration issues. One of the biggest problems relates to some
> python commands not working. If I try to insert a bibliography, or get TeX
> information from Tools -> TeX Information, I get errors from TeXFiles.py ...

Of course, the instant I post it to the world at large, I solve the issue. I had
done a search for android in the windows registry, and found a likely looking
key which included a path including cmd.exe and the android-sdk (don't remember
what it was now). I edited the path, with no apparent change to the issue.
However, on reboot later, all problems seem to be solved!

Hooray!

Nick




Re: Getting lyx to recognise biber

2012-03-20 Thread Jürgen Spitzmüller
Roey Angel wrote:
> I'm trying to get Lyx (2.0.0) to work with biber. 

You should update to LyX 2.0.3. Older versions have issues with recent biber 
releases.

> I downloaded the latest version of biber 0.9.8 and now what?!
> According to the LyX wiki, I should get a biber option on the pull-down
> menu   of my bibliography generation processor but all I have is: custom,
> bibtex and bibtex8.

You must execute Tools > Reconfigure LyX to make LyX aware of it.

> Where am I supposed to put biber so that lyx would recognise it?

You have to put it in a path (e.g. ~/bin). If "which biber" on the console 
returns a path, LyX should be able to find it.

HTH
Jürgen


LyX Windows install gone bad - python path problems?

2012-03-20 Thread Nick Keat
Hi

I am having problems with my install of LyX 2.0.3 on Win7 64 bit. I hadn't 
used it for a few weeks, but when I tried to use it last week, I came up with a
number of configuration issues. One of the biggest problems relates to some
python commands not working. If I try to insert a bibliography, or get TeX
information from Tools -> TeX Information, I get errors from TeXFiles.py such as
below:

Running: python -tt "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py"
D:/LyXSVN/LyX2.0x/src/support/Systemcall.cpp(270): Systemcall: 'python -tt
"C:/Program Files (x86)/LyX 2.0.3/bin/../Resources/scripts/TeXFiles.py"'
finished with exit code 1
Error: Could not update TeX information

The script `C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py' failed.
12:11:19.449: python -tt "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py"
12:11:19.452: Indexing files of type cls
12:11:19.456: Traceback (most recent call last):
12:11:19.459:   File "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py", line 97, in 
12:11:19.462: dirs = cmdOutput('kpsewhich --show-path=' +
kpsetype).replace('!!', '').strip()
12:11:19.468:   File "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py", line 47, in cmdOutput
12:11:19.472: fout = os.popen(cmd)
12:11:19.475: WindowsError: [Error 2] The system cannot find the file specified:
'C:\\Windows\\system32\\cmd.exe;C:\\Program Files
(x86)\\Android\\android-sdk\\platform-tools /c kpsewhich --show-path=.tex'


These seem to indicate (I'm no expert in Python by any means!) a problem running
the command fout = os.popen(cmd). It seems that somehow the path to the windows
"cmd.exe /c kpsewhich..." command seems to have a reference to the (totally
unrelated) path to the android-sdk tools I previously had installed on my
system. If I go to the python subdirectory of the LyX install, and run
python.exe, and attempt to duplicate a similar command manually, I get the
following similar error:

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 import os
 fout = os.popen("dir")
Traceback (most recent call last):
  File "", line 1, in 
WindowsError: [Error 2] The system cannot find the file specified:
'C:\\Windows\\system32\\cmd.exe;C:\\Program Files(x86)
\\Android\\android-sdk\\platform-tools /c dir'

This also contains a reference to the android-sdk, but the question is where
does it get it from, and how can I get rid of it? I've tried uninstalling and
reinstalling LyX more than once (including an intermediate uninstall of the
android-sdk, as well as a registry search to remove any references to
android-sdk). I've swapped from MikTeX to TeX Live, installed using various LyX
installers, wiped any local profile data from MikTeX, LyX and any other folders
that seemed relevant, but still this issue comes up. I've checked the content of
all files in the LyX folder for references to android-sdk, and all preferences,
paths and system paths etc.

Can anyone help to put me out of my misery as to why I can't get this issue
resolved?

Thanks

Nick




Getting lyx to recognise biber

2012-03-20 Thread Roey Angel
Hi 
I'm trying to get Lyx (2.0.0) to work with biber. 
I downloaded the latest version of biber 0.9.8 and now what?!
According to the LyX wiki, I should get a biber option on the pull-down menu  
of my bibliography generation processor but all I have is: custom, bibtex and
bibtex8.
Where am I supposed to put biber so that lyx would recognise it?


Thanks in advance,
Roey

p.s
I'm running Kubuntu 11.10



multiline equation with a single number

2012-03-20 Thread Bieniasz

Hi,

I have a new problem. I have a long, numbered equation, that does not
fit into the page width, so that I need to break it into two lines.
LyX has some provisions for doing this, but I cannot figure out how exactly
to proceed. If I press CTRL-ENTER within the numbered formula, I get two 
numbered lines, but I need two lines with only one number. If I choose the
"multiline environment" I get indeed a formula with several lines, but no 
numbering at all. So, my question is how to obtain a single equation, but 
consisting of two lines, and with one number (at the end of the second line)?

Leslaw



lyx-users@lists.lyx.org

2012-03-20 Thread Bieniasz
David L. Johnson  Lehigh.EDU> writes:

> uncheck the "keep matched" option, and choose for the left, {, and for 
> the right, (None).

Thanks, now I see how to do this.
Leslaw





Creating minutes.layout

2012-03-20 Thread Stephan Ritthaler
Hallo!

I try to create a layout, so that it is possible to use the latex
package minutes.sty in lyx. But I have less experience. When adding the
latexcode into the Preamble it works. When I try to create new
environements in the layout file it doesent work.

I look forward for little help.

Here ist the layout file I created.

---

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article, minutes.sty, multicol.sty, xspace.sty,
url.sty, minitoc.sty, keyval.sty]{article (Protokoll)}


Format 35

AddToPreamble   
\usepackage{minutes}
EndPreamble

# Standard style definition
Style Standard
  Category MainText
  Margin   Static
  LatexTypeParagraph
  LatexNamedummy
  ParIndentMM
  ParSkip  0.4
  AlignLeft
  AlignPossibleBlock, Left, Right, Center
  LabelTypeNo_Label
End


Style Protokoll
MarginDynamic
LatexTypeCommand
LatexNamebegin{Minutes}
LatexParam{}
Preamble
\AtEndDocument{\end{Minutes}}
\protokollKopf
EndPreamble
OptionalArgs1
ParSkip0.4
AlignBlock
LabelSepxx
LabelTypeStatic
LabelString"Protokoll:"
LabelFont
  SeriesBold
  ColorBlue
EndFont
End


-



With greetings,

Stephan
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article, minutes.sty, multicol.sty, xspace.sty, url.sty, 
minitoc.sty, keyval.sty]{article (Protokoll)}


Format 35

AddToPreamble
\usepackage{minutes}
EndPreamble

# Standard style definition
Style Standard
  Category MainText
  Margin   Static
  LatexTypeParagraph
  LatexNamedummy
  ParIndentMM
  ParSkip  0.4
  AlignLeft
  AlignPossibleBlock, Left, Right, Center
  LabelTypeNo_Label
End


Style Protokoll
Margin  Dynamic
LatexType   Command
LatexName   begin{Minutes}
LatexParam  {}
Preamble
\AtEndDocument{\end{Minutes}}
\protokollKopf
EndPreamble
OptionalArgs1
ParSkip 0.4
Align   Block
LabelSepxx
LabelType   Static
LabelString "Protokoll:"
LabelFont
  SeriesBold
  Color Blue
EndFont
End





<>