Re: blindtext, unicode-math, and babel won't play nice because of setmathfont

2014-05-09 Thread Guenter Milde
On 2014-05-05, asllearner wrote:

 I am trying to use a font for my main font, and also for math latin and  
 greek characters, while keeping the rest as is.
 At the same time, I want to use blindtext.
 blindtext only allows \blindmathtrue if the language has been set to  
 english:  
 http://texblog.org/2011/02/26/generating-dummy-textblindtext-with-latex-for-testing/

 This I believe I have to do via the language package custom area in the  
 document preferences, however using
 \usepackage[english]{babel}
 breaks unicode-math.

Is the use of babel mandated by blindtext?
Normally, you would use polyglossia with XeTeX/LuaTeX and Unicode fonts.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
 On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

 It works well except one thing: paragraphs after lists (itemize) are 
 not indented (layout uses indention instead of skip between 
 paragraphs). 

...

 The problem is that there is no empty line after list, so LaTeX 
 doesn't indent phrase Text continues I've tried different 
 options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
 gives me correctly indented text in the LyX but not in the generated 
 PDF (or tex).

 The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via nesting, however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
 An environment, in principle, is part of the paragraph in which it
 appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if glued to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

 And, typographically, you should not want to indent the 
 following material by default. You should do so only if it begins a new 
 paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

 Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

 If you DO want to indent the next paragraph, then put a --Separator-- 
 enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is correct, it may be the most pragmatic way to
keep the behaviour.

Günter



Re: problem displaying angstrom symbol

2014-05-09 Thread Guenter Milde
On 2014-05-06, Jens Nöckel wrote:

 On May 6, 2014, at 8:45 AM, Ider Ronneberger wrote:

 Hi,

 I have a problem in lyx displaying the angstom symbol using \AA within
 the math mode, i.e. if I want to view the document as pdf the angstrom
 sign is not there. However it works if I write \AA in Tex mode or
 insert it from InsertSpecial Charecters Symbols...

 On the bottom pane of the lyx display, there is a short info message.
 In one case it says Type: simple Macro:AA and in the other case (
 which works) it just says Type: simple. What is the difference? How
 can resolve this issue?

 The problem is that \AA is a text mode command, not meant for equation
 environments. In LyX, I get the correct output if I enter the Å symbol
 from the keyboard (shift-option-A on the Mac). In an equation, LyX then
 replaces that symbol by \mathring{A}, which displays properly in the
 PDF output. So you could alternatively also enter \mathring{A} in the
 LyX math editor.

Depending on what it should stand for, the correct approach is to nest it in
a text box or use \mathring{A} instead of \AA:

  \mathring{A} is usually printed in italics, it stands for a variable
  (just like x and y).
  
  \mathrm{\AA} or \text{AA} are usually printed upright (roman) and stand
  for a constant or the length unit Ångström (10 nm).
  
  All SI units (and also most non-SI units) should be written upright.
  This is also often done wrong for the micro prefix µ.
  
Günter  
  



Re: Cannot use some greek letters

2014-05-09 Thread Guenter Milde
On 2014-05-06, Steve Burnham wrote:

 [-- Type: text/plain, Encoding: quoted-printable --]

 Forum,

 I am currently writing my thesis in LyX and am writing a number of
 equations, many of which use greek letters.  All has been working fine
 until today when I needed to use the greek letter “phi”.  When trying
 to use that letter I get “could not find LaTeX command for character
 “phi” (code point 0x3d5).  I am using the latest LyX on OSX with
 MacTeX.  In the description of the error it says Some characters of
 your document are probably not representable in the chosen encoding.
  Changing the document encoding to utf8 could help.”  I tried changing
 my encoding to utf8 but it just breaks the document even more and
 doesn’t like the other greek letters.  Any advice on how to get around
 this?

Please tell, how you input the letters, which engine you use and (if
Xe/LuaTeX) if you use unicode-math.

Remember, that there are two small phi symbols in Unicode: while in Greek
text, these are just variant glyphs of the same character, in Maths they are
treated as separate symbols.

The safe way should be to input the symbols via their TeX math-macro:

  \phi and \varphi
  
(works only in a math inset). It is good style, to put all variables in a
math inset, even if used inside a sentence like:

 The variables $r$ and $\varphi$ describe the position of $\vec{c}$ in polar
 coordinates.

(This is how it should look in the LaTeX preview and source file.)

Günter 



Re: math formulae in section titles

2014-05-09 Thread Guenter Milde
On 2014-05-05, Bieniasz wrote:


 Hello,

 I am using the svmono class to write a book. My question is:

 is there any way to put mathematical formulae in the titles
 of the sections or chapters in such a way so that they have the proper
 size (adapter to the size of letters used for the titles) ?

 A simple placing of the formulae does not look nice.

This doable but not easy. I recommend to create a *minimal* example (only
required packages, just one section, ...), exporting to LaTeX, further
trimming down everything specific to LyX and then ask a TeX list like
comp.text.tex or at stackexchange.

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Guenter Milde
On 2014-05-08, Bieniasz wrote:
 Richard Heck rgheck at lyx.org writes:

 Do you know if the problem arises simply using LaTeX?

 I have wasted a whole day trying to figure out the origin
 of the problem, and here are my conclusions:

 I think now that this is not a problem with svmono, but a general
 problem with LaTeX fonts. The svmono class assumes as default the
 Serif / Times Roman fonts. The \boldsymbol command does not work
 for this font. 

