Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

 I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
 changing any document settings of any file, the buttons *OK *and
 *Apply *just remain greyed out. (Someone posted the same issue running
 2.0.7dev on ubunto on stackexchange here

Just to check: 

For me, this happens with all write-protected files (e.g. Help...
documents). Can you do other edits and save them back?
Can you try with a new-created file?

Günter



Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

 I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
 changing any document settings of any file, the buttons *OK *and
 *Apply *just remain greyed out.

...

What happens after you save the file to a different name (FileSave_As)?

Günter



strange centering behavior in float

2013-10-11 Thread Liviu Andronic
Dear all,
I'm seeing this strange behavior when centering a paragraph within a
table float. I see this  in both 2.0.6 and 2.1beta1.

In the attached document, each table float contains an ERT inset (for
subsequent use with Sweave) within a centered paragraph. If the ERT
inset is above the caption, then the following construct is used:
\begin{centering}
=
2+2
@
\par\end{centering}

The same construct is used if the ERT inset is below the caption _and_
there is an empty line below it (say, kept with a protected space).
But if I remove this line below, then this construct is used:
\centering{}=
2+2
@

The problem with this construct is that since it's on the same line as
the beginning of the chunk, it breaks Sweave compilation.

So is this inconsistency expected? And can it be avoided?

Regards,
Liviu



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


lyx_float_centering.20.lyx
Description: Binary data


lyx_float_centering.lyx
Description: Binary data


Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 Le 10/10/13 01:03, Gwen Barnes a écrit :
 Hi folks,
 
 I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
 instance, with the mouse wheel, or with trackpad gestures, there is
 almost a full second lag before the screen starts to change, and then it
 moves jerkily until it gets to where it's going.  Based on some comments
 I found online, I have found that the lag goes away if I make my LyX
 window tiny -- but then the window is not useful to me.
 
 Any ideas what the problem might be, and things I could try to fix it?
 
 The problem is a weakness in LyX display mechanism: text is drawn several 
 characters at a time, while metrics (measurement of size) is done 
 character-per-character. On windows and linux, it is not a problem, but on a 
 Mac, where fonts use ligatures, it means that the cursor does not appear 
 where it should.
 
 To alleviate that, by default mac builds draws the screen char-by-char too. 
 It works, but it is quite slow...
 You can see what the effect is by adding
 \force_paint_single_char 0
 in the preferences file.
 
 Unfortunately, this situation will not improve in version 2.1.

This is discouraging news. This is a serious and longstanding problem. Thanks 
for the update, J-M.
Jerry

 
 There is a branch that tackles this problem, but it is not ready yet.
 
 JMarc



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 11, 2013, at 2:28 AM, Jerry lancebo...@qwest.net wrote:

 
 On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 
 Le 10/10/13 01:03, Gwen Barnes a écrit :
 Hi folks,
 
 I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
 instance, with the mouse wheel, or with trackpad gestures, there is
 almost a full second lag before the screen starts to change, and then it
 moves jerkily until it gets to where it's going.  Based on some comments
 I found online, I have found that the lag goes away if I make my LyX
 window tiny -- but then the window is not useful to me.
 
 Any ideas what the problem might be, and things I could try to fix it?
 
 The problem is a weakness in LyX display mechanism: text is drawn several 
 characters at a time, while metrics (measurement of size) is done 
 character-per-character. On windows and linux, it is not a problem, but on a 
 Mac, where fonts use ligatures, it means that the cursor does not appear 
 where it should.
 
 To alleviate that, by default mac builds draws the screen char-by-char too. 
 It works, but it is quite slow...
 You can see what the effect is by adding
 \force_paint_single_char 0
 in the preferences file.
 
 Unfortunately, this situation will not improve in version 2.1.
 
 This is discouraging news. This is a serious and longstanding problem. Thanks 
 for the update, J-M.
 Jerry

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)
Jerry

 
 
 There is a branch that tackles this problem, but it is not ready yet.
 
 JMarc
 



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jean-Marc Lasgouttes

11/10/2013 11:33, Jerry:

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)


This is definitely a LyX bug. However, this part of the code is not well 
understood by active developers and we have to thank pdv [*] who 
provided an initial implementation of this idea and gave me motivation 
to start this rewrite.


The branch has not landed yet because it did not get substantial 
testing. It is however more or less complete.


