Re: conversion to open doc format and tables

2008-06-11 Thread Jürgen Spitzmüller
Maria Gouskova wrote:
 Does anyone know why conversion from LyX to Open Document format adds
 blank rows to tables? I'd say about three extra blank rows in the Open
 Doc file for each row in the original LyX document. Even when the
 simplest table is converted, an extra cell is added at the bottom.

 Mac OS 10.5.3, LyX 1.5.5

This is a bug in tex4ht, the LaTeX to ODT converter.

 Is there any way around this?

I just submitted a bug report to the tex4ht maintainer, and he informed me 
that he will look into the problem.

Jürgen


Re: greek fonts

2008-06-11 Thread G. Milde
On 10.06.08, Pavel Sanda wrote:
  On 10.06.08, Pavel Sanda wrote:
  
   now the next step :) i see latex error that utf8x.def file is missing.
  
  Where you able to select utf8x font encoding from the LyX gui? 

 i dont think this is possible. 

My mistake. You cannot choose font encoding from lyx.

It should have read *input encoding* which in lyx is available under
DocumentSettingsLanguageEncoding

 which was set to utf8x in your previous file. 

  Normally LyX checks the package availability for any extensions, so this
  might count as a (minor) LyX bug,

 no i dont have this package locally, so its not lyx problem.

It is a lyx problem if you can actively set
DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
hence utf8x.def) is not installed.

Could you test whether you can change the encoding to something else and
back to utf8x (before installing ucs)?

Of course it is not a lyx problem, if you can open view and edit my file
even if it specifies an encoding your system does not support. ;-)


Günter


Re: pgf and external table plot

2008-06-11 Thread Willem van Engen

 
  [referencing external file inside ERT]
 
 
 It occurs to me that a simpler solution might be to put an absolute
 reference to the file in the ERT. LyX still will not copy it to the
 temp directory, but it won't need to.

Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?

- Willem




Re: pgf and external table plot

2008-06-11 Thread Abdelrazak Younes

Willem van Engen wrote:

[referencing external file inside ERT]


It occurs to me that a simpler solution might be to put an absolute

reference to the file in the ERT. LyX still will not copy it to the
temp directory, but it won't need to.


Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?


Not in 1.5 AFAIK, in 1.6 you'll have InsetInfo for that kind of information.

Abdel.



Re: greek fonts

2008-06-11 Thread Pavel Sanda
   Normally LyX checks the package availability for any extensions, so this
   might count as a (minor) LyX bug,
 
  no i dont have this package locally, so its not lyx problem.
 
 It is a lyx problem if you can actively set
 DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
 hence utf8x.def) is not installed.
 
 Could you test whether you can change the encoding to something else and
 back to utf8x (before installing ucs)?

yes i can. anyway i think you should be able to select encoding for which
your tex distribution hasn't support, because at least editing works and
and in some cases that is enough.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 On 10 Jun 2008, G. Milde wrote:
  On 10.06.08, Anthony Campbell wrote:
  
   I tried to use Lyx for ancient Greek but the circumflex (tilde) 
   keeps
   appearing before the letter instead of above it.

In most fonts, even in the Standard glyph list of the Unicode
consortium and fonts from the Greek Font Society, the accents are 
written
before the letter for capital letters and over the letter for small
letters. 
  
   All the accents appear correctly over the letters except for the
   circumflex (tilde). But in plain Latex the circumlex is correct.
  
  Could you post a *small* example file (lyx and tex)?
  
  Günter
 
 1. Greek lyx:

can you send it as a normal attachment?
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 10 Jun 2008, G. Milde wrote:
 On 10.06.08, Anthony Campbell wrote:
 
  I tried to use Lyx for ancient Greek but the circumflex (tilde) 
  keeps
  appearing before the letter instead of above it.
   
   In most fonts, even in the Standard glyph list of the Unicode
   consortium and fonts from the Greek Font Society, the accents are written
   before the letter for capital letters and over the letter for small
   letters. 
 
  All the accents appear correctly over the letters except for the
  circumflex (tilde). But in plain Latex the circumlex is correct.
 
 Could you post a *small* example file (lyx and tex)?
 
 Günter

1. Greek lyx:


#LyX 1.5.5 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass book
\begin_preamble
% This file was converted from HTML to LaTeX with
% Tomasz Wegrzanowski's [EMAIL PROTECTED] gnuhtml2latex program
% Version : 0.1
\end_preamble
\language greek
\inputencoding auto
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 11
\spacing other 1.1
\papersize custom
\use_geometry true
\use_amsmath 0
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\paperwidth 6in
\paperheight 9in
\leftmargin 0.85in
\topmargin 0.85in
\rightmargin 0.85in
\bottommargin 0.85in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language swedish
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\author  
\author  
\end_header

\begin_body

\begin_layout Standard
this is me~ant to b`e in Gre'ek
\end_layout

\begin_layout Standard

\end_layout

\end_body
\end_document

--

2. Greek Tex

\documentclass{article}
\usepackage[polutonikogreek]{babel}
\usepackage[iso-8859-7]{inputenc}
\begin{document}
\selectlanguage{polutonikogreek}


\Large


Per`i t~hs amuntik~hs leitourg'ias t~hs ekklhsiastik~hs gl'wssas

Ðåñ`é ô~çó áìõíôéê~çó ëåéôïõñã'éáó ô~çó åêêëçóéáóôéê~çó ãë'ùóóáò

\bigskip 


H Orj'odoxh Ekklhs'ia sugkrote~ita st`hn pr'axh di'afores



\end{document}





-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to change the line spacing in the author environment (in a 
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the 
line spacing setting is ignored.

Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the 
second one, and no space is shown where the first one is.


Also, try making the first one a VFill and the document won't compile.

--
Rune


author_spacing.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Pavel Sanda wrote:
  On 10 Jun 2008, G. Milde wrote:
   On 10.06.08, Anthony Campbell wrote:
   
I tried to use Lyx for ancient Greek but the circumflex (tilde) 
keeps
appearing before the letter instead of above it.
 
 In most fonts, even in the Standard glyph list of the Unicode
 consortium and fonts from the Greek Font Society, the accents are 
 written
 before the letter for capital letters and over the letter for small
 letters. 
   
All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumlex is correct.
   
   Could you post a *small* example file (lyx and tex)?
   
   Günter
  
  1. Greek lyx:
 
 can you send it as a normal attachment?
 pavel

I'm not sure what you mean. It's plain ascii.




-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: greek fonts

2008-06-11 Thread Rune Schjellerup Philosof

Anthony Campbell skrev:

On 11 Jun 2008, Pavel Sanda wrote:
  

On 10 Jun 2008, G. Milde wrote:
  

On 10.06.08, Anthony Campbell wrote:


I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
appearing before the letter instead of above it.
  

In most fonts, even in the Standard glyph list of the Unicode
consortium and fonts from the Greek Font Society, the accents are written
before the letter for capital letters and over the letter for small
letters. 


All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumlex is correct.
  

Could you post a *small* example file (lyx and tex)?

Günter


1. Greek lyx:
  

can you send it as a normal attachment?
pavel



I'm not sure what you mean. It's plain ascii.
  
He means like I attached a lyx file in my linespacing  in author mail 
sent a few minutes ago.


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Rune Schjellerup Philosof wrote:
 Anthony Campbell skrev:
 On 11 Jun 2008, Pavel Sanda wrote:
   
 On 10 Jun 2008, G. Milde wrote:
   
 On 10.06.08, Anthony Campbell wrote:
 
 I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
 appearing before the letter instead of above it.
   
 In most fonts, even in the Standard glyph list of the Unicode
 consortium and fonts from the Greek Font Society, the accents are 
 written
 before the letter for capital letters and over the letter for small
 letters. 
 All the accents appear correctly over the letters except for the
 circumflex (tilde). But in plain Latex the circumlex is correct.
   
 Could you post a *small* example file (lyx and tex)?

 Günter
 
 1. Greek lyx:
   
 can you send it as a normal attachment?
 pavel
 

 I'm not sure what you mean. It's plain ascii.
   
 He means like I attached a lyx file in my linespacing  in author mail  
 sent a few minutes ago.


That seems to be the same thing but with carriage returns. Off-hand I'm
not sure how to do that thought I think it's possible in vim. But the
whole thing is getting extremely complicated so I think I'll just stick
with plain Latex.

Thanks to everyone for help.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Nomenclature

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to make a nomenclature list, however, does some strange things.
If I put a nomenclature (MS) in a section environment then the list becomes:
LC Liquid Chromatography, page 13
MS MASS SPECTROMETRY, page 8–10
MS MASS SPECTROMETRY, page 11
MS MASS SPECTROMETRY, page 12, 13
MS Mass spectrometry, page 1
MS Mass spectrometry, page 8
PTM Post Translational Modification, page 14

Some of it is quite nice, but
It really should only contain one entry for MS.
MS Mass spectrometry, page 8-13

I don't why it writes the entries in upper case, why it separates page 
11 out instead creating the 8-13 range, or why it also includes a 
reference to the TOC (page 1).


I have also tried inserting the same nomenclature (DDA and ESI) several 
time in a standard environment, to see it was able to make a range then:

DDA Fragmentation method for mass spectrometry, page 6
DDA Fragmentation method for mass spectrometry, page 15, 16
ESI Electrospray Ionization, page 9, 10
ESI Electrospray Ionization, page 11

But as you can see, for some reason it does not write 6, 15, 16 for DDA 
and 9-11 for ESI.


--
Regards
Rune


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:
 On 10 Jun 2008, G. Milde wrote:
  On 10.06.08, Anthony Campbell wrote:
  
   I tried to use Lyx for ancient Greek but the circumflex
   (tilde) keeps appearing before the letter instead of above
   it.

Unfortunately, lyx currently only supports modern Greek, but has no
support for polytonic Greek (babel option polutonikogreek).

However, this can be easily fixed by adding polutonikogreek to the
languages file and re-configuring:

--- /usr/share/lyx/languages2008-05-14 11:36:44.0 +0200
+++ ~/.lyx/languages2008-06-11 13:09:27.0 +0200
@@ -36,6 +36,7 @@
 german  german Germanfalse  iso8859-15 de_DE  
 ngerman ngermanGerman (new spelling) false  iso8859-15 de_DE  
 greek   greek  Greek false  iso8859-7  el_GR  
+polutonikogreek polutonikogreekGreek (polytonic) false  
iso8859-7  el_GR  
 hebrew  hebrew Hebrewtrue   cp1255 he_IL  
 #hungarian   hungarian Hungarian false  iso8859-2  hu_HU  
 irish   irish  Irish false  iso8859-15 ga_IE  


With this fix, your lyx example can be set to use the language Greek
(polytonic).

However, as the tilde acts as a non-breakable space in LaTeX, it is
escaped by LyX (converted to \asciitilde) and hence the example will only
work right, if you put the tilde (or the whole text) in an ERT box or
just insert a non-breakable space instead.

See the attached example.

Question to the developers: Would it be possible to pass the tilde '~'
to LaTeX as-is if the language is set to polutonikogreek?


   All the accents appear correctly over the letters except for the
   circumflex (tilde). But in plain Latex the circumflex is correct.

A tilde is not a circumflex:

Character '~' (126, 0x7E) 007E  TILDE
Character '^' (94, 0x5E) 005E   CIRCUMFLEX ACCENT


 2. Greek Tex
...

Now I see.

Your example uses polutonikogreek. 
With greek, the tilde is replaced by a space.

With the above patch, I can import your latex example, set the language
to Greek (polytonic) and it displays as expected.


With DocumentSettingsLanguageEncoding set to utf8x, LyX can handle
accented (polytonic) Greek characters like the example 2 copied directly
from the Wikipedia even with language == Greek.

Günter


greek-test-campbell.lyx
Description: application/lyx


greek-german-test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:
Normally LyX checks the package availability for any extensions,
so this might count as a (minor) LyX bug,
  
   no i dont have this package locally, so its not lyx problem.
  
  It is a lyx problem if you can actively set
  DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
  hence utf8x.def) is not installed.
  
  Could you test whether you can change the encoding to something else and
  back to utf8x (before installing ucs)?

 yes i can. anyway i think you should be able to select encoding for which
 your tex distribution hasn't support, because at least editing works and
 and in some cases that is enough.