Yes, no bold math is a known (and documented) limitation of the standard 
LaTeX package for Times fonts.

 Although the bold+italic combination is properly visible
 under Lyx in the math equations, it does not appear in pdf files,
 supposedly because there are no suitable fonts. 
 All other fonts do not exhibit this deficiency, and \boldsymbol
 works OK for them.

There are other font packages with the same limitation.

 I have a feeling that this problem should be widely known,
 so that I am surprised that noone has been able to respond
 constructively to my messages. 

This may be due to the type of question. I never used the svmono class and
have no idea what it is or which packages it (in turn) requires.
Also, as this is a LaTeX limitation, the LyX list is less likely to bring an
adequate answer. I know that this is not you fault, but maybe it can explain
you the nonresponsiveness.


 Or, maybe there are better solutions?

There are better solutions: there are a number of alternative font
packages for Times-compatible maths. 

I recommend http://www.ctan.org/pkg/newtx (although I don't like its
integral sign).

A (German) survey can be found at
http://milde.users.sourceforge.net/Matheschriften/matheschriften.html


In LyX these packages could be specified in the user preamble. I don't know
if there may be problems in use combined with svmono, if yes, please post a
minimal example.

 Someone suggested to use the isomath package, but this gives
 a worse result, in my opinion, than the above solution, as for the
 Serif / Times Roman fonts the bold form does not appear in pdf.

Whiel isomath cannot solve the font problem if there is no font, I still
recommend it for reasons obvious to any reader of the documentation ;-)

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 11:36 GMT+02:00 Guenter Milde:

 There are better solutions: there are a number of alternative font
 packages for Times-compatible maths.

 I recommend http://www.ctan.org/pkg/newtx (although I don't like its
 integral sign).

 A (German) survey can be found at
 http://milde.users.sourceforge.net/Matheschriften/matheschriften.html


 In LyX these packages could be specified in the user preamble.


LyX 2.1 also has GUI support (Document  Settings  Fonts  Math).

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi

I have solved the problem, but I think there probably is a bug in LyX 2.1. The 
answer was to restart lyx (this is important or else xindy will fail). open the 
LyX file and chose texindy and add -L norwegian in the option field. This made 
lyx call texindy with the correct language. There seem to be something going on 
with the encoding as well... 

This with texindy and -L norwegian
Reading indexstyle...
Loading module /tmp/olOnxWlTf7...
Loading module lang/norwegian/latin1-lang.xdy...
Loading module lang/norwegian/latin1.xdy...
Finished loading module lang/norwegian/latin1.xdy.
Finished loading module lang/norwegian/latin1-lang.xdy.
Loading module tex/inputenc/latin.xdy...
Finished loading module tex/inputenc/latin.xdy.
Loading module texindy.xdy...

and this with standard.
Reading indexstyle...
Loading module /tmp/JsqoZC927W...
Loading module lang/general/latin9-lang.xdy...
Loading module lang/general/latin9.xdy...
Finished loading module lang/general/latin9.xdy.
Finished loading module lang/general/latin9-lang.xdy.
Loading module tex/inputenc/latin.xdy...
Finished loading module tex/inputenc/latin.xdy.
Loading module texindy.xdy...

regards,
Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 13:42 GMT+02:00 Ingar Pareliussen:

 I have solved the problem, but I think there probably is a bug in LyX 2.1.
 The answer was to restart lyx (this is important or else xindy will fail).
 open the LyX file and chose texindy and add -L norwegian in the option
 field. This made lyx call texindy with the correct language. There seem to
 be something going on with the encoding as well...


The question is, since your document setting had Standard for the index
processor, which setting you have in Tools  Preferences  Output  LaTeX.
Maybe this settings changed since you used index last time.

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi
 
The question is, since your document setting had Standard for the index 
processor, 
which setting you have in Tools  Preferences  Output  LaTeX. Maybe this 
settings 
changed since you used index last time.

I do not know what it was in earlier versions of LyX, I have never changed it, 
now it says texindy and no extra options.

Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 15:20 GMT+02:00 Ingar Pareliussen:


 I do not know what it was in earlier versions of LyX, I have never changed
 it, now it says texindy and no extra options.


My point is that it would only be a LyX bug if you had the options (or the
correct settings) in previous LyX versions and lost them during the
upgrade. The general UI did not change.

Jürgen



 Ingar


Re: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
On Wednesday 07 May 2014 20:54:15 Hugh Medal wrote:
 Here you go:
 
 This is what happens with system python (2.7.5):
 
 hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx
 ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx
 
  Optimal_Software_Design_converted.lyx
 Traceback (most recent call last):
   File /usr/share/lyx/lyx2lyx/lyx2lyx, line 24, in module
 import LyX
   File /usr/share/lyx/lyx2lyx/LyX.py, line 26, in module
 import gzip
   File /usr/local/lib/python2.7/gzip.py, line 9, in module
 import zlib
 ImportError: No module named zlib

The last line is the weird part.

What is the output of
$ which -a python

It seems from the path of the call to gzip.py that you are using a version of 
python different from the system one. That is why I suspect that you have two 
python versions installed.

The system install python into /usr not /usr/local and it seems that that is 
precisely what you are using and thus the error.

FWIW the zlib module is present, in 64 bit install (x86-64), at
/usr/lib64/python2.7/lib-dynload/zlibmodule.so

-- 
José Abílio


Re: weird bug: extra fi or else when using Koma script article, headings page style and numbered sections

2014-05-09 Thread Olivier Ripoll

On 08.05.2014 08:47, Jürgen Spitzmüller wrote:

2014-05-08 8:42 GMT+02:00 Olivier Ripoll:

On 07.05.2014 16:57, Richard Heck wrote:


Can you post an example file?


Hi,

