Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
Hi, I am impatient to test drive LyX 2.0 but have not been able to run any
of the beta versions. I open the dmg file provided
hereftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/beta4/LyX-2.0.0beta4+qt4.dmg,
drag LyX to the applications folder and try to run LyX but nothing happens.

I am running Mac OS 10.4, which is already out dated. Is this the problem or
should it work?

I haven't been able to install from source because I get errors when
updating to the required Qt libraries or something. Has anyone else got lyx
2.0 running on mac 10.4? Cheers! Chris.


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Stephan Witt
Am 18.02.2011 um 12:04 schrieb Christopher Reeve:

 Hi, I am impatient to test drive LyX 2.0 but have not been able to run any of 
 the beta versions. I open the dmg file provided here, drag LyX to the 
 applications folder and try to run LyX but nothing happens. 
 
 I am running Mac OS 10.4, which is already out dated. Is this the problem or 
 should it work? 

Yes, this is the problem.
I've made the last Tiger compatible .dmg for alpha6.
I'll provide one more actual soon.

 I haven't been able to install from source because I get errors when updating 
 to the required Qt libraries or something. Has anyone else got lyx 2.0 
 running on mac 10.4?

Not me. I don't have it. (Don't know which smiley I should put here... :-))

Stephan

cross-reference inside table

2011-02-18 Thread David Bickel
When I put cross-references to sections inside the cells or caption of
a floating table, I get error messages like the following:

Missing $ inserted.
Details and references  \protect \T
1\textsection \ref{sub:FWER-control...
...t \T1\textsection \ref{sub:FWER-control} 
\protect \T1\textsection ...

Extra }, or forgotten $.
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

Any workaround or other help would be appreciated.

David


Re: cross-reference inside table

2011-02-18 Thread David Bickel
Hi David,

I found that your problem was not with cross-referencing but rather
with putting the § symbol in the cell or caption. A simple workaround
is to include this in your Preamble:

\DeclareMathOperator{\sect}{§}

Then you just type \sect in Math Mode.

David