But this is inconsistent with handling of other extensions.
Editing in LyX works even without any tex distribution, still
reconfigure checks availability of fonts, classes and packages --
but not inputenc nor ucs.

Günter


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 With this fix, your lyx example can be set to use the language Greek
 (polytonic).
 
 However, as the tilde acts as a non-breakable space in LaTeX, it is
 escaped by LyX (converted to \asciitilde) and hence the example will only
 work right, if you put the tilde (or the whole text) in an ERT box or
 just insert a non-breakable space instead.
 
 See the attached example.
 
 Question to the developers: Would it be possible to pass the tilde '~'
 to LaTeX as-is if the language is set to polutonikogreek?

please correct me if i'm wrong, but i think this is wrong direction. how will
you determine nonbreak. space vs tilde accent then?

Anthony wrote that he does not see tilde over character, but i dont have any 
problems with
it. When you put tilde-accent into the command buffer and then strike the 
desired key,
tilde is not working for you? tex output is then \~{character}.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 it. When you put tilde-accent into the command buffer and then strike the 
 desired key,

sorry i meant accent-tilde

 
 pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
  is tetex supposed to work with the chosen encoding or do i need texlive?
  what tex distribution do you use?
 
 utf8x.def is part of the ucs package for comprehensive unicode support.
 
 I use the texlive packages from Debian/testing which contain ucs in
 texlive-latex-recommended. 
 
 I do not know whether ucs is part of tetex (or which tetex package it is
 in). But tetex should cooperate with it if you locally install ucs from
 CTAN.

just for archive purposes gentoo has ucs hidden under dev-tex/latex-unicode
package. i also got complaint about missing beramono.sty so dev-tex/bera
packages was needed too.

after removing \usepackage{kerkis} from preamble of the file you posted
i see everything correctly in postscript output.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 But this is inconsistent with handling of other extensions.
 Editing in LyX works even without any tex distribution, still
 reconfigure checks availability of fonts, classes and packages --
 but not inputenc nor ucs.

which is a different story then prohibit this encoding ;)
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
 
 Unfortunately, lyx currently only supports modern Greek, but has no
 support for polytonic Greek (babel option polutonikogreek).
 
 However, this can be easily fixed by adding polutonikogreek to the
 languages file and re-configuring:
 
 --- /usr/share/lyx/languages  2008-05-14 11:36:44.0 +0200
 +++ ~/.lyx/languages  2008-06-11 13:09:27.0 +0200
 @@ -36,6 +36,7 @@
  german  german   Germanfalse  iso8859-15 de_DE  
  ngerman ngerman  German (new spelling) false  iso8859-15 de_DE  
  greek   greekGreek false  iso8859-7  el_GR  
 +polutonikogreek polutonikogreek  Greek (polytonic) false  
 iso8859-7  el_GR  
  hebrew  hebrew   Hebrewtrue   cp1255 he_IL  
  #hungarian   hungarian   Hungarian false  iso8859-2  hu_HU  
  irish   irishIrish false  iso8859-15 ga_IE  
 
 
 With this fix, your lyx example can be set to use the language Greek
 (polytonic).
 
 However, as the tilde acts as a non-breakable space in LaTeX, it is
 escaped by LyX (converted to \asciitilde) and hence the example will only
 work right, if you put the tilde (or the whole text) in an ERT box or
 just insert a non-breakable space instead.
 
 See the attached example.
 
 Question to the developers: Would it be possible to pass the tilde '~'
 to LaTeX as-is if the language is set to polutonikogreek?
 
 
All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumflex is correct.
 
 A tilde is not a circumflex:
 
 Character '~' (126, 0x7E) 007ETILDE
 Character '^' (94, 0x5E) 005E CIRCUMFLEX ACCENT
 
 
  2. Greek Tex
 ...
 
 Now I see.
 
 Your example uses polutonikogreek. 
 With greek, the tilde is replaced by a space.
 
 With the above patch, I can import your latex example, set the language
 to Greek (polytonic) and it displays as expected.
 
 
 With DocumentSettingsLanguageEncoding set to utf8x, LyX can handle
 accented (polytonic) Greek characters like the example 2 copied directly
 from the Wikipedia even with language == Greek.
 
 Günter


It still doesn't work here. That is, the tilde comes out before the
letter, not on top of it.

But I think this is something to do with the current version of Latex,
not Lyx, because the same thing is now happening in native Latex as
well.

Looks like I shall have to give up trying to write Greek in Lyx and
Latex for the time being, unless someone fixes it. This is on Debian
Sid.  I haven't tried in my rather ancient version of Ubuntu.

Anthony



-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Hi

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.

 --
 Rune


From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Hi

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.



From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.
  


I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, 
and the university name is not double, as the paragraph has been set.


--
Rune


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 On 11 Jun 2008, G. Milde wrote:
 It still doesn't work here. That is, the tilde comes out before the
 letter, not on top of it.
 
 But I think this is something to do with the current version of Latex,
 not Lyx, because the same thing is now happening in native Latex as
 well.
 
 Looks like I shall have to give up trying to write Greek in Lyx and
 Latex for the time being, unless someone fixes it. This is on Debian
 Sid.  I haven't tried in my rather ancient version of Ubuntu.

thats strange, i can typeset Guenter's example file without problems.
and without any polutonikogreek etc. just greek language and utf8x
input encoding is enough.

thing which indeed seems to be broken in lyx is direct typing of these accented
characters into the document. but once you put the character via clipboard or 
symbols dialog in 1.6 i see no problem. both screen and postscipt result are
just fine.

i will raise that input-typing issue on devel list soon.
pavel


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:

  Question to the developers: Would it be possible to pass the tilde '~'
  to LaTeX as-is if the language is set to polutonikogreek?

 please correct me if i'm wrong, but i think this is wrong direction.
 how will you determine nonbreak. space vs tilde accent then?

The same way as polutonikogreek.def: \nobreakspace vs. ~

 Anthony wrote that he does not see tilde over character, but i dont
 have any problems with it. 

So we have to find out what is different in Anthony's case.

 When you put tilde-accent into the command buffer and then strike the
 desired key, tilde is not working for you? 

It works in LyX but not in the printout.

 tex output is then \~{character}.

which works well with (modern) greek but not with polutonikogreek.

See the attached examples.

Günter


greek-test-campbell.lyx
Description: application/lyx


polutonikogreek-test-campbell.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Bob Lounsbury skrev:

 On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:


 Hi

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the
 second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.



 From what I found on the internet, Authors should be added with the,
 \and, command with the command being put in ERT. Also, using ERT line
 breaks, \\, rather than the LyX ctrl-enter seems to work better for
 me. I've attached an example.


 I did not know that about \and.
 But that wasn't really what I was having trouble with.
 Also in your example, the spacing between the lines of the author name, and
 the university name is not double, as the paragraph has been set.

 --
 Rune


Ok. Then try this.

/Bob


author_spacing_test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:

 It still doesn't work here. That is, the tilde comes out before the
 letter, not on top of it.

 But I think this is something to do with the current version of Latex,
 not Lyx, because the same thing is now happening in native Latex as
 well.

Strange.

 Looks like I shall have to give up trying to write Greek in Lyx and
 Latex for the time being, unless someone fixes it. This is on Debian
 Sid.  

I use Debian/testing and do not have the problems.

Could you try with the two attached latex files?

\documentclass[polutonikogreek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{polutonikogreek document}

\selectlanguage{polutonikogreek}%
\inputencoding{iso-8859-7}
this is me~ant t\^o b`e in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~h.}

\end{document}
\documentclass[greek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{greek document}

\selectlanguage{greek}%
\inputencoding{iso-8859-7}
this is me~ant to b`e in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~h.}

\end{document}


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
 On 11.06.08, Anthony Campbell wrote:
 
  It still doesn't work here. That is, the tilde comes out before the
  letter, not on top of it.
 
  But I think this is something to do with the current version of Latex,
  not Lyx, because the same thing is now happening in native Latex as
  well.
 
 Strange.
 
  Looks like I shall have to give up trying to write Greek in Lyx and
  Latex for the time being, unless someone fixes it. This is on Debian
  Sid.  
 
 I use Debian/testing and do not have the problems.
 
 Could you try with the two attached latex files?
 


OK: polytonikogreek document works partly; greek document works
almost correctly except that the second line doesn't print any tildes at
all.

I attach the dvi files so that you can see what happens.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



polytonikogreek-test-campbell.dvi
Description: TeX dvi file


greek-test-campbell.dvi
Description: TeX dvi file


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Bob Lounsbury skrev:


On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the
second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.


From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.
  

I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, and
the university name is not double, as the paragraph has been set.


Ok. Then try this.
  
Well, I forgot to tell, I actually don't want double spacing, but 1.5 or 
something.

I guess I should report it as a bug.


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 10:04 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Bob Lounsbury skrev:

 On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:


 Bob Lounsbury skrev:


 On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the
 line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the
 second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.


 From what I found on the internet, Authors should be added with the,
 \and, command with the command being put in ERT. Also, using ERT line
 breaks, \\, rather than the LyX ctrl-enter seems to work better for
 me. I've attached an example.


 I did not know that about \and.
 But that wasn't really what I was having trouble with.
 Also in your example, the spacing between the lines of the author name,
 and
 the university name is not double, as the paragraph has been set.


 Ok. Then try this.


 Well, I forgot to tell, I actually don't want double spacing, but 1.5 or
 something.
 I guess I should report it as a bug.


Ok, now you're just being picky :-}. I don't think this is a bug, what
you are trying to do is not standard LaTeX formatting within an author
environment.

Anyways, I seem to have fixed the bug by using ctrl-enter at the
start of the next author rather than the end of the author.

See the attached example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 10:04 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Bob Lounsbury skrev:


On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:

  

Bob Lounsbury skrev:



On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the
line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the
second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.



From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.

  

I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name,
and
the university name is not double, as the paragraph has been set.



Ok. Then try this.

  

Well, I forgot to tell, I actually don't want double spacing, but 1.5 or
something.
I guess I should report it as a bug.