Sure, here is a small sample file.

By the way, I totally forgot to put the system details in my
previous email: Windows 7 64 bits professional, MikTex 2.9.

I guess it's probably more related to an update of a MikTex package.


It's a bug in the current KOMA-Script release:
http://tex.stackexchange.com/questions/166779/koma-script-throws-extra-else-error

(I see it, too, with the final TeXLive 2013 update)


Indeed, thanks for the link.

Best regards,

Olivier




Jürgen






lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Hello:

In lyx 2.1 I can not make subscript and superscript work.

In a new file (every setting is default) I type A2, highlight 2, select 
Insert-Formatting-
Superscript (or Subscript) - View document (pdflatex): the character 2 is not 
subscript
or superscript, it is a normal inline character.

In the editor window it is sub- or superscript. In the source pane there is no 
indication of any sub or superscript command, it is simply A2.

What am I missing?

Thanks,

bcsikos



Re: lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Csikos Bela bcsikos...@freemail.hu írta:

In lyx 2.1 I can not make subscript and superscript work.

In a new file (every setting is default) I type A2, highlight 2, select 
Insert-Formatting-
Superscript (or Subscript) - View document (pdflatex): the character 2 is not 
subscript
or superscript, it is a normal inline character.

In the editor window it is sub- or superscript. In the source pane there is no 
indication of
any sub or superscript command, it is simply A2.

It was something in the lyx preferences (~/.lyx) folder.
Recreating it solved the problem.

bcsikos




is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Is it possible to create a lyx file as pure ascii text, particularly a
chapter?

I have been trying to create appendix files that should be imported into
the main document. I would like to use a script to create my appendix files
with 30-100 figures each instead of doing all this manually. Unfortunately
I cannot seem to create a lyx file that is accepted by the main document,
even if it looks to be 100% the same as a manual file. Is there some
invisible text generated by lyx?

Many thanks for any help


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Liviu Andronic
On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel thirstycam...@gmail.com wrote:
 Is it possible to create a lyx file as pure ascii text, particularly a
 chapter?

 I have been trying to create appendix files that should be imported into the
 main document. I would like to use a script to create my appendix files with
 30-100 figures each instead of doing all this manually. Unfortunately I
 cannot seem to create a lyx file that is accepted by the main document, even
 if it looks to be 100% the same as a manual file. Is there some invisible
 text generated by lyx?

I heard people were doing this. Have you checked the EOL characters in
both documents? Make sure that they're the same in both the main .lyx
file and the generated one.

Liviu


 Many thanks for any help





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


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Hmm, I spent quite a lot of time doing that without much success even with
very simple files. Is there anyone who has working tried and made it work?

Is it necessary to copy the complete header of lyx files - is there a
minimum header and footer?


2014-05-09 20:44 GMT-03:00 Liviu Andronic landronim...@gmail.com:

 On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel thirstycam...@gmail.com
 wrote:
  Is it possible to create a lyx file as pure ascii text, particularly a
  chapter?
 
  I have been trying to create appendix files that should be imported into
 the
  main document. I would like to use a script to create my appendix files
 with
  30-100 figures each instead of doing all this manually. Unfortunately I
  cannot seem to create a lyx file that is accepted by the main document,
 even
  if it looks to be 100% the same as a manual file. Is there some invisible
  text generated by lyx?
 
 I heard people were doing this. Have you checked the EOL characters in
 both documents? Make sure that they're the same in both the main .lyx
 file and the generated one.

 Liviu


  Many thanks for any help
 
 



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



Re: blindtext, unicode-math, and babel won't play nice because of setmathfont

2014-05-09 Thread Guenter Milde
On 2014-05-05, asllearner wrote:

 I am trying to use a font for my main font, and also for math latin and  
 greek characters, while keeping the rest as is.
 At the same time, I want to use blindtext.
 blindtext only allows \blindmathtrue if the language has been set to  
 english:  
 http://texblog.org/2011/02/26/generating-dummy-textblindtext-with-latex-for-testing/

 This I believe I have to do via the language package custom area in the  
 document preferences, however using
 \usepackage[english]{babel}
 breaks unicode-math.

Is the use of babel mandated by blindtext?
Normally, you would use polyglossia with XeTeX/LuaTeX and Unicode fonts.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
 On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

 It works well except one thing: paragraphs after lists (itemize) are 
 not indented (layout uses indention instead of skip between 
 paragraphs). 

...

 The problem is that there is no empty line after list, so LaTeX 
 doesn't indent phrase Text continues I've tried different 
 options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
 gives me correctly indented text in the LyX but not in the generated 
 PDF (or tex).

 The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via nesting, however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
 An environment, in principle, is part of the paragraph in which it
 appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if glued to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

 And, typographically, you should not want to indent the 
 following material by default. You should do so only if it begins a new 
 paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

 Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

 If you DO want to indent the next paragraph, then put a --Separator-- 
 enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is correct, it may be the most pragmatic way to
keep the behaviour.

Günter



Re: problem displaying angstrom symbol

2014-05-09 Thread Guenter Milde
On 2014-05-06, Jens Nöckel wrote:

 On May 6, 2014, at 8:45 AM, Ider Ronneberger wrote:

 Hi,

 I have a problem in lyx displaying the angstom symbol using \AA within
 the math mode, i.e. if I want to view the document as pdf the angstrom
 sign is not there. However it works if I write \AA in Tex mode or
 insert it from InsertSpecial Charecters Symbols...

 On the bottom pane of the lyx display, there is a short info message.
 In one case it says Type: simple Macro:AA and in the other case (
 which works) it just says Type: simple. What is the difference? How
 can resolve this issue?

 The problem is that \AA is a text mode command, not meant for equation
 environments. In LyX, I get the correct output if I enter the Å symbol
 from the keyboard (shift-option-A on the Mac). In an equation, LyX then
 replaces that symbol by \mathring{A}, which displays properly in the
 PDF output. So you could alternatively also enter \mathring{A} in the
 LyX math editor.