2011/2/18 David Bickel davidbickel.com+li...@gmail.com

 When I put cross-references to sections inside the cells or caption of
 a floating table, I get error messages like the following:

 Missing $ inserted.
 Details and references  \protect \T
 1\textsection \ref{sub:FWER-control...
 ...t \T1\textsection \ref{sub:FWER-control} 
 \protect \T1\textsection ...

 Extra }, or forgotten $.
 I've deleted a group-closing symbol because it seems to be
 spurious, as in `$x}$'. But perhaps the } is legitimate and
 you forgot something else, as in `\hbox{$x}'. In such cases
 the way to recover is to insert both the forgotten and the
 deleted material, e.g., by typing `I$}'.

 Any workaround or other help would be appreciated.

 David


How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
I'm attempting to use the LyZ plugin for Zotero and LyX and it
requires the LyX server to be present.

I've looked on the LyX wiki for information and it makes reference to
.lyxpipe.in and .lyxpipe.out but these are not present when I install
LyX from the Ubuntu repository.

What are these files and how can they be created? What information do
they need to contain?

Thanks for your help

Ant


SV: SV: problem to import LaTex document class for conf. paper

2011-02-18 Thread Ingar Pareliussen

The layout from world scientific in lyx's wiki is not same in term
of page margin.
The one for this particular conference is slightly smaller.

If this is the only difference you could try to set the correct margins
in lyx, this should take precedence over the margin set in the class.
But I guess there are some other more subtle differences...

However, new problem appear. When I try to change setting in
Lyx:Document Setting to 'manuscript (ws-procs9x6)', a dialog box
The document class ws-procs9x6 could not be loaded.'
Then another dialog box 'Unable to set document class.'
What happen actually?

Hard to know, I do not know mactex, however, from your
description LyX is locating the .layout file fine. But when exporting
to LaTeX, LaTeX could not find the .cls file. This is usually caused
by LaTeX not having found the .cls file. So you need to be certain that
it lies somewhere LaTeX can find it, and that MacTeX has been 
reconfigured after the the .cls file is installed. 

Maybe this could be a start for further reading:
http://macosx-tex.576846.n2.nabble.com/Adding-new-class-td2319812.html

hth,
Ingar

Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
 I'm attempting to use the LyZ plugin for Zotero and LyX and it
 requires the LyX server to be present.
 
 I've looked on the LyX wiki for information and it makes reference to
 .lyxpipe.in and .lyxpipe.out but these are not present when I install
 LyX from the Ubuntu repository.
 
 What are these files and how can they be created? What information do
 they need to contain?

try to run lyx and look into .lyx directory in your home. better than
wiki is to read documentation manuals i guess. you can also set the directory
in preferences.

hopefully we put all of them to web with lyx 2.0, since we have xhtml
output now :)

pavel


Re: How to access graphics files exported from LyX from LaTeX insets?

2011-02-18 Thread Kuba Ober
On Feb 17, 2011, at 8:58 PM, Richard Heck wrote:

 On 02/17/2011 07:05 PM, Kuba Ober wrote:
 Now I'm trying to add graphics to the page header in the document preamble, 
 and I'd
 like to be able somehow to refer to the graphics file exported by LyX. What 
 I need
 is a way of knowing that file foo.eps got exported as baz_bar_foo.eps to the 
 temp
 directory.
 
 This also applies to not being able to, say, have an \includegraphics{foo} 
 in a LaTeX inset: LyX only processes graphics insets when exporting files, 
 it does not detect manually inserted \includegraphics.
 
 A solution to my problem would be either:
 1. how to predict (perhaps LyX could insert a macro for each exported 
 file?)
 exported graphics file's name.
 
 There's a specific routine in the LyX source that produces this mangled 
 filename. You can have a look at it if you want to see how it works.
 
 2. how to force LyX to automagically process \includegraphics{} in LaTeX 
 insets,
 document preamble, etc.
 
 It's kind of LyX's policy that you are on your own as far as ERT, etc, is 
 concerned. Parsing this stuff would be very difficult.
 
 That said, if the graphic is in some location LaTeX knows about---e.g., the 
 same directory as the LaTeX file, or somewhere else that LaTeX can find 
 it---then LaTeX will find it just as if you were running LaTeX manually on 
 the file. So you don't need to refer to LyX's exported file but can just 
 refer to your original.

The problem is that the LaTeX file is in a transient, temporary location that 
LyX creates when exporting (say to dvi). There is no way for me to put anything 
there.

This problem seems to apply not only to graphics, but to any file that's 
included/referenced in ERT, document preamble, etc.

So, the general problem is thus: LyX prevents me from referencing any files 
that it doesn't know about in the LaTeX output.

This completely breaks things that are easy when you use plain LaTeX: say that 
you want to include graphics in the page header/footer. There's no way to do it 
directly in LyX (or is there?), so you have to put the header
definition in ERT or in the preamble. But the files that I have in the 
directory where the .lyx document resides are inaccessible to LaTeX unless LyX 
knows about them and copies them into the temp directory!

In general case, you cannot refer to files outside of the directory where the 
exported LaTeX file resides, since they may well contain spaces: this is simply 
a mis-feature of LaTeX that LyX works around. It's just that the workaround is 
not exposed in any way other than via the inset/include mechanism. It is also 
impossible to know in general where the .lyx file resides: to refer to it from 
the LyX's export directory you'd need a full path, and that may well be 
anywhere on a user's system. Hardcoding the path, even if it contained no 
spaces, still leaves you with broken output as soon as you move the .lyx file 
anywhere, or send it to someone, etc.

I'm thinking of a following feature that would fix it:

A list of extra files in the document settings dialog, that LyX moves over to 
the export directory along with other files it knows about (the exported LaTeX 
output, [converted] graphics, etc). There would be two entries per file: the 
full path, and the output (exported) file name. By default, the output file 
name would simply be the path-less name of the source file. In case of 
conflicts, numeric suffixes could be automatically appended. A checkbox would 
enable a custom output file name in cases where it'd help.

Would this be something that could be accepted as a patch this late in the 2.0 
cycle? I think I could give it a shot.

Cheers, Kuba

Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
 Yes, this is the problem.
 I've made the last Tiger compatible .dmg for alpha6.
 I'll provide one more actual soon.


Thanks Stephan. It is *so* great to have spell checking on the fly!

There is one feature, which I wonder if it is not too late to request for in
2.0. That is, when one selects all the text (ctrl-a/cmd-a), that if one does
so within a box, such as a mini page or caption, that only the content of
the box is selected. Outside any box would select the whole document. Just
imagine how annoying it would be if when you are writing an email online and
go ctrl-a and the whole email page was selected?! What do you think?

Doing two ctr-a's could optionally still select the whole document. One
current annoying feature of doing a ctrl-a and then an esc is that one loses
one's current place, which can take a moment to find again in a long
document.


 Has anyone else got lyx 2.0 running on mac 10.4?


 Not me. I don't have it. (Don't know which smiley I should put here... :-))


The reason I have not updated is that I didn't have the time to set up all
the linux software again that took me ages to set up and was using daily.
Now I don't know if I should wait till summer for yet the next OS release!


Re: How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
 try to run lyx and look into .lyx directory in your home. better than
 wiki is to read documentation manuals i guess. you can also set the directory
 in preferences.
I ran lyx and looked in the the .lyx folder but the only files there
are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
preferences, session and textclass.lst

Should there be other files?

Also, just to be completely sure, when setting up the path for the
lyxserver pipe is it supposed to point to a specific folder/file?

Ant


On 18 February 2011 16:01, Pavel Sanda sa...@lyx.org wrote:
 Antonio Roberts wrote:
 I'm attempting to use the LyZ plugin for Zotero and LyX and it
 requires the LyX server to be present.

 I've looked on the LyX wiki for information and it makes reference to
 .lyxpipe.in and .lyxpipe.out but these are not present when I install
 LyX from the Ubuntu repository.

 What are these files and how can they be created? What information do
 they need to contain?

 try to run lyx and look into .lyx directory in your home. better than
 wiki is to read documentation manuals i guess. you can also set the directory
 in preferences.

 hopefully we put all of them to web with lyx 2.0, since we have xhtml
 output now :)

 pavel



Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
  try to run lyx and look into .lyx directory in your home. better than
  wiki is to read documentation manuals i guess. you can also set the 
  directory
  in preferences.
 I ran lyx and looked in the the .lyx folder but the only files there
 are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
 preferences, session and textclass.lst
 
 Should there be other files?

ok, i was trying pure luck without checking. looking here socket is created by 
default
in /tmp/lyx_tmpdir.X/lyxsocket. 

 Also, just to be completely sure, when setting up the path for the
 lyxserver pipe is it supposed to point to a specific folder/file?

you can choose any folder you want. try to run lyxclient if you want
to see the path in the current running instance and when nothing was set up...

pavel


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Pavel Sanda
Christopher Reeve wrote:
 There is one feature, which I wonder if it is not too late to request for in

workaround is to bind inset-select-all to c-a on you system. its not exatly the 
thing
but similar enough.

pavel


Re: problem to import LaTex document class for conf. paper

2011-02-18 Thread yusof
Hi Gunter,

This is 'ws-procs9x6.layout'

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ws-procs9x6]{manuscript (ws-procs9x6)}
# Read the definitions from article.layout
Input article.layout

I just follow example from lyx wiki

When I want to view DVI, this error occur;

Error:
LaTeX Error: Unknown option 'English' for package 'graphics'.

Description:
 \if
!\Gin@driver!
The option `english' was not declared in package `graphics', perhaps you
misspelled its name. Try typing  return  to proceed.

I quite suspicious it is something to do with document class 
but I cannot locate this error.

Thanks



Re: Customising Index Title Body Text