Ok, now you're just being picky :-}. I don't think this is a bug, what
you are trying to do is not standard LaTeX formatting within an author
environment.

Anyways, I seem to have fixed the bug by using ctrl-enter at the
start of the next author rather than the end of the author.

See the attached example.

Cheers,
/Bob
  


Nice, the workaround seems to work.
Anoying when LaTeX is so much worse at producing the desired result than 
Lyx.
And no errormessages, even though they probably wouldn't have made much 
sense, they rarely do.


--
Rune



Spell checking problems

2008-06-11 Thread RyanC

Hello,

LyX 1.5.3 on Mepis Linux does not seem to be able to make use of any of 
my spell checking libraries. I'm pretty sure I have them all installed - 
ispell, aspell, etc; American and British English. With ispell I get:


The spellchecker could not be started
Can't open /usr/lib/ispell/english.hash

I think this may be because the file is not called english.hash, but 
british.hash. Any suggestions?


Thanks,
Ryan 


Short indexes reference

2008-06-11 Thread MonAmiPierrot

Hello all, this is my first time in this very useful forum!
As a historian (of opera) I use the analytical index to refer to people's
name and sometimes to their works. But I find really annoying to write every
single time in the index line Verdi, Giuseppe) in Lyx (or a LaTeX editor).
Additionally, when I'm talking about - say - Verdi's opera Aida for a
nested index (very nice and useful) I have to write in the index line
Verdi, [EMAIL PROTECTED] to have it correctly nested and
emphasized.
That's crazy (and I'm still lucky it's a short reference and not Amilcare
Ponchielli's Il Figliuol Prodigo!!!). There should be a way to write only
a sort of conventional label (as for bibliography) for example VerdiAida
or simply Aida which refer to a correctly formatted index reference
somewhere else (the preamble?) and only ONCE for all!!! I'm not refering to
the aliases in the index (I already use): i don't want my index to refer
VerdiAida, see Verdi, Giuseppe / Aida, of course!!!
Please help me, sure there's an answer!
Another - silly - question: how can I BY KEYBOARD open (and close) an index
box or a TeX box in Lyx?
Thanks!


-- 
View this message in context: 
http://www.nabble.com/Short-indexes-reference-tp17784790p17784790.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 12:25 PM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Nice, the workaround seems to work.
 Anoying when LaTeX is so much worse at producing the desired result than
 Lyx.
 And no errormessages, even though they probably wouldn't have made much
 sense, they rarely do.

 --
 Rune

I'm confused? It wasn't a workaround and neither LaTeX nor LyX is
annoying. Also, there were no error messages because it wasn't an
error, other than maybe user error.

What we learned was the proper way of formatting the entries in LyX
and hence LaTeX. LyX is nothing more than a gui frontend for LaTeX.
Both LaTeX and LyX produce the exact same result.

I've attached the example using ERT LaTeX commands to produce the
exact same result as what we've done with native LyX commands, which
are nothing more than a frontend to LaTeX commands. As you can see LyX
and LaTeX output are identical.

Example:
When you insert ctrl-enter in LyX you are actually inserting \\ in
the document. You can see this by using View-View Source that shows
you how your document is being formatted as you enter things in the
LyX WYSIWYG interface to LaTeX.

Hope that helps explain things. You have to insert the proper syntax
to get the proper output.

Cheers,
/Bob


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 1:34 PM, Bob Lounsbury [EMAIL PROTECTED] wrote:
 On Wed, Jun 11, 2008 at 12:25 PM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:
 Nice, the workaround seems to work.
 Anoying when LaTeX is so much worse at producing the desired result than
 Lyx.
 And no errormessages, even though they probably wouldn't have made much
 sense, they rarely do.

 --
 Rune

 I'm confused? It wasn't a workaround and neither LaTeX nor LyX is
 annoying. Also, there were no error messages because it wasn't an
 error, other than maybe user error.

 What we learned was the proper way of formatting the entries in LyX
 and hence LaTeX. LyX is nothing more than a gui frontend for LaTeX.
 Both LaTeX and LyX produce the exact same result.

 I've attached the example using ERT LaTeX commands to produce the
 exact same result as what we've done with native LyX commands, which
 are nothing more than a frontend to LaTeX commands. As you can see LyX
 and LaTeX output are identical.

 Example:
 When you insert ctrl-enter in LyX you are actually inserting \\ in
 the document. You can see this by using View-View Source that shows
 you how your document is being formatted as you enter things in the
 LyX WYSIWYG interface to LaTeX.

 Hope that helps explain things. You have to insert the proper syntax
 to get the proper output.

 Cheers,
 /Bob


Sorry, forgot the attachment.


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

I agree there are usability issues, but once you play with the program
more you get used to those and they transform from usability issues to
LaTeX formatting guidelines :-}. Then you learn how to work with those
guidelines.

Hope you keep plugging away with LyX, it really is a great program.
  


You misunderstood what kind of user I am.
You don't need to convince me to use LyX. I have happily used LyX for my 
bachelor thesis, for various courses, and now for my masters thesis.

LyX is a great addition to the LaTeX toolkit.
However, I just think it could be better (which I'm sure 1.6 will be).
And I still see the line spacing issue as a bug (maybe just rated as a 
feature request).


--
Rune


Re: greek fonts (summary?)

2008-06-11 Thread Pavel Sanda
   Question to the developers: Would it be possible to pass the tilde '~'
   to LaTeX as-is if the language is set to polutonikogreek?
 
  please correct me if i'm wrong, but i think this is wrong direction.
  how will you determine nonbreak. space vs tilde accent then?
 
 The same way as polutonikogreek.def: \nobreakspace vs. ~

before sinking into this issue i still don't understand why polutonikogreek 
is needed, see below.

  When you put tilde-accent into the command buffer and then strike the
  desired key, tilde is not working for you? 
 
 It works in LyX but not in the printout.

yes i found this already ;(

 
  tex output is then \~{character}.
 
 which works well with (modern) greek but not with polutonikogreek.

i would like to summarize the my understanding of the problems i encountered,
please comment on:

1. Screen painting.
after installing unicode fonts for X displaying ancient greek letters works in 
lyx
without problems.

2. LaTeX typeseting.
after installing unicode packages for tex fonts and input encoding utf8x
the documents with ancient greek letters obtained in document via copy  paste
from e.g. wikipedia or through symbols dialog in lyx 1.6 work without problems,
no switch to polutonikogreek needed, just greek language is enough.

3. Input of ancient greek letters into the document.
  a) pasting the (whole) unicode character from outside works
  b) using the keystroke of ~+char does not work - instead of accented character
 we get two characters.
  c) using lfun accent-tilde+char basically(*) works as far as screen painting 
concerened,
 but fails badly once you try to typeset the document.


the key issue is why 3c fails. guessing from the output the culprit is that when
accent-tilde is used with some char, it does not produce 'single' character but
it produces combined unicode character (i.e. accent char+normal char). iirc 
this is correct
from the unicode point of view - single accented char is equivalent to 
combining char + normal letter. this works on the screen, however utf8x is not 
able to 
decode the second case unless we use \unicodecombine macro in tex output.

i see more ways how this could be fixed, but we should firstly agree that THIS 
is the
culprit.

once 3c is fixed, 3b is easily fixable by adding shortcut for ~ - accent-tilde 
call
(or even hard code ~ as a dead key).


pavel

(3c*) there are few minor issues how the 'combined' chars cause editing 
problems inside
lyx - backspace key is not always able to delete accent char, one must put it 
into selection
to get rid of it, there is also issue with source view panel for which i 
already filed
new bug report (4946).



Re: greek fonts (summary?)

2008-06-11 Thread Rune Schjellerup Philosof

Pavel Sanda skrev:

(or even hard code ~ as a dead key).
  


On some keyboard layouts ~ is a dead key by default (danish for instance).
My guess is that people, who wish to write greek, use such a keyboard 
layout (or changes to one).


I wonder why tilde is a dead key on danish keyboards, we don't have any 
chars in our alphabet that use a tilde accent.
I guess someone once thought that tilde would only be used for 
languages, where it is an accent, and then defaulted it to dead?
Then that someone thought wrong, or the one who chose ~ for homedir 
shortcut chose wrong :)

ã õ ñ

--
Mvh
Rune


Re: conversion to open doc format and tables

2008-06-11 Thread Jürgen Spitzmüller
Maria Gouskova wrote:
 Does anyone know why conversion from LyX to Open Document format adds
 blank rows to tables? I'd say about three extra blank rows in the Open
 Doc file for each row in the original LyX document. Even when the
 simplest table is converted, an extra cell is added at the bottom.

 Mac OS 10.5.3, LyX 1.5.5

This is a bug in tex4ht, the LaTeX to ODT converter.

 Is there any way around this?

I just submitted a bug report to the tex4ht maintainer, and he informed me 
that he will look into the problem.

Jürgen


Re: greek fonts

2008-06-11 Thread G. Milde
On 10.06.08, Pavel Sanda wrote:
  On 10.06.08, Pavel Sanda wrote:
  
   now the next step :) i see latex error that utf8x.def file is missing.
  
  Where you able to select utf8x font encoding from the LyX gui? 

 i dont think this is possible. 

My mistake. You cannot choose font encoding from lyx.

It should have read *input encoding* which in lyx is available under
DocumentSettingsLanguageEncoding

 which was set to utf8x in your previous file. 

  Normally LyX checks the package availability for any extensions, so this
  might count as a (minor) LyX bug,

 no i dont have this package locally, so its not lyx problem.

It is a lyx problem if you can actively set
DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
hence utf8x.def) is not installed.

Could you test whether you can change the encoding to something else and
back to utf8x (before installing ucs)?

Of course it is not a lyx problem, if you can open view and edit my file
even if it specifies an encoding your system does not support. ;-)


Günter


Re: pgf and external table plot

2008-06-11 Thread Willem van Engen

 
  [referencing external file inside ERT]
 
 
 It occurs to me that a simpler solution might be to put an absolute
 reference to the file in the ERT. LyX still will not copy it to the
 temp directory, but it won't need to.

Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?

- Willem




Re: pgf and external table plot

2008-06-11 Thread Abdelrazak Younes

Willem van Engen wrote:

[referencing external file inside ERT]


It occurs to me that a simpler solution might be to put an absolute

reference to the file in the ERT. LyX still will not copy it to the
temp directory, but it won't need to.


Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?


Not in 1.5 AFAIK, in 1.6 you'll have InsetInfo for that kind of information.

Abdel.



Re: greek fonts

2008-06-11 Thread Pavel Sanda
   Normally LyX checks the package availability for any extensions, so this
   might count as a (minor) LyX bug,
 
  no i dont have this package locally, so its not lyx problem.
 
 It is a lyx problem if you can actively set
 DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
 hence utf8x.def) is not installed.
 
 Could you test whether you can change the encoding to something else and
 back to utf8x (before installing ucs)?

yes i can. anyway i think you should be able to select encoding for which
your tex distribution hasn't support, because at least editing works and
and in some cases that is enough.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 On 10 Jun 2008, G. Milde wrote:
  On 10.06.08, Anthony Campbell wrote:
  
   I tried to use Lyx for ancient Greek but the circumflex (tilde) 
   keeps
   appearing before the letter instead of above it.