Depending on what it should stand for, the correct approach is to nest it in
a text box or use \mathring{A} instead of \AA:

  \mathring{A} is usually printed in italics, it stands for a variable
  (just like x and y).
  
  \mathrm{\AA} or \text{AA} are usually printed upright (roman) and stand
  for a constant or the length unit Ångström (10 nm).
  
  All SI units (and also most non-SI units) should be written upright.
  This is also often done wrong for the micro prefix µ.
  
Günter  
  



Re: Cannot use some greek letters

2014-05-09 Thread Guenter Milde
On 2014-05-06, Steve Burnham wrote:

 [-- Type: text/plain, Encoding: quoted-printable --]

 Forum,

 I am currently writing my thesis in LyX and am writing a number of
 equations, many of which use greek letters.  All has been working fine
 until today when I needed to use the greek letter “phi”.  When trying
 to use that letter I get “could not find LaTeX command for character
 “phi” (code point 0x3d5).  I am using the latest LyX on OSX with
 MacTeX.  In the description of the error it says Some characters of
 your document are probably not representable in the chosen encoding.
  Changing the document encoding to utf8 could help.”  I tried changing
 my encoding to utf8 but it just breaks the document even more and
 doesn’t like the other greek letters.  Any advice on how to get around
 this?

Please tell, how you input the letters, which engine you use and (if
Xe/LuaTeX) if you use unicode-math.

Remember, that there are two small phi symbols in Unicode: while in Greek
text, these are just variant glyphs of the same character, in Maths they are
treated as separate symbols.

The safe way should be to input the symbols via their TeX math-macro:

  \phi and \varphi
  
(works only in a math inset). It is good style, to put all variables in a
math inset, even if used inside a sentence like:

 The variables $r$ and $\varphi$ describe the position of $\vec{c}$ in polar
 coordinates.

(This is how it should look in the LaTeX preview and source file.)

Günter 



Re: math formulae in section titles

2014-05-09 Thread Guenter Milde
On 2014-05-05, Bieniasz wrote:


 Hello,

 I am using the svmono class to write a book. My question is:

 is there any way to put mathematical formulae in the titles
 of the sections or chapters in such a way so that they have the proper
 size (adapter to the size of letters used for the titles) ?

 A simple placing of the formulae does not look nice.

This doable but not easy. I recommend to create a *minimal* example (only
required packages, just one section, ...), exporting to LaTeX, further
trimming down everything specific to LyX and then ask a TeX list like
comp.text.tex or at stackexchange.

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Guenter Milde
On 2014-05-08, Bieniasz wrote:
 Richard Heck rgheck at lyx.org writes:

 Do you know if the problem arises simply using LaTeX?

 I have wasted a whole day trying to figure out the origin
 of the problem, and here are my conclusions:

 I think now that this is not a problem with svmono, but a general
 problem with LaTeX fonts. The svmono class assumes as default the
 Serif / Times Roman fonts. The \boldsymbol command does not work
 for this font. 

Yes, no bold math is a known (and documented) limitation of the standard 
LaTeX package for Times fonts.

 Although the bold+italic combination is properly visible
 under Lyx in the math equations, it does not appear in pdf files,
 supposedly because there are no suitable fonts. 
 All other fonts do not exhibit this deficiency, and \boldsymbol
 works OK for them.

There are other font packages with the same limitation.

 I have a feeling that this problem should be widely known,
 so that I am surprised that noone has been able to respond
 constructively to my messages. 

This may be due to the type of question. I never used the svmono class and
have no idea what it is or which packages it (in turn) requires.
Also, as this is a LaTeX limitation, the LyX list is less likely to bring an
adequate answer. I know that this is not you fault, but maybe it can explain
you the nonresponsiveness.


 Or, maybe there are better solutions?

There are better solutions: there are a number of alternative font
packages for Times-compatible maths. 

I recommend http://www.ctan.org/pkg/newtx (although I don't like its
integral sign).

A (German) survey can be found at
http://milde.users.sourceforge.net/Matheschriften/matheschriften.html


In LyX these packages could be specified in the user preamble. I don't know
if there may be problems in use combined with svmono, if yes, please post a
minimal example.

 Someone suggested to use the isomath package, but this gives
 a worse result, in my opinion, than the above solution, as for the
 Serif / Times Roman fonts the bold form does not appear in pdf.

Whiel isomath cannot solve the font problem if there is no font, I still
recommend it for reasons obvious to any reader of the documentation ;-)

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 11:36 GMT+02:00 Guenter Milde:

 There are better solutions: there are a number of alternative font
 packages for Times-compatible maths.

 I recommend http://www.ctan.org/pkg/newtx (although I don't like its
 integral sign).

 A (German) survey can be found at
 http://milde.users.sourceforge.net/Matheschriften/matheschriften.html


 In LyX these packages could be specified in the user preamble.


LyX 2.1 also has GUI support (Document  Settings  Fonts  Math).

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi

I have solved the problem, but I think there probably is a bug in LyX 2.1. The 
answer was to restart lyx (this is important or else xindy will fail). open the 
LyX file and chose texindy and add -L norwegian in the option field. This made 
lyx call texindy with the correct language. There seem to be something going on 
with the encoding as well... 

