Re: I can't use multiple indexes in LyX

2011-07-28 Thread Francesc Gispert Sanchez
El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:

 What do you mean by an alphabetic index? Do you need two indexes, or
 is it just the title that you want to change? If the latter, then you
 can use the normal index and change the title fairly easily. Just put:
 \renewcommand\indexname{Alphabetic Index}
 into the preamble.

I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.

 I don't know what is happening, but please see the attached.
 
 Richard

I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a heck.sty-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the Important word and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.

Francesc Gispert



indexes.lyx
Description: application/lyx


Re: Problems with biber

2011-07-28 Thread G perillat
I think I have the same problem with lyx 2.0. Is the bug solved since Feb 4 ?

Thank you






Re: I can't use multiple indexes in LyX

2011-07-28 Thread Helge Hafting

On 28. juli 2011 11:46, Francesc Gispert Sanchez wrote:

El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:


What do you mean by an alphabetic index? Do you need two indexes, or
is it just the title that you want to change? If the latter, then you
can use the normal index and change the title fairly easily. Just put:
 \renewcommand\indexname{Alphabetic Index}
into the preamble.


I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.


I don't know what is happening, but please see the attached.

Richard


I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a heck.sty-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the Important word and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.


Are you perhaps using the Debian distribution of linux?

I tried your example, and it failed like you say. No index.
Then I tried the UserGuide that comes with LyX, and it also failed to 
produce an index.


I use Debian testing, and it turns out they ship a broken clisp 
package. When LyX makes an index, it uses a package called xindy, 
which in turn depends on clisp. When clisp is wrong, the index is not 
produced.


clisp-2.49 does not work, but clisp-2.48 is fine. So the solution is to 
downgrade to clisp-2.48. On debian, this command did it for me:


apt-get install clisp=1:2.48-3

Or just download the software and install it yourself.

After this, both the userguide and your file produced indexes as they 
should.


Helge Hafting




How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
Hi

I am under ubuntu and have texlive installed via apt-get but also manually
installed texlive2011 in $HOME/texlive.

I adjusted the paths and the binaries are found from LyX, but I can't
convince LyX to find the LaTeX classes and styles in the installation of
texlive2011. How can I tell LyX to find (and utilise) these classes?

Cheers,

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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
OK - found it.

Had to run
 mktexlsr

and it is working.

If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

Cheers,

Rainer

On Thu, Jul 28, 2011 at 4:11 PM, Rainer M Krug r.m.k...@gmail.com wrote:

 Hi

 I am under ubuntu and have texlive installed via apt-get but also manually
 installed texlive2011 in $HOME/texlive.

 I adjusted the paths and the binaries are found from LyX, but I can't
 convince LyX to find the LaTeX classes and styles in the installation of
 texlive2011. How can I tell LyX to find (and utilise) these classes?

 Cheers,

 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 (F):   +33 - (0)9 58 10 27 44

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

 email:  rai...@krugs.de

 Skype:  RMkrug




-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Cases

2011-07-28 Thread BADI-Hamid
Hello,

I'm looking for numbering all equations involved in a cases envirnoment. This 
latter can only number the case envirnoment. With LaTeX, cases package offer an 
extension through numcases and subnumcases envirnoments to number all 
equations. Is there a way to use natively this package in LyX.

Best regards.


Adding title/text to Propositions/Theorems/...

2011-07-28 Thread ChiPro
Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla


I.e. I would like to make (Main Result) part of the proposition definition.

Thanks.





Changing height of certain rows in a table

2011-07-28 Thread ChiPro
Hi,

how does one change the height of a given row (over multiple columns) in a table
(i.e. without changing the height for any other row)?

Thanks.  



Re: Horizontal Scrollbar Again!!!

2011-07-28 Thread Helge Hafting

On 27. juli 2011 04:03, Kortink, Mark A wrote:

I know the purists think a horizontal scrollbar is somehow impure but
can we please please get one. It is not currently possible to:-

   1. Write long equation sequences inline in a proof when you want to
  keep the proof short and not taking up multiple lines.
   2. Do xypic diagrams with anything sophisticated in the cells.
   3. Do matrices with anything sophisticated in the cells.


I agree.
The purist idea is that normal text should not have a scrollbar. No 
attempt is made to break lines the same way as on paper so text is 
simply broken into lines to fit the current window width.


