Re: Font Problem with Lyx - Metric (TFM) file not found

2011-06-27 Thread Guenter Milde
On 2011-06-26, ölm wrote:
 same problem with lyx 2.0.0 under ubuntu 11.04 64bit
 but THE SAME document is working under WinXP32bitSP3

The Greek fonts are missing. With Debian or Ubuntu, install the package
texlive-lang-greek.

 only the (pre)view using xetex is working without error, but all greek
 letters and italic are then missing.

With XeTeX, you do not get errors if the font misses some glyphs. It
is up to you to spot this in the document and to change to some more
complet font (e.g. the DejaVu).

 under windows everything is working (except correct linebreaks at
 inline-formulas at description style. but thats another story.
 regards,

It looks like there is a more complete TeX installation on this
machine, or MikTeX's auto-installer fetched the missing packages.

Günter



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-27 Thread Matthias Hunstig
Hello,

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Paul Rubin
Sent: Friday, June 24, 2011 11:39 PM

 When you successfully run latex at a command prompt, you are doing so with 
 the limited rights account, correct?

Yes.

 Am I correct in assuming that if you log in with the local admin account, LyX 
 works correctly for you?

Yes.

 One thing you might try is to delete the local LyX directory for the limited 
 rights user, then restart LyX (as the limited rights user) and let it try to 
 rebuild that directory.  I think the directory is usually stored at 
 C:\Documents and Settings\limited rights user id\Application Data\lyx.  
 (Unfortunately I don't have access to a Win XP machine anymore.)  Just delete 
 the entire directory.  I you have modified any bind or layout files, you 
 might want to back those up first, but if this is an out-of-the-box LyX 
 installation there is nothing there you need to worry about.

I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
probably is related to some change from 1.6 to 2.0.

Matthias



Re: need suggestion on book

2011-06-27 Thread Guenter Milde
On 2011-06-26, Steve Litt wrote:
 On Sunday 26 June 2011 15:09:41 Shantanu N Kulkarni wrote:

 On my setup, Century Schoolbook is the least pale font. I use Century 
 Schoolbook on all my books, although I'm looking for a more screen-
 readable font for my pure eBooks.

Free screen-optimized fonts are e.g. DejaVu (package Bera in standard
TeX or via (Lua|Xe)TeX) and Googles Droid fonts (also available for
standard TeX on CTAN but not (yet) supported by LyX's font GUI (i.e.
set to Default and load the package in the user preamble).

Günter



LyX, bm package and math alphabets

2011-06-27 Thread Andrew Steele
I am using the bm package in conjunction with LyX, and my document
recently started failing to build, complaining of too many math
alphabets. This can be fixed by limiting the number of alphabets that
bm uses, by placing the following commands in the preamble:

\newcommand{\hmmax}{0}
\newcommand{\bmmax}{3}

BEFORE the \usepackage{bm} statement. Full details here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph

The problem then is that LyX places users' custom preamble after its
own automated one, so it seems impossible to make those declarations
before \usepackage{bm}. Is there any way around this other than
exporting as LaTeX and building those files externally?

Thanks!

-- 
Andrew Steele
http://andrewsteele.co.uk/


Re: Can't convert

2011-06-27 Thread Richard Heck
On 06/26/2011 05:54 PM, William Hanson wrote:
 Richard, Paul

 In response to Paul's latest message: 
 1.  No, I can't produce pdf output in LyX 2.0. 
 2.  In each version of LyX, what do you see in the Converter and
 Extra flag fields when you go to Tools  Preferences...  File
 Handling  Converters and highlight LaTeX (pdflatex) - PDF
 (pdflatex)? 
 In 1.6.7 I see pdflatex $$i in Converter and latex in Extra Flag. 
 In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
 Extra Flag. 
 3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
 assume Paul means LaTeX (plain) - DraftDVI.)
 In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
 In 2.0.0 I see pplatex in Converter and latex in Extra Flag.

Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from HelpAbout),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

article article article false 

Change false to true, close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the configuration routine.

Richard



Re: LyX, bm package and math alphabets

2011-06-27 Thread Richard Heck
On 06/27/2011 10:13 AM, Andrew Steele wrote:
 I am using the bm package in conjunction with LyX, and my document
 recently started failing to build, complaining of too many math
 alphabets. This can be fixed by limiting the number of alphabets that
 bm uses, by placing the following commands in the preamble:

 \newcommand{\hmmax}{0}
 \newcommand{\bmmax}{3}

 BEFORE the \usepackage{bm} statement. Full details here:
 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph

 The problem then is that LyX places users' custom preamble after its
 own automated one, so it seems impossible to make those declarations
 before \usepackage{bm}. Is there any way around this other than
 exporting as LaTeX and building those files externally?

The only option here is to stop LyX from loading bm.sty automatically,
so you can load it yourself. We can do this with a module:

==

#\DeclareLyXModule{Suppress bm.sty}
#DescriptionBegin
# Stop LyX from autoloading bm.sty.
#DescriptionEnd

Format 35

Provides bm 1

==

Put that in a file nobm.module, in your local LyX layout directory
(~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
DocumentSettingsModules, and add it. This will allow you to load
bm.sty yourself in the preamble, after the commands you mentioned.

Richard

PS You could also put the non-commented lines into
DocumentSettingsLocal Layout, but that isn't reusable.




openning lyx1.6 files with lyx2

2011-06-27 Thread Adi Shraibman
Hi,

I am using lyx for a while now. I used lyx 1.6 on windows vista. I bought a
new computer
lately and installed lyx 2. The problem is it does not read the old lyx
files. what can I do ?

Many thanks,

Adi


Color part of text

2011-06-27 Thread Fernando Basso

My first day with Lyx. It is just amazing.

How can I change the colors of just some parts of text? Actually, I found
out that I can 'select' the text I want - right click - text style - 
customized - color.

Just that it is too much work.

In the shortcuts I found a set-color function that says it should be set to:

set-color lyx_name x11_name

I did:

set-color green green

...but it didn't do anything.

Any help would be appreciated.



Re: openning lyx1.6 files with lyx2

2011-06-27 Thread Richard Heck
On 06/27/2011 11:43 AM, Adi Shraibman wrote:
  
 Hi,
  
 I am using lyx for a while now. I used lyx 1.6 on windows vista. I
 bought a new computer
 lately and installed lyx 2. The problem is it does not read the old
 lyx files. what can I do ?
  
There have been reports of this problem. LyX 2.0 will read old LyX
files, but some people seem to have had problems with the Python
installation. There is some discussion of this elsewhere on the mailing
list, but I'm not sure a definitive solution has been reached.

Richard



Re: Color part of text

2011-06-27 Thread Richard Heck
On 06/27/2011 09:06 AM, Fernando Basso wrote:
 My first day with Lyx. It is just amazing.

 How can I change the colors of just some parts of text? Actually, I found
 out that I can 'select' the text I want - right click - text style
 - customized - color.
 Just that it is too much work.

 In the shortcuts I found a set-color function that says it should be
 set to:

 set-color lyx_name x11_name

 I did:

 set-color green green

 ...but it didn't do anything.

That won't help. It's got to do with the LyX display.

If you are going regularly to color text, then you should define a
character style to do it. See the relevant part of HelpCustomization,
and look at e.g. the logicalmkup.module file for a model you can follow.

Richard



Re: Can't convert

2011-06-27 Thread William Hanson
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a message
from Pareto File Cure saying that I don't have the proper application to
open lst files.  I get a similar message from Windows.

Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck rgh...@comcast.net wrote:

 On 06/26/2011 05:54 PM, William Hanson wrote:
  Richard, Paul
 
  In response to Paul's latest message:
  1.  No, I can't produce pdf output in LyX 2.0.
  2.  In each version of LyX, what do you see in the Converter and
  Extra flag fields when you go to Tools  Preferences...  File
  Handling  Converters and highlight LaTeX (pdflatex) - PDF
  (pdflatex)?
  In 1.6.7 I see pdflatex $$i in Converter and latex in Extra Flag.
  In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
  Extra Flag.
  3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
  assume Paul means LaTeX (plain) - DraftDVI.)
  In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
  In 2.0.0 I see pplatex in Converter and latex in Extra Flag.
 
 Let's try something else: We'll trick LyX into thinking these classes
 are installed and then see what happens.

 In your LyX user directory (again, you can find this from HelpAbout),
 there is a file textclass.lst. This is the file that tells LyX what
 classes and packages are installed, etc. In it, you should find a line
 that looks like this:

 article article article false 

 Change false to true, close the file and restart LyX. Can you
 convert now? If so, then the issue is purely with the configuration
 routine.

 Richard




Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Fernando Basso
Lyx help mentions: Document - Settings - Text_Layout - Indent or 
Skip. I can't
find it (lyx 1.6.10 - arch linux). It mentions 
\setlength{\parindent}{Length}, but I