2011-02-18 Thread ClivePauline_Libotte
On 12/02/11 18:23, ClivePauline_Libotte wrote:
 On 07/02/11 16:42, ClivePauline_Libotte wrote:
 Dear Lyxers,
 I have spent hundreds of hours hand-crafting the front matter of a book,
 but one area has me stumped. How do I access a method of customising
 the Index title and it's body text. I have not found anything reliable
 on the Web or in this list. Where is the documentation on this -- plenty
 on the customising of the TOC, getting on with that. Thanks for your
 knowledgeable help.

 Clive Libotte.

 Replying to myself (I think, having just set up the list on my email)
 Thanks to Marcelo and Sefano for their prompt replies. I did not need
 the additional tex packages recommended, as I wanted only the titles and
 page numbering  in the Index, TOC, List of Figures and List of Tables to
 match the graphics of the main text; the body text was all right. So my
 heading Customising Index Title  Body Text is too expansive -- sorry.
 Your replies sent me on new lines of research though, which were
 successful. For the benefit of other newcomers to Lyx; the lines of code
 that I used are as follows. Note, that I have the fancyhdr package
 loaded with document class book, Lyx version 1.6.7. The front matter
 page numbering style is set early and carries on though the Table of
 Contents on to the end of the front matter. The Index is numbered the
 same as the main text. You set the numbering styles with the package
 fancyhdr.
 
 To change the Index title font to match the chapter titles, do the
 following in ERT just before the embedded Index label:-
 
 \makeatletter
 \let\ps@plain\ps@fancy
 \makeatother
 \renewcommand\indexname{\bfseries \sffamily \Huge Index}
 \addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index}
 
 You can do the same with the TOC, List of Figures, List of Tables by
 changing the \indexname to \contentsname, \listfigurename or
 \listtablename as required. The last line of the code \addcontents
 ... is to add the Index title to the TOC which is not done as default.
 
 
 
 Hope this help others.
 
Replying to myself once more for the benefit of the newsgroup.
Upon proof reading the output, the last line in the above code
\addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index} is not
correct, because the commands \bfseries \sffamily \large, cause an
unexpected result which turns up in the TOC. The entry Index in the
TOC does indeed appear, but in the serif font instead of the sanserif
font with the associated page number in the correct serif font (all the
page numbers in the TOC are in serif font, so that it matches). The
correct way to change the Index entry to sanserif (to match the other
chapter headings) in the TOC is like this.
load the tocloft package in the preamble \usepackage{tocloft}
insert the ERT code just before the Table of Contents label like this,
\renewcommand{cftchapfont}{\bfseries \sffamily \normalsize}. Now the
Index entry is sanserif matching the other chapter entries.

So I did end up needing an additional package to do this job after all;
can't always keep things simple!


-- 
Clive Libotte, IEng. MInstMC.






How! -- Index with Balanced Columns.

2011-02-18 Thread ClivePauline_Libotte
Dear Lyxers
I am using Lyx 1.6.7, Book Class, on openSUSE 11.1. I want to convert
the standard two-column Index behavior to achieve balanced columns on
the last Index page.( that is, from a single column down the left-hand
side of the page with an empty column the right-hand side, to two
columns of equal length reaching approxmimately half-way down the page).

I have searched and found the following advice and code.
Load the multicol package.

 \usepackage{multicol}

Enter code in ERT just before the Index label

%change the index environment to achieve balanced columns on last page
\let\orgtheindex\theindex
\let\orgendtheindex\endtheindex
\def\theindex{%
 \def\twocolumn{\begin{multicols}{2}}%
 \def\onecolumn{}%
 \clearpage
 \orgtheindex
}
\def\endtheindex{%
 \end{multicols}%
 \orgendtheindex
}

This code is pasted from the Internet but not for the Lyx Book Class;
although the code appears in several places in almost indentical form.
It does not throw up an error, not does it have any effect on the Index;
but it does mess up the following page by moving a float picture. So
there is some interaction, but not that desired. There is one small
additional effect -- the word Index in normal font appears at the end of
the Index.

Would anyone explain how this approach can be made to work?

Thanks for your expertise.

Kind Regards,

-- 
Clive Libotte, IEng. MInstMC.






Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
Hi, I am impatient to test drive LyX 2.0 but have not been able to run any
of the beta versions. I open the dmg file provided
hereftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/beta4/LyX-2.0.0beta4+qt4.dmg,
drag LyX to the applications folder and try to run LyX but nothing happens.

I am running Mac OS 10.4, which is already out dated. Is this the problem or
should it work?

I haven't been able to install from source because I get errors when
updating to the required Qt libraries or something. Has anyone else got lyx
2.0 running on mac 10.4? Cheers! Chris.


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Stephan Witt
Am 18.02.2011 um 12:04 schrieb Christopher Reeve:

 Hi, I am impatient to test drive LyX 2.0 but have not been able to run any of 
 the beta versions. I open the dmg file provided here, drag LyX to the 
 applications folder and try to run LyX but nothing happens. 
 
 I am running Mac OS 10.4, which is already out dated. Is this the problem or 
 should it work? 

Yes, this is the problem.
I've made the last Tiger compatible .dmg for alpha6.
I'll provide one more actual soon.

 I haven't been able to install from source because I get errors when updating 
 to the required Qt libraries or something. Has anyone else got lyx 2.0 
 running on mac 10.4?

Not me. I don't have it. (Don't know which smiley I should put here... :-))

Stephan

cross-reference inside table

2011-02-18 Thread David Bickel
When I put cross-references to sections inside the cells or caption of
a floating table, I get error messages like the following:

Missing $ inserted.
Details and references  \protect \T
1\textsection \ref{sub:FWER-control...
...t \T1\textsection \ref{sub:FWER-control} 
\protect \T1\textsection ...

Extra }, or forgotten $.
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

Any workaround or other help would be appreciated.

David


Re: cross-reference inside table

2011-02-18 Thread David Bickel
Hi David,

I found that your problem was not with cross-referencing but rather
with putting the § symbol in the cell or caption. A simple workaround
is to include this in your Preamble:

\DeclareMathOperator{\sect}{§}

Then you just type \sect in Math Mode.

David


