Re: compiling from svn using checkinstall (help needed)

2010-06-20 Thread Alan L Tyree
On Sun, 20 Jun 2010 17:56:04 +0200
Stephan Maseizik  wrote:

> Julien Rioux  schrieb:
> > On 20/06/2010 10:15 AM, Stephan Maseizik wrote:
> >> My two questions are:
> >>   -What do I have to do to build the lyx2.0.deb package and
> >>   -how do I install both versions (1.6.x and lyx2.0) in parallel
> >> using dpkg?
> >
> > I don't know what checkinstall is, 
> 
> Thanks for the quick response!
> 
> Checkinstall controls the make-process and builds a .deb-package that
> then can be installed, updated and cleanly removed using the debian
> package manager. It is used instead of >make<.

I think the way to deal with this problem is to use is GNU Stow. It puts
"foreign" programs right out of the way of your package manager. This
makes it simple to have new and old versions co-exist. I think it is a
much better solution than checkinstall which attempts to integrate the
new program with your existing package management system, often with
the results that you observed.

I wrote a short how-to that is on the "Tips for compiling" part of the
Wiki: http://wiki.lyx.org/Tips/Compiling. The how-to talks about
installing the latest stable version, but the same technique works with
the svn branch.

Cheers,
Alan

> 
> 
> 
> 
> but one way to have 2.0 and 1.6 
> > co-existing is to configure 2.0 with
> >
> > ./configure --with-version-suffix=SUFFIX
> >
> > where SUFFIX is anything you wanted ( "-devel", "-2.0", "-svn"... ).
> 
> Just tried it, but I got the same result: checkinstall gave the
> mentioned error and did not build the .deb-file. Lyx2.0 is
> installed though I did not install it using dpkg.
> 
> Stephan 
> 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



Re: Multicol package - right to left alignment?

2010-06-20 Thread Barak Sh
Thanks!
It doesn't seem to work, though; when trying to export I get an error
"Undefined control sequence" on the line containing "\end{multicols}"
(although "\begin{multicols}{3}" generates no errors). Another error
"Missing number, treated as zero" also appears for some reason. I tried
writing "\end{multicols}{3}" but it didn't work.
Any ideas how to solve this?
Thanks again,
Barak

On Sun, Jun 20, 2010 at 8:36 PM, Ronen Abravanel  wrote:

> A Blog Post (In hebrew) by Yehoda Ronen regarding multicol and Hebrew:
> http://digitalwords.net/?p=122
>
>
> On Sat, Jun 19, 2010 at 1:04 PM, Barak Sh  wrote:
>
>> Thanks! However, the code does not seem to change anything.
>>
>> Barak
>>
>>
>> On Sat, Jun 19, 2010 at 1:01 PM, Vincent van Ravesteijn wrote:
>>
>>> Op 19-6-2010 11:56, Barak Sh schreef:
>>>
>>>  Hello,
 I'm trying to use the multicol package in order to print a formula sheet
 with 3 columns and a vertical line separating them. The document is in
 Hebrew and should be aligned right to left.
 When using the usual "Two-column document" setting in LyX, the columns
 are aligned right to left as required. However, when using multicol, the
 columns are aligned left to right.
 Is there any way to solve this problem?
 Thanks in advance,
 Barak

>>>
>>> see http://www.lyx.org/trac/ticket/6389.
>>>
>>> In this bug it was reported that using the normal "two-column document"
>>> the columns were aligned wrong.
>>>
>>> If you add the code in the last block to your preamble it should work.
>>> Please report back whether this fixes your problem.
>>>
>>> Vincent
>>>
>>
>>
>


Re: Multicol package - right to left alignment?

2010-06-20 Thread Ronen Abravanel
A Blog Post (In hebrew) by Yehoda Ronen regarding multicol and Hebrew:
http://digitalwords.net/?p=122

On Sat, Jun 19, 2010 at 1:04 PM, Barak Sh  wrote:

> Thanks! However, the code does not seem to change anything.
>
> Barak
>
>
> On Sat, Jun 19, 2010 at 1:01 PM, Vincent van Ravesteijn wrote:
>
>> Op 19-6-2010 11:56, Barak Sh schreef:
>>
>>  Hello,
>>> I'm trying to use the multicol package in order to print a formula sheet
>>> with 3 columns and a vertical line separating them. The document is in
>>> Hebrew and should be aligned right to left.
>>> When using the usual "Two-column document" setting in LyX, the columns
>>> are aligned right to left as required. However, when using multicol, the
>>> columns are aligned left to right.
>>> Is there any way to solve this problem?
>>> Thanks in advance,
>>> Barak
>>>
>>
>> see http://www.lyx.org/trac/ticket/6389.
>>
>> In this bug it was reported that using the normal "two-column document"
>> the columns were aligned wrong.
>>
>> If you add the code in the last block to your preamble it should work.
>> Please report back whether this fixes your problem.
>>
>> Vincent
>>
>
>