This with texindy and -L norwegian
Reading indexstyle...
Loading module /tmp/olOnxWlTf7...
Loading module lang/norwegian/latin1-lang.xdy...
Loading module lang/norwegian/latin1.xdy...
Finished loading module lang/norwegian/latin1.xdy.
Finished loading module lang/norwegian/latin1-lang.xdy.
Loading module tex/inputenc/latin.xdy...
Finished loading module tex/inputenc/latin.xdy.
Loading module texindy.xdy...

and this with standard.
Reading indexstyle...
Loading module /tmp/JsqoZC927W...
Loading module lang/general/latin9-lang.xdy...
Loading module lang/general/latin9.xdy...
Finished loading module lang/general/latin9.xdy.
Finished loading module lang/general/latin9-lang.xdy.
Loading module tex/inputenc/latin.xdy...
Finished loading module tex/inputenc/latin.xdy.
Loading module texindy.xdy...

regards,
Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 13:42 GMT+02:00 Ingar Pareliussen:

 I have solved the problem, but I think there probably is a bug in LyX 2.1.
 The answer was to restart lyx (this is important or else xindy will fail).
 open the LyX file and chose texindy and add -L norwegian in the option
 field. This made lyx call texindy with the correct language. There seem to
 be something going on with the encoding as well...


The question is, since your document setting had Standard for the index
processor, which setting you have in Tools  Preferences  Output  LaTeX.
Maybe this settings changed since you used index last time.

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi
 
The question is, since your document setting had Standard for the index 
processor, 
which setting you have in Tools  Preferences  Output  LaTeX. Maybe this 
settings 
changed since you used index last time.

I do not know what it was in earlier versions of LyX, I have never changed it, 
now it says texindy and no extra options.

Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 15:20 GMT+02:00 Ingar Pareliussen:


 I do not know what it was in earlier versions of LyX, I have never changed
 it, now it says texindy and no extra options.


My point is that it would only be a LyX bug if you had the options (or the
correct settings) in previous LyX versions and lost them during the
upgrade. The general UI did not change.

Jürgen



 Ingar


Re: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
On Wednesday 07 May 2014 20:54:15 Hugh Medal wrote:
 Here you go:
 
 This is what happens with system python (2.7.5):
 
 hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx
 ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx
 
  Optimal_Software_Design_converted.lyx
 Traceback (most recent call last):
   File /usr/share/lyx/lyx2lyx/lyx2lyx, line 24, in module
 import LyX
   File /usr/share/lyx/lyx2lyx/LyX.py, line 26, in module
 import gzip
   File /usr/local/lib/python2.7/gzip.py, line 9, in module
 import zlib
 ImportError: No module named zlib

The last line is the weird part.

What is the output of
$ which -a python

It seems from the path of the call to gzip.py that you are using a version of 
python different from the system one. That is why I suspect that you have two 
python versions installed.

The system install python into /usr not /usr/local and it seems that that is 
precisely what you are using and thus the error.

FWIW the zlib module is present, in 64 bit install (x86-64), at
/usr/lib64/python2.7/lib-dynload/zlibmodule.so

-- 
José Abílio


Re: weird bug: extra fi or else when using Koma script article, headings page style and numbered sections

2014-05-09 Thread Olivier Ripoll

On 08.05.2014 08:47, Jürgen Spitzmüller wrote:

2014-05-08 8:42 GMT+02:00 Olivier Ripoll:

On 07.05.2014 16:57, Richard Heck wrote:


Can you post an example file?


Hi,

Sure, here is a small sample file.

By the way, I totally forgot to put the system details in my
previous email: Windows 7 64 bits professional, MikTex 2.9.

I guess it's probably more related to an update of a MikTex package.


It's a bug in the current KOMA-Script release:
http://tex.stackexchange.com/questions/166779/koma-script-throws-extra-else-error

(I see it, too, with the final TeXLive 2013 update)


Indeed, thanks for the link.

Best regards,

Olivier




Jürgen






lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Hello:

In lyx 2.1 I can not make subscript and superscript work.

In a new file (every setting is default) I type A2, highlight 2, select 
Insert-Formatting-
Superscript (or Subscript) - View document (pdflatex): the character 2 is not 
subscript
or superscript, it is a normal inline character.

In the editor window it is sub- or superscript. In the source pane there is no 
indication of any sub or superscript command, it is simply A2.

What am I missing?

Thanks,

bcsikos



Re: lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Csikos Bela bcsikos...@freemail.hu írta:

In lyx 2.1 I can not make subscript and superscript work.

In a new file (every setting is default) I type A2, highlight 2, select 
Insert-Formatting-
Superscript (or Subscript) - View document (pdflatex): the character 2 is not 
subscript
or superscript, it is a normal inline character.

In the editor window it is sub- or superscript. In the source pane there is no 
indication of
any sub or superscript command, it is simply A2.

It was something in the lyx preferences (~/.lyx) folder.
Recreating it solved the problem.

bcsikos




is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Is it possible to create a lyx file as pure ascii text, particularly a
chapter?

I have been trying to create appendix files that should be imported into
the main document. I would like to use a script to create my appendix files
with 30-100 figures each instead of doing all this manually. Unfortunately
I cannot seem to create a lyx file that is accepted by the main document,
even if it looks to be 100% the same as a manual file. Is there some
invisible text generated by lyx?

Many thanks for any help


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Liviu Andronic
On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel thirstycam...@gmail.com wrote:
 Is it possible to create a lyx file as pure ascii text, particularly a
 chapter?

 I have been trying to create appendix files that should be imported into the
 main document. I would like to use a script to create my appendix files with
 30-100 figures each instead of doing all this manually. Unfortunately I
 cannot seem to create a lyx file that is accepted by the main document, even
 if it looks to be 100% the same as a manual file. Is there some invisible
 text generated by lyx?