And that is fine for text, and scrollbars are never needed for text.

But Lyx handles much more than text these days. Tables sidescrolls in 
big jumps to keep the cursor on screen, but doesn't work all that well. 
Expecially not if some columns is very wide.


So a scrollbar (or other userfriendly means of sidescrolling) would be 
nice. There is the above mentioned math stuff, there is big images, 
there is all sorts of source code listings. . .


Helge Hafting


Re: LyX causes Acrobat Reader Freeze (?)

2011-07-28 Thread Paul A. Rubin
I uninstalled acroread (from the Natty repository) and downloaded and 
installed it from Adobe.  No joy there.  It turns out there's a bug 
relating to the ia32-libs package that affects acroread and some other 
programs.  Apparently acroread (which is a 32 bit app) does not find the 
ia32 libraries and instead tries to load the 64-bit versions.  If I run 
acroread from a terminal, it spews a bunch of error messages about this 
but still somehow loads and displays the PDF files correctly.  It's 
possible that, when run by LyX, this causes the freeze.


Also possibly related, if somewhat obscure: I moved my 
~/.adobe/Acrobat/9.0 directory and then tried View  PDF (pdflatex) from 
LyX.  Reader thought this was the first time it was being used and gave 
me the license agreement dialog.  Clicking Accept had no effect -- it 
was already frozen.  I had to kill it, run acroread from a terminal and 
accept the license there.


This is beyond my technical chops, so as a workaround I'll just use 
Evince when viewing PDFs from LyX and use Acrobat Reader to check the 
final exported PDFs (since my victims are all Reader users).


Thanks,
Paul

On 07/22/2011 03:13 PM, Liviu Andronic wrote:

On Fri, Jul 22, 2011 at 8:17 PM, Paul A. Rubinru...@msu.edu  wrote:

I also searched for messages about Reader freezing on AMD64 and came up
empty, which is consistent with it behaving properly when I run it outside
LyX.

So the mystery remains.


Have you tried reinstalling acroread + removing ~/.adobe/Acrobat/
(consider backing up first)? You may also experiment with installing
.deb files of earlier versions, say 9.4.1. But I'm starting to run out
of ideas.

Regards
Liviu


Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread David L. Johnson

On 07/28/2011 11:12 AM, ChiPro wrote:

Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla

I always put [Main Result] in boldface, emphasized, at the beginning of 
the theorem.  That works, and as far as I know is the standard way to do 
it in TeX.


--


David L. Johnson

Some people used to claim that, if enough monkeys sat in front of
enough typewriters and typed long enough, eventually one of them would
reproduce the collected works of Shakespeare.  The internet has
proven this not to be the case.



Re: Cases

2011-07-28 Thread Richard Heck
On 07/28/2011 10:27 AM, BADI-Hamid wrote:
 Hello,

 I'm looking for numbering all equations involved in a cases envirnoment. This 
 latter can only number the case envirnoment. With LaTeX, cases package offer 
 an extension through numcases and subnumcases envirnoments to number all 
 equations. Is there a way to use natively this package in LyX.

Not natively, no, so far as I know. But of course you can add LaTeX code
as you wish.

rh



Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread Richard Heck
On 07/28/2011 01:03 PM, David L. Johnson wrote:
 On 07/28/2011 11:12 AM, ChiPro wrote:
 Hi,

 does anyone know how to add text to/name a Proposition/Theorem/...?


 Example:

 Proposition 2 (Main Result) blablabla

 I always put [Main Result] in boldface, emphasized, at the beginning
 of the theorem.  That works, and as far as I know is the standard way
 to do it in TeX.

You can use an optional argument here: InsertShort Title.

Richard




2 questions: \documentclass[english,magyar] and \DeclareRobustCommand{\greektext}

2011-07-28 Thread Csikos Bela
Hello:

I am preparing a Hungarian document in lyx2.
The text is in unicode and has greek fonts.
I selected in document settingslanguage Hungarian language,
and use language package to custom \usepackage[magyar]{babel}.
Fonts are set to use non tex fonts via xetex/luatex.

My questions are:

1. Looking at the lyx source I found that the documentclass is set to
\documentclass[english,magyar]. Just after \begin{text} 
\selectlanguage{english} is set:

\begin{document}
\selectlanguage{english}