2011/2/18 David Bickel davidbickel.com+li...@gmail.com

 When I put cross-references to sections inside the cells or caption of
 a floating table, I get error messages like the following:

 Missing $ inserted.
 Details and references  \protect \T
 1\textsection \ref{sub:FWER-control...
 ...t \T1\textsection \ref{sub:FWER-control} 
 \protect \T1\textsection ...

 Extra }, or forgotten $.
 I've deleted a group-closing symbol because it seems to be
 spurious, as in `$x}$'. But perhaps the } is legitimate and
 you forgot something else, as in `\hbox{$x}'. In such cases
 the way to recover is to insert both the forgotten and the
 deleted material, e.g., by typing `I$}'.

 Any workaround or other help would be appreciated.

 David


How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
I'm attempting to use the LyZ plugin for Zotero and LyX and it
requires the LyX server to be present.

I've looked on the LyX wiki for information and it makes reference to
.lyxpipe.in and .lyxpipe.out but these are not present when I install
LyX from the Ubuntu repository.

What are these files and how can they be created? What information do
they need to contain?

Thanks for your help

Ant


SV: SV: problem to import LaTex document class for conf. paper

2011-02-18 Thread Ingar Pareliussen

The layout from world scientific in lyx's wiki is not same in term
of page margin.
The one for this particular conference is slightly smaller.

If this is the only difference you could try to set the correct margins
in lyx, this should take precedence over the margin set in the class.
But I guess there are some other more subtle differences...

However, new problem appear. When I try to change setting in
Lyx:Document Setting to 'manuscript (ws-procs9x6)', a dialog box
The document class ws-procs9x6 could not be loaded.'
Then another dialog box 'Unable to set document class.'
What happen actually?

Hard to know, I do not know mactex, however, from your
description LyX is locating the .layout file fine. But when exporting
to LaTeX, LaTeX could not find the .cls file. This is usually caused
by LaTeX not having found the .cls file. So you need to be certain that
it lies somewhere LaTeX can find it, and that MacTeX has been 
reconfigured after the the .cls file is installed. 

Maybe this could be a start for further reading:
http://macosx-tex.576846.n2.nabble.com/Adding-new-class-td2319812.html

hth,
Ingar

Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
 I'm attempting to use the LyZ plugin for Zotero and LyX and it
 requires the LyX server to be present.
 
 I've looked on the LyX wiki for information and it makes reference to
 .lyxpipe.in and .lyxpipe.out but these are not present when I install
 LyX from the Ubuntu repository.
 
 What are these files and how can they be created? What information do
 they need to contain?

try to run lyx and look into .lyx directory in your home. better than
wiki is to read documentation manuals i guess. you can also set the directory
in preferences.

hopefully we put all of them to web with lyx 2.0, since we have xhtml
output now :)

pavel


Re: How to access graphics files exported from LyX from LaTeX insets?

2011-02-18 Thread Kuba Ober
On Feb 17, 2011, at 8:58 PM, Richard Heck wrote:

 On 02/17/2011 07:05 PM, Kuba Ober wrote:
 Now I'm trying to add graphics to the page header in the document preamble, 
 and I'd
 like to be able somehow to refer to the graphics file exported by LyX. What 
 I need
 is a way of knowing that file foo.eps got exported as baz_bar_foo.eps to the 
 temp
 directory.
 
 This also applies to not being able to, say, have an \includegraphics{foo} 
 in a LaTeX inset: LyX only processes graphics insets when exporting files, 
 it does not detect manually inserted \includegraphics.
 
 A solution to my problem would be either:
 1. how to predict (perhaps LyX could insert a macro for each exported 
 file?)
 exported graphics file's name.
 
 There's a specific routine in the LyX source that produces this mangled 
 filename. You can have a look at it if you want to see how it works.
 
 2. how to force LyX to automagically process \includegraphics{} in LaTeX 
 insets,
 document preamble, etc.
 
 It's kind of LyX's policy that you are on your own as far as ERT, etc, is 
 concerned. Parsing this stuff would be very difficult.
 
 That said, if the graphic is in some location LaTeX knows about---e.g., the 
 same directory as the LaTeX file, or somewhere else that LaTeX can find 
 it---then LaTeX will find it just as if you were running LaTeX manually on 
 the file. So you don't need to refer to LyX's exported file but can just 
 refer to your original.

The problem is that the LaTeX file is in a transient, temporary location that 
LyX creates when exporting (say to dvi). There is no way for me to put anything 
there.

This problem seems to apply not only to graphics, but to any file that's 
included/referenced in ERT, document preamble, etc.

So, the general problem is thus: LyX prevents me from referencing any files 
that it doesn't know about in the LaTeX output.

This completely breaks things that are easy when you use plain LaTeX: say that 
you want to include graphics in the page header/footer. There's no way to do it 
directly in LyX (or is there?), so you have to put the header
definition in ERT or in the preamble. But the files that I have in the 
directory where the .lyx document resides are inaccessible to LaTeX unless LyX 
knows about them and copies them into the temp directory!

In general case, you cannot refer to files outside of the directory where the 
exported LaTeX file resides, since they may well contain spaces: this is simply 
a mis-feature of LaTeX that LyX works around. It's just that the workaround is 
not exposed in any way other than via the inset/include mechanism. It is also 
impossible to know in general where the .lyx file resides: to refer to it from 
the LyX's export directory you'd need a full path, and that may well be 
anywhere on a user's system. Hardcoding the path, even if it contained no 
spaces, still leaves you with broken output as soon as you move the .lyx file 
anywhere, or send it to someone, etc.

I'm thinking of a following feature that would fix it:

A list of extra files in the document settings dialog, that LyX moves over to 
the export directory along with other files it knows about (the exported LaTeX 
output, [converted] graphics, etc). There would be two entries per file: the 
full path, and the output (exported) file name. By default, the output file 
name would simply be the path-less name of the source file. In case of 
conflicts, numeric suffixes could be automatically appended. A checkbox would 
enable a custom output file name in cases where it'd help.

Would this be something that could be accepted as a patch this late in the 2.0 
cycle? I think I could give it a shot.

Cheers, Kuba

Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
 Yes, this is the problem.
 I've made the last Tiger compatible .dmg for alpha6.
 I'll provide one more actual soon.


Thanks Stephan. It is *so* great to have spell checking on the fly!

There is one feature, which I wonder if it is not too late to request for in
2.0. That is, when one selects all the text (ctrl-a/cmd-a), that if one does
so within a box, such as a mini page or caption, that only the content of
the box is selected. Outside any box would select the whole document. Just
imagine how annoying it would be if when you are writing an email online and
go ctrl-a and the whole email page was selected?! What do you think?

Doing two ctr-a's could optionally still select the whole document. One
current annoying feature of doing a ctrl-a and then an esc is that one loses
one's current place, which can take a moment to find again in a long
document.


 Has anyone else got lyx 2.0 running on mac 10.4?


 Not me. I don't have it. (Don't know which smiley I should put here... :-))


The reason I have not updated is that I didn't have the time to set up all
the linux software again that took me ages to set up and was using daily.
Now I don't know if I should wait till summer for yet the next OS release!


Re: How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
 try to run lyx and look into .lyx directory in your home. better than
 wiki is to read documentation manuals i guess. you can also set the directory
 in preferences.
I ran lyx and looked in the the .lyx folder but the only files there
are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
preferences, session and textclass.lst

Should there be other files?

Also, just to be completely sure, when setting up the path for the
lyxserver pipe is it supposed to point to a specific folder/file?

Ant


On 18 February 2011 16:01, Pavel Sanda sa...@lyx.org wrote:
 Antonio Roberts wrote:
 I'm attempting to use the LyZ plugin for Zotero and LyX and it
 requires the LyX server to be present.

 I've looked on the LyX wiki for information and it makes reference to
 .lyxpipe.in and .lyxpipe.out but these are not present when I install
 LyX from the Ubuntu repository.

 What are these files and how can they be created? What information do
 they need to contain?

 try to run lyx and look into .lyx directory in your home. better than
 wiki is to read documentation manuals i guess. you can also set the directory
 in preferences.

 hopefully we put all of them to web with lyx 2.0, since we have xhtml
 output now :)

 pavel



Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
  try to run lyx and look into .lyx directory in your home. better than
  wiki is to read documentation manuals i guess. you can also set the 
  directory
  in preferences.
 I ran lyx and looked in the the .lyx folder but the only files there
 are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
 preferences, session and textclass.lst
 
 Should there be other files?

ok, i was trying pure luck without checking. looking here socket is created by 
default
in /tmp/lyx_tmpdir.X/lyxsocket. 

 Also, just to be completely sure, when setting up the path for the
 lyxserver pipe is it supposed to point to a specific folder/file?

you can choose any folder you want. try to run lyxclient if you want
to see the path in the current running instance and when nothing was set up...

pavel


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Pavel Sanda
Christopher Reeve wrote:
 There is one feature, which I wonder if it is not too late to request for in

workaround is to bind inset-select-all to c-a on you system. its not exatly the 
thing
but similar enough.

pavel


Re: problem to import LaTex document class for conf. paper

2011-02-18 Thread yusof
Hi Gunter,

This is 'ws-procs9x6.layout'

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ws-procs9x6]{manuscript (ws-procs9x6)}
# Read the definitions from article.layout
Input article.layout

I just follow example from lyx wiki

When I want to view DVI, this error occur;

Error:
LaTeX Error: Unknown option 'English' for package 'graphics'.

Description:
 \if
!\Gin@driver!
The option `english' was not declared in package `graphics', perhaps you
misspelled its name. Try typing  return  to proceed.