can't find the place to paste it.

What I am trying to accomplish is separate paragraphs and indent the
first paragraph, even if it doesn't come after another paragraph.



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Richard Heck
On 06/27/2011 11:33 AM, Fernando Basso wrote:
 Lyx help mentions: Document - Settings - Text_Layout - Indent or
 Skip. I can't
 find it (lyx 1.6.10 - arch linux).

Under either Indentation or Vertical Space, you can choose Custom,
then enter the custom amount in the field below.

rh



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Guenter Milde
On 2011-06-27, Fernando Basso wrote:

 Lyx help mentions: Document - Settings - Text_Layout - Indent or 
 Skip. I can't
 find it (lyx 1.6.10 - arch linux). 

Strange. If I start my LyX 1.6.x with English locale, its under

Document - Settings - Text_Layout - Separate Paragraphs with:
   (*) Indentation
   ( ) Vertical Space
   
 It mentions 
 \setlength{\parindent}{Length}, but I
 can't find the place to paste it.

This should go into the LaTeX Preamble (last tab in DocumentSettings).
Of course with a valid TeX length like e.g.

 \setlength{\parindent}{2em}

 What I am trying to accomplish is separate paragraphs and indent the
 first paragraph, even if it doesn't come after another paragraph.

Do you want both, vertical space and indentation?
Then you need to set this in the LaTeX preamble.

To indent the first paragraph after headings etc, use the indentfirst
package, i.e. in the LaTeX preamble write

\usepackage{indentfirst}

Beware: LyX's implementation of (*) Vertical Space is broken -- it
inserts too much space in lists (enumeration, itemize, ...) and similar
places (see l2tabuen.pdf).

Günter



Re: LyX, bm package and math alphabets

2011-06-27 Thread Guenter Milde
On 2011-06-27, Richard Heck wrote:
 On 06/27/2011 10:13 AM, Andrew Steele wrote:
 I am using the bm package in conjunction with LyX, and my document
 recently started failing to build, complaining of too many math
 alphabets. This can be fixed by limiting the number of alphabets that
 bm uses, by placing the following commands in the preamble:

 \newcommand{\hmmax}{0}
 \newcommand{\bmmax}{3}

 BEFORE the \usepackage{bm} statement.

 The only option here is to stop LyX from loading bm.sty automatically,
 so you can load it yourself. We can do this with a module:

==

 #\DeclareLyXModule{Suppress bm.sty}
 #DescriptionBegin
 # Stop LyX from autoloading bm.sty.
 #DescriptionEnd

 Format 35

 Provides bm 1