I heard people were doing this. Have you checked the EOL characters in
both documents? Make sure that they're the same in both the main .lyx
file and the generated one.

Liviu


 Many thanks for any help





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


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Hmm, I spent quite a lot of time doing that without much success even with
very simple files. Is there anyone who has working tried and made it work?

Is it necessary to copy the complete header of lyx files - is there a
minimum header and footer?


2014-05-09 20:44 GMT-03:00 Liviu Andronic landronim...@gmail.com:

 On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel thirstycam...@gmail.com
 wrote:
  Is it possible to create a lyx file as pure ascii text, particularly a
  chapter?
 
  I have been trying to create appendix files that should be imported into
 the
  main document. I would like to use a script to create my appendix files
 with
  30-100 figures each instead of doing all this manually. Unfortunately I
  cannot seem to create a lyx file that is accepted by the main document,
 even
  if it looks to be 100% the same as a manual file. Is there some invisible
  text generated by lyx?
 
 I heard people were doing this. Have you checked the EOL characters in
 both documents? Make sure that they're the same in both the main .lyx
 file and the generated one.

 Liviu


  Many thanks for any help
 
 



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



Re: blindtext, unicode-math, and babel won't play nice because of setmathfont

2014-05-09 Thread Guenter Milde
On 2014-05-05, asllearner wrote:

> I am trying to use a font for my main font, and also for math latin and  
> greek characters, while keeping the rest as is.
> At the same time, I want to use blindtext.
> blindtext only allows \blindmathtrue if the language has been set to  
> english:  
> http://texblog.org/2011/02/26/generating-dummy-textblindtext-with-latex-for-testing/

> This I believe I have to do via the language package custom area in the  
> document preferences, however using
> \usepackage[english]{babel}
> breaks unicode-math.

Is the use of babel mandated by "blindtext"?
Normally, you would use "polyglossia" with XeTeX/LuaTeX and Unicode fonts.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
> On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

>> It works well except one thing: paragraphs after lists (itemize) are 
>> not indented (layout uses indention instead of skip between 
>> paragraphs). 

...

>> The problem is that there is no empty line after list, so LaTeX 
>> doesn't indent phrase "Text continues...". I've tried different 
>> options: NextNoIndent, ParbreakIsNewline, RightDelim. "NextNoIndent 0" 
>> gives me correctly indented text in the LyX but not in the generated 
>> PDF (or tex).

> The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via "nesting", however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
> An environment, in principle, is part of the paragraph in which it
> appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if "glued" to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

> And, typographically, you should not want to indent the 
> following material by default. You should do so only if it begins a new 
> paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

> Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

> If you DO want to indent the next paragraph, then put a "--Separator--" 
> enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is "correct", it may be the most pragmatic way to
keep the behaviour.

Günter



Re: problem displaying angstrom symbol

2014-05-09 Thread Guenter Milde
On 2014-05-06, Jens Nöckel wrote:

> On May 6, 2014, at 8:45 AM, Ider Ronneberger wrote:

>> Hi,

>> I have a problem in lyx displaying the angstom symbol using \AA within
>> the math mode, i.e. if I want to view the document as pdf the angstrom
>> sign is not there. However it works if I write \AA in Tex mode or
>> insert it from Insert>Special Charecters> Symbols...

>> On the bottom pane of the lyx display, there is a short info message.
>> In one case it says "Type: simple Macro:AA" and in the other case (
>> which works) it just says "Type: simple". What is the difference? How
>> can resolve this issue?

> The problem is that \AA is a text mode command, not meant for equation
> environments. In LyX, I get the correct output if I enter the Å symbol
> from the keyboard (shift-option-A on the Mac). In an equation, LyX then
> replaces that symbol by \mathring{A}, which displays properly in the
> PDF output. So you could alternatively also enter \mathring{A} in the
> LyX math editor.

Depending on what it should stand for, the correct approach is to nest it in
a text box or use \mathring{A} instead of \AA:

  \mathring{A} is usually printed in italics, it stands for a variable
  (just like x and y).
  
  \mathrm{\AA} or \text{AA} are usually printed upright (roman) and stand
  for a constant or the length unit Ångström (10 nm).
  
  All SI units (and also most non-SI units) should be written upright.
  This is also often done wrong for the micro prefix µ.
  
Günter  
  



Re: Cannot use some greek letters

2014-05-09 Thread Guenter Milde
On 2014-05-06, Steve Burnham wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> Forum,

> I am currently writing my thesis in LyX and am writing a number of
> equations, many of which use greek letters.  All has been working fine
> until today when I needed to use the greek letter “phi”.  When trying
> to use that letter I get “could not find LaTeX command for character
> “phi” (code point 0x3d5).  I am using the latest LyX on OSX with
> MacTeX.  In the description of the error it says "Some characters of
> your document are probably not representable in the chosen encoding.
>  Changing the document encoding to utf8 could help.”  I tried changing
> my encoding to utf8 but it just breaks the document even more and
> doesn’t like the other greek letters.  Any advice on how to get around
> this?

Please tell, how you input the letters, which engine you use and (if
Xe/LuaTeX) if you use unicode-math.

Remember, that there are two small phi symbols in Unicode: while in Greek
text, these are just variant glyphs of the same character, in Maths they are
treated as separate symbols.

The safe way should be to input the symbols via their TeX math-macro:

  \phi and \varphi
  