I quite suspicious it is something to do with document class 
but I cannot locate this error.

Thanks



Re: Customising Index Title Body Text

2011-02-18 Thread ClivePauline_Libotte
On 12/02/11 18:23, ClivePauline_Libotte wrote:
 On 07/02/11 16:42, ClivePauline_Libotte wrote:
 Dear Lyxers,
 I have spent hundreds of hours hand-crafting the front matter of a book,
 but one area has me stumped. How do I access a method of customising
 the Index title and it's body text. I have not found anything reliable
 on the Web or in this list. Where is the documentation on this -- plenty
 on the customising of the TOC, getting on with that. Thanks for your
 knowledgeable help.

 Clive Libotte.

 Replying to myself (I think, having just set up the list on my email)
 Thanks to Marcelo and Sefano for their prompt replies. I did not need
 the additional tex packages recommended, as I wanted only the titles and
 page numbering  in the Index, TOC, List of Figures and List of Tables to
 match the graphics of the main text; the body text was all right. So my
 heading Customising Index Title  Body Text is too expansive -- sorry.
 Your replies sent me on new lines of research though, which were
 successful. For the benefit of other newcomers to Lyx; the lines of code
 that I used are as follows. Note, that I have the fancyhdr package
 loaded with document class book, Lyx version 1.6.7. The front matter
 page numbering style is set early and carries on though the Table of
 Contents on to the end of the front matter. The Index is numbered the
 same as the main text. You set the numbering styles with the package
 fancyhdr.
 
 To change the Index title font to match the chapter titles, do the
 following in ERT just before the embedded Index label:-
 
 \makeatletter
 \let\ps@plain\ps@fancy
 \makeatother
 \renewcommand\indexname{\bfseries \sffamily \Huge Index}
 \addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index}
 
 You can do the same with the TOC, List of Figures, List of Tables by
 changing the \indexname to \contentsname, \listfigurename or
 \listtablename as required. The last line of the code \addcontents
 ... is to add the Index title to the TOC which is not done as default.
 
 
 
 Hope this help others.
 
Replying to myself once more for the benefit of the newsgroup.
Upon proof reading the output, the last line in the above code
\addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index} is not
correct, because the commands \bfseries \sffamily \large, cause an
unexpected result which turns up in the TOC. The entry Index in the
TOC does indeed appear, but in the serif font instead of the sanserif
font with the associated page number in the correct serif font (all the
page numbers in the TOC are in serif font, so that it matches). The
correct way to change the Index entry to sanserif (to match the other
chapter headings) in the TOC is like this.
load the tocloft package in the preamble \usepackage{tocloft}
insert the ERT code just before the Table of Contents label like this,
\renewcommand{cftchapfont}{\bfseries \sffamily \normalsize}. Now the
Index entry is sanserif matching the other chapter entries.