==

 Put that in a file nobm.module, in your local LyX layout directory
 (~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
 DocumentSettingsModules, and add it. This will allow you to load
 bm.sty yourself in the preamble, after the commands you mentioned.

 Richard

 PS You could also put the non-commented lines into
 DocumentSettingsLocal Layout, but that isn't reusable.

Of course, you can also set the options and load bm in the module with
something like

Preamble
  \newcommand{\hmmax}{0}
  \newcommand{\bmmax}{3}
  \usepackage{bm}
EndPreamble

See HelpCustomization for details.

I think the tip to use a Local Layout to override LyX auto-package
loading might become an FAQ - maybe it should find a place on the wiki.

Günter



Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 26.06.2011 07:09, schrieb Liviu Andronic:


Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer?


In my old alternative LyX for Win installer you could choose. For the next installer version we plan 
to re-enable this.



I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.


You can use them with any LaTeX distribution, of course also with MiKTeX.


Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows?


Yes, I need to test the installer together with TeXLive (how can we install all the packages used by 
LyX, the LyX-specific package, how can I uninstall packages via the command line, etc.

But at first I need to finish the new installer. Later we can add new features.

regards Uwe


Re: lyx and texlive on windows?

2011-06-27 Thread Liviu Andronic
On Mon, Jun 27, 2011 at 10:41 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 26.06.2011 07:09, schrieb Liviu Andronic:

 Is there a reason for not offering a choice between MikTeX and TeX
 Live on the Windows installer?

 In my old alternative LyX for Win installer you could choose. For the next
 installer version we plan to re-enable this.

Great, nice news.


 I've got very used to TeX Live on Linux
 and I'd like to use it for Windows, too. I'm specifically missing the
 'getnonfreefonts' utility.

 You can use them with any LaTeX distribution, of course also with MiKTeX.

Are you saying that getnonfreefonts [1] can be used with MiKTeX? From
its home page, it seems that it's only for TL.
[1] http://tug.org/fonts/getnonfreefonts/


 Is following the wiki instructions [1] a good idea? Are there any
 drawbacks in using TeX Live instead of MikTeX on Windows?

 Yes, I need to test the installer together with TeXLive (how can we install
 all the packages used by LyX, the LyX-specific package, how can I uninstall
 packages via the command line, etc.

For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager. (Linux distributions omit it, since it seems to
clash with distro's own package management system.)


 But at first I need to finish the new installer. Later we can add new
 features.

Nice. Thanks
Liviu


Re: Can't convert

2011-06-27 Thread Paul A. Rubin

It's a text file.  You can open it with either Notepad or Wordpad.

Paul

On 06/27/2011 01:32 PM, William Hanson wrote:
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a 
message from Pareto File Cure saying that I don't have the proper 
application to open lst files.  I get a similar message from Windows.


Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck rgh...@comcast.net 
mailto:rgh...@comcast.net wrote:


On 06/26/2011 05:54 PM, William Hanson wrote:
 Richard, Paul

 In response to Paul's latest message:
 1.  No, I can't produce pdf output in LyX 2.0.
 2.  In each version of LyX, what do you see in the Converter and
 Extra flag fields when you go to Tools  Preferences...  File
 Handling  Converters and highlight LaTeX (pdflatex) - PDF
 (pdflatex)?
 In 1.6.7 I see pdflatex $$i in Converter and latex in Extra
Flag.
 In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
 Extra Flag.
 3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
 assume Paul means LaTeX (plain) - DraftDVI.)
 In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
 In 2.0.0 I see pplatex in Converter and latex in Extra Flag.

Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from HelpAbout),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

article article article false 

Change false to true, close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the
configuration routine.

Richard




Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 27.06.2011 23:16, schrieb Liviu Andronic:


You can use them with any LaTeX distribution, of course also with MiKTeX.


Are you saying that getnonfreefonts [1] can be used with MiKTeX?


Sure, you can install any font to any distribution. In case of MiKTeX you need to install the fonts 
manually because the MiKTeX developer doesn't support packages and fonts that are not under a free 
license because some authors of non-free stuff made trouble.



For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager.


tlmgr is by default part of any TeXLive installation.


(Linux distributions omit it, since it seems to
clash with distro's own package management system.)


Yes, and this is very nasty. But you can avoid this by installing TeXLive by yourself (without using 
the distro's package manager).


regards Uwe


Bizarre R (TSA package) + Sweave LaTeX error

2011-06-27 Thread Lucas
When I try to use the TSA::prewhiten function from within a Sweave (or 
pgfSweave, the bug triggers either way it seems) code chunk inside a LyX 
document, I get this error:

20:35:49.417: Preview: Fontsize 10pt
20:35:49.418: Preview: PDFoutput 1
20:35:49.419: ! Misplaced alignment tab character .
20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x 
20:35:49.421:y% 
20:35:49.422: Here is how much of TeX's memory you used:
20:35:49.428:  9510 strings out of 495061
20:35:49.429:  179132 string characters out of 1182621
20:35:49.430:  210888 words of memory out of 300
20:35:49.431:  12540 multiletter control sequences out of 15000+5
20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
20:35:49.433:  28 hyphenation exceptions out of 8191
20:35:49.439:  56i,3n,55p,425b,492s stack positions out of 
5000i,500n,1p,20b,5s
20:35:49.440: 
20:35:49.441: !  == Fatal error occurred, no output PDF file produced!
20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) : 
20:35:49.443: TeX was unable to calculate metrics for the following string
20:35:49.444: or character:
20:35:49.449: 
20:35:49.450:   x  y
20:35:49.451: 
20:35:49.452: Common reasons for failure include:
20:35:49.453:   * The string contains a character which is special to LaTeX 
unless
20:35:49.454: escaped properly, such as % or $.
20:35:49.455:   * The string makes use of LaTeX commands provided by a package 
and
20:35:49.464: the tikzDevice was not told to load the package.
20:35:49.466: 
20:35:49.468: The contents of the LaTeX log of the aborted run have been 
printed 
above,
20:35:49.471: it may contain additional details as to why the metric 
calculation 
failed.

Document that reproduces this error (requires a working R+Sweave+LyX setup with 
the 'TSA' R package from http://cran.r-project.org/web/packages/TSA/index.html):
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\begin_modules
sweave
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Chunk
explode,fig=true,height=3,width=5=
\end_layout

\begin_layout Chunk
library(TSA)
\end_layout

\begin_layout Chunk
data(bluebird)
\end_layout

\begin_layout Chunk
prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
\end_layout

\begin_layout Chunk
@
\end_layout

\end_body
\end_document

--Lucas




How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-27 Thread PG
Hi all,

Is there a way to make formatted reference in Lyx 2.0 capitalized?
Currently when I cross-reference to a subsection, it will produce Latex code
\subref{xxx}, and the result will be section X.Y. I'd like to make the
section capitalized, but I can't find the option or settings to. I think I can
do it by replacing the \subref with \Subref in Latex code, but does Lyx has
this option?

Thank in advance.



Re: Font Problem with Lyx - Metric (TFM) file not found

2011-06-27 Thread Guenter Milde
On 2011-06-26, ölm wrote:
 same problem with lyx 2.0.0 under ubuntu 11.04 64bit
 but THE SAME document is working under WinXP32bitSP3

The Greek fonts are missing. With Debian or Ubuntu, install the package
texlive-lang-greek.

 only the (pre)view using xetex is working without error, but all greek
 letters and italic are then missing.

With XeTeX, you do not get errors if the font misses some glyphs. It
is up to you to spot this in the document and to change to some more
complet font (e.g. the DejaVu).

 under windows everything is working (except correct linebreaks at
 inline-formulas at description style. but thats another story.
 regards,

It looks like there is a more complete TeX installation on this
machine, or MikTeX's auto-installer fetched the missing packages.

Günter



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-27 Thread Matthias Hunstig
Hello,

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Paul Rubin
Sent: Friday, June 24, 2011 11:39 PM

 When you successfully run latex at a command prompt, you are doing so with 
 the limited rights account, correct?

Yes.

 Am I correct in assuming that if you log in with the local admin account, LyX 
 works correctly for you?

Yes.

 One thing you might try is to delete the local LyX directory for the limited 
 rights user, then restart LyX (as the limited rights user) and let it try to 
 rebuild that directory.  I think the directory is usually stored at 
 C:\Documents and Settings\limited rights user id\Application Data\lyx.  
 (Unfortunately I don't have access to a Win XP machine anymore.)  Just delete 
 the entire directory.  I you have modified any bind or layout files, you 
 might want to back those up first, but if this is an out-of-the-box LyX 
 installation there is nothing there you need to worry about.

I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
probably is related to some change from 1.6 to 2.0.

Matthias



Re: need suggestion on book

2011-06-27 Thread Guenter Milde
On 2011-06-26, Steve Litt wrote:
 On Sunday 26 June 2011 15:09:41 Shantanu N Kulkarni wrote:

 On my setup, Century Schoolbook is the least pale font. I use Century 
 Schoolbook on all my books, although I'm looking for a more screen-
 readable font for my pure eBooks.

Free screen-optimized fonts are e.g. DejaVu (package Bera in standard
TeX or via (Lua|Xe)TeX) and Googles Droid fonts (also available for
standard TeX on CTAN but not (yet) supported by LyX's font GUI (i.e.
set to Default and load the package in the user preamble).

Günter



LyX, bm package and math alphabets

2011-06-27 Thread Andrew Steele
I am using the bm package in conjunction with LyX, and my document
recently started failing to build, complaining of too many math
alphabets. This can be fixed by limiting the number of alphabets that
bm uses, by placing the following commands in the preamble:

\newcommand{\hmmax}{0}
\newcommand{\bmmax}{3}

BEFORE the \usepackage{bm} statement. Full details here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph

The problem then is that LyX places users' custom preamble after its
own automated one, so it seems impossible to make those declarations
before \usepackage{bm}. Is there any way around this other than
exporting as LaTeX and building those files externally?

Thanks!

-- 
Andrew Steele
http://andrewsteele.co.uk/


Re: Can't convert

2011-06-27 Thread Richard Heck
On 06/26/2011 05:54 PM, William Hanson wrote:
 Richard, Paul

 In response to Paul's latest message: 
 1.  No, I can't produce pdf output in LyX 2.0. 
 2.  In each version of LyX, what do you see in the Converter and
 Extra flag fields when you go to Tools  Preferences...  File
 Handling  Converters and highlight LaTeX (pdflatex) - PDF
 (pdflatex)? 
 In 1.6.7 I see pdflatex $$i in Converter and latex in Extra Flag. 
 In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
 Extra Flag. 
 3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
 assume Paul means LaTeX (plain) - DraftDVI.)
 In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
 In 2.0.0 I see pplatex in Converter and latex in Extra Flag.

Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from HelpAbout),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

article article article false 

Change false to true, close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the configuration routine.

Richard



Re: LyX, bm package and math alphabets

2011-06-27 Thread Richard Heck
On 06/27/2011 10:13 AM, Andrew Steele wrote:
 I am using the bm package in conjunction with LyX, and my document
 recently started failing to build, complaining of too many math
 alphabets. This can be fixed by limiting the number of alphabets that
 bm uses, by placing the following commands in the preamble:

 \newcommand{\hmmax}{0}
 \newcommand{\bmmax}{3}

 BEFORE the \usepackage{bm} statement. Full details here:
 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph

 The problem then is that LyX places users' custom preamble after its
 own automated one, so it seems impossible to make those declarations
 before \usepackage{bm}. Is there any way around this other than
 exporting as LaTeX and building those files externally?

The only option here is to stop LyX from loading bm.sty automatically,
so you can load it yourself. We can do this with a module:

==

#\DeclareLyXModule{Suppress bm.sty}
#DescriptionBegin
# Stop LyX from autoloading bm.sty.
#DescriptionEnd

Format 35

Provides bm 1

==

Put that in a file nobm.module, in your local LyX layout directory
(~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
DocumentSettingsModules, and add it. This will allow you to load
bm.sty yourself in the preamble, after the commands you mentioned.

Richard

PS You could also put the non-commented lines into
DocumentSettingsLocal Layout, but that isn't reusable.




openning lyx1.6 files with lyx2

2011-06-27 Thread Adi Shraibman
Hi,

I am using lyx for a while now. I used lyx 1.6 on windows vista. I bought a
new computer
lately and installed lyx 2. The problem is it does not read the old lyx
files. what can I do ?

Many thanks,

Adi


Color part of text

2011-06-27 Thread Fernando Basso

My first day with Lyx. It is just amazing.

How can I change the colors of just some parts of text? Actually, I found
out that I can 'select' the text I want - right click - text style - 
customized - color.

Just that it is too much work.

In the shortcuts I found a set-color function that says it should be set to:

set-color lyx_name x11_name

I did:

set-color green green

...but it didn't do anything.

Any help would be appreciated.



Re: openning lyx1.6 files with lyx2

2011-06-27 Thread Richard Heck
On 06/27/2011 11:43 AM, Adi Shraibman wrote:
  
 Hi,
  
 I am using lyx for a while now. I used lyx 1.6 on windows vista. I
 bought a new computer
 lately and installed lyx 2. The problem is it does not read the old
 lyx files. what can I do ?
  
There have been reports of this problem. LyX 2.0 will read old LyX
files, but some people seem to have had problems with the Python
installation. There is some discussion of this elsewhere on the mailing
list, but I'm not sure a definitive solution has been reached.

Richard



Re: Color part of text

2011-06-27 Thread Richard Heck
On 06/27/2011 09:06 AM, Fernando Basso wrote:
 My first day with Lyx. It is just amazing.

 How can I change the colors of just some parts of text? Actually, I found
 out that I can 'select' the text I want - right click - text style
 - customized - color.
 Just that it is too much work.

 In the shortcuts I found a set-color function that says it should be
 set to:

 set-color lyx_name x11_name

 I did:

 set-color green green

 ...but it didn't do anything.

That won't help. It's got to do with the LyX display.

If you are going regularly to color text, then you should define a
character style to do it. See the relevant part of HelpCustomization,
and look at e.g. the logicalmkup.module file for a model you can follow.

Richard



Re: Can't convert

2011-06-27 Thread William Hanson
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a message
from Pareto File Cure saying that I don't have the proper application to
open lst files.  I get a similar message from Windows.

Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck rgh...@comcast.net wrote:

 On 06/26/2011 05:54 PM, William Hanson wrote:
  Richard, Paul
 
  In response to Paul's latest message:
  1.  No, I can't produce pdf output in LyX 2.0.
  2.  In each version of LyX, what do you see in the Converter and
  Extra flag fields when you go to Tools  Preferences...  File
  Handling  Converters and highlight LaTeX (pdflatex) - PDF
  (pdflatex)?
  In 1.6.7 I see pdflatex $$i in Converter and latex in Extra Flag.
  In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
  Extra Flag.
  3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
  assume Paul means LaTeX (plain) - DraftDVI.)
  In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
  In 2.0.0 I see pplatex in Converter and latex in Extra Flag.
 
 Let's try something else: We'll trick LyX into thinking these classes
 are installed and then see what happens.

 In your LyX user directory (again, you can find this from HelpAbout),
 there is a file textclass.lst. This is the file that tells LyX what
 classes and packages are installed, etc. In it, you should find a line
 that looks like this:

 article article article false 

 Change false to true, close the file and restart LyX. Can you
 convert now? If so, then the issue is purely with the configuration
 routine.

 Richard




Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Fernando Basso
Lyx help mentions: Document - Settings - Text_Layout - Indent or 
Skip. I can't
find it (lyx 1.6.10 - arch linux). It mentions 
\setlength{\parindent}{Length}, but I

can't find the place to paste it.

What I am trying to accomplish is separate paragraphs and indent the
first paragraph, even if it doesn't come after another paragraph.



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Richard Heck
On 06/27/2011 11:33 AM, Fernando Basso wrote:
 Lyx help mentions: Document - Settings - Text_Layout - Indent or
 Skip. I can't
 find it (lyx 1.6.10 - arch linux).

Under either Indentation or Vertical Space, you can choose Custom,
then enter the custom amount in the field below.

rh



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Guenter Milde
On 2011-06-27, Fernando Basso wrote:

 Lyx help mentions: Document - Settings - Text_Layout - Indent or 
 Skip. I can't
 find it (lyx 1.6.10 - arch linux). 

Strange. If I start my LyX 1.6.x with English locale, its under

Document - Settings - Text_Layout - Separate Paragraphs with:
   (*) Indentation
   ( ) Vertical Space
   
 It mentions 
 \setlength{\parindent}{Length}, but I
 can't find the place to paste it.

This should go into the LaTeX Preamble (last tab in DocumentSettings).
Of course with a valid TeX length like e.g.

 \setlength{\parindent}{2em}

 What I am trying to accomplish is separate paragraphs and indent the
 first paragraph, even if it doesn't come after another paragraph.

Do you want both, vertical space and indentation?
Then you need to set this in the LaTeX preamble.

To indent the first paragraph after headings etc, use the indentfirst
package, i.e. in the LaTeX preamble write

\usepackage{indentfirst}

Beware: LyX's implementation of (*) Vertical Space is broken -- it
inserts too much space in lists (enumeration, itemize, ...) and similar
places (see l2tabuen.pdf).

Günter



Re: LyX, bm package and math alphabets

2011-06-27 Thread Guenter Milde
On 2011-06-27, Richard Heck wrote:
 On 06/27/2011 10:13 AM, Andrew Steele wrote:
 I am using the bm package in conjunction with LyX, and my document
 recently started failing to build, complaining of too many math
 alphabets. This can be fixed by limiting the number of alphabets that
 bm uses, by placing the following commands in the preamble:

 \newcommand{\hmmax}{0}
 \newcommand{\bmmax}{3}

 BEFORE the \usepackage{bm} statement.

 The only option here is to stop LyX from loading bm.sty automatically,
 so you can load it yourself. We can do this with a module:

==

 #\DeclareLyXModule{Suppress bm.sty}
 #DescriptionBegin
 # Stop LyX from autoloading bm.sty.
 #DescriptionEnd

 Format 35

 Provides bm 1

==

 Put that in a file nobm.module, in your local LyX layout directory
 (~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
 DocumentSettingsModules, and add it. This will allow you to load
 bm.sty yourself in the preamble, after the commands you mentioned.

 Richard

 PS You could also put the non-commented lines into
 DocumentSettingsLocal Layout, but that isn't reusable.

Of course, you can also set the options and load bm in the module with
something like

Preamble
  \newcommand{\hmmax}{0}
  \newcommand{\bmmax}{3}
  \usepackage{bm}
EndPreamble

See HelpCustomization for details.

I think the tip to use a Local Layout to override LyX auto-package
loading might become an FAQ - maybe it should find a place on the wiki.

Günter



Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 26.06.2011 07:09, schrieb Liviu Andronic:


Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer?


In my old alternative LyX for Win installer you could choose. For the next installer version we plan 
to re-enable this.



I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.


You can use them with any LaTeX distribution, of course also with MiKTeX.


Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows?


Yes, I need to test the installer together with TeXLive (how can we install all the packages used by 
LyX, the LyX-specific package, how can I uninstall packages via the command line, etc.

But at first I need to finish the new installer. Later we can add new features.

regards Uwe


Re: lyx and texlive on windows?

2011-06-27 Thread Liviu Andronic
On Mon, Jun 27, 2011 at 10:41 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 26.06.2011 07:09, schrieb Liviu Andronic:

 Is there a reason for not offering a choice between MikTeX and TeX
 Live on the Windows installer?

 In my old alternative LyX for Win installer you could choose. For the next
 installer version we plan to re-enable this.

Great, nice news.


 I've got very used to TeX Live on Linux
 and I'd like to use it for Windows, too. I'm specifically missing the
 'getnonfreefonts' utility.

 You can use them with any LaTeX distribution, of course also with MiKTeX.

Are you saying that getnonfreefonts [1] can be used with MiKTeX? From
its home page, it seems that it's only for TL.
[1] http://tug.org/fonts/getnonfreefonts/


 Is following the wiki instructions [1] a good idea? Are there any
 drawbacks in using TeX Live instead of MikTeX on Windows?

 Yes, I need to test the installer together with TeXLive (how can we install
 all the packages used by LyX, the LyX-specific package, how can I uninstall
 packages via the command line, etc.

For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager. (Linux distributions omit it, since it seems to
clash with distro's own package management system.)


 But at first I need to finish the new installer. Later we can add new
 features.

Nice. Thanks
Liviu


Re: Can't convert

2011-06-27 Thread Paul A. Rubin

It's a text file.  You can open it with either Notepad or Wordpad.

Paul

On 06/27/2011 01:32 PM, William Hanson wrote:
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a 
message from Pareto File Cure saying that I don't have the proper 
application to open lst files.  I get a similar message from Windows.


Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck rgh...@comcast.net 
mailto:rgh...@comcast.net wrote:


On 06/26/2011 05:54 PM, William Hanson wrote:
 Richard, Paul

 In response to Paul's latest message:
 1.  No, I can't produce pdf output in LyX 2.0.
 2.  In each version of LyX, what do you see in the Converter and
 Extra flag fields when you go to Tools  Preferences...  File
 Handling  Converters and highlight LaTeX (pdflatex) - PDF
 (pdflatex)?
 In 1.6.7 I see pdflatex $$i in Converter and latex in Extra
Flag.
 In 2.0.0 I see pdflatex $$i in Converter and latex=pdflatex in
 Extra Flag.
 3.  What do you see when you highlight LaTeX (plain) - DVI?  (I
 assume Paul means LaTeX (plain) - DraftDVI.)
 In 1.6.7 I see pplatex in Converter and latex in Extra Flag.
 In 2.0.0 I see pplatex in Converter and latex in Extra Flag.

Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from HelpAbout),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

article article article false 

Change false to true, close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the
configuration routine.

Richard




Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 27.06.2011 23:16, schrieb Liviu Andronic:


You can use them with any LaTeX distribution, of course also with MiKTeX.


Are you saying that getnonfreefonts [1] can be used with MiKTeX?


Sure, you can install any font to any distribution. In case of MiKTeX you need to install the fonts 
manually because the MiKTeX developer doesn't support packages and fonts that are not under a free 
license because some authors of non-free stuff made trouble.



For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager.


tlmgr is by default part of any TeXLive installation.


(Linux distributions omit it, since it seems to
clash with distro's own package management system.)


Yes, and this is very nasty. But you can avoid this by installing TeXLive by yourself (without using 
the distro's package manager).


regards Uwe


Bizarre R (TSA package) + Sweave LaTeX error

2011-06-27 Thread Lucas
When I try to use the TSA::prewhiten function from within a Sweave (or 
pgfSweave, the bug triggers either way it seems) code chunk inside a LyX 
document, I get this error:

20:35:49.417: Preview: Fontsize 10pt
20:35:49.418: Preview: PDFoutput 1
20:35:49.419: ! Misplaced alignment tab character .
20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x 
20:35:49.421:y% 
20:35:49.422: Here is how much of TeX's memory you used:
20:35:49.428:  9510 strings out of 495061
20:35:49.429:  179132 string characters out of 1182621
20:35:49.430:  210888 words of memory out of 300
20:35:49.431:  12540 multiletter control sequences out of 15000+5
20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
20:35:49.433:  28 hyphenation exceptions out of 8191
20:35:49.439:  56i,3n,55p,425b,492s stack positions out of 
5000i,500n,1p,20b,5s
20:35:49.440: 
20:35:49.441: !  == Fatal error occurred, no output PDF file produced!
20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) : 
20:35:49.443: TeX was unable to calculate metrics for the following string
20:35:49.444: or character:
20:35:49.449: 
20:35:49.450:   x  y
20:35:49.451: 
20:35:49.452: Common reasons for failure include:
20:35:49.453:   * The string contains a character which is special to LaTeX 
unless
20:35:49.454: escaped properly, such as % or $.
20:35:49.455:   * The string makes use of LaTeX commands provided by a package 
and
20:35:49.464: the tikzDevice was not told to load the package.
20:35:49.466: 
20:35:49.468: The contents of the LaTeX log of the aborted run have been 
printed 
above,
20:35:49.471: it may contain additional details as to why the metric 
calculation 
failed.

Document that reproduces this error (requires a working R+Sweave+LyX setup with 
the 'TSA' R package from http://cran.r-project.org/web/packages/TSA/index.html):
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\begin_modules
sweave
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Chunk
explode,fig=true,height=3,width=5=
\end_layout

\begin_layout Chunk
library(TSA)
\end_layout

\begin_layout Chunk
data(bluebird)
\end_layout

\begin_layout Chunk
prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
\end_layout

\begin_layout Chunk
@
\end_layout

\end_body
\end_document

--Lucas




How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-27 Thread PG
Hi all,

Is there a way to make formatted reference in Lyx 2.0 capitalized?
Currently when I cross-reference to a subsection, it will produce Latex code
\subref{xxx}, and the result will be section X.Y. I'd like to make the
section capitalized, but I can't find the option or settings to. I think I can
do it by replacing the \subref with \Subref in Latex code, but does Lyx has
this option?

Thank in advance.



Re: Font Problem with Lyx - Metric (TFM) file not found

2011-06-27 Thread Guenter Milde
On 2011-06-26, ölm wrote:
> same problem with lyx 2.0.0 under ubuntu 11.04 64bit
> but THE SAME document is working under WinXP32bitSP3

The Greek fonts are missing. With Debian or Ubuntu, install the package
texlive-lang-greek.

> only the (pre)view using xetex is working without error, but all greek
> letters and italic are then missing.

With XeTeX, you do not get errors if the font misses some glyphs. It
is up to you to spot this in the document and to change to some more
complet font (e.g. the DejaVu).

> under windows everything is working (except correct linebreaks at
> inline-formulas at "description" style. but thats another story.
> regards,

It looks like there is a more complete TeX installation on this
machine, or MikTeX's auto-installer fetched the missing packages.

Günter



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-27 Thread Matthias Hunstig
Hello,

-Original Message-
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Paul Rubin
Sent: Friday, June 24, 2011 11:39 PM

> When you successfully run latex at a command prompt, you are doing so with 
> the limited rights account, correct?

Yes.

> Am I correct in assuming that if you log in with the local admin account, LyX 
> works correctly for you?

Yes.

> One thing you might try is to delete the local LyX directory for the limited 
> rights user, then restart LyX (as the limited rights user) and let it try to 
> rebuild that directory.  I think the directory is usually stored at 
> C:\Documents and Settings\\Application Data\lyx.  
> (Unfortunately I don't have access to a Win XP machine anymore.)  Just delete 
> the entire directory.  I you have modified any bind or layout files, you 
> might want to back those up first, but if this is an out-of-the-box LyX 
> installation there is nothing there you need to worry about.

I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
probably is related to some change from 1.6 to 2.0.

Matthias



Re: need suggestion on book

2011-06-27 Thread Guenter Milde
On 2011-06-26, Steve Litt wrote:
> On Sunday 26 June 2011 15:09:41 Shantanu N Kulkarni wrote:

> On my setup, Century Schoolbook is the least pale font. I use Century 
> Schoolbook on all my books, although I'm looking for a more screen-
> readable font for my pure eBooks.

Free screen-optimized fonts are e.g. DejaVu (package Bera in standard
TeX or via (Lua|Xe)TeX) and Googles Droid fonts (also available for
standard TeX on CTAN but not (yet) supported by LyX's font GUI (i.e.
set to Default and load the package in the user preamble).

Günter



LyX, bm package and math alphabets

2011-06-27 Thread Andrew Steele
I am using the bm package in conjunction with LyX, and my document
recently started failing to build, complaining of too many math
alphabets. This can be fixed by limiting the number of alphabets that
bm uses, by placing the following commands in the preamble:

\newcommand{\hmmax}{0}
\newcommand{\bmmax}{3}

BEFORE the \usepackage{bm} statement. Full details here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph

The problem then is that LyX places users' custom preamble after its
own automated one, so it seems impossible to make those declarations
before \usepackage{bm}. Is there any way around this other than
exporting as LaTeX and building those files externally?

Thanks!

-- 
Andrew Steele
http://andrewsteele.co.uk/


Re: Can't convert

2011-06-27 Thread Richard Heck
On 06/26/2011 05:54 PM, William Hanson wrote:
> Richard, Paul
>
> In response to Paul's latest message: 
> 1.  No, I can't produce pdf output in LyX 2.0. 
> 2.  "In each version of LyX, what do you see in the "Converter" and
> "Extra flag" fields when you go to Tools > Preferences... > File
> Handling > Converters and highlight "LaTeX (pdflatex) -> PDF
> (pdflatex)"?" 
> In 1.6.7 I see "pdflatex $$i" in Converter and "latex" in Extra Flag. 
> In 2.0.0 I see "pdflatex $$i" in Converter and "latex=pdflatex" in
> Extra Flag. 
> 3.  "What do you see when you highlight "LaTeX (plain) -> DVI"?"  (I
> assume Paul means "LaTeX (plain) -> DraftDVI".)
> In 1.6.7 I see "pplatex" in Converter and "latex" in Extra Flag.
> In 2.0.0 I see "pplatex" in Converter and "latex" in Extra Flag.
>
Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from Help>About),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

"article" "article" "article" "false" ""

Change "false" to "true", close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the configuration routine.

Richard



Re: LyX, bm package and math alphabets

2011-06-27 Thread Richard Heck
On 06/27/2011 10:13 AM, Andrew Steele wrote:
> I am using the bm package in conjunction with LyX, and my document
> recently started failing to build, complaining of too many math
> alphabets. This can be fixed by limiting the number of alphabets that
> bm uses, by placing the following commands in the preamble:
>
> \newcommand{\hmmax}{0}
> \newcommand{\bmmax}{3}
>
> BEFORE the \usepackage{bm} statement. Full details here:
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=manymathalph
>
> The problem then is that LyX places users' custom preamble after its
> own automated one, so it seems impossible to make those declarations
> before \usepackage{bm}. Is there any way around this other than
> exporting as LaTeX and building those files externally?
>
The only option here is to stop LyX from loading bm.sty automatically,
so you can load it yourself. We can do this with a module:

==

#\DeclareLyXModule{Suppress bm.sty}
#DescriptionBegin
# Stop LyX from autoloading bm.sty.
#DescriptionEnd

Format 35

Provides bm 1

==

Put that in a file nobm.module, in your local LyX layout directory
(~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
Document>Settings>Modules, and add it. This will allow you to load
bm.sty yourself in the preamble, after the commands you mentioned.

Richard

PS You could also put the non-commented lines into
Document>Settings>Local Layout, but that isn't reusable.




openning lyx1.6 files with lyx2

2011-06-27 Thread Adi Shraibman
Hi,

I am using lyx for a while now. I used lyx 1.6 on windows vista. I bought a
new computer
lately and installed lyx 2. The problem is it does not read the old lyx
files. what can I do ?

Many thanks,

Adi


Color part of text

2011-06-27 Thread Fernando Basso

My first day with Lyx. It is just amazing.

How can I change the colors of just some parts of text? Actually, I found
out that I can 'select' the text I want -> right click -> text style -> 
customized -> color.

Just that it is too much work.

In the shortcuts I found a set-color function that says it should be set to:

set-color  

I did:

set-color green green

...but it didn't do anything.

Any help would be appreciated.



Re: openning lyx1.6 files with lyx2

2011-06-27 Thread Richard Heck
On 06/27/2011 11:43 AM, Adi Shraibman wrote:
>  
> Hi,
>  
> I am using lyx for a while now. I used lyx 1.6 on windows vista. I
> bought a new computer
> lately and installed lyx 2. The problem is it does not read the old
> lyx files. what can I do ?
>  
There have been reports of this problem. LyX 2.0 will read old LyX
files, but some people seem to have had problems with the Python
installation. There is some discussion of this elsewhere on the mailing
list, but I'm not sure a definitive solution has been reached.

Richard



Re: Color part of text

2011-06-27 Thread Richard Heck
On 06/27/2011 09:06 AM, Fernando Basso wrote:
> My first day with Lyx. It is just amazing.
>
> How can I change the colors of just some parts of text? Actually, I found
> out that I can 'select' the text I want -> right click -> text style
> -> customized -> color.
> Just that it is too much work.
>
> In the shortcuts I found a set-color function that says it should be
> set to:
>
> set-color  
>
> I did:
>
> set-color green green
>
> ...but it didn't do anything.
>
That won't help. It's got to do with the LyX display.

If you are going regularly to color text, then you should define a
"character style" to do it. See the relevant part of Help>Customization,
and look at e.g. the logicalmkup.module file for a model you can follow.

Richard



Re: Can't convert

2011-06-27 Thread William Hanson
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a message
from Pareto File Cure saying that I don't have the proper application to
open lst files.  I get a similar message from Windows.

Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck  wrote:

> On 06/26/2011 05:54 PM, William Hanson wrote:
> > Richard, Paul
> >
> > In response to Paul's latest message:
> > 1.  No, I can't produce pdf output in LyX 2.0.
> > 2.  "In each version of LyX, what do you see in the "Converter" and
> > "Extra flag" fields when you go to Tools > Preferences... > File
> > Handling > Converters and highlight "LaTeX (pdflatex) -> PDF
> > (pdflatex)"?"
> > In 1.6.7 I see "pdflatex $$i" in Converter and "latex" in Extra Flag.
> > In 2.0.0 I see "pdflatex $$i" in Converter and "latex=pdflatex" in
> > Extra Flag.
> > 3.  "What do you see when you highlight "LaTeX (plain) -> DVI"?"  (I
> > assume Paul means "LaTeX (plain) -> DraftDVI".)
> > In 1.6.7 I see "pplatex" in Converter and "latex" in Extra Flag.
> > In 2.0.0 I see "pplatex" in Converter and "latex" in Extra Flag.
> >
> Let's try something else: We'll trick LyX into thinking these classes
> are installed and then see what happens.
>
> In your LyX user directory (again, you can find this from Help>About),
> there is a file textclass.lst. This is the file that tells LyX what
> classes and packages are installed, etc. In it, you should find a line
> that looks like this:
>
> "article" "article" "article" "false" ""
>
> Change "false" to "true", close the file and restart LyX. Can you
> convert now? If so, then the issue is purely with the configuration
> routine.
>
> Richard
>
>


Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Fernando Basso
Lyx help mentions: Document -> Settings -> Text_Layout -> Indent or 
Skip. I can't
find it (lyx 1.6.10 - arch linux). It mentions 
\setlength{\parindent}{Length}, but I

can't find the place to paste it.

What I am trying to accomplish is separate paragraphs and indent the
first paragraph, even if it doesn't come after another paragraph.



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Richard Heck
On 06/27/2011 11:33 AM, Fernando Basso wrote:
> Lyx help mentions: Document -> Settings -> Text_Layout -> Indent or
> Skip. I can't
> find it (lyx 1.6.10 - arch linux).
>
Under either Indentation or Vertical Space, you can choose "Custom",
then enter the custom amount in the field below.

rh



Re: Where is 'Indent' or 'Skip' ?

2011-06-27 Thread Guenter Milde
On 2011-06-27, Fernando Basso wrote:

> Lyx help mentions: Document -> Settings -> Text_Layout -> Indent or 
> Skip. I can't
> find it (lyx 1.6.10 - arch linux). 

Strange. If I start my LyX 1.6.x with English locale, its under

Document -> Settings -> Text_Layout -> Separate Paragraphs with:
   (*) Indentation
   ( ) Vertical Space
   
> It mentions 
> \setlength{\parindent}{Length}, but I
> can't find the place to paste it.

This should go into the LaTeX Preamble (last tab in Document>Settings).
Of course with a valid TeX length like e.g.

 \setlength{\parindent}{2em}

> What I am trying to accomplish is separate paragraphs and indent the
> first paragraph, even if it doesn't come after another paragraph.

Do you want both, vertical space and indentation?
Then you need to set this in the LaTeX preamble.

To indent the first paragraph after headings etc, use the indentfirst
package, i.e. in the LaTeX preamble write

\usepackage{indentfirst}

Beware: LyX's implementation of (*) Vertical Space is broken -- it
inserts too much space in lists (enumeration, itemize, ...) and similar
places (see l2tabuen.pdf).

Günter



Re: LyX, bm package and math alphabets

2011-06-27 Thread Guenter Milde
On 2011-06-27, Richard Heck wrote:
> On 06/27/2011 10:13 AM, Andrew Steele wrote:
>> I am using the bm package in conjunction with LyX, and my document
>> recently started failing to build, complaining of too many math
>> alphabets. This can be fixed by limiting the number of alphabets that
>> bm uses, by placing the following commands in the preamble:

>> \newcommand{\hmmax}{0}
>> \newcommand{\bmmax}{3}

>> BEFORE the \usepackage{bm} statement.

> The only option here is to stop LyX from loading bm.sty automatically,
> so you can load it yourself. We can do this with a module:

>==

> #\DeclareLyXModule{Suppress bm.sty}
> #DescriptionBegin
> # Stop LyX from autoloading bm.sty.
> #DescriptionEnd

> Format 35

> Provides bm 1

>==

> Put that in a file nobm.module, in your local LyX layout directory
> (~/.lyx/layouts/, on Linux). Then reconfigure LyX and go to
> Document>Settings>Modules, and add it. This will allow you to load
> bm.sty yourself in the preamble, after the commands you mentioned.

> Richard

> PS You could also put the non-commented lines into
> Document>Settings>Local Layout, but that isn't reusable.

Of course, you can also set the options and load bm in the module with
something like

Preamble
  \newcommand{\hmmax}{0}
  \newcommand{\bmmax}{3}
  \usepackage{bm}
EndPreamble

See Help>Customization for details.

I think the tip to use a Local Layout to override LyX auto-package
loading might become an FAQ - maybe it should find a place on the wiki.

Günter



Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 26.06.2011 07:09, schrieb Liviu Andronic:


Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer?


In my old alternative LyX for Win installer you could choose. For the next installer version we plan 
to re-enable this.



I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.


You can use them with any LaTeX distribution, of course also with MiKTeX.


Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows?


Yes, I need to test the installer together with TeXLive (how can we install all the packages used by 
LyX, the LyX-specific package, how can I uninstall packages via the command line, etc.

But at first I need to finish the new installer. Later we can add new features.

regards Uwe


Re: lyx and texlive on windows?

2011-06-27 Thread Liviu Andronic
On Mon, Jun 27, 2011 at 10:41 PM, Uwe Stöhr  wrote:
> Am 26.06.2011 07:09, schrieb Liviu Andronic:
>
>> Is there a reason for not offering a choice between MikTeX and TeX
>> Live on the Windows installer?
>
> In my old alternative LyX for Win installer you could choose. For the next
> installer version we plan to re-enable this.
>
Great, nice news.


>> I've got very used to TeX Live on Linux
>> and I'd like to use it for Windows, too. I'm specifically missing the
>> 'getnonfreefonts' utility.
>
> You can use them with any LaTeX distribution, of course also with MiKTeX.
>
Are you saying that getnonfreefonts [1] can be used with MiKTeX? From
its home page, it seems that it's only for TL.
[1] http://tug.org/fonts/getnonfreefonts/


>> Is following the wiki instructions [1] a good idea? Are there any
>> drawbacks in using TeX Live instead of MikTeX on Windows?
>
> Yes, I need to test the installer together with TeXLive (how can we install
> all the packages used by LyX, the LyX-specific package, how can I uninstall
> packages via the command line, etc.
>
For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager. (Linux distributions omit it, since it seems to
clash with distro's own package management system.)


> But at first I need to finish the new installer. Later we can add new
> features.
>
Nice. Thanks
Liviu


Re: Can't convert

2011-06-27 Thread Paul A. Rubin

It's a text file.  You can open it with either Notepad or Wordpad.

Paul

On 06/27/2011 01:32 PM, William Hanson wrote:
I can't open the file textclass.lst in either 1.6.7 or 2.0. I get a 
message from Pareto File Cure saying that I don't have the proper 
application to open lst files.  I get a similar message from Windows.


Bill

On Mon, Jun 27, 2011 at 9:20 AM, Richard Heck > wrote:


On 06/26/2011 05:54 PM, William Hanson wrote:
> Richard, Paul
>
> In response to Paul's latest message:
> 1.  No, I can't produce pdf output in LyX 2.0.
> 2.  "In each version of LyX, what do you see in the "Converter" and
> "Extra flag" fields when you go to Tools > Preferences... > File
> Handling > Converters and highlight "LaTeX (pdflatex) -> PDF
> (pdflatex)"?"
> In 1.6.7 I see "pdflatex $$i" in Converter and "latex" in Extra
Flag.
> In 2.0.0 I see "pdflatex $$i" in Converter and "latex=pdflatex" in
> Extra Flag.
> 3.  "What do you see when you highlight "LaTeX (plain) -> DVI"?"  (I
> assume Paul means "LaTeX (plain) -> DraftDVI".)
> In 1.6.7 I see "pplatex" in Converter and "latex" in Extra Flag.
> In 2.0.0 I see "pplatex" in Converter and "latex" in Extra Flag.
>
Let's try something else: We'll trick LyX into thinking these classes
are installed and then see what happens.

In your LyX user directory (again, you can find this from Help>About),
there is a file textclass.lst. This is the file that tells LyX what
classes and packages are installed, etc. In it, you should find a line
that looks like this:

"article" "article" "article" "false" ""

Change "false" to "true", close the file and restart LyX. Can you
convert now? If so, then the issue is purely with the
configuration routine.

Richard




Re: lyx and texlive on windows?

2011-06-27 Thread Uwe Stöhr

Am 27.06.2011 23:16, schrieb Liviu Andronic:


You can use them with any LaTeX distribution, of course also with MiKTeX.


Are you saying that getnonfreefonts [1] can be used with MiKTeX?


Sure, you can install any font to any distribution. In case of MiKTeX you need to install the fonts 
manually because the MiKTeX developer doesn't support packages and fonts that are not under a free 
license because some authors of non-free stuff made trouble.



For Windows, it would probably be a good idea to have TL with its
tlmgr Package Manager.


tlmgr is by default part of any TeXLive installation.


(Linux distributions omit it, since it seems to
clash with distro's own package management system.)


Yes, and this is very nasty. But you can avoid this by installing TeXLive by yourself (without using 
the distro's package manager).


regards Uwe


Bizarre R (TSA package) + Sweave LaTeX error

2011-06-27 Thread Lucas
When I try to use the TSA::prewhiten function from within a Sweave (or 
pgfSweave, the bug triggers either way it seems) code chunk inside a LyX 
document, I get this error:

20:35:49.417: Preview: Fontsize 10pt
20:35:49.418: Preview: PDFoutput 1
20:35:49.419: ! Misplaced alignment tab character &.
20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x &
20:35:49.421:y% 
20:35:49.422: Here is how much of TeX's memory you used:
20:35:49.428:  9510 strings out of 495061
20:35:49.429:  179132 string characters out of 1182621
20:35:49.430:  210888 words of memory out of 300
20:35:49.431:  12540 multiletter control sequences out of 15000+5
20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
20:35:49.433:  28 hyphenation exceptions out of 8191
20:35:49.439:  56i,3n,55p,425b,492s stack positions out of 
5000i,500n,1p,20b,5s
20:35:49.440: 
20:35:49.441: !  ==> Fatal error occurred, no output PDF file produced!
20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) : 
20:35:49.443: TeX was unable to calculate metrics for the following string
20:35:49.444: or character:
20:35:49.449: 
20:35:49.450:   x & y
20:35:49.451: 
20:35:49.452: Common reasons for failure include:
20:35:49.453:   * The string contains a character which is special to LaTeX 
unless
20:35:49.454: escaped properly, such as % or $.
20:35:49.455:   * The string makes use of LaTeX commands provided by a package 
and
20:35:49.464: the tikzDevice was not told to load the package.
20:35:49.466: 
20:35:49.468: The contents of the LaTeX log of the aborted run have been 
printed 
above,
20:35:49.471: it may contain additional details as to why the metric 
calculation 
failed.

Document that reproduces this error (requires a working R+Sweave+LyX setup with 
the 'TSA' R package from http://cran.r-project.org/web/packages/TSA/index.html):
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\begin_modules
sweave
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Chunk
<>=
\end_layout

\begin_layout Chunk
library(TSA)
\end_layout

\begin_layout Chunk
data(bluebird)
\end_layout

\begin_layout Chunk
prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
\end_layout

\begin_layout Chunk
@
\end_layout

\end_body
\end_document

--Lucas




How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-27 Thread PG
Hi all,

Is there a way to make formatted reference in Lyx 2.0 capitalized?
Currently when I cross-reference to a subsection, it will produce Latex code
"\subref{xxx}", and the result will be "section X.Y". I'd like to make the
"section" capitalized, but I can't find the option or settings to. I think I can
do it by replacing the "\subref" with "\Subref" in Latex code, but does Lyx has
this option?

Thank in advance.