JMarc

[*] see the thread here: 
http://comments.gmane.org/gmane.editors.lyx.devel/145311


Re: how to add a caption to a Box inset?

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
 Dear Jürgen and others,
 
 Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
 want to have a figure float within the boxfloat. If I however try to do 
 this, I get the error:
 
 LaTeX error: No counter 'subboxfloat' defined.
 
 How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
 
 Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
Liviu Andronic landronim...@gmail.com írta:
Dear all,
I'm seeing this strange behavior when centering a paragraph within a
table float. I see this  in both 2.0.6 and 2.1beta1.

In the attached document, each table float contains an ERT inset (for
subsequent use with Sweave) within a centered paragraph. If the ERT
inset is above the caption, then the following construct is used:
\begin{centering}
=
2+2
@
\par\end{centering}

Liviu,

What is begin{centering}?

I know of \centering command and center environment as
\begin{center}, \end{center}.

Can you give a definition of centering environment or a link
where it is described?

Thanks,

bcsikos



alignment of text in tables with fixed width

2013-10-11 Thread Csikos Bela
Hello:

The question: How can I center text in columns in a table with fixed with?

I would like to make a table with fixed width, where I set the width
of the whole table, not the widths of the cells.
Looking at the source it seems in lyx the tabular* environment is used
for this with addition of @{\extracolsep{\fill} to the list definition.
The result of this: the content of the cells/columns can't be aligned
normally. Cannot be centered, left or right aligned, everything is shifted
to the right (I think due to @{\extracolsep{\fill}).

How can I center (or left align) text in such tables?
Or what would be the workaround if it's not possible?

Thanks,

bcsikos



Re: lyx branches problem

2013-10-11 Thread Csikos Bela
Richard Heck rgh...@lyx.org írta:
On 10/10/2013 10:24 AM, Csikos Bela wrote:
 Liviu, Guenter:

 Thank you for drawing my attention to branches in lyx.

 I did not know about it before.

 I tried to convert an existing document to use branches.

 I find branches very attractive but I have a problem.

 In my document I have enumerate lists. One item has statements in two

 languages. After converting the lines to branches I get error at compilation:

 ! LaTeX Error: There's no line here to end.

 What can cause this error?

 I attach a working and a converted non-working example file

 (no-branches-OK.lyx, branch-not-working.lyx).

You can't put the newline after the inactive branch. It leads to LaTeX like:

\item \\
German

So there is, indeed, no line to end.

See the attached.

I see. I have dozens of branches with new line at the end.
Replacing them manually one by one would be very tedious.
I tried to use lyx's replace and advanced replace functions
to replace newlines with paragraph end but I could not.
Is it possible at all?

Or I could do a find/replace on the lyx file but I don't know
what strings to replace for what.

Thanks,

bcsikos



I could do it on the source file


Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
 What is begin{centering}?
 
 I know of \centering command and center environment as
 \begin{center}, \end{center}.
 
 Can you give a definition of centering environment or a link
 where it is described?

The centering environment internally just calls \centering ... 
\endcentering, with an empty \endcentering. You can do this with any switch, 
although it is rather the consequence of LaTeX's questionable environment 
implementation. LyX (mis)uses this, since it's easier than tracking switches.

Jürgen


Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
Jürgen Spitzmüller juer...@spitzmueller.org írta:
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
 What is begin{centering}?
 
 I know of \centering command and center environment as
 \begin{center}, \end{center}.
 
 Can you give a definition of centering environment or a link
 where it is described?

The centering environment internally just calls \centering ... 
\endcentering, with an empty \endcentering. You can do this with any switch, 
although it is rather the consequence of LaTeX's questionable environment 
implementation. LyX (mis)uses this, since it's easier than tracking switches.

Thanks.

If I understand correctly in latex you can write

\begin{centering}, which becomes/equals \centering,

and 

\end{centering},  which becomes/equals \endcentering.

What do you mean by empty \endcentering ?
empty \endcentering.

I have a question as well related to centering but as I don't want
to hijack the thread I will ask it separately.

Thanks,

bcsikos




\centering in lyx

2013-10-11 Thread Csikos Bela
Is \centering supported by lyx natively?

When I change paragraph alignment option to center,
lyx uses center environment, which adds extra vertical space
before the centered paragraph.

Can I apply \centering to text in lyx without using ERT?

Thanks,

bcsikos


Thanks,

bcsikos



Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
 What do you mean by empty \endcentering ?
 empty \endcentering.

It means that \end{centering} calls \endcentering only if this command exists. 
This is due to the way LaTeX environments are defined (the environment end 
does not call \endcentering directly, but \csname endcentering\endcsname, 
which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not 
complain about an undefined \endcentering, but just treat it as if th command 
was empty.

Try
\newcommand\myname{Csikos Bela}

[...]

\begin{myname}
\end{myname}

Jürgen


Re: \centering in lyx

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
 Can I apply \centering to text in lyx without using ERT?

No.

Jürgen




Increasing font size upsets justification

2013-10-11 Thread Anthony Campbell
I have completed a book in Book class using Palatino at 10pts. If I
increase the font to 11pts this causes occasional lines to project too
far toe the right by a few characters.

AI can fix this manually but it's annoying. I thought it might be
because I had hyphenpenalty set to 600 but turning it off makes no
difference.

Is this the expected behaviour? Can anything be done about it?


Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: \centering in lyx

2013-10-11 Thread Liviu Andronic
On Fri, Oct 11, 2013 at 3:56 PM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Csikos Bela wrote:
 Can I apply \centering to text in lyx without using ERT?

 No.

Then is it a bug that \centering is being used in the attached float
(using 2.0.6)?

Liviu


lyx_float_centering.206.lyx
Description: Binary data


Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Gerold Hintz
On Fri, Oct 11, 2013 at 9:01 AM, Guenter Milde mi...@users.sf.net wrote:


 On 2013-10-10, Gerold Hintz wrote:
  I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
  changing any document settings of any file, the buttons *OK *and
  *Apply *just remain greyed out.

 For me, this happens with all write-protected files (e.g. Help...
 documents). Can you do other edits and save them back?
 Can you try with a new-created file?



On Fri, Oct 11, 2013 at 9:02 AM, Guenter Milde mi...@users.sf.net wrote:


 What happens after you save the file to a different name (FileSave_As)?


The issue remains the same if I save the file with Save As and it also
remains for any newly created file. The file is not write-protected on the
filesystem.
Also, I can save any changes within the document without any problems, just
the Document Settings dialog forces me to click Cancel.

Gerold


Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

 I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
 changing any document settings of any file, the buttons *OK *and
 *Apply *just remain greyed out. (Someone posted the same issue running
 2.0.7dev on ubunto on stackexchange here

Just to check: 

For me, this happens with all write-protected files (e.g. Help...
documents). Can you do other edits and save them back?
Can you try with a new-created file?

Günter



Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

 I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
 changing any document settings of any file, the buttons *OK *and
 *Apply *just remain greyed out.

...

What happens after you save the file to a different name (FileSave_As)?

Günter



strange centering behavior in float

2013-10-11 Thread Liviu Andronic
Dear all,
I'm seeing this strange behavior when centering a paragraph within a
table float. I see this  in both 2.0.6 and 2.1beta1.

In the attached document, each table float contains an ERT inset (for
subsequent use with Sweave) within a centered paragraph. If the ERT
inset is above the caption, then the following construct is used:
\begin{centering}
=
2+2
@
\par\end{centering}

The same construct is used if the ERT inset is below the caption _and_
there is an empty line below it (say, kept with a protected space).
But if I remove this line below, then this construct is used:
\centering{}=
2+2
@

The problem with this construct is that since it's on the same line as
the beginning of the chunk, it breaks Sweave compilation.

So is this inconsistency expected? And can it be avoided?

Regards,
Liviu



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


lyx_float_centering.20.lyx
Description: Binary data


lyx_float_centering.lyx
Description: Binary data


Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 Le 10/10/13 01:03, Gwen Barnes a écrit :
 Hi folks,
 
 I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
 instance, with the mouse wheel, or with trackpad gestures, there is
 almost a full second lag before the screen starts to change, and then it
 moves jerkily until it gets to where it's going.  Based on some comments
 I found online, I have found that the lag goes away if I make my LyX
 window tiny -- but then the window is not useful to me.
 
 Any ideas what the problem might be, and things I could try to fix it?
 
 The problem is a weakness in LyX display mechanism: text is drawn several 
 characters at a time, while metrics (measurement of size) is done 
 character-per-character. On windows and linux, it is not a problem, but on a 
 Mac, where fonts use ligatures, it means that the cursor does not appear 
 where it should.
 
 To alleviate that, by default mac builds draws the screen char-by-char too. 
 It works, but it is quite slow...
 You can see what the effect is by adding
 \force_paint_single_char 0
 in the preferences file.
 
 Unfortunately, this situation will not improve in version 2.1.

This is discouraging news. This is a serious and longstanding problem. Thanks 
for the update, J-M.
Jerry

 
 There is a branch that tackles this problem, but it is not ready yet.
 
 JMarc



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 11, 2013, at 2:28 AM, Jerry lancebo...@qwest.net wrote:

 
 On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 
 Le 10/10/13 01:03, Gwen Barnes a écrit :
 Hi folks,
 
 I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
 instance, with the mouse wheel, or with trackpad gestures, there is
 almost a full second lag before the screen starts to change, and then it
 moves jerkily until it gets to where it's going.  Based on some comments
 I found online, I have found that the lag goes away if I make my LyX
 window tiny -- but then the window is not useful to me.
 
 Any ideas what the problem might be, and things I could try to fix it?
 
 The problem is a weakness in LyX display mechanism: text is drawn several 
 characters at a time, while metrics (measurement of size) is done 
 character-per-character. On windows and linux, it is not a problem, but on a 
 Mac, where fonts use ligatures, it means that the cursor does not appear 
 where it should.
 
 To alleviate that, by default mac builds draws the screen char-by-char too. 
 It works, but it is quite slow...
 You can see what the effect is by adding
 \force_paint_single_char 0
 in the preferences file.
 
 Unfortunately, this situation will not improve in version 2.1.
 
 This is discouraging news. This is a serious and longstanding problem. Thanks 
 for the update, J-M.
 Jerry

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)
Jerry

 
 
 There is a branch that tackles this problem, but it is not ready yet.
 
 JMarc
 



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jean-Marc Lasgouttes

11/10/2013 11:33, Jerry:

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)


This is definitely a LyX bug. However, this part of the code is not well 
understood by active developers and we have to thank pdv [*] who 
provided an initial implementation of this idea and gave me motivation 
to start this rewrite.


The branch has not landed yet because it did not get substantial 
testing. It is however more or less complete.


JMarc

[*] see the thread here: 
http://comments.gmane.org/gmane.editors.lyx.devel/145311


Re: how to add a caption to a Box inset?

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
 Dear Jürgen and others,
 
 Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
 want to have a figure float within the boxfloat. If I however try to do 
 this, I get the error:
 
 LaTeX error: No counter 'subboxfloat' defined.
 
 How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
 
 Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
Liviu Andronic landronim...@gmail.com írta:
Dear all,
I'm seeing this strange behavior when centering a paragraph within a
table float. I see this  in both 2.0.6 and 2.1beta1.

In the attached document, each table float contains an ERT inset (for
subsequent use with Sweave) within a centered paragraph. If the ERT
inset is above the caption, then the following construct is used:
\begin{centering}
=
2+2
@
\par\end{centering}

Liviu,

What is begin{centering}?

I know of \centering command and center environment as
\begin{center}, \end{center}.

Can you give a definition of centering environment or a link
where it is described?

Thanks,

bcsikos



alignment of text in tables with fixed width

2013-10-11 Thread Csikos Bela
Hello:

The question: How can I center text in columns in a table with fixed with?

I would like to make a table with fixed width, where I set the width
of the whole table, not the widths of the cells.
Looking at the source it seems in lyx the tabular* environment is used
for this with addition of @{\extracolsep{\fill} to the list definition.
The result of this: the content of the cells/columns can't be aligned
normally. Cannot be centered, left or right aligned, everything is shifted
to the right (I think due to @{\extracolsep{\fill}).

How can I center (or left align) text in such tables?
Or what would be the workaround if it's not possible?

Thanks,

bcsikos



Re: lyx branches problem

2013-10-11 Thread Csikos Bela
Richard Heck rgh...@lyx.org írta:
On 10/10/2013 10:24 AM, Csikos Bela wrote:
 Liviu, Guenter:

 Thank you for drawing my attention to branches in lyx.

 I did not know about it before.

 I tried to convert an existing document to use branches.

 I find branches very attractive but I have a problem.

 In my document I have enumerate lists. One item has statements in two

 languages. After converting the lines to branches I get error at compilation:

 ! LaTeX Error: There's no line here to end.

 What can cause this error?

 I attach a working and a converted non-working example file

 (no-branches-OK.lyx, branch-not-working.lyx).

You can't put the newline after the inactive branch. It leads to LaTeX like:

\item \\
German

So there is, indeed, no line to end.

See the attached.

I see. I have dozens of branches with new line at the end.
Replacing them manually one by one would be very tedious.
I tried to use lyx's replace and advanced replace functions
to replace newlines with paragraph end but I could not.
Is it possible at all?

Or I could do a find/replace on the lyx file but I don't know
what strings to replace for what.

Thanks,

bcsikos



I could do it on the source file


Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
 What is begin{centering}?
 
 I know of \centering command and center environment as
 \begin{center}, \end{center}.
 
 Can you give a definition of centering environment or a link
 where it is described?

The centering environment internally just calls \centering ... 
\endcentering, with an empty \endcentering. You can do this with any switch, 
although it is rather the consequence of LaTeX's questionable environment 
implementation. LyX (mis)uses this, since it's easier than tracking switches.

Jürgen


Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
Jürgen Spitzmüller juer...@spitzmueller.org írta:
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
 What is begin{centering}?
 
 I know of \centering command and center environment as
 \begin{center}, \end{center}.
 
 Can you give a definition of centering environment or a link
 where it is described?

The centering environment internally just calls \centering ... 
\endcentering, with an empty \endcentering. You can do this with any switch, 
although it is rather the consequence of LaTeX's questionable environment 
implementation. LyX (mis)uses this, since it's easier than tracking switches.

Thanks.

If I understand correctly in latex you can write

\begin{centering}, which becomes/equals \centering,

and 

\end{centering},  which becomes/equals \endcentering.

What do you mean by empty \endcentering ?
empty \endcentering.

I have a question as well related to centering but as I don't want
to hijack the thread I will ask it separately.

Thanks,

bcsikos




\centering in lyx

2013-10-11 Thread Csikos Bela
Is \centering supported by lyx natively?

When I change paragraph alignment option to center,
lyx uses center environment, which adds extra vertical space
before the centered paragraph.

Can I apply \centering to text in lyx without using ERT?

Thanks,

bcsikos


Thanks,

bcsikos



Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
 What do you mean by empty \endcentering ?
 empty \endcentering.

It means that \end{centering} calls \endcentering only if this command exists. 
This is due to the way LaTeX environments are defined (the environment end 
does not call \endcentering directly, but \csname endcentering\endcsname, 
which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not 
complain about an undefined \endcentering, but just treat it as if th command 
was empty.

Try
\newcommand\myname{Csikos Bela}

[...]

\begin{myname}
\end{myname}

Jürgen


Re: \centering in lyx

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
 Can I apply \centering to text in lyx without using ERT?

No.

Jürgen




Increasing font size upsets justification

2013-10-11 Thread Anthony Campbell
I have completed a book in Book class using Palatino at 10pts. If I
increase the font to 11pts this causes occasional lines to project too
far toe the right by a few characters.

AI can fix this manually but it's annoying. I thought it might be
because I had hyphenpenalty set to 600 but turning it off makes no
difference.

Is this the expected behaviour? Can anything be done about it?


Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: \centering in lyx

2013-10-11 Thread Liviu Andronic
On Fri, Oct 11, 2013 at 3:56 PM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Csikos Bela wrote:
 Can I apply \centering to text in lyx without using ERT?

 No.

Then is it a bug that \centering is being used in the attached float
(using 2.0.6)?

Liviu


lyx_float_centering.206.lyx
Description: Binary data


Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Gerold Hintz
On Fri, Oct 11, 2013 at 9:01 AM, Guenter Milde mi...@users.sf.net wrote:


 On 2013-10-10, Gerold Hintz wrote:
  I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
  changing any document settings of any file, the buttons *OK *and
  *Apply *just remain greyed out.

 For me, this happens with all write-protected files (e.g. Help...
 documents). Can you do other edits and save them back?
 Can you try with a new-created file?



On Fri, Oct 11, 2013 at 9:02 AM, Guenter Milde mi...@users.sf.net wrote:


 What happens after you save the file to a different name (FileSave_As)?


The issue remains the same if I save the file with Save As and it also
remains for any newly created file. The file is not write-protected on the
filesystem.
Also, I can save any changes within the document without any problems, just
the Document Settings dialog forces me to click Cancel.

Gerold


Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

> I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
> changing any document settings of any file, the buttons *OK *and
> *Apply *just remain greyed out. (Someone posted the same issue running
> 2.0.7dev on ubunto on stackexchange here

Just to check: 

For me, this happens with all write-protected files (e.g. Help>...
documents). Can you do other edits and save them back?
Can you try with a new-created file?

Günter



Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Guenter Milde
On 2013-10-10, Gerold Hintz wrote:

> I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
> changing any document settings of any file, the buttons *OK *and
> *Apply *just remain greyed out.

...

What happens after you save the file to a different name (File>Save_As)?

Günter



strange centering behavior in float

2013-10-11 Thread Liviu Andronic
Dear all,
I'm seeing this strange behavior when centering a paragraph within a
table float. I see this  in both 2.0.6 and 2.1beta1.

In the attached document, each table float contains an ERT inset (for
subsequent use with Sweave) within a centered paragraph. If the ERT
inset is above the caption, then the following construct is used:
\begin{centering}
<<>>=
2+2
@
\par\end{centering}

The same construct is used if the ERT inset is below the caption _and_
there is an empty line below it (say, kept with a protected space).
But if I remove this line below, then this construct is used:
\centering{}<<>>=
2+2
@

The problem with this construct is that since it's on the same line as
the beginning of the chunk, it breaks Sweave compilation.

So is this inconsistency expected? And can it be avoided?

Regards,
Liviu



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


lyx_float_centering.20.lyx
Description: Binary data


lyx_float_centering.lyx
Description: Binary data


Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes  wrote:

> Le 10/10/13 01:03, Gwen Barnes a écrit :
>> Hi folks,
>> 
>> I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
>> instance, with the mouse wheel, or with trackpad gestures, there is
>> almost a full second lag before the screen starts to change, and then it
>> moves jerkily until it gets to where it's going.  Based on some comments
>> I found online, I have found that the lag goes away if I make my LyX
>> window tiny -- but then the window is not useful to me.
>> 
>> Any ideas what the problem might be, and things I could try to fix it?
> 
> The problem is a weakness in LyX display mechanism: text is drawn several 
> characters at a time, while metrics (measurement of size) is done 
> character-per-character. On windows and linux, it is not a problem, but on a 
> Mac, where fonts use ligatures, it means that the cursor does not appear 
> where it should.
> 
> To alleviate that, by default mac builds draws the screen char-by-char too. 
> It works, but it is quite slow...
> You can see what the effect is by adding
> \force_paint_single_char 0
> in the preferences file.
> 
> Unfortunately, this situation will not improve in version 2.1.

This is discouraging news. This is a serious and longstanding problem. Thanks 
for the update, J-M.
Jerry

> 
> There is a branch that tackles this problem, but it is not ready yet.
> 
> JMarc



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 11, 2013, at 2:28 AM, Jerry  wrote:

> 
> On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes  wrote:
> 
>> Le 10/10/13 01:03, Gwen Barnes a écrit :
>>> Hi folks,
>>> 
>>> I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
>>> instance, with the mouse wheel, or with trackpad gestures, there is
>>> almost a full second lag before the screen starts to change, and then it
>>> moves jerkily until it gets to where it's going.  Based on some comments
>>> I found online, I have found that the lag goes away if I make my LyX
>>> window tiny -- but then the window is not useful to me.
>>> 
>>> Any ideas what the problem might be, and things I could try to fix it?
>> 
>> The problem is a weakness in LyX display mechanism: text is drawn several 
>> characters at a time, while metrics (measurement of size) is done 
>> character-per-character. On windows and linux, it is not a problem, but on a 
>> Mac, where fonts use ligatures, it means that the cursor does not appear 
>> where it should.
>> 
>> To alleviate that, by default mac builds draws the screen char-by-char too. 
>> It works, but it is quite slow...
>> You can see what the effect is by adding
>> \force_paint_single_char 0
>> in the preferences file.
>> 
>> Unfortunately, this situation will not improve in version 2.1.
> 
> This is discouraging news. This is a serious and longstanding problem. Thanks 
> for the update, J-M.
> Jerry

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)
Jerry

> 
>> 
>> There is a branch that tackles this problem, but it is not ready yet.
>> 
>> JMarc
> 



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jean-Marc Lasgouttes

11/10/2013 11:33, Jerry:

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)


This is definitely a LyX bug. However, this part of the code is not well 
understood by active developers and we have to thank pdv [*] who 
provided an initial implementation of this idea and gave me motivation 
to start this rewrite.


The branch has not landed yet because it did not get substantial 
testing. It is however more or less complete.


JMarc

[*] see the thread here: 
http://comments.gmane.org/gmane.editors.lyx.devel/145311


Re: how to add a caption to a Box inset?

2013-10-11 Thread Jürgen Spitzmüller
Am Donnerstag 10 Oktober 2013, 19:16:52 schrieb Frank Leone:
> Dear Jürgen and others,
> 
> Thanks a lot for the boxfloat, it is exactly what I needed. Now I however 
> want to have a figure float within the boxfloat. If I however try to do 
> this, I get the error:
> 
> LaTeX error: No counter 'subboxfloat' defined.
> 
> How can I make sure he understand sub-boxes/sub-figures inside a boxfloat?
> 
> Thanks a lot in advance!

I am afraid this is a bug in LyX, Frank. I'll make sure this will be fixed for 
the next release.

Jürgen


Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
Liviu Andronic  írta:
>Dear all,
>I'm seeing this strange behavior when centering a paragraph within a
>table float. I see this  in both 2.0.6 and 2.1beta1.
>
>In the attached document, each table float contains an ERT inset (for
>subsequent use with Sweave) within a centered paragraph. If the ERT
>inset is above the caption, then the following construct is used:
>\begin{centering}
><<>>=
>2+2
>@
>\par\end{centering}

Liviu,

What is begin{centering}?

I know of \centering command and center environment as
\begin{center}, \end{center}.

Can you give a definition of centering environment or a link
where it is described?

Thanks,

bcsikos



alignment of text in tables with fixed width

2013-10-11 Thread Csikos Bela
Hello:

The question: How can I center text in columns in a table with fixed with?

I would like to make a table with fixed width, where I set the width
of the whole table, not the widths of the cells.
Looking at the source it seems in lyx the tabular* environment is used
for this with addition of @{\extracolsep{\fill} to the list definition.
The result of this: the content of the cells/columns can't be aligned
normally. Cannot be centered, left or right aligned, everything is shifted
to the right (I think due to @{\extracolsep{\fill}).

How can I center (or left align) text in such tables?
Or what would be the workaround if it's not possible?

Thanks,

bcsikos



Re: lyx branches problem

2013-10-11 Thread Csikos Bela
Richard Heck  írta:
>On 10/10/2013 10:24 AM, Csikos Bela wrote:
>> Liviu, Guenter:
>>
>> Thank you for drawing my attention to branches in lyx.
>>
>> I did not know about it before.
>>
>> I tried to convert an existing document to use branches.
>>
>> I find branches very attractive but I have a problem.
>>
>> In my document I have enumerate lists. One item has statements in two
>>
>> languages. After converting the lines to branches I get error at compilation:
>>
>> ! LaTeX Error: There's no line here to end.
>>
>> What can cause this error?
>>
>> I attach a working and a converted non-working example file
>>
>> (no-branches-OK.lyx, branch-not-working.lyx).
>
>You can't put the newline after the inactive branch. It leads to LaTeX like:
>
>\item \\
>German
>
>So there is, indeed, no line to end.
>
>See the attached.

I see. I have dozens of branches with new line at the end.
Replacing them manually one by one would be very tedious.
I tried to use lyx's replace and advanced replace functions
to replace newlines with paragraph end but I could not.
Is it possible at all?

Or I could do a find/replace on the lyx file but I don't know
what strings to replace for what.

Thanks,

bcsikos



I could do it on the source file


Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
> What is begin{centering}?
> 
> I know of \centering command and center environment as
> \begin{center}, \end{center}.
> 
> Can you give a definition of centering environment or a link
> where it is described?

The centering "environment" internally just calls \centering ... 
\endcentering, with an empty \endcentering. You can do this with any switch, 
although it is rather the consequence of LaTeX's questionable environment 
implementation. LyX (mis)uses this, since it's easier than tracking switches.

Jürgen


Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: strange centering behavior in float

2013-10-11 Thread Csikos Bela
"Jürgen Spitzmüller"  írta:
>Am Freitag 11 Oktober 2013, 14:56:19 schrieb Csikos Bela:
>> What is begin{centering}?
>> 
>> I know of \centering command and center environment as
>> \begin{center}, \end{center}.
>> 
>> Can you give a definition of centering environment or a link
>> where it is described?
>
>The centering "environment" internally just calls \centering ... 
>\endcentering, with an empty \endcentering. You can do this with any switch, 
>although it is rather the consequence of LaTeX's questionable environment 
>implementation. LyX (mis)uses this, since it's easier than tracking switches.

Thanks.

If I understand correctly in latex you can write

\begin{centering}, which becomes/equals \centering,

and 

\end{centering},  which becomes/equals \endcentering.

What do you mean by "empty \endcentering" ?
empty \endcentering.

I have a question as well related to centering but as I don't want
to hijack the thread I will ask it separately.

Thanks,

bcsikos




\centering in lyx

2013-10-11 Thread Csikos Bela
Is \centering supported by lyx natively?

When I change paragraph alignment option to center,
lyx uses center environment, which adds extra vertical space
before the centered paragraph.

Can I apply \centering to text in lyx without using ERT?

Thanks,

bcsikos


Thanks,

bcsikos



Re: strange centering behavior in float

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
> What do you mean by "empty \endcentering" ?
> empty \endcentering.

It means that \end{centering} calls \endcentering only if this command exists. 
This is due to the way LaTeX environments are defined (the environment end 
does not call \endcentering directly, but \csname endcentering\endcsname, 
which sets \endcentering to \relax if it is not defined. Hence, LaTeX does not 
complain about an undefined \endcentering, but just treat it as if th command 
was "empty".

Try
\newcommand\myname{Csikos Bela}

[...]

\begin{myname}
\end{myname}

Jürgen


Re: \centering in lyx

2013-10-11 Thread Jürgen Spitzmüller
Csikos Bela wrote:
> Can I apply \centering to text in lyx without using ERT?

No.

Jürgen




Increasing font size upsets justification

2013-10-11 Thread Anthony Campbell
I have completed a book in Book class using Palatino at 10pts. If I
increase the font to 11pts this causes occasional lines to project too
far toe the right by a few characters.

AI can fix this manually but it's annoying. I thought it might be
because I had hyphenpenalty set to 600 but turning it off makes no
difference.

Is this the expected behaviour? Can anything be done about it?


Anthony
-- 
Anthony Campbell - a...@acampbell.org.uk 
http://www.acupuncturecourse.org.uk 
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412







Re: \centering in lyx

2013-10-11 Thread Liviu Andronic
On Fri, Oct 11, 2013 at 3:56 PM, Jürgen Spitzmüller  wrote:
> Csikos Bela wrote:
>> Can I apply \centering to text in lyx without using ERT?
>
> No.
>
Then is it a bug that \centering is being used in the attached float
(using 2.0.6)?

Liviu


lyx_float_centering.206.lyx
Description: Binary data


Re: Lyx 2.0.6: Document settings can't be changed (OK greyed out)

2013-10-11 Thread Gerold Hintz
On Fri, Oct 11, 2013 at 9:01 AM, Guenter Milde  wrote:


> On 2013-10-10, Gerold Hintz wrote:
> > I am running LyX 2.0.6 on Windows 7 SP1. I'm having an issue with
> > changing any document settings of any file, the buttons *OK *and
> > *Apply *just remain greyed out.
>
> For me, this happens with all write-protected files (e.g. Help>...
> documents). Can you do other edits and save them back?
> Can you try with a new-created file?



On Fri, Oct 11, 2013 at 9:02 AM, Guenter Milde  wrote:

>
> What happens after you save the file to a different name (File>Save_As)?
>

The issue remains the same if I save the file with "Save As" and it also
remains for any newly created file. The file is not write-protected on the
filesystem.
Also, I can save any changes within the document without any problems, just
the "Document Settings" dialog forces me to click "Cancel".

Gerold