So I did end up needing an additional package to do this job after all;
can't always keep things simple!


-- 
Clive Libotte, IEng. MInstMC.






How! -- Index with Balanced Columns.

2011-02-18 Thread ClivePauline_Libotte
Dear Lyxers
I am using Lyx 1.6.7, Book Class, on openSUSE 11.1. I want to convert
the standard two-column Index behavior to achieve balanced columns on
the last Index page.( that is, from a single column down the left-hand
side of the page with an empty column the right-hand side, to two
columns of equal length reaching approxmimately half-way down the page).

I have searched and found the following advice and code.
Load the multicol package.

 \usepackage{multicol}

Enter code in ERT just before the Index label

%change the index environment to achieve balanced columns on last page
\let\orgtheindex\theindex
\let\orgendtheindex\endtheindex
\def\theindex{%
 \def\twocolumn{\begin{multicols}{2}}%
 \def\onecolumn{}%
 \clearpage
 \orgtheindex
}
\def\endtheindex{%
 \end{multicols}%
 \orgendtheindex
}

This code is pasted from the Internet but not for the Lyx Book Class;
although the code appears in several places in almost indentical form.
It does not throw up an error, not does it have any effect on the Index;
but it does mess up the following page by moving a float picture. So
there is some interaction, but not that desired. There is one small
additional effect -- the word Index in normal font appears at the end of
the Index.

Would anyone explain how this approach can be made to work?

Thanks for your expertise.

Kind Regards,

-- 
Clive Libotte, IEng. MInstMC.






Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
Hi, I am impatient to test drive LyX 2.0 but have not been able to run any
of the beta versions. I open the dmg file provided
here,
drag LyX to the applications folder and try to run LyX but nothing happens.

I am running Mac OS 10.4, which is already out dated. Is this the problem or
should it work?

I haven't been able to install from source because I get errors when
updating to the required Qt libraries or something. Has anyone else got lyx
2.0 running on mac 10.4? Cheers! Chris.


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Stephan Witt
Am 18.02.2011 um 12:04 schrieb Christopher Reeve:

> Hi, I am impatient to test drive LyX 2.0 but have not been able to run any of 
> the beta versions. I open the dmg file provided here, drag LyX to the 
> applications folder and try to run LyX but nothing happens. 
> 
> I am running Mac OS 10.4, which is already out dated. Is this the problem or 
> should it work? 

Yes, this is the problem.
I've made the last Tiger compatible .dmg for alpha6.
I'll provide one more actual soon.

> I haven't been able to install from source because I get errors when updating 
> to the required Qt libraries or something. Has anyone else got lyx 2.0 
> running on mac 10.4?

Not me. I don't have it. (Don't know which smiley I should put here... :-))

Stephan

cross-reference inside table

2011-02-18 Thread David Bickel
When I put cross-references to sections inside the cells or caption of
a floating table, I get error messages like the following:

Missing $ inserted.
Details and references & \protect \T
1\textsection \ref{sub:FWER-control...
...t \T1\textsection \ref{sub:FWER-control} &
\protect \T1\textsection ...

Extra }, or forgotten $.
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

Any workaround or other help would be appreciated.

David


Re: cross-reference inside table

2011-02-18 Thread David Bickel
Hi David,

I found that your problem was not with cross-referencing but rather
with putting the § symbol in the cell or caption. A simple workaround
is to include this in your Preamble:

\DeclareMathOperator{\sect}{§}

Then you just type \sect in Math Mode.

David