Re: compiling from svn using checkinstall (help needed)

2010-06-20 Thread Stephan Maseizik
Julien Rioux  schrieb:
> On 20/06/2010 10:15 AM, Stephan Maseizik wrote:
>> My two questions are:
>>   -What do I have to do to build the lyx2.0.deb package and
>>   -how do I install both versions (1.6.x and lyx2.0) in parallel using
>>dpkg?
>
> I don't know what checkinstall is, 

Thanks for the quick response!

Checkinstall controls the make-process and builds a .deb-package that
then can be installed, updated and cleanly removed using the debian
package manager. It is used instead of >make<.




but one way to have 2.0 and 1.6 
> co-existing is to configure 2.0 with
>
> ./configure --with-version-suffix=SUFFIX
>
> where SUFFIX is anything you wanted ( "-devel", "-2.0", "-svn"... ).

Just tried it, but I got the same result: checkinstall gave the
mentioned error and did not build the .deb-file. Lyx2.0 is
installed though I did not install it using dpkg.

Stephan 



Re: compiling from svn using checkinstall (help needed)

2010-06-20 Thread Julien Rioux

On 20/06/2010 10:15 AM, Stephan Maseizik wrote:

My two questions are:
  -What do I have to do to build the lyx2.0.deb package and
  -how do I install both versions (1.6.x and lyx2.0) in parallel using
   dpkg?


I don't know what checkinstall is, but one way to have 2.0 and 1.6 
co-existing is to configure 2.0 with


./configure --with-version-suffix=SUFFIX

where SUFFIX is anything you wanted ( "-devel", "-2.0", "-svn"... ).

--
Julien


compiling from svn using checkinstall (help needed)

2010-06-20 Thread Stephan Maseizik
I'm using the latest lyx 1.6.x from svn which I build with the
following commands on kubuntu 10.04 LTS:

/foo/lyx_svn/lyx-1.6.x# ./autogen.sh
/foo/lyx_svn/lyx-1.6.x# ./configure  --enable-optimization=-O3 
/foo/lyx_svn/lyx-1.6.x# checkinstall --default --install=no

Checkinstall creates a .deb package that I install with 
dpkg -i *.deb.

Everything works fine as expected. 

I now wanted to test lyx2.0 alpha4 from svn, so I created a new
directory and used the above procedure:

/foo/lyx_svn/lyx-devel# ./autogen.sh
/foo/lyx_svn/lyx-devel# ./configure  --enable-optimization=-O3 
/foo/lyx_svn/lyx-devel# checkinstall --default --install=no

The building process works, but the .deb package is not build. The
following error is shown by checkinstall:

dpkg-deb-Fehler: (Original-)Version >>devel<< enthält keine Ziffern
dpkg-deb: 1 Fehler in config-Datei

To my astonishment lyx2.0  (and not the installed lyx1.6.x) is started
when I start lyx although the lyx2.0.deb was not build and not installed
using dpkg!

My two questions are:
 -What do I have to do to build the lyx2.0.deb package and  
 -how do I install both versions (1.6.x and lyx2.0) in parallel using
  dpkg?



Stephan







Re: Getting theorems in upright or italics font

2010-06-20 Thread Daniel CLEMENT
Thhanks, Paul and Julien. Your replies do what I was looking for.

Julien Rioux wrote:
> [...]
> You can control the "scope", as you say, of your theorem from within 
> LyX. Position your cursor within the enumerate environment and use the 
> toolbar button "Increase depth" (or the shortcut Alt+Shift+Right). This 
> will put the enumerate environment within the previous environment when 
> possible, in this case theorem.
> 
> Cheers,
> Julien

I knew the "increase depth" feature, but I thought it was only for
enumerate/itemize lists. Not only does it what I needed, but it's effect
is also reflected in the LyX window. I love this software!

Paul Rubin wrote: 
> The theorem module uses the amsthm package.  If you check check section 4.3 of
> the manual for ammsthm, you'll find the syntax for the \newtheoremstyle 
> command.
>  You will want to hack the include file to put code in the preamble creating 
> new
> theorem styles with names you supply (e.g., myThm) and then replace any
> instances of \theoremstyle{plain} with \theoremstyle{myThm} (or whatever
> modified style you want for that type of environment).
> 
Paul, I have noticed there is a "Preamble" section in the theorems.inc
file. If it's about \theoremstyle and \newtheoremstyle commands, maybe I
can them there? (I'm thinking of reducing the number of files to be
hacked.) I more or less understand that the contents of this "preamble"
section is used by LyX for its internal TeX job.

Thanks again,
-- 
Daniel CLEMENT