(works only in a math inset). It is good style, to put all variables in a
math inset, even if used inside a sentence like:

 The variables $r$ and $\varphi$ describe the position of $\vec{c}$ in polar
 coordinates.

(This is how it should look in the LaTeX preview and source file.)

Günter 



Re: math formulae in section titles

2014-05-09 Thread Guenter Milde
On 2014-05-05, Bieniasz wrote:


> Hello,

> I am using the svmono class to write a book. My question is:

> is there any way to put mathematical formulae in the titles
> of the sections or chapters in such a way so that they have the proper
> size (adapter to the size of letters used for the titles) ?

> A simple placing of the formulae does not look nice.

This doable but not easy. I recommend to create a *minimal* example (only
required packages, just one section, ...), exporting to LaTeX, further
trimming down everything specific to LyX and then ask a TeX list like
comp.text.tex or at stackexchange.

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Guenter Milde
On 2014-05-08, Bieniasz wrote:
> Richard Heck  lyx.org> writes:

>> Do you know if the problem arises simply using LaTeX?

> I have wasted a whole day trying to figure out the origin
> of the problem, and here are my conclusions:

> I think now that this is not a problem with svmono, but a general
> problem with LaTeX fonts. The svmono class assumes as default the
> Serif / Times Roman fonts. The \boldsymbol command does not work
> for this font. 

Yes, no bold math is a known (and documented) limitation of the standard 
LaTeX package for Times fonts.

> Although the bold+italic combination is properly visible
> under Lyx in the math equations, it does not appear in pdf files,
> supposedly because there are no suitable fonts. 
> All other fonts do not exhibit this deficiency, and \boldsymbol
> works OK for them.

There are other font packages with the same limitation.

> I have a feeling that this problem should be widely known,
> so that I am surprised that noone has been able to respond
> constructively to my messages. 

This may be due to the type of question. I never used the svmono class and
have no idea what it is or which packages it (in turn) requires.
Also, as this is a LaTeX limitation, the LyX list is less likely to bring an
adequate answer. I know that this is not you fault, but maybe it can explain
you the nonresponsiveness.


> Or, maybe there are better solutions?

There are better solutions: there are a number of alternative font
packages for Times-compatible maths. 

I recommend http://www.ctan.org/pkg/newtx (although I don't like its
integral sign).

A (German) survey can be found at
http://milde.users.sourceforge.net/Matheschriften/matheschriften.html


In LyX these packages could be specified in the user preamble. I don't know
if there may be problems in use combined with svmono, if yes, please post a
minimal example.

> Someone suggested to use the isomath package, but this gives
> a worse result, in my opinion, than the above solution, as for the
> Serif / Times Roman fonts the bold form does not appear in pdf.

Whiel isomath cannot solve the font problem if there is no font, I still
recommend it for reasons obvious to any reader of the documentation ;-)

Günter



Re: The persistent problem with svmono class and \boldsymbol font

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 11:36 GMT+02:00 Guenter Milde:

> There are better solutions: there are a number of alternative font
> packages for Times-compatible maths.
>
> I recommend http://www.ctan.org/pkg/newtx (although I don't like its
> integral sign).
>
> A (German) survey can be found at
> http://milde.users.sourceforge.net/Matheschriften/matheschriften.html
>
>
> In LyX these packages could be specified in the user preamble.


LyX 2.1 also has GUI support (Document > Settings > Fonts > Math).

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi

I have solved the problem, but I think there probably is a bug in LyX 2.1. The 
answer was to restart lyx (this is important or else xindy will fail). open the 
LyX file and chose texindy and add -L norwegian in the option field. This made 
lyx call texindy with the correct language. There seem to be something going on 
with the encoding as well... 

This with texindy and -L norwegian
Reading indexstyle...
Loading module "/tmp/olOnxWlTf7"...
Loading module "lang/norwegian/latin1-lang.xdy"...
Loading module "lang/norwegian/latin1.xdy"...
Finished loading module "lang/norwegian/latin1.xdy".
Finished loading module "lang/norwegian/latin1-lang.xdy".
Loading module "tex/inputenc/latin.xdy"...
Finished loading module "tex/inputenc/latin.xdy".
Loading module "texindy.xdy"...

and this with standard.
Reading indexstyle...
Loading module "/tmp/JsqoZC927W"...
Loading module "lang/general/latin9-lang.xdy"...
Loading module "lang/general/latin9.xdy"...
Finished loading module "lang/general/latin9.xdy".
Finished loading module "lang/general/latin9-lang.xdy".
Loading module "tex/inputenc/latin.xdy"...
Finished loading module "tex/inputenc/latin.xdy".
Loading module "texindy.xdy"...

regards,
Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 13:42 GMT+02:00 Ingar Pareliussen:

> I have solved the problem, but I think there probably is a bug in LyX 2.1.
> The answer was to restart lyx (this is important or else xindy will fail).
> open the LyX file and chose texindy and add -L norwegian in the option
> field. This made lyx call texindy with the correct language. There seem to
> be something going on with the encoding as well...
>

The question is, since your document setting had "Standard" for the index
processor, which setting you have in Tools > Preferences > Output > LaTeX.
Maybe this settings changed since you used index last time.

Jürgen


RE: indexing in 2.1

2014-05-09 Thread Ingar Pareliussen
Hi
 
>The question is, since your document setting had "Standard" for the index 
>processor, 
>which setting you have in Tools > Preferences > Output > LaTeX. Maybe this 
>settings 
>changed since you used index last time.

I do not know what it was in earlier versions of LyX, I have never changed it, 
now it says texindy and no extra options.