2011/2/18 David Bickel 
>
> When I put cross-references to sections inside the cells or caption of
> a floating table, I get error messages like the following:
>
> Missing $ inserted.
> Details and references & \protect \T
> 1\textsection \ref{sub:FWER-control...
> ...t \T1\textsection \ref{sub:FWER-control} &
> \protect \T1\textsection ...
>
> Extra }, or forgotten $.
> I've deleted a group-closing symbol because it seems to be
> spurious, as in `$x}$'. But perhaps the } is legitimate and
> you forgot something else, as in `\hbox{$x}'. In such cases
> the way to recover is to insert both the forgotten and the
> deleted material, e.g., by typing `I$}'.
>
> Any workaround or other help would be appreciated.
>
> David


How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
I'm attempting to use the LyZ plugin for Zotero and LyX and it
requires the LyX server to be present.

I've looked on the LyX wiki for information and it makes reference to
.lyxpipe.in and .lyxpipe.out but these are not present when I install
LyX from the Ubuntu repository.

What are these files and how can they be created? What information do
they need to contain?

Thanks for your help

Ant


SV: SV: problem to import LaTex document class for conf. paper

2011-02-18 Thread Ingar Pareliussen

>The layout from world scientific in lyx's wiki is not same in term
>of page margin.
>The one for this particular conference is slightly smaller.

If this is the only difference you could try to set the correct margins
in lyx, this should take precedence over the margin set in the class.
But I guess there are some other more subtle differences...

>However, new problem appear. When I try to change setting in
>Lyx:Document Setting to 'manuscript (ws-procs9x6)', a dialog box
>The document class ws-procs9x6 could not be loaded.'
>Then another dialog box 'Unable to set document class.'
>What happen actually?

Hard to know, I do not know mactex, however, from your
description LyX is locating the .layout file fine. But when exporting
to LaTeX, LaTeX could not find the .cls file. This is usually caused
by LaTeX not having found the .cls file. So you need to be certain that
it lies somewhere LaTeX can find it, and that MacTeX has been 
"reconfigured" after the the .cls file is installed. 

Maybe this could be a start for further reading:
http://macosx-tex.576846.n2.nabble.com/Adding-new-class-td2319812.html

hth,
Ingar

Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
> I'm attempting to use the LyZ plugin for Zotero and LyX and it
> requires the LyX server to be present.
> 
> I've looked on the LyX wiki for information and it makes reference to
> .lyxpipe.in and .lyxpipe.out but these are not present when I install
> LyX from the Ubuntu repository.
> 
> What are these files and how can they be created? What information do
> they need to contain?

try to run lyx and look into .lyx directory in your home. better than
wiki is to read documentation manuals i guess. you can also set the directory
in preferences.

hopefully we put all of them to web with lyx 2.0, since we have xhtml
output now :)

pavel


Re: How to access graphics files exported from LyX from LaTeX insets?

2011-02-18 Thread Kuba Ober
On Feb 17, 2011, at 8:58 PM, Richard Heck wrote:

> On 02/17/2011 07:05 PM, Kuba Ober wrote:
>> Now I'm trying to add graphics to the page header in the document preamble, 
>> and I'd
>> like to be able somehow to refer to the graphics file exported by LyX. What 
>> I need
>> is a way of knowing that file foo.eps got exported as baz_bar_foo.eps to the 
>> temp
>> directory.
>> 
>> This also applies to not being able to, say, have an \includegraphics{foo} 
>> in a LaTeX inset: LyX only processes graphics insets when exporting files, 
>> it does not detect manually inserted \includegraphics.
>> 
>> A solution to my problem would be either:
>> 1. how to "predict" (perhaps LyX could insert a macro for each exported 
>> file?)
>> exported graphics file's name.
>> 
> There's a specific routine in the LyX source that produces this "mangled" 
> filename. You can have a look at it if you want to see how it works.
> 
>> 2. how to force LyX to automagically process \includegraphics{} in LaTeX 
>> insets,
>> document preamble, etc.
>> 
> It's kind of LyX's policy that you are on your own as far as ERT, etc, is 
> concerned. Parsing this stuff would be very difficult.
> 
> That said, if the graphic is in some location LaTeX knows about---e.g., the 
> same directory as the LaTeX file, or somewhere else that LaTeX can find 
> it---then LaTeX will find it just as if you were running LaTeX manually on 
> the file. So you don't need to refer to LyX's exported file but can just 
> refer to your original.

The problem is that the LaTeX file is in a transient, temporary location that 
LyX creates when exporting (say to dvi). There is no way for me to put anything 
there.

This problem seems to apply not only to graphics, but to any file that's 
included/referenced in ERT, document preamble, etc.

So, the general problem is thus: LyX prevents me from referencing any files 
that it doesn't know about in the LaTeX output.

This completely breaks things that are easy when you use plain LaTeX: say that 
you want to include graphics in the page header/footer. There's no way to do it 
directly in LyX (or is there?), so you have to put the header
definition in ERT or in the preamble. But the files that I have in the 
directory where the .lyx document resides are inaccessible to LaTeX unless LyX 
knows about them and copies them into the temp directory!

In general case, you cannot refer to files outside of the directory where the 
exported LaTeX file resides, since they may well contain spaces: this is simply 
a mis-feature of LaTeX that LyX works around. It's just that the workaround is 
not exposed in any way other than via the inset/include mechanism. It is also 
impossible to know in general where the .lyx file resides: to refer to it from 
the LyX's export directory you'd need a full path, and that may well be 
anywhere on a user's system. Hardcoding the path, even if it contained no 
spaces, still leaves you with broken output as soon as you move the .lyx file 
anywhere, or send it to someone, etc.

I'm thinking of a following feature that would fix it:

A list of "extra" files in the document settings dialog, that LyX moves over to 
the export directory along with other files it knows about (the exported LaTeX 
output, [converted] graphics, etc). There would be two entries per file: the 
full path, and the output (exported) file name. By default, the output file 
name would simply be the path-less name of the source file. In case of 
conflicts, numeric suffixes could be automatically appended. A checkbox would 
enable a custom output file name in cases where it'd help.

Would this be something that could be accepted as a patch this late in the 2.0 
cycle? I think I could give it a shot.

Cheers, Kuba

Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Christopher Reeve
> Yes, this is the problem.
> I've made the last Tiger compatible .dmg for alpha6.
> I'll provide one more actual soon.
>

Thanks Stephan. It is *so* great to have spell checking on the fly!

There is one feature, which I wonder if it is not too late to request for in
2.0. That is, when one selects all the text (ctrl-a/cmd-a), that if one does
so within a box, such as a mini page or caption, that only the content of
the box is selected. Outside any box would select the whole document. Just
imagine how annoying it would be if when you are writing an email online and
go ctrl-a and the whole email page was selected?! What do you think?

Doing two ctr-a's could optionally still select the whole document. One
current annoying feature of doing a ctrl-a and then an esc is that one loses
one's current place, which can take a moment to find again in a long
document.


> Has anyone else got lyx 2.0 running on mac 10.4?
>>
>
> Not me. I don't have it. (Don't know which smiley I should put here... :-))
>

The reason I have not updated is that I didn't have the time to set up all
the linux software again that took me ages to set up and was using daily.
Now I don't know if I should wait till summer for yet the next OS release!


Re: How can I set up the lyxserver?

2011-02-18 Thread Antonio Roberts
> try to run lyx and look into .lyx directory in your home. better than
> wiki is to read documentation manuals i guess. you can also set the directory
> in preferences.
I ran lyx and looked in the the .lyx folder but the only files there
are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
preferences, session and textclass.lst

Should there be other files?

Also, just to be completely sure, when setting up the path for the
lyxserver pipe is it supposed to point to a specific folder/file?

Ant


On 18 February 2011 16:01, Pavel Sanda  wrote:
> Antonio Roberts wrote:
>> I'm attempting to use the LyZ plugin for Zotero and LyX and it
>> requires the LyX server to be present.
>>
>> I've looked on the LyX wiki for information and it makes reference to
>> .lyxpipe.in and .lyxpipe.out but these are not present when I install
>> LyX from the Ubuntu repository.
>>
>> What are these files and how can they be created? What information do
>> they need to contain?
>
> try to run lyx and look into .lyx directory in your home. better than
> wiki is to read documentation manuals i guess. you can also set the directory
> in preferences.
>
> hopefully we put all of them to web with lyx 2.0, since we have xhtml
> output now :)
>
> pavel
>


Re: How can I set up the lyxserver?

2011-02-18 Thread Pavel Sanda
Antonio Roberts wrote:
> > try to run lyx and look into .lyx directory in your home. better than
> > wiki is to read documentation manuals i guess. you can also set the 
> > directory
> > in preferences.
> I ran lyx and looked in the the .lyx folder but the only files there
> are configure.log, lyxmodules.lst, lyxrc.defaults, packages.lst,
> preferences, session and textclass.lst
> 
> Should there be other files?

ok, i was trying pure luck without checking. looking here socket is created by 
default
in /tmp/lyx_tmpdir.X/lyxsocket. 

> Also, just to be completely sure, when setting up the path for the
> lyxserver pipe is it supposed to point to a specific folder/file?

you can choose any folder you want. try to run "lyxclient" if you want
to see the path in the current running instance and when nothing was set up...

pavel


Re: Should the dmg installer for LyX 2.0 beta* work on Mac OS 10.4?

2011-02-18 Thread Pavel Sanda
Christopher Reeve wrote:
> There is one feature, which I wonder if it is not too late to request for in

workaround is to bind inset-select-all to c-a on you system. its not exatly the 
thing
but similar enough.

pavel


Re: problem to import LaTex document class for conf. paper

2011-02-18 Thread yusof
Hi Gunter,

This is 'ws-procs9x6.layout'

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ws-procs9x6]{manuscript (ws-procs9x6)}
# Read the definitions from article.layout
Input article.layout

I just follow example from lyx wiki

When I want to view DVI, this error occur;

Error:
LaTeX Error: Unknown option 'English' for package 'graphics'.

Description:
 \if
!\Gin@driver!
The option `english' was not declared in package `graphics', perhaps you
misspelled its name. Try typingto proceed.