In most fonts, even in the Standard glyph list of the Unicode
consortium and fonts from the Greek Font Society, the accents are 
written
before the letter for capital letters and over the letter for small
letters. 
  
   All the accents appear correctly over the letters except for the
   circumflex (tilde). But in plain Latex the circumlex is correct.
  
  Could you post a *small* example file (lyx and tex)?
  
  Günter
 
 1. Greek lyx:

can you send it as a normal attachment?
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 10 Jun 2008, G. Milde wrote:
 On 10.06.08, Anthony Campbell wrote:
 
  I tried to use Lyx for ancient Greek but the circumflex (tilde) 
  keeps
  appearing before the letter instead of above it.
   
   In most fonts, even in the Standard glyph list of the Unicode
   consortium and fonts from the Greek Font Society, the accents are written
   before the letter for capital letters and over the letter for small
   letters. 
 
  All the accents appear correctly over the letters except for the
  circumflex (tilde). But in plain Latex the circumlex is correct.
 
 Could you post a *small* example file (lyx and tex)?
 
 Günter

1. Greek lyx:


#LyX 1.5.5 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass book
\begin_preamble
% This file was converted from HTML to LaTeX with
% Tomasz Wegrzanowski's [EMAIL PROTECTED] gnuhtml2latex program
% Version : 0.1
\end_preamble
\language greek
\inputencoding auto
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 11
\spacing other 1.1
\papersize custom
\use_geometry true
\use_amsmath 0
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\paperwidth 6in
\paperheight 9in
\leftmargin 0.85in
\topmargin 0.85in
\rightmargin 0.85in
\bottommargin 0.85in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language swedish
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\author  
\author  
\end_header

\begin_body

\begin_layout Standard
this is me~ant to b`e in Gre'ek
\end_layout

\begin_layout Standard

\end_layout

\end_body
\end_document

--

2. Greek Tex

\documentclass{article}
\usepackage[polutonikogreek]{babel}
\usepackage[iso-8859-7]{inputenc}
\begin{document}
\selectlanguage{polutonikogreek}


\Large


Per`i t~hs amuntik~hs leitourg'ias t~hs ekklhsiastik~hs gl'wssas

Ðåñ`é ô~çó áìõíôéê~çó ëåéôïõñã'éáó ô~çó åêêëçóéáóôéê~çó ãë'ùóóáò

\bigskip 


H Orj'odoxh Ekklhs'ia sugkrote~ita st`hn pr'axh di'afores



\end{document}





-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to change the line spacing in the author environment (in a 
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the 
line spacing setting is ignored.

Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the 
second one, and no space is shown where the first one is.


Also, try making the first one a VFill and the document won't compile.

--
Rune


author_spacing.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Pavel Sanda wrote:
  On 10 Jun 2008, G. Milde wrote:
   On 10.06.08, Anthony Campbell wrote:
   
I tried to use Lyx for ancient Greek but the circumflex (tilde) 
keeps
appearing before the letter instead of above it.
 
 In most fonts, even in the Standard glyph list of the Unicode
 consortium and fonts from the Greek Font Society, the accents are 
 written
 before the letter for capital letters and over the letter for small
 letters. 
   
All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumlex is correct.
   
   Could you post a *small* example file (lyx and tex)?
   
   Günter
  
  1. Greek lyx:
 
 can you send it as a normal attachment?
 pavel

I'm not sure what you mean. It's plain ascii.




-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: greek fonts

2008-06-11 Thread Rune Schjellerup Philosof

Anthony Campbell skrev:

On 11 Jun 2008, Pavel Sanda wrote:
  

On 10 Jun 2008, G. Milde wrote:
  

On 10.06.08, Anthony Campbell wrote:


I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
appearing before the letter instead of above it.
  

In most fonts, even in the Standard glyph list of the Unicode
consortium and fonts from the Greek Font Society, the accents are written
before the letter for capital letters and over the letter for small
letters. 


All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumlex is correct.
  

Could you post a *small* example file (lyx and tex)?

Günter


1. Greek lyx:
  

can you send it as a normal attachment?
pavel



I'm not sure what you mean. It's plain ascii.
  
He means like I attached a lyx file in my linespacing  in author mail 
sent a few minutes ago.


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Rune Schjellerup Philosof wrote:
 Anthony Campbell skrev:
 On 11 Jun 2008, Pavel Sanda wrote:
   
 On 10 Jun 2008, G. Milde wrote:
   
 On 10.06.08, Anthony Campbell wrote:
 
 I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
 appearing before the letter instead of above it.
   
 In most fonts, even in the Standard glyph list of the Unicode
 consortium and fonts from the Greek Font Society, the accents are 
 written
 before the letter for capital letters and over the letter for small
 letters. 
 All the accents appear correctly over the letters except for the
 circumflex (tilde). But in plain Latex the circumlex is correct.
   
 Could you post a *small* example file (lyx and tex)?

 Günter
 
 1. Greek lyx:
   
 can you send it as a normal attachment?
 pavel
 

 I'm not sure what you mean. It's plain ascii.
   
 He means like I attached a lyx file in my linespacing  in author mail  
 sent a few minutes ago.


That seems to be the same thing but with carriage returns. Off-hand I'm
not sure how to do that thought I think it's possible in vim. But the
whole thing is getting extremely complicated so I think I'll just stick
with plain Latex.

Thanks to everyone for help.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Nomenclature

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to make a nomenclature list, however, does some strange things.
If I put a nomenclature (MS) in a section environment then the list becomes:
LC Liquid Chromatography, page 13
MS MASS SPECTROMETRY, page 8–10
MS MASS SPECTROMETRY, page 11
MS MASS SPECTROMETRY, page 12, 13
MS Mass spectrometry, page 1
MS Mass spectrometry, page 8
PTM Post Translational Modification, page 14

Some of it is quite nice, but
It really should only contain one entry for MS.
MS Mass spectrometry, page 8-13

I don't why it writes the entries in upper case, why it separates page 
11 out instead creating the 8-13 range, or why it also includes a 
reference to the TOC (page 1).


I have also tried inserting the same nomenclature (DDA and ESI) several 
time in a standard environment, to see it was able to make a range then:

DDA Fragmentation method for mass spectrometry, page 6
DDA Fragmentation method for mass spectrometry, page 15, 16
ESI Electrospray Ionization, page 9, 10
ESI Electrospray Ionization, page 11

But as you can see, for some reason it does not write 6, 15, 16 for DDA 
and 9-11 for ESI.


--
Regards
Rune


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:
 On 10 Jun 2008, G. Milde wrote:
  On 10.06.08, Anthony Campbell wrote:
  
   I tried to use Lyx for ancient Greek but the circumflex
   (tilde) keeps appearing before the letter instead of above
   it.

Unfortunately, lyx currently only supports modern Greek, but has no
support for polytonic Greek (babel option polutonikogreek).

However, this can be easily fixed by adding polutonikogreek to the
languages file and re-configuring:

--- /usr/share/lyx/languages2008-05-14 11:36:44.0 +0200
+++ ~/.lyx/languages2008-06-11 13:09:27.0 +0200
@@ -36,6 +36,7 @@
 german  german Germanfalse  iso8859-15 de_DE  
 ngerman ngermanGerman (new spelling) false  iso8859-15 de_DE  
 greek   greek  Greek false  iso8859-7  el_GR  
+polutonikogreek polutonikogreekGreek (polytonic) false  
iso8859-7  el_GR  
 hebrew  hebrew Hebrewtrue   cp1255 he_IL  
 #hungarian   hungarian Hungarian false  iso8859-2  hu_HU  
 irish   irish  Irish false  iso8859-15 ga_IE  


With this fix, your lyx example can be set to use the language Greek
(polytonic).

However, as the tilde acts as a non-breakable space in LaTeX, it is
escaped by LyX (converted to \asciitilde) and hence the example will only
work right, if you put the tilde (or the whole text) in an ERT box or
just insert a non-breakable space instead.

See the attached example.

Question to the developers: Would it be possible to pass the tilde '~'
to LaTeX as-is if the language is set to polutonikogreek?


   All the accents appear correctly over the letters except for the
   circumflex (tilde). But in plain Latex the circumflex is correct.

A tilde is not a circumflex:

Character '~' (126, 0x7E) 007E  TILDE
Character '^' (94, 0x5E) 005E   CIRCUMFLEX ACCENT


 2. Greek Tex
...

Now I see.

Your example uses polutonikogreek. 
With greek, the tilde is replaced by a space.

With the above patch, I can import your latex example, set the language
to Greek (polytonic) and it displays as expected.


With DocumentSettingsLanguageEncoding set to utf8x, LyX can handle
accented (polytonic) Greek characters like the example 2 copied directly
from the Wikipedia even with language == Greek.

Günter


greek-test-campbell.lyx
Description: application/lyx


greek-german-test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:
Normally LyX checks the package availability for any extensions,
so this might count as a (minor) LyX bug,
  
   no i dont have this package locally, so its not lyx problem.
  
  It is a lyx problem if you can actively set
  DocumentSettingsLanguageEncoding to utf8x while the package ucs (and
  hence utf8x.def) is not installed.
  
  Could you test whether you can change the encoding to something else and
  back to utf8x (before installing ucs)?

 yes i can. anyway i think you should be able to select encoding for which
 your tex distribution hasn't support, because at least editing works and
 and in some cases that is enough.

But this is inconsistent with handling of other extensions.
Editing in LyX works even without any tex distribution, still
reconfigure checks availability of fonts, classes and packages --
but not inputenc nor ucs.

Günter


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 With this fix, your lyx example can be set to use the language Greek
 (polytonic).
 
 However, as the tilde acts as a non-breakable space in LaTeX, it is
 escaped by LyX (converted to \asciitilde) and hence the example will only
 work right, if you put the tilde (or the whole text) in an ERT box or
 just insert a non-breakable space instead.
 
 See the attached example.
 
 Question to the developers: Would it be possible to pass the tilde '~'
 to LaTeX as-is if the language is set to polutonikogreek?

please correct me if i'm wrong, but i think this is wrong direction. how will
you determine nonbreak. space vs tilde accent then?

Anthony wrote that he does not see tilde over character, but i dont have any 
problems with
it. When you put tilde-accent into the command buffer and then strike the 
desired key,
tilde is not working for you? tex output is then \~{character}.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 it. When you put tilde-accent into the command buffer and then strike the 
 desired key,

sorry i meant accent-tilde

 
 pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
  is tetex supposed to work with the chosen encoding or do i need texlive?
  what tex distribution do you use?
 
 utf8x.def is part of the ucs package for comprehensive unicode support.
 
 I use the texlive packages from Debian/testing which contain ucs in
 texlive-latex-recommended. 
 
 I do not know whether ucs is part of tetex (or which tetex package it is
 in). But tetex should cooperate with it if you locally install ucs from
 CTAN.

just for archive purposes gentoo has ucs hidden under dev-tex/latex-unicode
package. i also got complaint about missing beramono.sty so dev-tex/bera
packages was needed too.

after removing \usepackage{kerkis} from preamble of the file you posted
i see everything correctly in postscript output.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 But this is inconsistent with handling of other extensions.
 Editing in LyX works even without any tex distribution, still
 reconfigure checks availability of fonts, classes and packages --
 but not inputenc nor ucs.

which is a different story then prohibit this encoding ;)
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
 
 Unfortunately, lyx currently only supports modern Greek, but has no
 support for polytonic Greek (babel option polutonikogreek).
 
 However, this can be easily fixed by adding polutonikogreek to the
 languages file and re-configuring:
 
 --- /usr/share/lyx/languages  2008-05-14 11:36:44.0 +0200
 +++ ~/.lyx/languages  2008-06-11 13:09:27.0 +0200
 @@ -36,6 +36,7 @@
  german  german   Germanfalse  iso8859-15 de_DE  
  ngerman ngerman  German (new spelling) false  iso8859-15 de_DE  
  greek   greekGreek false  iso8859-7  el_GR  
 +polutonikogreek polutonikogreek  Greek (polytonic) false  
 iso8859-7  el_GR  
  hebrew  hebrew   Hebrewtrue   cp1255 he_IL  
  #hungarian   hungarian   Hungarian false  iso8859-2  hu_HU  
  irish   irishIrish false  iso8859-15 ga_IE  
 
 
 With this fix, your lyx example can be set to use the language Greek
 (polytonic).
 
 However, as the tilde acts as a non-breakable space in LaTeX, it is
 escaped by LyX (converted to \asciitilde) and hence the example will only
 work right, if you put the tilde (or the whole text) in an ERT box or
 just insert a non-breakable space instead.
 
 See the attached example.
 
 Question to the developers: Would it be possible to pass the tilde '~'
 to LaTeX as-is if the language is set to polutonikogreek?
 
 