Ingar

Re: indexing in 2.1

2014-05-09 Thread Jürgen Spitzmüller
2014-05-09 15:20 GMT+02:00 Ingar Pareliussen:

>
> I do not know what it was in earlier versions of LyX, I have never changed
> it, now it says texindy and no extra options.
>

My point is that it would only be a LyX bug if you had the options (or the
correct settings) in previous LyX versions and lost them during the
upgrade. The general UI did not change.

Jürgen


>
> Ingar


Re: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
On Wednesday 07 May 2014 20:54:15 Hugh Medal wrote:
> Here you go:
> 
> This is what happens with system python (2.7.5):
> 
> hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx
> ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx
> 
> > Optimal_Software_Design_converted.lyx
> Traceback (most recent call last):
>   File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in 
> import LyX
>   File "/usr/share/lyx/lyx2lyx/LyX.py", line 26, in 
> import gzip
>   File "/usr/local/lib/python2.7/gzip.py", line 9, in 
> import zlib
> ImportError: No module named zlib

The last line is the weird part.

What is the output of
$ which -a python

It seems from the path of the call to gzip.py that you are using a version of 
python different from the system one. That is why I suspect that you have two 
python versions installed.

The system install python into /usr not /usr/local and it seems that that is 
precisely what you are using and thus the error.

FWIW the zlib module is present, in 64 bit install (x86-64), at
/usr/lib64/python2.7/lib-dynload/zlibmodule.so

-- 
José Abílio


Re: weird bug: extra fi or else when using Koma script article, headings page style and numbered sections

2014-05-09 Thread Olivier Ripoll

On 08.05.2014 08:47, Jürgen Spitzmüller wrote:

2014-05-08 8:42 GMT+02:00 Olivier Ripoll:

On 07.05.2014 16:57, Richard Heck wrote:


Can you post an example file?


Hi,

Sure, here is a small sample file.

By the way, I totally forgot to put the system details in my
previous email: Windows 7 64 bits professional, MikTex 2.9.

I guess it's probably more related to an update of a MikTex package.


It's a bug in the current KOMA-Script release:
http://tex.stackexchange.com/questions/166779/koma-script-throws-extra-else-error

(I see it, too, with the final TeXLive 2013 update)


Indeed, thanks for the link.

Best regards,

Olivier




Jürgen






lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Hello:

In lyx 2.1 I can not make subscript and superscript work.

In a new file (every setting is default) I type A2, highlight 2, select 
Insert->Formatting->
Superscript (or Subscript) -> View document (pdflatex): the character 2 is not 
subscript
or superscript, it is a normal inline character.

In the editor window it is sub- or superscript. In the source pane there is no 
indication of any sub or superscript command, it is simply A2.

What am I missing?

Thanks,

bcsikos



Re: lyx 2.1 subscript and superscript problem

2014-05-09 Thread Csikos Bela
Csikos Bela  írta:

>In lyx 2.1 I can not make subscript and superscript work.
>
>In a new file (every setting is default) I type A2, highlight 2, select 
>Insert->Formatting->
>Superscript (or Subscript) -> View document (pdflatex): the character 2 is not 
>subscript
>or superscript, it is a normal inline character.
>
>In the editor window it is sub- or superscript. In the source pane there is no 
>indication of
>any sub or superscript command, it is simply A2.

It was something in the lyx preferences (~/.lyx) folder.
Recreating it solved the problem.

bcsikos




is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Is it possible to create a lyx file as pure ascii text, particularly a
chapter?

I have been trying to create appendix files that should be imported into
the main document. I would like to use a script to create my appendix files
with 30-100 figures each instead of doing all this manually. Unfortunately
I cannot seem to create a lyx file that is accepted by the main document,
even if it looks to be 100% the same as a manual file. Is there some
invisible text generated by lyx?

Many thanks for any help


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Liviu Andronic
On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel  wrote:
> Is it possible to create a lyx file as pure ascii text, particularly a
> chapter?
>
> I have been trying to create appendix files that should be imported into the
> main document. I would like to use a script to create my appendix files with
> 30-100 figures each instead of doing all this manually. Unfortunately I
> cannot seem to create a lyx file that is accepted by the main document, even
> if it looks to be 100% the same as a manual file. Is there some invisible
> text generated by lyx?
>
I heard people were doing this. Have you checked the EOL characters in
both documents? Make sure that they're the same in both the main .lyx
file and the generated one.

Liviu


> Many thanks for any help
>
>



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


Re: is it possible to create a lyx file as flat ASCII file?

2014-05-09 Thread Thirsty Camel
Hmm, I spent quite a lot of time doing that without much success even with
very simple files. Is there anyone who has working tried and made it work?

Is it necessary to copy the complete header of lyx files - is there a
minimum header and footer?


2014-05-09 20:44 GMT-03:00 Liviu Andronic :

> On Sat, May 10, 2014 at 1:28 AM, Thirsty Camel 
> wrote:
> > Is it possible to create a lyx file as pure ascii text, particularly a
> > chapter?
> >
> > I have been trying to create appendix files that should be imported into
> the
> > main document. I would like to use a script to create my appendix files
> with
> > 30-100 figures each instead of doing all this manually. Unfortunately I
> > cannot seem to create a lyx file that is accepted by the main document,
> even
> > if it looks to be 100% the same as a manual file. Is there some invisible
> > text generated by lyx?
> >
> I heard people were doing this. Have you checked the EOL characters in
> both documents? Make sure that they're the same in both the main .lyx
> file and the generated one.
>
> Liviu
>
>
> > Many thanks for any help
> >
> >
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>