And only at the end of my text Hungarian is set:

\selectlanguage{magyar}

\end{document}

I don't understand this. Can it be the cause of wrong hyphenation?

2. As I said, the font is set to non-tex fonts.
Still lyx puts these lines in the preamble:

%% LyX specific LaTeX commands.
\DeclareRobustCommand{\greektext}{%
  \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\DeclareFontEncoding{LGR}{}{}
\DeclareTextSymbol{\~}{LGR}{126}

But I can't see a anywhere that the commands are used in the text.
Why are they in the preamble then?

Thanks,

bcsikos



Re: more on collaboration

2011-07-28 Thread Monroe Weber-Shirk
We would benefit greatly from a google docs version of Lyx. 
We frequently write papers and proposals collaboratively and 
we lose a fair amount of time by having to wait for someone
else to release the document for editing or we end up with 
multiple authors editing at the same time and creating havoc. 
I also lead about a dozen student teams and they would benefit 
from a collaborative UI for Lyx.








Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Paul Rubin
Rainer M Krug r.m.krug at gmail.com writes:

 
 If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

I'm no TeXpert, but TeX maintains a database of package locations, which it uses
when searching for a particular package. The texhash and mktexlsr commands (I
believe texhash is just an alias for mktexlsr) update that database by adding
files in or underneath the directory in which the command is run.  I'm not
positive, but I think they also remove from the database any previously added
directories that no longer exist.

Paul



Strange Latex error using bibtex citations

2011-07-28 Thread André
Hello.

I'm using LyX 2.0.0 on OSX. I'm having a strange error when I try to
view the PDF of my lyx file. I removed all the content and left only
the relevant parts that produce the error that are some 20 citations
and the corresponding bib file that has these references with no
content.

The error is:
{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Runaway argument?
URL(2011{\natexlab {{}})]{URLVendingWorld} 2011{\natexlab {{}}.
! Paragraph ended before \@lbibitem was complete.
to be read again
   \par
l.88

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Argument of \@lbibitem has an extra }.
inserted text
\par
l.92 \bibitem[URL(2011{\natexlab{}}}
)]{URLwxWidgets}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.


If I change the references style from plainnat to plain the errors
disappear, but I would like to understand what is going on. If I
remove ANY reference, the error message changes. If I remove ANY 2
references, the errors also go away...

Attached is the simple lyx and bib files. Is this a LyX error or
should I be asking somewhere else?


Thank you,
André


thesis.lyx
Description: Binary data


biblio.bib
Description: Binary data


Re: I can't use multiple indexes in LyX

2011-07-28 Thread Francesc Gispert Sanchez
El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:

 What do you mean by an alphabetic index? Do you need two indexes, or
 is it just the title that you want to change? If the latter, then you
 can use the normal index and change the title fairly easily. Just put:
 \renewcommand\indexname{Alphabetic Index}
 into the preamble.

I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.

 I don't know what is happening, but please see the attached.
 
 Richard

I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a heck.sty-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the Important word and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.

Francesc Gispert



indexes.lyx
Description: application/lyx


Re: Problems with biber

2011-07-28 Thread G perillat
I think I have the same problem with lyx 2.0. Is the bug solved since Feb 4 ?

Thank you






Re: I can't use multiple indexes in LyX

2011-07-28 Thread Helge Hafting

On 28. juli 2011 11:46, Francesc Gispert Sanchez wrote:

El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:


What do you mean by an alphabetic index? Do you need two indexes, or
is it just the title that you want to change? If the latter, then you
can use the normal index and change the title fairly easily. Just put:
 \renewcommand\indexname{Alphabetic Index}
into the preamble.


I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.


I don't know what is happening, but please see the attached.

Richard


I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a heck.sty-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the Important word and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.


Are you perhaps using the Debian distribution of linux?

I tried your example, and it failed like you say. No index.
Then I tried the UserGuide that comes with LyX, and it also failed to 
produce an index.


I use Debian testing, and it turns out they ship a broken clisp 
package. When LyX makes an index, it uses a package called xindy, 
which in turn depends on clisp. When clisp is wrong, the index is not 
produced.


clisp-2.49 does not work, but clisp-2.48 is fine. So the solution is to 
downgrade to clisp-2.48. On debian, this command did it for me:


apt-get install clisp=1:2.48-3

Or just download the software and install it yourself.

After this, both the userguide and your file produced indexes as they 
should.


Helge Hafting




How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
Hi

I am under ubuntu and have texlive installed via apt-get but also manually
installed texlive2011 in $HOME/texlive.

I adjusted the paths and the binaries are found from LyX, but I can't
convince LyX to find the LaTeX classes and styles in the installation of
texlive2011. How can I tell LyX to find (and utilise) these classes?

Cheers,

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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
OK - found it.

Had to run
 mktexlsr

and it is working.

If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

Cheers,

Rainer

On Thu, Jul 28, 2011 at 4:11 PM, Rainer M Krug r.m.k...@gmail.com wrote:

 Hi

 I am under ubuntu and have texlive installed via apt-get but also manually
 installed texlive2011 in $HOME/texlive.

 I adjusted the paths and the binaries are found from LyX, but I can't
 convince LyX to find the LaTeX classes and styles in the installation of
 texlive2011. How can I tell LyX to find (and utilise) these classes?

 Cheers,

 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 (F):   +33 - (0)9 58 10 27 44

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

 email:  rai...@krugs.de

 Skype:  RMkrug




-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Cases

2011-07-28 Thread BADI-Hamid
Hello,

I'm looking for numbering all equations involved in a cases envirnoment. This 
latter can only number the case envirnoment. With LaTeX, cases package offer an 
extension through numcases and subnumcases envirnoments to number all 
equations. Is there a way to use natively this package in LyX.

Best regards.


Adding title/text to Propositions/Theorems/...

2011-07-28 Thread ChiPro
Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla


I.e. I would like to make (Main Result) part of the proposition definition.

Thanks.





Changing height of certain rows in a table

2011-07-28 Thread ChiPro
Hi,

how does one change the height of a given row (over multiple columns) in a table
(i.e. without changing the height for any other row)?

Thanks.  



Re: Horizontal Scrollbar Again!!!

2011-07-28 Thread Helge Hafting

On 27. juli 2011 04:03, Kortink, Mark A wrote:

I know the purists think a horizontal scrollbar is somehow impure but
can we please please get one. It is not currently possible to:-

   1. Write long equation sequences inline in a proof when you want to
  keep the proof short and not taking up multiple lines.
   2. Do xypic diagrams with anything sophisticated in the cells.
   3. Do matrices with anything sophisticated in the cells.


I agree.
The purist idea is that normal text should not have a scrollbar. No 
attempt is made to break lines the same way as on paper so text is 
simply broken into lines to fit the current window width.


And that is fine for text, and scrollbars are never needed for text.

But Lyx handles much more than text these days. Tables sidescrolls in 
big jumps to keep the cursor on screen, but doesn't work all that well. 
Expecially not if some columns is very wide.


So a scrollbar (or other userfriendly means of sidescrolling) would be 
nice. There is the above mentioned math stuff, there is big images, 
there is all sorts of source code listings. . .


Helge Hafting


Re: LyX causes Acrobat Reader Freeze (?)

2011-07-28 Thread Paul A. Rubin
I uninstalled acroread (from the Natty repository) and downloaded and 
installed it from Adobe.  No joy there.  It turns out there's a bug 
relating to the ia32-libs package that affects acroread and some other 
programs.  Apparently acroread (which is a 32 bit app) does not find the 
ia32 libraries and instead tries to load the 64-bit versions.  If I run 
acroread from a terminal, it spews a bunch of error messages about this 
but still somehow loads and displays the PDF files correctly.  It's 
possible that, when run by LyX, this causes the freeze.


Also possibly related, if somewhat obscure: I moved my 
~/.adobe/Acrobat/9.0 directory and then tried View  PDF (pdflatex) from 
LyX.  Reader thought this was the first time it was being used and gave 
me the license agreement dialog.  Clicking Accept had no effect -- it 
was already frozen.  I had to kill it, run acroread from a terminal and 
accept the license there.


This is beyond my technical chops, so as a workaround I'll just use 
Evince when viewing PDFs from LyX and use Acrobat Reader to check the 
final exported PDFs (since my victims are all Reader users).


Thanks,
Paul

On 07/22/2011 03:13 PM, Liviu Andronic wrote:

On Fri, Jul 22, 2011 at 8:17 PM, Paul A. Rubinru...@msu.edu  wrote:

I also searched for messages about Reader freezing on AMD64 and came up
empty, which is consistent with it behaving properly when I run it outside
LyX.

So the mystery remains.


Have you tried reinstalling acroread + removing ~/.adobe/Acrobat/
(consider backing up first)? You may also experiment with installing
.deb files of earlier versions, say 9.4.1. But I'm starting to run out
of ideas.

Regards
Liviu


Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread David L. Johnson

On 07/28/2011 11:12 AM, ChiPro wrote:

Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla

I always put [Main Result] in boldface, emphasized, at the beginning of 
the theorem.  That works, and as far as I know is the standard way to do 
it in TeX.


--


David L. Johnson

Some people used to claim that, if enough monkeys sat in front of
enough typewriters and typed long enough, eventually one of them would
reproduce the collected works of Shakespeare.  The internet has
proven this not to be the case.



Re: Cases

2011-07-28 Thread Richard Heck
On 07/28/2011 10:27 AM, BADI-Hamid wrote:
 Hello,

 I'm looking for numbering all equations involved in a cases envirnoment. This 
 latter can only number the case envirnoment. With LaTeX, cases package offer 
 an extension through numcases and subnumcases envirnoments to number all 
 equations. Is there a way to use natively this package in LyX.

Not natively, no, so far as I know. But of course you can add LaTeX code
as you wish.

rh



Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread Richard Heck
On 07/28/2011 01:03 PM, David L. Johnson wrote:
 On 07/28/2011 11:12 AM, ChiPro wrote:
 Hi,

 does anyone know how to add text to/name a Proposition/Theorem/...?


 Example:

 Proposition 2 (Main Result) blablabla

 I always put [Main Result] in boldface, emphasized, at the beginning
 of the theorem.  That works, and as far as I know is the standard way
 to do it in TeX.

You can use an optional argument here: InsertShort Title.

Richard




2 questions: \documentclass[english,magyar] and \DeclareRobustCommand{\greektext}

2011-07-28 Thread Csikos Bela
Hello:

I am preparing a Hungarian document in lyx2.
The text is in unicode and has greek fonts.
I selected in document settingslanguage Hungarian language,
and use language package to custom \usepackage[magyar]{babel}.
Fonts are set to use non tex fonts via xetex/luatex.

My questions are:

1. Looking at the lyx source I found that the documentclass is set to
\documentclass[english,magyar]. Just after \begin{text} 
\selectlanguage{english} is set:

\begin{document}
\selectlanguage{english}

And only at the end of my text Hungarian is set:

\selectlanguage{magyar}

\end{document}

I don't understand this. Can it be the cause of wrong hyphenation?

2. As I said, the font is set to non-tex fonts.
Still lyx puts these lines in the preamble:

%% LyX specific LaTeX commands.
\DeclareRobustCommand{\greektext}{%
  \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\DeclareFontEncoding{LGR}{}{}
\DeclareTextSymbol{\~}{LGR}{126}

But I can't see a anywhere that the commands are used in the text.
Why are they in the preamble then?

Thanks,

bcsikos



Re: more on collaboration

2011-07-28 Thread Monroe Weber-Shirk
We would benefit greatly from a google docs version of Lyx. 
We frequently write papers and proposals collaboratively and 
we lose a fair amount of time by having to wait for someone
else to release the document for editing or we end up with 
multiple authors editing at the same time and creating havoc. 
I also lead about a dozen student teams and they would benefit 
from a collaborative UI for Lyx.








Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Paul Rubin
Rainer M Krug r.m.krug at gmail.com writes:

 
 If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

I'm no TeXpert, but TeX maintains a database of package locations, which it uses
when searching for a particular package. The texhash and mktexlsr commands (I
believe texhash is just an alias for mktexlsr) update that database by adding
files in or underneath the directory in which the command is run.  I'm not
positive, but I think they also remove from the database any previously added
directories that no longer exist.

Paul



Strange Latex error using bibtex citations

2011-07-28 Thread André
Hello.

I'm using LyX 2.0.0 on OSX. I'm having a strange error when I try to
view the PDF of my lyx file. I removed all the content and left only
the relevant parts that produce the error that are some 20 citations
and the corresponding bib file that has these references with no
content.

The error is:
{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Runaway argument?
URL(2011{\natexlab {{}})]{URLVendingWorld} 2011{\natexlab {{}}.
! Paragraph ended before \@lbibitem was complete.
to be read again
   \par
l.88

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Argument of \@lbibitem has an extra }.
inserted text
\par
l.92 \bibitem[URL(2011{\natexlab{}}}
)]{URLwxWidgets}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.


If I change the references style from plainnat to plain the errors
disappear, but I would like to understand what is going on. If I
remove ANY reference, the error message changes. If I remove ANY 2
references, the errors also go away...

Attached is the simple lyx and bib files. Is this a LyX error or
should I be asking somewhere else?


Thank you,
André


thesis.lyx
Description: Binary data


biblio.bib
Description: Binary data


Re: I can't use multiple indexes in LyX

2011-07-28 Thread Francesc Gispert Sanchez
El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:

> What do you mean by an "alphabetic index"? Do you need two indexes, or
> is it just the title that you want to change? If the latter, then you
> can use the normal index and change the title fairly easily. Just put:
> \renewcommand\indexname{Alphabetic Index}
> into the preamble.

I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.

> I don't know what is happening, but please see the attached.
> 
> Richard

I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a "heck.sty"-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the "Important word" and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.

Francesc Gispert



indexes.lyx
Description: application/lyx


Re: Problems with biber

2011-07-28 Thread G perillat
I think I have the same problem with lyx 2.0. Is the bug solved since Feb 4 ?

Thank you






Re: I can't use multiple indexes in LyX

2011-07-28 Thread Helge Hafting

On 28. juli 2011 11:46, Francesc Gispert Sanchez wrote:

El mar, 26-07-2011 a las 16:15 -0400, Richard Heck escribió:


What do you mean by an "alphabetic index"? Do you need two indexes, or
is it just the title that you want to change? If the latter, then you
can use the normal index and change the title fairly easily. Just put:
 \renewcommand\indexname{Alphabetic Index}
into the preamble.


I suppose I explained it in a too ambiguous way. I need two indexes (or
the table of contents plus another index.


I don't know what is happening, but please see the attached.

Richard


I see that the attached document is similar to what I do, but I couldn't
export it because I lack a package (I get a "heck.sty"-not-found error).

Actually, my problem is that when I export my document the indexes
created manually don't appear in the PDF (or whatever format). For
example, in the attached document, I'd like to see the table of contents
and, below, another index with the "Important word" and the page where
it is. But when I export it, there's just the table of contents.

Thanks for your help.


Are you perhaps using the Debian distribution of linux?

I tried your example, and it failed like you say. No index.
Then I tried the UserGuide that comes with LyX, and it also failed to 
produce an index.


I use "Debian testing", and it turns out they ship a broken clisp 
package. When LyX makes an index, it uses a package called "xindy", 
which in turn depends on clisp. When clisp is wrong, the index is not 
produced.


clisp-2.49 does not work, but clisp-2.48 is fine. So the solution is to 
downgrade to clisp-2.48. On debian, this command did it for me:


apt-get install clisp=1:2.48-3

Or just download the software and install it yourself.

After this, both the userguide and your file produced indexes as they 
should.


Helge Hafting




How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
Hi

I am under ubuntu and have texlive installed via apt-get but also manually
installed texlive2011 in $HOME/texlive.

I adjusted the paths and the binaries are found from LyX, but I can't
convince LyX to find the LaTeX classes and styles in the installation of
texlive2011. How can I tell LyX to find (and utilise) these classes?

Cheers,

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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Rainer M Krug
OK - found it.

Had to run
 mktexlsr

and it is working.

If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

Cheers,

Rainer

On Thu, Jul 28, 2011 at 4:11 PM, Rainer M Krug  wrote:

> Hi
>
> I am under ubuntu and have texlive installed via apt-get but also manually
> installed texlive2011 in $HOME/texlive.
>
> I adjusted the paths and the binaries are found from LyX, but I can't
> convince LyX to find the LaTeX classes and styles in the installation of
> texlive2011. How can I tell LyX to find (and utilise) these classes?
>
> Cheers,
>
> 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 (F):   +33 - (0)9 58 10 27 44
>
> Fax (D):+49 - (0)3 21 21 25 22 44
>
> email:  rai...@krugs.de
>
> Skype:  RMkrug
>
>


-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Cases

2011-07-28 Thread BADI-Hamid
Hello,

I'm looking for numbering all equations involved in a cases envirnoment. This 
latter can only number the case envirnoment. With LaTeX, cases package offer an 
extension through numcases and subnumcases envirnoments to number all 
equations. Is there a way to use natively this package in LyX.

Best regards.


Adding title/text to Propositions/Theorems/...

2011-07-28 Thread ChiPro
Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla


I.e. I would like to make "(Main Result)" part of the proposition definition.

Thanks.





Changing height of certain rows in a table

2011-07-28 Thread ChiPro
Hi,

how does one change the height of a given row (over multiple columns) in a table
(i.e. without changing the height for any other row)?

Thanks.  



Re: Horizontal Scrollbar Again!!!

2011-07-28 Thread Helge Hafting

On 27. juli 2011 04:03, Kortink, Mark A wrote:

I know the purists think a horizontal scrollbar is somehow impure but
can we please please get one. It is not currently possible to:-

   1. Write long equation sequences inline in a proof when you want to
  keep the proof short and not taking up multiple lines.
   2. Do xypic diagrams with anything sophisticated in the cells.
   3. Do matrices with anything sophisticated in the cells.


I agree.
The purist idea is that normal text should not have a scrollbar. No 
attempt is made to break lines "the same way as on paper" so text is 
simply broken into lines to fit the current window width.


And that is fine for text, and scrollbars are never needed for text.

But Lyx handles much more than text these days. Tables sidescrolls in 
big jumps to keep the cursor on screen, but doesn't work all that well. 
Expecially not if some columns is very wide.


So a scrollbar (or other userfriendly means of sidescrolling) would be 
nice. There is the above mentioned math stuff, there is big images, 
there is all sorts of source code listings. . .


Helge Hafting


Re: LyX causes Acrobat Reader Freeze (?)

2011-07-28 Thread Paul A. Rubin
I uninstalled acroread (from the Natty repository) and downloaded and 
installed it from Adobe.  No joy there.  It turns out there's a bug 
relating to the ia32-libs package that affects acroread and some other 
programs.  Apparently acroread (which is a 32 bit app) does not find the 
ia32 libraries and instead tries to load the 64-bit versions.  If I run 
acroread from a terminal, it spews a bunch of error messages about this 
but still somehow loads and displays the PDF files correctly.  It's 
possible that, when run by LyX, this causes the freeze.


Also possibly related, if somewhat obscure: I moved my 
~/.adobe/Acrobat/9.0 directory and then tried View > PDF (pdflatex) from 
LyX.  Reader thought this was the first time it was being used and gave 
me the license agreement dialog.  Clicking "Accept" had no effect -- it 
was already frozen.  I had to kill it, run acroread from a terminal and 
accept the license there.


This is beyond my technical chops, so as a workaround I'll just use 
Evince when viewing PDFs from LyX and use Acrobat Reader to check the 
final exported PDFs (since my victims are all Reader users).


Thanks,
Paul

On 07/22/2011 03:13 PM, Liviu Andronic wrote:

On Fri, Jul 22, 2011 at 8:17 PM, Paul A. Rubin  wrote:

I also searched for messages about Reader freezing on AMD64 and came up
empty, which is consistent with it behaving properly when I run it outside
LyX.

So the mystery remains.


Have you tried reinstalling acroread + removing ~/.adobe/Acrobat/
(consider backing up first)? You may also experiment with installing
.deb files of earlier versions, say 9.4.1. But I'm starting to run out
of ideas.

Regards
Liviu


Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread David L. Johnson

On 07/28/2011 11:12 AM, ChiPro wrote:

Hi,

does anyone know how to add text to/name a Proposition/Theorem/...?


Example:

Proposition 2 (Main Result) blablabla

I always put [Main Result] in boldface, emphasized, at the beginning of 
the theorem.  That works, and as far as I know is the standard way to do 
it in TeX.


--


David L. Johnson

Some people used to claim that, if enough monkeys sat in front of
enough typewriters and typed long enough, eventually one of them would
reproduce the collected works of Shakespeare.  The internet has
proven this not to be the case.



Re: Cases

2011-07-28 Thread Richard Heck
On 07/28/2011 10:27 AM, BADI-Hamid wrote:
> Hello,
>
> I'm looking for numbering all equations involved in a cases envirnoment. This 
> latter can only number the case envirnoment. With LaTeX, cases package offer 
> an extension through numcases and subnumcases envirnoments to number all 
> equations. Is there a way to use natively this package in LyX.
>
Not natively, no, so far as I know. But of course you can add LaTeX code
as you wish.

rh



Re: Adding title/text to Propositions/Theorems/...

2011-07-28 Thread Richard Heck
On 07/28/2011 01:03 PM, David L. Johnson wrote:
> On 07/28/2011 11:12 AM, ChiPro wrote:
>> Hi,
>>
>> does anyone know how to add text to/name a Proposition/Theorem/...?
>>
>>
>> Example:
>>
>> Proposition 2 (Main Result) blablabla
>>
> I always put [Main Result] in boldface, emphasized, at the beginning
> of the theorem.  That works, and as far as I know is the standard way
> to do it in TeX.
>
You can use an optional argument here: Insert>Short Title.

Richard




2 questions: \documentclass[english,magyar] and \DeclareRobustCommand{\greektext}

2011-07-28 Thread Csikos Bela
Hello:

I am preparing a Hungarian document in lyx2.
The text is in unicode and has greek fonts.
I selected in document settings>language Hungarian language,
and use language package to custom \usepackage[magyar]{babel}.
Fonts are set to use non tex fonts via xetex/luatex.

My questions are:

1. Looking at the lyx source I found that the documentclass is set to
\documentclass[english,magyar]. Just after \begin{text} 
\selectlanguage{english} is set:

\begin{document}
\selectlanguage{english}

And only at the end of my text Hungarian is set:

\selectlanguage{magyar}

\end{document}

I don't understand this. Can it be the cause of wrong hyphenation?

2. As I said, the font is set to non-tex fonts.
Still lyx puts these lines in the preamble:

%% LyX specific LaTeX commands.
\DeclareRobustCommand{\greektext}{%
  \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\DeclareFontEncoding{LGR}{}{}
\DeclareTextSymbol{\~}{LGR}{126}

But I can't see a anywhere that the commands are used in the text.
Why are they in the preamble then?

Thanks,

bcsikos



Re: more on collaboration

2011-07-28 Thread Monroe Weber-Shirk
We would benefit greatly from a "google docs" version of Lyx. 
We frequently write papers and proposals collaboratively and 
we lose a fair amount of time by having to wait for someone
else to release the document for editing or we end up with 
multiple authors editing at the same time and creating havoc. 
I also lead about a dozen student teams and they would benefit 
from a collaborative UI for Lyx.








Re: How to find classes and styles Install of texlive installed in $HOME?

2011-07-28 Thread Paul Rubin
Rainer M Krug  gmail.com> writes:

> 
> If I just could understand what these commands (texhash, mktexlsr, ..) are
doing, then I would no why...

I'm no TeXpert, but TeX maintains a database of package locations, which it uses
when searching for a particular package. The texhash and mktexlsr commands (I
believe texhash is just an alias for mktexlsr) update that database by adding
files in or underneath the directory in which the command is run.  I'm not
positive, but I think they also remove from the database any previously added
directories that no longer exist.

Paul



Strange Latex error using bibtex citations

2011-07-28 Thread André
Hello.

I'm using LyX 2.0.0 on OSX. I'm having a strange error when I try to
view the PDF of my lyx file. I removed all the content and left only
the relevant parts that produce the error that are some 20 citations
and the corresponding bib file that has these references with no
content.

The error is:
{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Runaway argument?
URL(2011{\natexlab {{}})]{URLVendingWorld} 2011{\natexlab {{}}.
! Paragraph ended before \@lbibitem was complete.

   \par
l.88

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Argument of \@lbibitem has an extra }.

\par
l.92 \bibitem[URL(2011{\natexlab{}}}
)]{URLwxWidgets}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.


If I change the references style from "plainnat" to "plain" the errors
disappear, but I would like to understand what is going on. If I
remove ANY reference, the error message changes. If I remove ANY 2
references, the errors also go away...

Attached is the simple lyx and bib files. Is this a LyX error or
should I be asking somewhere else?


Thank you,
André


thesis.lyx
Description: Binary data


biblio.bib
Description: Binary data