All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumflex is correct.
 
 A tilde is not a circumflex:
 
 Character '~' (126, 0x7E) 007ETILDE
 Character '^' (94, 0x5E) 005E CIRCUMFLEX ACCENT
 
 
  2. Greek Tex
 ...
 
 Now I see.
 
 Your example uses polutonikogreek. 
 With greek, the tilde is replaced by a space.
 
 With the above patch, I can import your latex example, set the language
 to Greek (polytonic) and it displays as expected.
 
 
 With DocumentSettingsLanguageEncoding set to utf8x, LyX can handle
 accented (polytonic) Greek characters like the example 2 copied directly
 from the Wikipedia even with language == Greek.
 
 Günter


It still doesn't work here. That is, the tilde comes out before the
letter, not on top of it.

But I think this is something to do with the current version of Latex,
not Lyx, because the same thing is now happening in native Latex as
well.

Looks like I shall have to give up trying to write Greek in Lyx and
Latex for the time being, unless someone fixes it. This is on Debian
Sid.  I haven't tried in my rather ancient version of Ubuntu.

Anthony



-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Hi

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.

 --
 Rune


From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Hi

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.



From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.
  


I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, 
and the university name is not double, as the paragraph has been set.


--
Rune


Re: greek fonts

2008-06-11 Thread Pavel Sanda
 On 11 Jun 2008, G. Milde wrote:
 It still doesn't work here. That is, the tilde comes out before the
 letter, not on top of it.
 
 But I think this is something to do with the current version of Latex,
 not Lyx, because the same thing is now happening in native Latex as
 well.
 
 Looks like I shall have to give up trying to write Greek in Lyx and
 Latex for the time being, unless someone fixes it. This is on Debian
 Sid.  I haven't tried in my rather ancient version of Ubuntu.

thats strange, i can typeset Guenter's example file without problems.
and without any polutonikogreek etc. just greek language and utf8x
input encoding is enough.

thing which indeed seems to be broken in lyx is direct typing of these accented
characters into the document. but once you put the character via clipboard or 
symbols dialog in 1.6 i see no problem. both screen and postscipt result are
just fine.

i will raise that input-typing issue on devel list soon.
pavel


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:

  Question to the developers: Would it be possible to pass the tilde '~'
  to LaTeX as-is if the language is set to polutonikogreek?

 please correct me if i'm wrong, but i think this is wrong direction.
 how will you determine nonbreak. space vs tilde accent then?

The same way as polutonikogreek.def: \nobreakspace vs. ~

 Anthony wrote that he does not see tilde over character, but i dont
 have any problems with it. 

So we have to find out what is different in Anthony's case.

 When you put tilde-accent into the command buffer and then strike the
 desired key, tilde is not working for you? 

It works in LyX but not in the printout.

 tex output is then \~{character}.

which works well with (modern) greek but not with polutonikogreek.

See the attached examples.

Günter


greek-test-campbell.lyx
Description: application/lyx


polutonikogreek-test-campbell.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Bob Lounsbury skrev:

 On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:


 Hi

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the
 second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.



 From what I found on the internet, Authors should be added with the,
 \and, command with the command being put in ERT. Also, using ERT line
 breaks, \\, rather than the LyX ctrl-enter seems to work better for
 me. I've attached an example.


 I did not know that about \and.
 But that wasn't really what I was having trouble with.
 Also in your example, the spacing between the lines of the author name, and
 the university name is not double, as the paragraph has been set.

 --
 Rune


Ok. Then try this.

/Bob


author_spacing_test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:

 It still doesn't work here. That is, the tilde comes out before the
 letter, not on top of it.

 But I think this is something to do with the current version of Latex,
 not Lyx, because the same thing is now happening in native Latex as
 well.

Strange.

 Looks like I shall have to give up trying to write Greek in Lyx and
 Latex for the time being, unless someone fixes it. This is on Debian
 Sid.  

I use Debian/testing and do not have the problems.

Could you try with the two attached latex files?

\documentclass[polutonikogreek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{polutonikogreek document}

\selectlanguage{polutonikogreek}%
\inputencoding{iso-8859-7}
this is me~ant t\^o b`e in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~h.}

\end{document}
\documentclass[greek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{greek document}

\selectlanguage{greek}%
\inputencoding{iso-8859-7}
this is me~ant to b`e in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~h.}

\end{document}


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
 On 11.06.08, Anthony Campbell wrote:
 
  It still doesn't work here. That is, the tilde comes out before the
  letter, not on top of it.
 
  But I think this is something to do with the current version of Latex,
  not Lyx, because the same thing is now happening in native Latex as
  well.
 
 Strange.
 
  Looks like I shall have to give up trying to write Greek in Lyx and
  Latex for the time being, unless someone fixes it. This is on Debian
  Sid.  
 
 I use Debian/testing and do not have the problems.
 
 Could you try with the two attached latex files?
 


OK: polytonikogreek document works partly; greek document works
almost correctly except that the second line doesn't print any tildes at
all.

I attach the dvi files so that you can see what happens.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



polytonikogreek-test-campbell.dvi
Description: TeX dvi file


greek-test-campbell.dvi
Description: TeX dvi file


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Bob Lounsbury skrev:


On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the
second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.


From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.
  

I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, and
the university name is not double, as the paragraph has been set.


Ok. Then try this.
  
Well, I forgot to tell, I actually don't want double spacing, but 1.5 or 
something.

I guess I should report it as a bug.


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 10:04 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Bob Lounsbury skrev:

 On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:


 Bob Lounsbury skrev:


 On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:

 I'm trying to change the line spacing in the author environment (in a
 report).
 Lyx shows the change perfectly, but when I view it in pdf or dvi the
 line
 spacing setting is ignored.
 Even when I try to insert vertical spaces they are partly ignored.
 Actually the size of first vertical space in author is used for the
 second
 one, and no space is shown where the first one is.

 Also, try making the first one a VFill and the document won't compile.


 From what I found on the internet, Authors should be added with the,
 \and, command with the command being put in ERT. Also, using ERT line
 breaks, \\, rather than the LyX ctrl-enter seems to work better for
 me. I've attached an example.


 I did not know that about \and.
 But that wasn't really what I was having trouble with.
 Also in your example, the spacing between the lines of the author name,
 and
 the university name is not double, as the paragraph has been set.


 Ok. Then try this.


 Well, I forgot to tell, I actually don't want double spacing, but 1.5 or
 something.
 I guess I should report it as a bug.


Ok, now you're just being picky :-}. I don't think this is a bug, what
you are trying to do is not standard LaTeX formatting within an author
environment.

Anyways, I seem to have fixed the bug by using ctrl-enter at the
start of the next author rather than the end of the author.

See the attached example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 10:04 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

Bob Lounsbury skrev:


On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:

  

Bob Lounsbury skrev:



On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
  

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the
line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the
second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.



From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl-enter seems to work better for
me. I've attached an example.

  

I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name,
and
the university name is not double, as the paragraph has been set.



Ok. Then try this.

  

Well, I forgot to tell, I actually don't want double spacing, but 1.5 or
something.
I guess I should report it as a bug.




Ok, now you're just being picky :-}. I don't think this is a bug, what
you are trying to do is not standard LaTeX formatting within an author
environment.

Anyways, I seem to have fixed the bug by using ctrl-enter at the
start of the next author rather than the end of the author.

See the attached example.

Cheers,
/Bob
  


Nice, the workaround seems to work.
Anoying when LaTeX is so much worse at producing the desired result than 
Lyx.
And no errormessages, even though they probably wouldn't have made much 
sense, they rarely do.


--
Rune



Spell checking problems

2008-06-11 Thread RyanC

Hello,

LyX 1.5.3 on Mepis Linux does not seem to be able to make use of any of 
my spell checking libraries. I'm pretty sure I have them all installed - 
ispell, aspell, etc; American and British English. With ispell I get:


The spellchecker could not be started
Can't open /usr/lib/ispell/english.hash

I think this may be because the file is not called english.hash, but 
british.hash. Any suggestions?


Thanks,
Ryan 


Short indexes reference

2008-06-11 Thread MonAmiPierrot

Hello all, this is my first time in this very useful forum!
As a historian (of opera) I use the analytical index to refer to people's
name and sometimes to their works. But I find really annoying to write every
single time in the index line Verdi, Giuseppe) in Lyx (or a LaTeX editor).
Additionally, when I'm talking about - say - Verdi's opera Aida for a
nested index (very nice and useful) I have to write in the index line
Verdi, [EMAIL PROTECTED] to have it correctly nested and
emphasized.
That's crazy (and I'm still lucky it's a short reference and not Amilcare
Ponchielli's Il Figliuol Prodigo!!!). There should be a way to write only
a sort of conventional label (as for bibliography) for example VerdiAida
or simply Aida which refer to a correctly formatted index reference
somewhere else (the preamble?) and only ONCE for all!!! I'm not refering to
the aliases in the index (I already use): i don't want my index to refer
VerdiAida, see Verdi, Giuseppe / Aida, of course!!!
Please help me, sure there's an answer!
Another - silly - question: how can I BY KEYBOARD open (and close) an index
box or a TeX box in Lyx?
Thanks!


-- 
View this message in context: 
http://www.nabble.com/Short-indexes-reference-tp17784790p17784790.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 12:25 PM, Rune Schjellerup Philosof
[EMAIL PROTECTED] wrote:
 Nice, the workaround seems to work.
 Anoying when LaTeX is so much worse at producing the desired result than
 Lyx.
 And no errormessages, even though they probably wouldn't have made much
 sense, they rarely do.

 --
 Rune