I quite suspicious it is something to do with document class 
but I cannot locate this error.

Thanks



Re: Customising Index Title & Body Text

2011-02-18 Thread Clive_Libotte
On 12/02/11 18:23, Clive_Libotte wrote:
> On 07/02/11 16:42, Clive_Libotte wrote:
>> Dear Lyxers,
>> I have spent hundreds of hours hand-crafting the front matter of a book,
>> but one area has me stumped. How do I access a method of customising
>> the Index title and it's body text. I have not found anything reliable
>> on the Web or in this list. Where is the documentation on this -- plenty
>> on the customising of the TOC, getting on with that. Thanks for your
>> knowledgeable help.
>>
>> Clive Libotte.
>>
> Replying to myself (I think, having just set up the list on my email)
> Thanks to Marcelo and Sefano for their prompt replies. I did not need
> the additional tex packages recommended, as I wanted only the titles and
> page numbering  in the Index, TOC, List of Figures and List of Tables to
> match the graphics of the main text; the body text was all right. So my
> heading Customising Index Title & Body Text is too expansive -- sorry.
> Your replies sent me on new lines of research though, which were
> successful. For the benefit of other newcomers to Lyx; the lines of code
> that I used are as follows. Note, that I have the fancyhdr package
> loaded with document class book, Lyx version 1.6.7. The front matter
> page numbering style is set early and carries on though the Table of
> Contents on to the end of the front matter. The Index is numbered the
> same as the main text. You set the numbering styles with the package
> fancyhdr.
> 
> To change the Index title font to match the chapter titles, do the
> following in ERT just before the embedded Index label:-
> 
> \makeatletter
> \let\ps@plain\ps@fancy
> \makeatother
> \renewcommand\indexname{\bfseries \sffamily \Huge Index}
> \addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index}
> 
> You can do the same with the TOC, List of Figures, List of Tables by
> changing the "\indexname" to "\contentsname", \listfigurename" or
> "\listtablename" as required. The last line of the code "\addcontents
> ..." is to add the Index title to the TOC which is not done as default.
> 
> 
> 
> Hope this help others.
> 
Replying to myself once more for the benefit of the newsgroup.
Upon proof reading the output, the last line in the above code
\addcontentsline{toc}{chapter}{\bfseries \sffamily \large Index} is not
correct, because the commands \bfseries \sffamily \large, cause an
unexpected result which turns up in the TOC. The entry "Index" in the
TOC does indeed appear, but in the serif font instead of the sanserif
font with the associated page number in the correct serif font (all the
page numbers in the TOC are in serif font, so that it matches). The
correct way to change the "Index" entry to sanserif (to match the other
chapter headings) in the TOC is like this.
load the tocloft package in the preamble \usepackage{tocloft}
insert the ERT code just before the "Table of Contents" label like this,
\renewcommand{cftchapfont}{\bfseries \sffamily \normalsize}. Now the
"Index" entry is sanserif matching the other chapter entries.

So I did end up needing an additional package to do this job after all;
can't always keep things simple!


-- 
Clive Libotte, IEng. MInstMC.






How! -- Index with Balanced Columns.

2011-02-18 Thread Clive_Libotte
Dear Lyxers
I am using Lyx 1.6.7, Book Class, on openSUSE 11.1. I want to convert
the standard two-column Index behavior to achieve balanced columns on
the last Index page.( that is, from a single column down the left-hand
side of the page with an empty column the right-hand side, to two
columns of equal length reaching approxmimately half-way down the page).

I have searched and found the following advice and code.
Load the multicol package.

 \usepackage{multicol}

Enter code in ERT just before the Index label

%change the index environment to achieve balanced columns on last page
\let\orgtheindex\theindex
\let\orgendtheindex\endtheindex
\def\theindex{%
 \def\twocolumn{\begin{multicols}{2}}%
 \def\onecolumn{}%
 \clearpage
 \orgtheindex
}
\def\endtheindex{%
 \end{multicols}%
 \orgendtheindex
}

This code is pasted from the Internet but not for the Lyx Book Class;
although the code appears in several places in almost indentical form.
It does not throw up an error, not does it have any effect on the Index;
but it does mess up the following page by moving a float picture. So
there is some interaction, but not that desired. There is one small
additional effect -- the word Index in normal font appears at the end of
the Index.

Would anyone explain how this approach can be made to work?

Thanks for your expertise.

Kind Regards,

-- 
Clive Libotte, IEng. MInstMC.