I'm confused? It wasn't a workaround and neither LaTeX nor LyX is
annoying. Also, there were no error messages because it wasn't an
error, other than maybe user error.

What we learned was the proper way of formatting the entries in LyX
and hence LaTeX. LyX is nothing more than a gui frontend for LaTeX.
Both LaTeX and LyX produce the exact same result.

I've attached the example using ERT LaTeX commands to produce the
exact same result as what we've done with native LyX commands, which
are nothing more than a frontend to LaTeX commands. As you can see LyX
and LaTeX output are identical.

Example:
When you insert ctrl-enter in LyX you are actually inserting \\ in
the document. You can see this by using View-View Source that shows
you how your document is being formatted as you enter things in the
LyX WYSIWYG interface to LaTeX.

Hope that helps explain things. You have to insert the proper syntax
to get the proper output.

Cheers,
/Bob


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 1:34 PM, Bob Lounsbury [EMAIL PROTECTED] wrote:
 On Wed, Jun 11, 2008 at 12:25 PM, Rune Schjellerup Philosof
 [EMAIL PROTECTED] wrote:
 Nice, the workaround seems to work.
 Anoying when LaTeX is so much worse at producing the desired result than
 Lyx.
 And no errormessages, even though they probably wouldn't have made much
 sense, they rarely do.

 --
 Rune

 I'm confused? It wasn't a workaround and neither LaTeX nor LyX is
 annoying. Also, there were no error messages because it wasn't an
 error, other than maybe user error.

 What we learned was the proper way of formatting the entries in LyX
 and hence LaTeX. LyX is nothing more than a gui frontend for LaTeX.
 Both LaTeX and LyX produce the exact same result.

 I've attached the example using ERT LaTeX commands to produce the
 exact same result as what we've done with native LyX commands, which
 are nothing more than a frontend to LaTeX commands. As you can see LyX
 and LaTeX output are identical.

 Example:
 When you insert ctrl-enter in LyX you are actually inserting \\ in
 the document. You can see this by using View-View Source that shows
 you how your document is being formatted as you enter things in the
 LyX WYSIWYG interface to LaTeX.

 Hope that helps explain things. You have to insert the proper syntax
 to get the proper output.

 Cheers,
 /Bob


Sorry, forgot the attachment.


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

I agree there are usability issues, but once you play with the program
more you get used to those and they transform from usability issues to
LaTeX formatting guidelines :-}. Then you learn how to work with those
guidelines.

Hope you keep plugging away with LyX, it really is a great program.
  


You misunderstood what kind of user I am.
You don't need to convince me to use LyX. I have happily used LyX for my 
bachelor thesis, for various courses, and now for my masters thesis.

LyX is a great addition to the LaTeX toolkit.
However, I just think it could be better (which I'm sure 1.6 will be).
And I still see the line spacing issue as a bug (maybe just rated as a 
feature request).


--
Rune


Re: greek fonts (summary?)

2008-06-11 Thread Pavel Sanda
   Question to the developers: Would it be possible to pass the tilde '~'
   to LaTeX as-is if the language is set to polutonikogreek?
 
  please correct me if i'm wrong, but i think this is wrong direction.
  how will you determine nonbreak. space vs tilde accent then?
 
 The same way as polutonikogreek.def: \nobreakspace vs. ~

before sinking into this issue i still don't understand why polutonikogreek 
is needed, see below.

  When you put tilde-accent into the command buffer and then strike the
  desired key, tilde is not working for you? 
 
 It works in LyX but not in the printout.

yes i found this already ;(

 
  tex output is then \~{character}.
 
 which works well with (modern) greek but not with polutonikogreek.

i would like to summarize the my understanding of the problems i encountered,
please comment on:

1. Screen painting.
after installing unicode fonts for X displaying ancient greek letters works in 
lyx
without problems.

2. LaTeX typeseting.
after installing unicode packages for tex fonts and input encoding utf8x
the documents with ancient greek letters obtained in document via copy  paste
from e.g. wikipedia or through symbols dialog in lyx 1.6 work without problems,
no switch to polutonikogreek needed, just greek language is enough.

3. Input of ancient greek letters into the document.
  a) pasting the (whole) unicode character from outside works
  b) using the keystroke of ~+char does not work - instead of accented character
 we get two characters.
  c) using lfun accent-tilde+char basically(*) works as far as screen painting 
concerened,
 but fails badly once you try to typeset the document.


the key issue is why 3c fails. guessing from the output the culprit is that when
accent-tilde is used with some char, it does not produce 'single' character but
it produces combined unicode character (i.e. accent char+normal char). iirc 
this is correct
from the unicode point of view - single accented char is equivalent to 
combining char + normal letter. this works on the screen, however utf8x is not 
able to 
decode the second case unless we use \unicodecombine macro in tex output.

i see more ways how this could be fixed, but we should firstly agree that THIS 
is the
culprit.

once 3c is fixed, 3b is easily fixable by adding shortcut for ~ - accent-tilde 
call
(or even hard code ~ as a dead key).


pavel

(3c*) there are few minor issues how the 'combined' chars cause editing 
problems inside
lyx - backspace key is not always able to delete accent char, one must put it 
into selection
to get rid of it, there is also issue with source view panel for which i 
already filed
new bug report (4946).



Re: greek fonts (summary?)

2008-06-11 Thread Rune Schjellerup Philosof

Pavel Sanda skrev:

(or even hard code ~ as a dead key).
  


On some keyboard layouts ~ is a dead key by default (danish for instance).
My guess is that people, who wish to write greek, use such a keyboard 
layout (or changes to one).


I wonder why tilde is a dead key on danish keyboards, we don't have any 
chars in our alphabet that use a tilde accent.
I guess someone once thought that tilde would only be used for 
languages, where it is an accent, and then defaulted it to dead?
Then that someone thought wrong, or the one who chose ~ for homedir 
shortcut chose wrong :)

ã õ ñ

--
Mvh
Rune


Re: conversion to open doc format and tables

2008-06-11 Thread Jürgen Spitzmüller
Maria Gouskova wrote:
> Does anyone know why conversion from LyX to Open Document format adds
> blank rows to tables? I'd say about three extra blank rows in the Open
> Doc file for each row in the original LyX document. Even when the
> simplest table is converted, an extra cell is added at the bottom.
>
> Mac OS 10.5.3, LyX 1.5.5

This is a bug in tex4ht, the LaTeX to ODT converter.

> Is there any way around this?

I just submitted a bug report to the tex4ht maintainer, and he informed me 
that he will look into the problem.

Jürgen


Re: greek fonts

2008-06-11 Thread G. Milde
On 10.06.08, Pavel Sanda wrote:
> > On 10.06.08, Pavel Sanda wrote:
> > 
> > > now the next step :) i see latex error that utf8x.def file is missing.
> > 
> > Where you able to select utf8x font encoding from the LyX gui? 

> i dont think this is possible. 

My mistake. You cannot choose font encoding from lyx.

It should have read *input encoding* which in lyx is available under
Document>Settings>Language>Encoding

> which was set to utf8x in your previous file. 

> > Normally LyX checks the package availability for any extensions, so this
> > might count as a (minor) LyX bug,

> no i dont have this package locally, so its not lyx problem.

It is a lyx problem if you can actively set
Document>Settings>Language>Encoding to utf8x while the package ucs (and
hence utf8x.def) is not installed.

Could you test whether you can change the encoding to something else and
back to utf8x (before installing ucs)?

Of course it is not a lyx problem, if you can open view and edit my file
even if it specifies an encoding your system does not support. ;-)


Günter


Re: pgf and external table plot

2008-06-11 Thread Willem van Engen

> >
> > [referencing external file inside ERT]
> >
> 
> It occurs to me that a simpler solution might be to put an absolute
> reference to the file in the ERT. LyX still will not copy it to the
> temp directory, but it won't need to.

Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?

- Willem




Re: pgf and external table plot

2008-06-11 Thread Abdelrazak Younes

Willem van Engen wrote:

[referencing external file inside ERT]


It occurs to me that a simpler solution might be to put an absolute

reference to the file in the ERT. LyX still will not copy it to the
temp directory, but it won't need to.


Hmm that makes sense, good idea :) Is there a way to have the absolute
path where the source lyx files reside expanded by a macro or somehow?


Not in 1.5 AFAIK, in 1.6 you'll have InsetInfo for that kind of information.

Abdel.



Re: greek fonts

2008-06-11 Thread Pavel Sanda
> > > Normally LyX checks the package availability for any extensions, so this
> > > might count as a (minor) LyX bug,
> 
> > no i dont have this package locally, so its not lyx problem.
> 
> It is a lyx problem if you can actively set
> Document>Settings>Language>Encoding to utf8x while the package ucs (and
> hence utf8x.def) is not installed.
> 
> Could you test whether you can change the encoding to something else and
> back to utf8x (before installing ucs)?

yes i can. anyway i think you should be able to select encoding for which
your tex distribution hasn't support, because at least editing works and
and in some cases that is enough.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> On 10 Jun 2008, G. Milde wrote:
> > On 10.06.08, Anthony Campbell wrote:
> > > > > > 
> > > > > > > I tried to use Lyx for ancient Greek but the circumflex (tilde) 
> > > > > > > keeps
> > > > > > > appearing before the letter instead of above it.
> > > > 
> > > > In most fonts, even in the "Standard glyph list" of the Unicode
> > > > consortium and fonts from the Greek Font Society, the accents are 
> > > > written
> > > > before the letter for capital letters and over the letter for small
> > > > letters. 
> > 
> > > All the accents appear correctly over the letters except for the
> > > circumflex (tilde). But in plain Latex the circumlex is correct.
> > 
> > Could you post a *small* example file (lyx and tex)?
> > 
> > Günter
> 
> 1. Greek lyx:

can you send it as a normal attachment?
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 10 Jun 2008, G. Milde wrote:
> On 10.06.08, Anthony Campbell wrote:
> > > > > 
> > > > > > I tried to use Lyx for ancient Greek but the circumflex (tilde) 
> > > > > > keeps
> > > > > > appearing before the letter instead of above it.
> > > 
> > > In most fonts, even in the "Standard glyph list" of the Unicode
> > > consortium and fonts from the Greek Font Society, the accents are written
> > > before the letter for capital letters and over the letter for small
> > > letters. 
> 
> > All the accents appear correctly over the letters except for the
> > circumflex (tilde). But in plain Latex the circumlex is correct.
> 
> Could you post a *small* example file (lyx and tex)?
> 
> Günter

1. Greek lyx:


#LyX 1.5.5 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass book
\begin_preamble
% This file was converted from HTML to LaTeX with
% Tomasz Wegrzanowski's <[EMAIL PROTECTED]> gnuhtml2latex program
% Version : 0.1
\end_preamble
\language greek
\inputencoding auto
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 11
\spacing other 1.1
\papersize custom
\use_geometry true
\use_amsmath 0
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\paperwidth 6in
\paperheight 9in
\leftmargin 0.85in
\topmargin 0.85in
\rightmargin 0.85in
\bottommargin 0.85in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language swedish
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Standard
this is me~ant to b`e >in Gre'ek
\end_layout

\begin_layout Standard

\end_layout

\end_body
\end_document

--

2. Greek Tex

\documentclass{article}
\usepackage[polutonikogreek]{babel}
\usepackage[iso-8859-7]{inputenc}
\begin{document}
\selectlanguage{polutonikogreek}


\Large


Per`i t~hs >amuntik~hs leitourg'ias t~hs >ekklhsiastik~hs gl'wssas

Ðåñ`é ô~çó >áìõíôéê~çó ëåéôïõñã'éáó ô~çó >åêêëçóéáóôéê~çó ãë'ùóóáò

\bigskip 


>H 

Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to change the line spacing in the author environment (in a 
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the 
line spacing setting is ignored.

Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the 
second one, and no space is shown where the first one is.


Also, try making the first one a VFill and the document won't compile.

--
Rune


author_spacing.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Pavel Sanda wrote:
> > On 10 Jun 2008, G. Milde wrote:
> > > On 10.06.08, Anthony Campbell wrote:
> > > > > > > 
> > > > > > > > I tried to use Lyx for ancient Greek but the circumflex (tilde) 
> > > > > > > > keeps
> > > > > > > > appearing before the letter instead of above it.
> > > > > 
> > > > > In most fonts, even in the "Standard glyph list" of the Unicode
> > > > > consortium and fonts from the Greek Font Society, the accents are 
> > > > > written
> > > > > before the letter for capital letters and over the letter for small
> > > > > letters. 
> > > 
> > > > All the accents appear correctly over the letters except for the
> > > > circumflex (tilde). But in plain Latex the circumlex is correct.
> > > 
> > > Could you post a *small* example file (lyx and tex)?
> > > 
> > > Günter
> > 
> > 1. Greek lyx:
> 
> can you send it as a normal attachment?
> pavel

I'm not sure what you mean. It's plain ascii.




-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: greek fonts

2008-06-11 Thread Rune Schjellerup Philosof

Anthony Campbell skrev:

On 11 Jun 2008, Pavel Sanda wrote:
  

On 10 Jun 2008, G. Milde wrote:
  

On 10.06.08, Anthony Campbell wrote:


I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
appearing before the letter instead of above it.
  

In most fonts, even in the "Standard glyph list" of the Unicode
consortium and fonts from the Greek Font Society, the accents are written
before the letter for capital letters and over the letter for small
letters. 


All the accents appear correctly over the letters except for the
circumflex (tilde). But in plain Latex the circumlex is correct.
  

Could you post a *small* example file (lyx and tex)?

Günter


1. Greek lyx:
  

can you send it as a normal attachment?
pavel



I'm not sure what you mean. It's plain ascii.
  
He means like I attached a lyx file in my "linespacing  in author" mail 
sent a few minutes ago.


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, Rune Schjellerup Philosof wrote:
> Anthony Campbell skrev:
>> On 11 Jun 2008, Pavel Sanda wrote:
>>   
 On 10 Jun 2008, G. Milde wrote:
   
> On 10.06.08, Anthony Campbell wrote:
> 
>> I tried to use Lyx for ancient Greek but the circumflex (tilde) keeps
>> appearing before the letter instead of above it.
>>   
>>> In most fonts, even in the "Standard glyph list" of the Unicode
>>> consortium and fonts from the Greek Font Society, the accents are 
>>> written
>>> before the letter for capital letters and over the letter for small
>>> letters. 
>> All the accents appear correctly over the letters except for the
>> circumflex (tilde). But in plain Latex the circumlex is correct.
>>   
> Could you post a *small* example file (lyx and tex)?
>
> Günter
> 
 1. Greek lyx:
   
>>> can you send it as a normal attachment?
>>> pavel
>>> 
>>
>> I'm not sure what you mean. It's plain ascii.
>>   
> He means like I attached a lyx file in my "linespacing  in author" mail  
> sent a few minutes ago.


That seems to be the same thing but with carriage returns. Off-hand I'm
not sure how to do that thought I think it's possible in vim. But the
whole thing is getting extremely complicated so I think I'll just stick
with plain Latex.

Thanks to everyone for help.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Nomenclature

2008-06-11 Thread Rune Schjellerup Philosof

Hi

I'm trying to make a nomenclature list, however, does some strange things.
If I put a nomenclature (MS) in a section environment then the list becomes:
LC Liquid Chromatography, page 13
MS MASS SPECTROMETRY, page 8–10
MS MASS SPECTROMETRY, page 11
MS MASS SPECTROMETRY, page 12, 13
MS Mass spectrometry, page 1
MS Mass spectrometry, page 8
PTM Post Translational Modification, page 14

Some of it is quite nice, but
It really should only contain one entry for MS.
MS Mass spectrometry, page 8-13

I don't why it writes the entries in upper case, why it separates page 
11 out instead creating the 8-13 range, or why it also includes a 
reference to the TOC (page 1).


I have also tried inserting the same nomenclature (DDA and ESI) several 
time in a standard environment, to see it was able to make a range then:

DDA Fragmentation method for mass spectrometry, page 6
DDA Fragmentation method for mass spectrometry, page 15, 16
ESI Electrospray Ionization, page 9, 10
ESI Electrospray Ionization, page 11

But as you can see, for some reason it does not write 6, 15, 16 for DDA 
and 9-11 for ESI.


--
Regards
Rune


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:
> On 10 Jun 2008, G. Milde wrote:
> > On 10.06.08, Anthony Campbell wrote:
> > > > > > 
> > > > > > > I tried to use Lyx for ancient Greek but the circumflex
> > > > > > > (tilde) keeps appearing before the letter instead of above
> > > > > > > it.

Unfortunately, lyx currently only supports modern Greek, but has no
support for polytonic Greek (babel option polutonikogreek).

However, this can be easily fixed by adding polutonikogreek to the
languages file and re-configuring:

--- /usr/share/lyx/languages2008-05-14 11:36:44.0 +0200
+++ ~/.lyx/languages2008-06-11 13:09:27.0 +0200
@@ -36,6 +36,7 @@
 german  german "German"false  iso8859-15 de_DE  ""
 ngerman ngerman"German (new spelling)" false  iso8859-15 de_DE  ""
 greek   greek  "Greek" false  iso8859-7  el_GR  ""
+polutonikogreek polutonikogreek"Greek (polytonic)" false  
iso8859-7  el_GR  ""
 hebrew  hebrew "Hebrew"true   cp1255 he_IL  ""
 #hungarian   hungarian "Hungarian" false  iso8859-2  hu_HU  ""
 irish   irish  "Irish" false  iso8859-15 ga_IE  ""


With this fix, your lyx example can be set to use the language "Greek
(polytonic)".

However, as the tilde acts as a non-breakable space in LaTeX, it is
escaped by LyX (converted to \asciitilde) and hence the example will only
work right, if you put the tilde (or the whole text) in an ERT box or
just insert a non-breakable space instead.

See the attached example.

Question to the developers: Would it be possible to pass the tilde '~'
to LaTeX as-is if the language is set to polutonikogreek?


> > > All the accents appear correctly over the letters except for the
> > > circumflex (tilde). But in plain Latex the circumflex is correct.

A tilde is not a circumflex:

Character '~' (126, 0x7E) 007E  TILDE
Character '^' (94, 0x5E) 005E   CIRCUMFLEX ACCENT


> 2. Greek Tex
...

Now I see.

Your example uses polutonikogreek. 
With greek, the tilde is replaced by a space.

With the above patch, I can import your latex example, set the language
to Greek (polytonic) and it displays as expected.


With Document>Settings>Language>Encoding set to utf8x, LyX can handle
accented (polytonic) Greek characters like the example 2 copied directly
from the Wikipedia even with language == Greek.

Günter


greek-test-campbell.lyx
Description: application/lyx


greek-german-test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:
> > > > Normally LyX checks the package availability for any extensions,
> > > > so this might count as a (minor) LyX bug,
> > 
> > > no i dont have this package locally, so its not lyx problem.
> > 
> > It is a lyx problem if you can actively set
> > Document>Settings>Language>Encoding to utf8x while the package ucs (and
> > hence utf8x.def) is not installed.
> > 
> > Could you test whether you can change the encoding to something else and
> > back to utf8x (before installing ucs)?

> yes i can. anyway i think you should be able to select encoding for which
> your tex distribution hasn't support, because at least editing works and
> and in some cases that is enough.

But this is inconsistent with handling of other extensions.
Editing in LyX works even without any tex distribution, still
reconfigure checks availability of fonts, classes and packages --
but not inputenc nor ucs.

Günter


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> With this fix, your lyx example can be set to use the language "Greek
> (polytonic)".
> 
> However, as the tilde acts as a non-breakable space in LaTeX, it is
> escaped by LyX (converted to \asciitilde) and hence the example will only
> work right, if you put the tilde (or the whole text) in an ERT box or
> just insert a non-breakable space instead.
> 
> See the attached example.
> 
> Question to the developers: Would it be possible to pass the tilde '~'
> to LaTeX as-is if the language is set to polutonikogreek?

please correct me if i'm wrong, but i think this is wrong direction. how will
you determine nonbreak. space vs tilde accent then?

Anthony wrote that he does not see tilde over character, but i dont have any 
problems with
it. When you put "tilde-accent" into the command buffer and then strike the 
desired key,
tilde is not working for you? tex output is then \~{character}.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> it. When you put "tilde-accent" into the command buffer and then strike the 
> desired key,

sorry i meant "accent-tilde"

> 
> pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> > is tetex supposed to work with the chosen encoding or do i need texlive?
> > what tex distribution do you use?
> 
> utf8x.def is part of the "ucs" package for comprehensive unicode support.
> 
> I use the texlive packages from Debian/testing which contain ucs in
> texlive-latex-recommended. 
> 
> I do not know whether ucs is part of tetex (or which tetex package it is
> in). But tetex should cooperate with it if you locally install ucs from
> CTAN.

just for archive purposes gentoo has ucs hidden under dev-tex/latex-unicode
package. i also got complaint about missing beramono.sty so dev-tex/bera
packages was needed too.

after removing \usepackage{kerkis} from preamble of the file you posted
i see everything correctly in postscript output.

pavel


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> But this is inconsistent with handling of other extensions.
> Editing in LyX works even without any tex distribution, still
> reconfigure checks availability of fonts, classes and packages --
> but not inputenc nor ucs.

which is a different story then prohibit this encoding ;)
pavel


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
> 
> Unfortunately, lyx currently only supports modern Greek, but has no
> support for polytonic Greek (babel option polutonikogreek).
> 
> However, this can be easily fixed by adding polutonikogreek to the
> languages file and re-configuring:
> 
> --- /usr/share/lyx/languages  2008-05-14 11:36:44.0 +0200
> +++ ~/.lyx/languages  2008-06-11 13:09:27.0 +0200
> @@ -36,6 +36,7 @@
>  german  german   "German"false  iso8859-15 de_DE  ""
>  ngerman ngerman  "German (new spelling)" false  iso8859-15 de_DE  ""
>  greek   greek"Greek" false  iso8859-7  el_GR  ""
> +polutonikogreek polutonikogreek  "Greek (polytonic)" false  
> iso8859-7  el_GR  ""
>  hebrew  hebrew   "Hebrew"true   cp1255 he_IL  ""
>  #hungarian   hungarian   "Hungarian" false  iso8859-2  hu_HU  ""
>  irish   irish"Irish" false  iso8859-15 ga_IE  ""
> 
> 
> With this fix, your lyx example can be set to use the language "Greek
> (polytonic)".
> 
> However, as the tilde acts as a non-breakable space in LaTeX, it is
> escaped by LyX (converted to \asciitilde) and hence the example will only
> work right, if you put the tilde (or the whole text) in an ERT box or
> just insert a non-breakable space instead.
> 
> See the attached example.
> 
> Question to the developers: Would it be possible to pass the tilde '~'
> to LaTeX as-is if the language is set to polutonikogreek?
> 
> 
> > > > All the accents appear correctly over the letters except for the
> > > > circumflex (tilde). But in plain Latex the circumflex is correct.
> 
> A tilde is not a circumflex:
> 
> Character '~' (126, 0x7E) 007ETILDE
> Character '^' (94, 0x5E) 005E CIRCUMFLEX ACCENT
> 
> 
> > 2. Greek Tex
> ...
> 
> Now I see.
> 
> Your example uses polutonikogreek. 
> With greek, the tilde is replaced by a space.
> 
> With the above patch, I can import your latex example, set the language
> to Greek (polytonic) and it displays as expected.
> 
> 
> With Document>Settings>Language>Encoding set to utf8x, LyX can handle
> accented (polytonic) Greek characters like the example 2 copied directly
> from the Wikipedia even with language == Greek.
> 
> Günter


It still doesn't work here. That is, the tilde comes out before the
letter, not on top of it.

But I think this is something to do with the current version of Latex,
not Lyx, because the same thing is now happening in native Latex as
well.

Looks like I shall have to give up trying to write Greek in Lyx and
Latex for the time being, unless someone fixes it. This is on Debian
Sid.  I haven't tried in my rather ancient version of Ubuntu.

Anthony



-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm trying to change the line spacing in the author environment (in a
> report).
> Lyx shows the change perfectly, but when I view it in pdf or dvi the line
> spacing setting is ignored.
> Even when I try to insert vertical spaces they are partly ignored.
> Actually the size of first vertical space in author is used for the second
> one, and no space is shown where the first one is.
>
> Also, try making the first one a VFill and the document won't compile.
>
> --
> Rune
>

>From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl->enter seems to work better for
me. I've attached an example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:
  

Hi

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.



From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl->enter seems to work better for
me. I've attached an example.
  


I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, 
and the university name is not double, as the paragraph has been set.


--
Rune


Re: greek fonts

2008-06-11 Thread Pavel Sanda
> On 11 Jun 2008, G. Milde wrote:
> It still doesn't work here. That is, the tilde comes out before the
> letter, not on top of it.
> 
> But I think this is something to do with the current version of Latex,
> not Lyx, because the same thing is now happening in native Latex as
> well.
> 
> Looks like I shall have to give up trying to write Greek in Lyx and
> Latex for the time being, unless someone fixes it. This is on Debian
> Sid.  I haven't tried in my rather ancient version of Ubuntu.

thats strange, i can typeset Guenter's example file without problems.
and without any polutonikogreek etc. just greek language and utf8x
input encoding is enough.

thing which indeed seems to be broken in lyx is direct typing of these accented
characters into the document. but once you put the character via clipboard or 
symbols dialog in 1.6 i see no problem. both screen and postscipt result are
just fine.

i will raise that input-typing issue on devel list soon.
pavel


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Pavel Sanda wrote:

> > Question to the developers: Would it be possible to pass the tilde '~'
> > to LaTeX as-is if the language is set to polutonikogreek?

> please correct me if i'm wrong, but i think this is wrong direction.
> how will you determine nonbreak. space vs tilde accent then?

The same way as polutonikogreek.def: \nobreakspace vs. ~

> Anthony wrote that he does not see tilde over character, but i dont
> have any problems with it. 

So we have to find out what is different in Anthony's case.

> When you put "tilde-accent" into the command buffer and then strike the
> desired key, tilde is not working for you? 

It works in LyX but not in the printout.

> tex output is then \~{character}.

which works well with (modern) "greek" but not with "polutonikogreek".

See the attached examples.

Günter


greek-test-campbell.lyx
Description: application/lyx


polutonikogreek-test-campbell.lyx
Description: application/lyx


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:
> Bob Lounsbury skrev:
>>
>> On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
>> <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Hi
>>>
>>> I'm trying to change the line spacing in the author environment (in a
>>> report).
>>> Lyx shows the change perfectly, but when I view it in pdf or dvi the line
>>> spacing setting is ignored.
>>> Even when I try to insert vertical spaces they are partly ignored.
>>> Actually the size of first vertical space in author is used for the
>>> second
>>> one, and no space is shown where the first one is.
>>>
>>> Also, try making the first one a VFill and the document won't compile.
>>>
>>>
>>
>> From what I found on the internet, Authors should be added with the,
>> \and, command with the command being put in ERT. Also, using ERT line
>> breaks, \\, rather than the LyX ctrl->enter seems to work better for
>> me. I've attached an example.
>>
>
> I did not know that about \and.
> But that wasn't really what I was having trouble with.
> Also in your example, the spacing between the lines of the author name, and
> the university name is not double, as the paragraph has been set.
>
> --
> Rune
>

Ok. Then try this.

/Bob


author_spacing_test.lyx
Description: application/lyx


Re: greek fonts

2008-06-11 Thread G. Milde
On 11.06.08, Anthony Campbell wrote:

> It still doesn't work here. That is, the tilde comes out before the
> letter, not on top of it.

> But I think this is something to do with the current version of Latex,
> not Lyx, because the same thing is now happening in native Latex as
> well.

Strange.

> Looks like I shall have to give up trying to write Greek in Lyx and
> Latex for the time being, unless someone fixes it. This is on Debian
> Sid.  

I use Debian/testing and do not have the problems.

Could you try with the two attached latex files?

\documentclass[polutonikogreek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{polutonikogreek document}

\selectlanguage{polutonikogreek}%
\inputencoding{iso-8859-7}
this is me~ant t\^o b`e >in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{polutonikogreek}{\~h.}

\end{document}
\documentclass[greek,british]{article}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usepackage[latin9,iso-8859-7]{inputenc}
\usepackage{babel}

\begin{document}

\selectlanguage{british}%
\inputencoding{latin9}
\section*{greek document}

\selectlanguage{greek}%
\inputencoding{iso-8859-7}
this is me~ant to b`e >in Gre'ek

\selectlanguage{british}%
\inputencoding{latin9}This prints a tilde before the letter: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\textasciitilde{}h.}

\inputencoding{latin9}This only works in polutonik (classic) Greek but drops
the tilde in modern Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{~h, ~h.}

\inputencoding{latin9}This only works in monotonik (modern) Greek:
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~{h}.}

\inputencoding{latin9}This works in both, polutonik and monotonik (modern)
Greek: 
\inputencoding{iso-8859-7}\foreignlanguage{greek}{\~h.}

\end{document}


Re: greek fonts

2008-06-11 Thread Anthony Campbell
On 11 Jun 2008, G. Milde wrote:
> On 11.06.08, Anthony Campbell wrote:
> 
> > It still doesn't work here. That is, the tilde comes out before the
> > letter, not on top of it.
> 
> > But I think this is something to do with the current version of Latex,
> > not Lyx, because the same thing is now happening in native Latex as
> > well.
> 
> Strange.
> 
> > Looks like I shall have to give up trying to write Greek in Lyx and
> > Latex for the time being, unless someone fixes it. This is on Debian
> > Sid.  
> 
> I use Debian/testing and do not have the problems.
> 
> Could you try with the two attached latex files?
> 


OK: "polytonikogreek document" works partly; "greek document" works
almost correctly except that the second line doesn't print any tildes at
all.

I attach the dvi files so that you can see what happens.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



polytonikogreek-test-campbell.dvi
Description: TeX dvi file


greek-test-campbell.dvi
Description: TeX dvi file


Re: Line spacing in author

2008-06-11 Thread Rune Schjellerup Philosof

Bob Lounsbury skrev:

On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:
  

Bob Lounsbury skrev:


On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:

I'm trying to change the line spacing in the author environment (in a
report).
Lyx shows the change perfectly, but when I view it in pdf or dvi the line
spacing setting is ignored.
Even when I try to insert vertical spaces they are partly ignored.
Actually the size of first vertical space in author is used for the
second
one, and no space is shown where the first one is.

Also, try making the first one a VFill and the document won't compile.


From what I found on the internet, Authors should be added with the,
\and, command with the command being put in ERT. Also, using ERT line
breaks, \\, rather than the LyX ctrl->enter seems to work better for
me. I've attached an example.
  

I did not know that about \and.
But that wasn't really what I was having trouble with.
Also in your example, the spacing between the lines of the author name, and
the university name is not double, as the paragraph has been set.


Ok. Then try this.
  
Well, I forgot to tell, I actually don't want double spacing, but 1.5 or 
something.

I guess I should report it as a bug.


Re: Line spacing in author

2008-06-11 Thread Bob Lounsbury
On Wed, Jun 11, 2008 at 10:04 AM, Rune Schjellerup Philosof
<[EMAIL PROTECTED]> wrote:
> Bob Lounsbury skrev:
>>
>> On Wed, Jun 11, 2008 at 8:44 AM, Rune Schjellerup Philosof
>> <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Bob Lounsbury skrev:
>>>

 On Wed, Jun 11, 2008 at 3:37 AM, Rune Schjellerup Philosof
 <[EMAIL PROTECTED]> wrote:
>
> I'm trying to change the line spacing in the author environment (in a
> report).
> Lyx shows the change perfectly, but when I view it in pdf or dvi the
> line
> spacing setting is ignored.
> Even when I try to insert vertical spaces they are partly ignored.
> Actually the size of first vertical space in author is used for the
> second
> one, and no space is shown where the first one is.
>
> Also, try making the first one a VFill and the document won't compile.
>

 From what I found on the internet, Authors should be added with the,
 \and, command with the command being put in ERT. Also, using ERT line
 breaks, \\, rather than the LyX ctrl->enter seems to work better for
 me. I've attached an example.

>>>
>>> I did not know that about \and.
>>> But that wasn't really what I was having trouble with.
>>> Also in your example, the spacing between the lines of the author name,
>>> and
>>> the university name is not double, as the paragraph has been set.
>>>
>>
>> Ok. Then try this.
>>
>
> Well, I forgot to tell, I actually don't want double spacing, but 1.5 or
> something.
> I guess I should report it as a bug.
>

Ok, now you're just being picky :-}. I don't think this is a bug, what
you are trying to do is not standard LaTeX formatting within an author
environment.

Anyways, I seem to have fixed the "bug" by using ctrl->enter at the
start of the next author rather than the end of the author.

See the attached example.

Cheers,
/Bob


author_spacing_test.lyx
Description: application/lyx


  1   2   >