Problems with same environments

2006-03-01 Thread Jean-Philippe Rolin
Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX glue them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same gluing phenomena. Is there an explanation/solution ?

Jean-Philippe





Re: Problems with same environments

2006-03-01 Thread Georg Baum
Jean-Philippe Rolin wrote:

 Hi,
 
 I am new in Lyx. I have the following, maybe wellknown, problem. I work in
 Lyx 1.3.7, Windows version.

Yes, this is known: http://bugzilla.lyx.org/show_bug.cgi?id=1828

 If two occurences of the same environment are consecutive (say two
 definitions), LyX glue them in only one. I can manage this by inserting
 an empty ERT in a standard paragraph between the two definitions for
 example, which works because it does not export anything unwanted in
 Latex.
 
 More serious is the import from Latex of two consecutive definitions,
 which produce the same gluing phenomena. Is there an
 explanation/solution ?

Unfortunately there is no perfect solution. You could apply a similar
workaround in the .tex file before importing: Placing a comment between the
environments should work (I did not test it, though). Or you do the empty
ERT trick after importing.


Georg



Re: enumeration problem...

2006-03-01 Thread Helge Hafting

Mathieu Richaud wrote:


Hello all,

What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Won't this look better as:

1. item 1
2. item 2
3. item 3
   [std text]
4. item 4
5. item 5

Select the std. text, (or just put the cursor there, if it is a single 
paragraph only)
then press ctrl+alt+rightarrow.  Or use the menu choice increase 
environment depth.


This way, the standard text becomes a part of item3, it gets indented, 
and the next item

automatically becomes number 4. This works great, and no ERT at all.

However, Lyx reset to 1 the enumeration after the standard text. How 
can I get around that problem. I looked on the Wiki and the closest I 
got to an answer is from Paul A. Rubin who wrote that 
\newcounter{myCounter} could be used. 
(http://wiki.lyx.org/Examples/ReferToEnumeratedItem)


If you really want _unindented_ standard text between numbered items, 
then sure,
it can be done.  But it is unusual, and require lots of ERT. You aren't 
trying to use

enumerate as a sort of section headings?

To do this, write item1, item2 and item3 and the std. text as usual.
Then make item 4 like this:
ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4
Then you make item 5 as usual.

Note that item 4 and item 5 will be wrongly numbered inside lyx, but 
correct in view-dvi.

This because lyx don't parse the stuff inside ERT.

Also note that the ERT has to be the very first thing in item4, 
_nothing_ must come before it
or it goes wrong. And yes - the you are supposed to type in the brackets 
and the number four,

they are not part of the label.

This solution is inflexible, as you'll have to update the numbering of 
number 4 if

you delete item3 later.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


Hello,
When I open a footnote and I want mark the entire
text I have a problem.
I put the cursor at the start of footnote text, then
press shift key and down arrow key, then with right
arrow key I mark until final point of footnote.
All OK.
But if I press a key one more time, for error, marked
zone continue from top of footnote box and I lost
control on marked zone.
I need cancel mark and make all again from start.
Regards.
Marcelo


Lyx 1.4 does not support selections that spans
half a footnote and something outside it as well.

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?

Clearly, a cut should not remove the footnote itself
if only some of the contents is removed.  But how about
pasting then?  Should that create a new footnote? Or
should you only be able to paste such a cut into another
footnote?

Helge Hafting



Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Philippe Rolin wrote:


Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX glue them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same gluing phenomena. Is there an explanation/solution ?
 


Explanation: People want to be able to write multi-paragraph
definitions, so it must be possible to do that without getting
a new definition number for each paragraph making up
the definition.

But of course people want ability to make consecutive
numbered definitions too, the current worklaround is
a std. paragraph containing an ERT with a comment. (%)
The comment is important, without it you get too much
vertical spacing. Basically, the comment cancels the
std. paragraph in latex.


I suggested a solution in the form of inserting a
paragraph break.  The paragraph break would
do the same as the ERT comment, while looking better
and without the feel of a workaround.  I seem to remember
the argument against it was that nobody will
understand what a paragraph break is for. Unfortunately,
a better solution was not proposed at the time.

Another solution is to change behaviour: Each new
paragraph of type definition gets numbered.  Those
who want a multi-paragraph definition will still be able to
have it, by having all the subsequent paragraphs being
standard text nested into the containing definition.

Now, nesting paragraphs into a definition works already,
so it is possible to just turn off the merging of definitions.
Of course, such a change in behaviour requires
conversion of old documents already using definitions
the old way. 


This second solution would make definitions work the
same way as enumerations work.  So it'd be nothing new.
However, if multi-paragraph definitions happens to be
much more common than multi-paragraph enumeration
items, then the added hassle of having to increase
environment depth all the time might not be worth it. 


Feel free to make suggestiuons for lyx 1.5 . . .

Helge Hafting











Re: I need workaround of encoding problem

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


I get a new hard disk, and I installed suse 9.3, with
this I installed lyx 1.3.5. I make several
installations with different options, (english US,
spanish, english UK, for default language, etc.)
Spellchecker no work in any case. I make trial with
export LANG=es_ES, I get that lyx appears with menu,
but spellchecker no work.
Marcelo


Did you install dictionaries for aspell as well?
Installing aspell only installs the executable
program.  It does not install any dictionaries, you
must do that too before you can spellcheck.

What happens if you create a short plaintext file
with some spelling errors and run
aspell test.txt
on the command line? 
If this doesn't work, then aspell cannot possibly

work with lyx either.  If this works but lyx
spellchecking doesn't, then the problem is in lyx somehow.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Mael Hilléreau

Lyx 1.4 does not support selections that spans
half a footnote and something outside it as well.

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?



Why not disabling selection out of the inset boundary then?

I think that the current behavior is quite confusing and counter 
productive : in the case of a big inset, if you unfortunately go through 
the inset boundary, you have to restart the operation, putting again the 
cursor at the beginning of the inset. Whereas if a selection beginning 
within an inset couldn't end out of this inset, the problem wouldn't arise.


Regards,
Mael.

--
Mael Hilléreau


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge Marcelo Acuña wrote:
 Hello, When I open a footnote and I want mark the entire text I
 have a problem. I put the cursor at the start of footnote text,
 then press shift key and down arrow key, then with right arrow key
 I mark until final point of footnote. All OK. But if I press a key
 one more time, for error, marked zone continue from top of footnote
 box and I lost control on marked zone. I need cancel mark and make
 all again from start. Regards. Marcelo
 
Helge Lyx 1.4 does not support selections that spans half a footnote
Helge and something outside it as well.

While this is true, it should be possible to Shift-LeftArrow and have
the cursor go back into the footnote inset. The fact that it is not
possible is a (minor) bug IMO. Marcelo, could you add it to bugzilla?


Re: Problems with same environments

2006-03-01 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge But of course people want ability to make consecutive numbered
Helge definitions too, the current worklaround is a std. paragraph
Helge containing an ERT with a comment. (%) The comment is important,
Helge without it you get too much vertical spacing. Basically, the
Helge comment cancels the std. paragraph in latex.

I guess a yellow note will work just as well.

Helge Another solution is to change behaviour: Each new paragraph of
Helge type definition gets numbered. Those who want a
Helge multi-paragraph definition will still be able to have it, by
Helge having all the subsequent paragraphs being standard text
Helge nested into the containing definition.

Helge Now, nesting paragraphs into a definition works already, so it
Helge is possible to just turn off the merging of definitions. Of
Helge course, such a change in behaviour requires conversion of old
Helge documents already using definitions the old way.

Helge This second solution would make definitions work the same way
Helge as enumerations work. So it'd be nothing new. However, if
Helge multi-paragraph definitions happens to be much more common than
Helge multi-paragraph enumeration items, then the added hassle of
Helge having to increase environment depth all the time might not
Helge be worth it.

I agree 100% with your thoughts. What about adding them to bug 1828?

JMarc


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
 Mael == Mael Hilléreau [EMAIL PROTECTED] writes:

 Lyx 1.4 does not support selections that spans half a footnote and
 something outside it as well. So whenever you select through the
 boundary of a footnote, you end up selecting the entire footnote
 inset. The same goes for all other insets, such as tables and
 boxes. This makes sense, for if you were able to make such a
 selection, what would happen to cut/copy+paste?
 

Mael Why not disabling selection out of the inset boundary then?

This is what 1.3.x did. I think being able to extend outside of the
inset is good, as long as it is possible to go back.

JMarc


Re: enumeration problem...

2006-03-01 Thread Uwe Stöhr

Mathieu Richaud wrote:


What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Attached an LyX-example file with two solutions.

regards Uwe


newfile2.lyx
Description: application/lyx


Re: Nomenclature

2006-03-01 Thread Uwe Stöhr

Gisbert, Fernando wrote:


Is there any way of generating a nomenclature inside lyx?

 I have not seen any place where I can specify the makeindex options.

Creating a nomenclature using the nomencl package isn't yet possible 
with LyX, see bug 1610:


http://bugzilla.lyx.org/show_bug.cgi?id=1610

regards Uwe


Re: enumeration problem...

2006-03-01 Thread Kenward Vaughan
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote:
 Hello all,
 
 What I am trying to create is the following enumerated list;
 
 1. Item 1
 2. Item 2
 3. Item 3
 [standard text]
 4. Item 4
 5. Item 5
 
 However, Lyx reset to 1 the enumeration after the standard text. How can 
 I get around that problem. I looked on the Wiki and the closest I got to 
 an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} 
 could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem)
 
 However, I got stucked with errors when trying to mimic his ERT code 
 from my list.

If you use the package mdwlist, you can do this pretty simply, as the
attached file hopefully shows...


Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{mdwlist}
\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

Some listed items:
\layout Enumerate

one
\layout Enumerate

two
\begin_deeper 
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
suspend{enumerate}
\end_inset 

regular text, which can include other paragraph types
\layout Subsection*

a heading
\layout Itemize

itemized things
\layout Standard

tables! 
\begin_inset  Tabular
lyxtabular version=3 rows=2 columns=2
features
column alignment=center valignment=top leftline=true width=0
column alignment=center valignment=top leftline=true rightline=true 
width=0
row topline=true bottomline=true
cell alignment=center valignment=top topline=true leftline=true 
usebox=none
\begin_inset Text

\layout Standard

1
\end_inset 
/cell
cell alignment=center valignment=top topline=true leftline=true 
rightline=true usebox=none
\begin_inset Text

\layout Standard

2
\end_inset 
/cell
/row
row topline=true bottomline=true
cell alignment=center valignment=top topline=true leftline=true 
usebox=none
\begin_inset Text

\layout Standard

3
\end_inset 
/cell
cell alignment=center valignment=top topline=true leftline=true 
rightline=true usebox=none
\begin_inset Text

\layout Standard

4
\end_inset 
/cell
/row
/lyxtabular

\end_inset 


\layout Standard

ho hum
\layout Standard

back to regular itemization stuff
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
resume{enumerate}
\end_inset 

 
\end_deeper 
\layout Enumerate

three
\layout Enumerate

four
\layout Standard

The key is to change the depth of the text block you want to keep normal
 (
\begin_inset Quotes eld
\end_inset 

un--enumerated
\begin_inset Quotes erd
\end_inset 

 ??).
\the_end


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:


I agree 100% with your thoughts. What about adding them to bug 1828?
 


Done.

Helge Hafting


Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Michael 'Mickey' Lauer
Hi,

Nowadays, I find myself touching the mouse mostly to close ERT boxes,
because I can't see a way to close these via a keybinding.

Am I missing something or shall I add that as a feature request?

-- 
Regards,

Mickey.
--
Dipl.-Inf. Michael 'Mickey' Lauer [EMAIL PROTECTED]
--




Re: Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Gunnar
 Nowadays, I find myself touching the mouse mostly to close ERT boxes,
 because I can't see a way to close these via a keybinding.
Ctrl+i closes it for me.


Re: newly downloaded font problem

2006-03-01 Thread Paul A. Rubin

JeeBee wrote:

Dear LyX-users,

I downloaded the font AnnSton from here
http://ftp.nluug.nl/textproc/tex-archive/fonts/initials/

Then I put all these files in the same directory as my .lyx file.

This in the preamble:
\input AnnSton.fd

This somewhere in my document (a LaTeX inset):
{\fontsize{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}

Now, LyX gives me this error:
Font U/AnnSton/xl/n/60=AnnSton at 60.0pt not loadable: Metric (TFM) file not 
 ...ze{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
  
I wasn't able to read the size data for this font,

so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.

Seems like it doesn't find the AnnSton.tfm, which is also in the current
directory?

Then, when I export this file to LaTeX, and run LaTeX on it, it does work!

Can anybody perhaps explain how I can make the LyX version run?

Thanks in advance,
JeeBee.




Things should work ok if you install the fonts into the texmf or 
localtexmf directory trees.  See, for instance, 
http://www.radamir.com/tex/ttf-tex.htm (scroll down to the section 
Installation of fonts for TeX and LaTeX).


/Paul



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~)
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: little problem with 1.4.0pre5

2006-03-01 Thread Marcelo Acuña
  Hello, When I open a footnote and I want mark the
 entire text I
  have a problem. I put the cursor at the start of
 footnote text,
  then press shift key and down arrow key, then
 with right arrow key
  I mark until final point of footnote. All OK. But
 if I press a key
  one more time, for error, marked zone continue
 from top of footnote
  box and I lost control on marked zone. I need
 cancel mark and make
  all again from start. Regards. Marcelo
  
 Helge Lyx 1.4 does not support selections that
 spans half a footnote
 Helge and something outside it as well.
 
 While this is true, it should be possible to
 Shift-LeftArrow and have
 the cursor go back into the footnote inset. The fact
 that it is not
 possible is a (minor) bug IMO. Marcelo, could you
 add it to bugzilla?
 
Ok Jean-Marc, but my english is very very bad :-(
Marcelo





___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
 No, I have about 1000 of this ---comment---, and
 I
 need a global setting.
   
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~) 
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?
   
 
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file. 
 0. Backup the .lyx file, in case the process goes
 wrong.
 1. Look at the lyx file, check what an ERT
 containing
 ~--- looks like.  My example is for lyx 1.4
 2. Use a powerful text editor on the .lyx file, tell
  it to replace every occurence of --- with:
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 
 I.e. 
 aaa---bbb
 should become
 
 aaa
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 bbb
 
 Then all your em-dashes are hyphenation-free.
 Open the latered file with lyx and verify that it is
 ok, then view-dvi
 
 To save work when writing:
 Create one ~--- ERT, mark it and copy.
 Whenever you need this construct, use paste.
 
 Finally, setting up babel right should be as
 simple
 as setting the document language to spanish.
 
 Helge Hafting
 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: I need workaround of encoding problem - SOLVED!

2006-03-01 Thread Marcelo Acuña
 I get a new hard disk, and I installed suse 9.3,
 with
 this I installed lyx 1.3.5. I make several
 installations with different options, (english US,
 spanish, english UK, for default language, etc.)
 Spellchecker no work in any case. I make trial with
 export LANG=es_ES, I get that lyx appears with
 menu,
 but spellchecker no work.
 Marcelo
 
 Did you install dictionaries for aspell as well?
 Installing aspell only installs the executable
 program.  It does not install any dictionaries, you
 must do that too before you can spellcheck.
 
 What happens if you create a short plaintext file
 with some spelling errors and run
 aspell test.txt
 on the command line? 
 If this doesn't work, then aspell cannot possibly
 work with lyx either.  If this works but lyx
 spellchecking doesn't, then the problem is in lyx
 somehow.
 
 Helge Hafting
 
Helge, Stephen,
aspell and ispell are correctly installed.

From Lyx 1.4.0pre5, and for first time, keyboard
work OK. Until four day early I was using 1.3.7 and
testing 1.4.0pre3. Now, with pre5, I not need keymap
and not need strange key for accented characters.
With this I discovered that an option of Preferences
that in any 1.3.x no work for me ---Use Input
Encoding--- now, and only with ispell ---not with
aspell---,
work correctly.
With (aspell or lyx 1.3.x) and (Use Input Encoding) I
get word cuted or stranges characters by acented
characters.
Thanks to all. I am very happy.
Marcelo




__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: Marcelo Acuña [EMAIL PROTECTED]

To: Helge Hafting [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005package_id=109051release_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[ Helga writes:]
  0. Backup the .lyx file, in case the process goes
  wrong.
  1. Look at the lyx file, check what an ERT
  containing
  ~--- looks like.  My example is for lyx 1.4
  2. Use a powerful text editor on the .lyx file, tell
   it to replace every occurence of --- with:
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
 
  I.e.
  aaa---bbb
  should become
 
  aaa
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
  bbb

 Helge, what good text editor ---in Linux--- can I to
 use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type : and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then : and sq to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file.

It would be so loverly if in LyX one could select an ERT object, paste 
it into the replace with field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Problems with same environments

2006-03-01 Thread Jean-Philippe Rolin
Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX glue them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same gluing phenomena. Is there an explanation/solution ?

Jean-Philippe





Re: Problems with same environments

2006-03-01 Thread Georg Baum
Jean-Philippe Rolin wrote:

 Hi,
 
 I am new in Lyx. I have the following, maybe wellknown, problem. I work in
 Lyx 1.3.7, Windows version.

Yes, this is known: http://bugzilla.lyx.org/show_bug.cgi?id=1828

 If two occurences of the same environment are consecutive (say two
 definitions), LyX glue them in only one. I can manage this by inserting
 an empty ERT in a standard paragraph between the two definitions for
 example, which works because it does not export anything unwanted in
 Latex.
 
 More serious is the import from Latex of two consecutive definitions,
 which produce the same gluing phenomena. Is there an
 explanation/solution ?

Unfortunately there is no perfect solution. You could apply a similar
workaround in the .tex file before importing: Placing a comment between the
environments should work (I did not test it, though). Or you do the empty
ERT trick after importing.


Georg



Re: enumeration problem...

2006-03-01 Thread Helge Hafting

Mathieu Richaud wrote:


Hello all,

What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Won't this look better as:

1. item 1
2. item 2
3. item 3
   [std text]
4. item 4
5. item 5

Select the std. text, (or just put the cursor there, if it is a single 
paragraph only)
then press ctrl+alt+rightarrow.  Or use the menu choice increase 
environment depth.


This way, the standard text becomes a part of item3, it gets indented, 
and the next item

automatically becomes number 4. This works great, and no ERT at all.

However, Lyx reset to 1 the enumeration after the standard text. How 
can I get around that problem. I looked on the Wiki and the closest I 
got to an answer is from Paul A. Rubin who wrote that 
\newcounter{myCounter} could be used. 
(http://wiki.lyx.org/Examples/ReferToEnumeratedItem)


If you really want _unindented_ standard text between numbered items, 
then sure,
it can be done.  But it is unusual, and require lots of ERT. You aren't 
trying to use

enumerate as a sort of section headings?

To do this, write item1, item2 and item3 and the std. text as usual.
Then make item 4 like this:
ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4
Then you make item 5 as usual.

Note that item 4 and item 5 will be wrongly numbered inside lyx, but 
correct in view-dvi.

This because lyx don't parse the stuff inside ERT.

Also note that the ERT has to be the very first thing in item4, 
_nothing_ must come before it
or it goes wrong. And yes - the you are supposed to type in the brackets 
and the number four,

they are not part of the label.

This solution is inflexible, as you'll have to update the numbering of 
number 4 if

you delete item3 later.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


Hello,
When I open a footnote and I want mark the entire
text I have a problem.
I put the cursor at the start of footnote text, then
press shift key and down arrow key, then with right
arrow key I mark until final point of footnote.
All OK.
But if I press a key one more time, for error, marked
zone continue from top of footnote box and I lost
control on marked zone.
I need cancel mark and make all again from start.
Regards.
Marcelo


Lyx 1.4 does not support selections that spans
half a footnote and something outside it as well.

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?

Clearly, a cut should not remove the footnote itself
if only some of the contents is removed.  But how about
pasting then?  Should that create a new footnote? Or
should you only be able to paste such a cut into another
footnote?

Helge Hafting



Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Philippe Rolin wrote:


Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX glue them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same gluing phenomena. Is there an explanation/solution ?
 


Explanation: People want to be able to write multi-paragraph
definitions, so it must be possible to do that without getting
a new definition number for each paragraph making up
the definition.

But of course people want ability to make consecutive
numbered definitions too, the current worklaround is
a std. paragraph containing an ERT with a comment. (%)
The comment is important, without it you get too much
vertical spacing. Basically, the comment cancels the
std. paragraph in latex.


I suggested a solution in the form of inserting a
paragraph break.  The paragraph break would
do the same as the ERT comment, while looking better
and without the feel of a workaround.  I seem to remember
the argument against it was that nobody will
understand what a paragraph break is for. Unfortunately,
a better solution was not proposed at the time.

Another solution is to change behaviour: Each new
paragraph of type definition gets numbered.  Those
who want a multi-paragraph definition will still be able to
have it, by having all the subsequent paragraphs being
standard text nested into the containing definition.

Now, nesting paragraphs into a definition works already,
so it is possible to just turn off the merging of definitions.
Of course, such a change in behaviour requires
conversion of old documents already using definitions
the old way. 


This second solution would make definitions work the
same way as enumerations work.  So it'd be nothing new.
However, if multi-paragraph definitions happens to be
much more common than multi-paragraph enumeration
items, then the added hassle of having to increase
environment depth all the time might not be worth it. 


Feel free to make suggestiuons for lyx 1.5 . . .

Helge Hafting











Re: I need workaround of encoding problem

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


I get a new hard disk, and I installed suse 9.3, with
this I installed lyx 1.3.5. I make several
installations with different options, (english US,
spanish, english UK, for default language, etc.)
Spellchecker no work in any case. I make trial with
export LANG=es_ES, I get that lyx appears with menu,
but spellchecker no work.
Marcelo


Did you install dictionaries for aspell as well?
Installing aspell only installs the executable
program.  It does not install any dictionaries, you
must do that too before you can spellcheck.

What happens if you create a short plaintext file
with some spelling errors and run
aspell test.txt
on the command line? 
If this doesn't work, then aspell cannot possibly

work with lyx either.  If this works but lyx
spellchecking doesn't, then the problem is in lyx somehow.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Mael Hilléreau

Lyx 1.4 does not support selections that spans
half a footnote and something outside it as well.

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?



Why not disabling selection out of the inset boundary then?

I think that the current behavior is quite confusing and counter 
productive : in the case of a big inset, if you unfortunately go through 
the inset boundary, you have to restart the operation, putting again the 
cursor at the beginning of the inset. Whereas if a selection beginning 
within an inset couldn't end out of this inset, the problem wouldn't arise.


Regards,
Mael.

--
Mael Hilléreau


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge Marcelo Acuña wrote:
 Hello, When I open a footnote and I want mark the entire text I
 have a problem. I put the cursor at the start of footnote text,
 then press shift key and down arrow key, then with right arrow key
 I mark until final point of footnote. All OK. But if I press a key
 one more time, for error, marked zone continue from top of footnote
 box and I lost control on marked zone. I need cancel mark and make
 all again from start. Regards. Marcelo
 
Helge Lyx 1.4 does not support selections that spans half a footnote
Helge and something outside it as well.

While this is true, it should be possible to Shift-LeftArrow and have
the cursor go back into the footnote inset. The fact that it is not
possible is a (minor) bug IMO. Marcelo, could you add it to bugzilla?


Re: Problems with same environments

2006-03-01 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge But of course people want ability to make consecutive numbered
Helge definitions too, the current worklaround is a std. paragraph
Helge containing an ERT with a comment. (%) The comment is important,
Helge without it you get too much vertical spacing. Basically, the
Helge comment cancels the std. paragraph in latex.

I guess a yellow note will work just as well.

Helge Another solution is to change behaviour: Each new paragraph of
Helge type definition gets numbered. Those who want a
Helge multi-paragraph definition will still be able to have it, by
Helge having all the subsequent paragraphs being standard text
Helge nested into the containing definition.

Helge Now, nesting paragraphs into a definition works already, so it
Helge is possible to just turn off the merging of definitions. Of
Helge course, such a change in behaviour requires conversion of old
Helge documents already using definitions the old way.

Helge This second solution would make definitions work the same way
Helge as enumerations work. So it'd be nothing new. However, if
Helge multi-paragraph definitions happens to be much more common than
Helge multi-paragraph enumeration items, then the added hassle of
Helge having to increase environment depth all the time might not
Helge be worth it.

I agree 100% with your thoughts. What about adding them to bug 1828?

JMarc


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
 Mael == Mael Hilléreau [EMAIL PROTECTED] writes:

 Lyx 1.4 does not support selections that spans half a footnote and
 something outside it as well. So whenever you select through the
 boundary of a footnote, you end up selecting the entire footnote
 inset. The same goes for all other insets, such as tables and
 boxes. This makes sense, for if you were able to make such a
 selection, what would happen to cut/copy+paste?
 

Mael Why not disabling selection out of the inset boundary then?

This is what 1.3.x did. I think being able to extend outside of the
inset is good, as long as it is possible to go back.

JMarc


Re: enumeration problem...

2006-03-01 Thread Uwe Stöhr

Mathieu Richaud wrote:


What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Attached an LyX-example file with two solutions.

regards Uwe


newfile2.lyx
Description: application/lyx


Re: Nomenclature

2006-03-01 Thread Uwe Stöhr

Gisbert, Fernando wrote:


Is there any way of generating a nomenclature inside lyx?

 I have not seen any place where I can specify the makeindex options.

Creating a nomenclature using the nomencl package isn't yet possible 
with LyX, see bug 1610:


http://bugzilla.lyx.org/show_bug.cgi?id=1610

regards Uwe


Re: enumeration problem...

2006-03-01 Thread Kenward Vaughan
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote:
 Hello all,
 
 What I am trying to create is the following enumerated list;
 
 1. Item 1
 2. Item 2
 3. Item 3
 [standard text]
 4. Item 4
 5. Item 5
 
 However, Lyx reset to 1 the enumeration after the standard text. How can 
 I get around that problem. I looked on the Wiki and the closest I got to 
 an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} 
 could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem)
 
 However, I got stucked with errors when trying to mimic his ERT code 
 from my list.

If you use the package mdwlist, you can do this pretty simply, as the
attached file hopefully shows...


Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{mdwlist}
\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

Some listed items:
\layout Enumerate

one
\layout Enumerate

two
\begin_deeper 
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
suspend{enumerate}
\end_inset 

regular text, which can include other paragraph types
\layout Subsection*

a heading
\layout Itemize

itemized things
\layout Standard

tables! 
\begin_inset  Tabular
lyxtabular version=3 rows=2 columns=2
features
column alignment=center valignment=top leftline=true width=0
column alignment=center valignment=top leftline=true rightline=true 
width=0
row topline=true bottomline=true
cell alignment=center valignment=top topline=true leftline=true 
usebox=none
\begin_inset Text

\layout Standard

1
\end_inset 
/cell
cell alignment=center valignment=top topline=true leftline=true 
rightline=true usebox=none
\begin_inset Text

\layout Standard

2
\end_inset 
/cell
/row
row topline=true bottomline=true
cell alignment=center valignment=top topline=true leftline=true 
usebox=none
\begin_inset Text

\layout Standard

3
\end_inset 
/cell
cell alignment=center valignment=top topline=true leftline=true 
rightline=true usebox=none
\begin_inset Text

\layout Standard

4
\end_inset 
/cell
/row
/lyxtabular

\end_inset 


\layout Standard

ho hum
\layout Standard

back to regular itemization stuff
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
resume{enumerate}
\end_inset 

 
\end_deeper 
\layout Enumerate

three
\layout Enumerate

four
\layout Standard

The key is to change the depth of the text block you want to keep normal
 (
\begin_inset Quotes eld
\end_inset 

un--enumerated
\begin_inset Quotes erd
\end_inset 

 ??).
\the_end


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:


I agree 100% with your thoughts. What about adding them to bug 1828?
 


Done.

Helge Hafting


Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Michael 'Mickey' Lauer
Hi,

Nowadays, I find myself touching the mouse mostly to close ERT boxes,
because I can't see a way to close these via a keybinding.

Am I missing something or shall I add that as a feature request?

-- 
Regards,

Mickey.
--
Dipl.-Inf. Michael 'Mickey' Lauer [EMAIL PROTECTED]
--




Re: Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Gunnar
 Nowadays, I find myself touching the mouse mostly to close ERT boxes,
 because I can't see a way to close these via a keybinding.
Ctrl+i closes it for me.


Re: newly downloaded font problem

2006-03-01 Thread Paul A. Rubin

JeeBee wrote:

Dear LyX-users,

I downloaded the font AnnSton from here
http://ftp.nluug.nl/textproc/tex-archive/fonts/initials/

Then I put all these files in the same directory as my .lyx file.

This in the preamble:
\input AnnSton.fd

This somewhere in my document (a LaTeX inset):
{\fontsize{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}

Now, LyX gives me this error:
Font U/AnnSton/xl/n/60=AnnSton at 60.0pt not loadable: Metric (TFM) file not 
 ...ze{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
  
I wasn't able to read the size data for this font,

so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.

Seems like it doesn't find the AnnSton.tfm, which is also in the current
directory?

Then, when I export this file to LaTeX, and run LaTeX on it, it does work!

Can anybody perhaps explain how I can make the LyX version run?

Thanks in advance,
JeeBee.




Things should work ok if you install the fonts into the texmf or 
localtexmf directory trees.  See, for instance, 
http://www.radamir.com/tex/ttf-tex.htm (scroll down to the section 
Installation of fonts for TeX and LaTeX).


/Paul



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~)
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: little problem with 1.4.0pre5

2006-03-01 Thread Marcelo Acuña
  Hello, When I open a footnote and I want mark the
 entire text I
  have a problem. I put the cursor at the start of
 footnote text,
  then press shift key and down arrow key, then
 with right arrow key
  I mark until final point of footnote. All OK. But
 if I press a key
  one more time, for error, marked zone continue
 from top of footnote
  box and I lost control on marked zone. I need
 cancel mark and make
  all again from start. Regards. Marcelo
  
 Helge Lyx 1.4 does not support selections that
 spans half a footnote
 Helge and something outside it as well.
 
 While this is true, it should be possible to
 Shift-LeftArrow and have
 the cursor go back into the footnote inset. The fact
 that it is not
 possible is a (minor) bug IMO. Marcelo, could you
 add it to bugzilla?
 
Ok Jean-Marc, but my english is very very bad :-(
Marcelo





___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
 No, I have about 1000 of this ---comment---, and
 I
 need a global setting.
   
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~) 
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?
   
 
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file. 
 0. Backup the .lyx file, in case the process goes
 wrong.
 1. Look at the lyx file, check what an ERT
 containing
 ~--- looks like.  My example is for lyx 1.4
 2. Use a powerful text editor on the .lyx file, tell
  it to replace every occurence of --- with:
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 
 I.e. 
 aaa---bbb
 should become
 
 aaa
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 bbb
 
 Then all your em-dashes are hyphenation-free.
 Open the latered file with lyx and verify that it is
 ok, then view-dvi
 
 To save work when writing:
 Create one ~--- ERT, mark it and copy.
 Whenever you need this construct, use paste.
 
 Finally, setting up babel right should be as
 simple
 as setting the document language to spanish.
 
 Helge Hafting
 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: I need workaround of encoding problem - SOLVED!

2006-03-01 Thread Marcelo Acuña
 I get a new hard disk, and I installed suse 9.3,
 with
 this I installed lyx 1.3.5. I make several
 installations with different options, (english US,
 spanish, english UK, for default language, etc.)
 Spellchecker no work in any case. I make trial with
 export LANG=es_ES, I get that lyx appears with
 menu,
 but spellchecker no work.
 Marcelo
 
 Did you install dictionaries for aspell as well?
 Installing aspell only installs the executable
 program.  It does not install any dictionaries, you
 must do that too before you can spellcheck.
 
 What happens if you create a short plaintext file
 with some spelling errors and run
 aspell test.txt
 on the command line? 
 If this doesn't work, then aspell cannot possibly
 work with lyx either.  If this works but lyx
 spellchecking doesn't, then the problem is in lyx
 somehow.
 
 Helge Hafting
 
Helge, Stephen,
aspell and ispell are correctly installed.

From Lyx 1.4.0pre5, and for first time, keyboard
work OK. Until four day early I was using 1.3.7 and
testing 1.4.0pre3. Now, with pre5, I not need keymap
and not need strange key for accented characters.
With this I discovered that an option of Preferences
that in any 1.3.x no work for me ---Use Input
Encoding--- now, and only with ispell ---not with
aspell---,
work correctly.
With (aspell or lyx 1.3.x) and (Use Input Encoding) I
get word cuted or stranges characters by acented
characters.
Thanks to all. I am very happy.
Marcelo




__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: Marcelo Acuña [EMAIL PROTECTED]

To: Helge Hafting [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005package_id=109051release_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[ Helga writes:]
  0. Backup the .lyx file, in case the process goes
  wrong.
  1. Look at the lyx file, check what an ERT
  containing
  ~--- looks like.  My example is for lyx 1.4
  2. Use a powerful text editor on the .lyx file, tell
   it to replace every occurence of --- with:
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
 
  I.e.
  aaa---bbb
  should become
 
  aaa
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
  bbb

 Helge, what good text editor ---in Linux--- can I to
 use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type : and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then : and sq to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file.

It would be so loverly if in LyX one could select an ERT object, paste 
it into the replace with field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Problems with same environments

2006-03-01 Thread Jean-Philippe Rolin
Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX "glue" them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same "gluing" phenomena. Is there an explanation/solution ?

Jean-Philippe





Re: Problems with same environments

2006-03-01 Thread Georg Baum
Jean-Philippe Rolin wrote:

> Hi,
> 
> I am new in Lyx. I have the following, maybe wellknown, problem. I work in
> Lyx 1.3.7, Windows version.

Yes, this is known: http://bugzilla.lyx.org/show_bug.cgi?id=1828

> If two occurences of the same environment are consecutive (say two
> definitions), LyX "glue" them in only one. I can manage this by inserting
> an empty ERT in a standard paragraph between the two definitions for
> example, which works because it does not export anything unwanted in
> Latex.
> 
> More serious is the import from Latex of two consecutive definitions,
> which produce the same "gluing" phenomena. Is there an
> explanation/solution ?

Unfortunately there is no perfect solution. You could apply a similar
workaround in the .tex file before importing: Placing a comment between the
environments should work (I did not test it, though). Or you do the empty
ERT trick after importing.


Georg



Re: enumeration problem...

2006-03-01 Thread Helge Hafting

Mathieu Richaud wrote:


Hello all,

What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Won't this look better as:

1. item 1
2. item 2
3. item 3
   [std text]
4. item 4
5. item 5

Select the std. text, (or just put the cursor there, if it is a single 
paragraph only)
then press ctrl+alt+rightarrow.  Or use the menu choice increase 
environment depth.


This way, the standard text becomes a part of item3, it gets indented, 
and the next item

automatically becomes number 4. This works great, and no ERT at all.

However, Lyx reset to 1 the enumeration after the standard text. How 
can I get around that problem. I looked on the Wiki and the closest I 
got to an answer is from Paul A. Rubin who wrote that 
\newcounter{myCounter} could be used. 
(http://wiki.lyx.org/Examples/ReferToEnumeratedItem)


If you really want _unindented_ standard text between numbered items, 
then sure,
it can be done.  But it is unusual, and require lots of ERT. You aren't 
trying to use

"enumerate" as a sort of section headings?

To do this, write item1, item2 and item3 and the std. text as usual.
Then make item 4 like this:
ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4
Then you make item 5 as usual.

Note that item 4 and item 5 will be wrongly numbered inside lyx, but 
correct in view->dvi.

This because lyx don't parse the stuff inside ERT.

Also note that the ERT has to be the very first thing in item4, 
_nothing_ must come before it
or it goes wrong. And yes - the you are supposed to type in the brackets 
and the number four,

they are not part of the label.

This solution is inflexible, as you'll have to update the numbering of 
number 4 if

you delete item3 later.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


Hello,
When I open a footnote and I want mark the entire
text I have a problem.
I put the cursor at the start of footnote text, then
press shift key and down arrow key, then with right
arrow key I mark until final point of footnote.
All OK.
But if I press a key one more time, for error, marked
zone continue from top of footnote box and I lost
control on marked zone.
I need cancel mark and make all again from start.
Regards.
Marcelo


Lyx 1.4 does not support selections that spans
"half a footnote and something outside it as well".

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?

Clearly, a cut should not remove the footnote itself
if only some of the contents is removed.  But how about
pasting then?  Should that create a new footnote? Or
should you only be able to paste such a cut into another
footnote?

Helge Hafting



Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Philippe Rolin wrote:


Hi,

I am new in Lyx. I have the following, maybe wellknown, problem. I work in Lyx
1.3.7, Windows version.

If two occurences of the same environment are consecutive (say two definitions),
LyX "glue" them in only one. I can manage this by inserting an empty ERT in a
standard paragraph between the two definitions for example, which works because
it does not export anything unwanted in Latex.

More serious is the import from Latex of two consecutive definitions, which
produce the same "gluing" phenomena. Is there an explanation/solution ?
 


Explanation: People want to be able to write multi-paragraph
definitions, so it must be possible to do that without getting
a new definition number for each paragraph making up
the definition.

But of course people want ability to make consecutive
numbered definitions too, the current worklaround is
a std. paragraph containing an ERT with a comment. (%)
The comment is important, without it you get too much
vertical spacing. Basically, the comment cancels the
std. paragraph in latex.


I suggested a solution in the form of inserting a
"paragraph break".  The "paragraph break" would
do the same as the ERT comment, while looking better
and without the feel of a workaround.  I seem to remember
the argument against it was that nobody will
understand what a "paragraph break" is for. Unfortunately,
a better solution was not proposed at the time.

Another solution is to change behaviour: Each new
paragraph of type "definition" gets numbered.  Those
who want a multi-paragraph definition will still be able to
have it, by having all the subsequent paragraphs being
"standard text" nested into the containing definition.

Now, nesting paragraphs into a definition works already,
so it is possible to just turn off the merging of definitions.
Of course, such a change in behaviour requires
conversion of old documents already using definitions
the "old way". 


This second solution would make definitions work the
same way as enumerations work.  So it'd be nothing new.
However, if multi-paragraph definitions happens to be
much more common than multi-paragraph enumeration
items, then the added hassle of having to "increase
environment depth" all the time might not be worth it. 


Feel free to make suggestiuons for lyx 1.5 . . .

Helge Hafting











Re: I need workaround of encoding problem

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


I get a new hard disk, and I installed suse 9.3, with
this I installed lyx 1.3.5. I make several
installations with different options, (english US,
spanish, english UK, for default language, etc.)
Spellchecker no work in any case. I make trial with
export LANG=es_ES, I get that lyx appears with menu,
but spellchecker no work.
Marcelo


Did you install dictionaries for aspell as well?
Installing aspell only installs the executable
program.  It does not install any dictionaries, you
must do that too before you can spellcheck.

What happens if you create a short plaintext file
with some spelling errors and run
aspell test.txt
on the command line? 
If this doesn't work, then aspell cannot possibly

work with lyx either.  If this works but lyx
spellchecking doesn't, then the problem is in lyx somehow.

Helge Hafting


Re: little problem with 1.4.0pre5

2006-03-01 Thread Mael Hilléreau

Lyx 1.4 does not support selections that spans
"half a footnote and something outside it as well".

So whenever you select through the boundary
of a footnote, you end up selecting the entire
footnote inset.  The same goes for all other insets,
such as tables and boxes.

This makes sense, for if you were able to make such
a selection, what would happen to cut/copy+paste?



Why not disabling selection out of the inset boundary then?

I think that the current behavior is quite confusing and counter 
productive : in the case of a big inset, if you unfortunately go through 
the inset boundary, you have to restart the operation, putting again the 
cursor at the beginning of the inset. Whereas if a selection beginning 
within an inset couldn't end out of this inset, the problem wouldn't arise.


Regards,
Mael.

--
Mael Hilléreau


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
> "Helge" == Helge Hafting <[EMAIL PROTECTED]> writes:

Helge> Marcelo Acuña wrote:
>> Hello, When I open a footnote and I want mark the entire text I
>> have a problem. I put the cursor at the start of footnote text,
>> then press shift key and down arrow key, then with right arrow key
>> I mark until final point of footnote. All OK. But if I press a key
>> one more time, for error, marked zone continue from top of footnote
>> box and I lost control on marked zone. I need cancel mark and make
>> all again from start. Regards. Marcelo
>> 
Helge> Lyx 1.4 does not support selections that spans "half a footnote
Helge> and something outside it as well".

While this is true, it should be possible to Shift-LeftArrow and have
the cursor go back into the footnote inset. The fact that it is not
possible is a (minor) bug IMO. Marcelo, could you add it to bugzilla?


Re: Problems with same environments

2006-03-01 Thread Jean-Marc Lasgouttes
> "Helge" == Helge Hafting <[EMAIL PROTECTED]> writes:

Helge> But of course people want ability to make consecutive numbered
Helge> definitions too, the current worklaround is a std. paragraph
Helge> containing an ERT with a comment. (%) The comment is important,
Helge> without it you get too much vertical spacing. Basically, the
Helge> comment cancels the std. paragraph in latex.

I guess a yellow note will work just as well.

Helge> Another solution is to change behaviour: Each new paragraph of
Helge> type "definition" gets numbered. Those who want a
Helge> multi-paragraph definition will still be able to have it, by
Helge> having all the subsequent paragraphs being "standard text"
Helge> nested into the containing definition.

Helge> Now, nesting paragraphs into a definition works already, so it
Helge> is possible to just turn off the merging of definitions. Of
Helge> course, such a change in behaviour requires conversion of old
Helge> documents already using definitions the "old way".

Helge> This second solution would make definitions work the same way
Helge> as enumerations work. So it'd be nothing new. However, if
Helge> multi-paragraph definitions happens to be much more common than
Helge> multi-paragraph enumeration items, then the added hassle of
Helge> having to "increase environment depth" all the time might not
Helge> be worth it.

I agree 100% with your thoughts. What about adding them to bug 1828?

JMarc


Re: little problem with 1.4.0pre5

2006-03-01 Thread Jean-Marc Lasgouttes
> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes:

>> Lyx 1.4 does not support selections that spans "half a footnote and
>> something outside it as well". So whenever you select through the
>> boundary of a footnote, you end up selecting the entire footnote
>> inset. The same goes for all other insets, such as tables and
>> boxes. This makes sense, for if you were able to make such a
>> selection, what would happen to cut/copy+paste?
>> 

Mael> Why not disabling selection out of the inset boundary then?

This is what 1.3.x did. I think being able to extend outside of the
inset is good, as long as it is possible to go back.

JMarc


Re: enumeration problem...

2006-03-01 Thread Uwe Stöhr

Mathieu Richaud wrote:


What I am trying to create is the following enumerated list;

1. Item 1
2. Item 2
3. Item 3
[standard text]
4. Item 4
5. Item 5


Attached an LyX-example file with two solutions.

regards Uwe


newfile2.lyx
Description: application/lyx


Re: Nomenclature

2006-03-01 Thread Uwe Stöhr

Gisbert, Fernando wrote:


Is there any way of generating a nomenclature inside lyx?

> I have not seen any place where I can specify the makeindex options.

Creating a nomenclature using the nomencl package isn't yet possible 
with LyX, see bug 1610:


http://bugzilla.lyx.org/show_bug.cgi?id=1610

regards Uwe


Re: enumeration problem...

2006-03-01 Thread Kenward Vaughan
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote:
> Hello all,
> 
> What I am trying to create is the following enumerated list;
> 
> 1. Item 1
> 2. Item 2
> 3. Item 3
> [standard text]
> 4. Item 4
> 5. Item 5
> 
> However, Lyx reset to 1 the enumeration after the standard text. How can 
> I get around that problem. I looked on the Wiki and the closest I got to 
> an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} 
> could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem)
> 
> However, I got stucked with errors when trying to mimic his ERT code 
> from my list.

If you use the package mdwlist, you can do this pretty simply, as the
attached file hopefully shows...


Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{mdwlist}
\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

Some listed items:
\layout Enumerate

one
\layout Enumerate

two
\begin_deeper 
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
suspend{enumerate}
\end_inset 

regular text, which can include other paragraph types
\layout Subsection*

a heading
\layout Itemize

itemized things
\layout Standard

tables! 
\begin_inset  Tabular






\begin_inset Text

\layout Standard

1
\end_inset 


\begin_inset Text

\layout Standard

2
\end_inset 




\begin_inset Text

\layout Standard

3
\end_inset 


\begin_inset Text

\layout Standard

4
\end_inset 




\end_inset 


\layout Standard

ho hum
\layout Standard

back to regular itemization stuff
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
resume{enumerate}
\end_inset 

 
\end_deeper 
\layout Enumerate

three
\layout Enumerate

four
\layout Standard

The key is to change the depth of the text block you want to keep normal
 (
\begin_inset Quotes eld
\end_inset 

un--enumerated
\begin_inset Quotes erd
\end_inset 

 ??).
\the_end


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view->dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up "babel" right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: Problems with same environments

2006-03-01 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:


I agree 100% with your thoughts. What about adding them to bug 1828?
 


Done.

Helge Hafting


Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Michael 'Mickey' Lauer
Hi,

Nowadays, I find myself touching the mouse mostly to close ERT boxes,
because I can't see a way to close these via a keybinding.

Am I missing something or shall I add that as a feature request?

-- 
Regards,

Mickey.
--
Dipl.-Inf. Michael 'Mickey' Lauer <[EMAIL PROTECTED]>
--




Re: Closing an ERT (was: keybindings referenceguide)

2006-03-01 Thread Gunnar
> Nowadays, I find myself touching the mouse mostly to close ERT boxes,
> because I can't see a way to close these via a keybinding.
Ctrl+i closes it for me.


Re: newly downloaded font problem

2006-03-01 Thread Paul A. Rubin

JeeBee wrote:

Dear LyX-users,

I downloaded the font AnnSton from here
http://ftp.nluug.nl/textproc/tex-archive/fonts/initials/

Then I put all these files in the same directory as my .lyx file.

This in the preamble:
\input AnnSton.fd

This somewhere in my document (a LaTeX inset):
{\fontsize{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}

Now, LyX gives me this error:
Font U/AnnSton/xl/n/60=AnnSton at 60.0pt not loadable: Metric (TFM) file not 
 ...ze{60pt}{72pt}\usefont{U}{AnnSton}{xl}{n}
  
I wasn't able to read the size data for this font,

so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font='.

Seems like it doesn't find the AnnSton.tfm, which is also in the current
directory?

Then, when I export this file to LaTeX, and run LaTeX on it, it does work!

Can anybody perhaps explain how I can make the LyX version run?

Thanks in advance,
JeeBee.




Things should work ok if you install the fonts into the texmf or 
localtexmf directory trees.  See, for instance, 
http://www.radamir.com/tex/ttf-tex.htm (scroll down to the section 
"Installation of fonts for TeX and LaTeX").


/Paul



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

> Thanks Jürgen, I posted the problem to
> es.comp.lenguajes.tex and I get a solution
> but this work in Kile and not work in Lyx.
> Is not global but simple.
> A person in that list say that
> after put \usepackage[spanish]{babel}
> in preamble  I must put a tilde (~)
> prev to em dash ~---like this---
> In lyx this not work. Tilde is print without
> any change but, before I re-quest to this
> person I check it with Kile and this work very
> well, tilde is not print and hyphenation is
> made correctly.
> How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: little problem with 1.4.0pre5

2006-03-01 Thread Marcelo Acuña
> >> Hello, When I open a footnote and I want mark the
> entire text I
> >> have a problem. I put the cursor at the start of
> footnote text,
> >> then press shift key and down arrow key, then
> with right arrow key
> >> I mark until final point of footnote. All OK. But
> if I press a key
> >> one more time, for error, marked zone continue
> from top of footnote
> >> box and I lost control on marked zone. I need
> cancel mark and make
> >> all again from start. Regards. Marcelo
> >> 
> Helge> Lyx 1.4 does not support selections that
> spans "half a footnote
> Helge> and something outside it as well".
> 
> While this is true, it should be possible to
> Shift-LeftArrow and have
> the cursor go back into the footnote inset. The fact
> that it is not
> possible is a (minor) bug IMO. Marcelo, could you
> add it to bugzilla?
> 
Ok Jean-Marc, but my english is very very bad :-(
Marcelo





___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
> >>>No, I have about 1000 of this ---comment---, and
> I
> >>>need a global setting.
> >>>  
> >>>
> >>I think it is not possible to redefine --- without
> >>changing the font metrics.
> >Thanks Jürgen, I posted the problem to
> >es.comp.lenguajes.tex and I get a solution
> >but this work in Kile and not work in Lyx.
> >Is not global but simple.
> >A person in that list say that
> >after put \usepackage[spanish]{babel}
> >in preamble  I must put a tilde (~) 
> >prev to em dash ~---like this---
> >In lyx this not work. Tilde is print without
> >any change but, before I re-quest to this
> >person I check it with Kile and this work very
> >well, tilde is not print and hyphenation is
> >made correctly.
> >How I can get it in Lyx?
> >  
> >
> You can get this in lyx by writing your em-dashes
> as ERT.  I.e. write the ~--- in ERT, and leave
> the rest of the text normal. 
> 
> I seem to remember you had lots of these?
> You can fix them all this way:
> Lyx can't do this with search and replace, but
> a text editor capable of replacing several lines can
> do it by working on the .lyx file. 
> 0. Backup the .lyx file, in case the process goes
> wrong.
> 1. Look at the lyx file, check what an ERT
> containing
> ~--- looks like.  My example is for lyx 1.4
> 2. Use a powerful text editor on the .lyx file, tell
>  it to replace every occurence of --- with:
> \begin_inset ERT
> status collapsed
> 
> \begin_layout Standard
> ~---
> \end_layout
> 
> \end_inset
> 
> 
> I.e. 
> aaa---bbb
> should become
> 
> aaa
> \begin_inset ERT
> status collapsed
> 
> \begin_layout Standard
> ~---
> \end_layout
> 
> \end_inset
> 
> bbb
> 
> Then all your em-dashes are hyphenation-free.
> Open the latered file with lyx and verify that it is
> ok, then view->dvi
> 
> To save work when writing:
> Create one ~--- ERT, mark it and copy.
> Whenever you need this construct, use paste.
> 
> Finally, setting up "babel" right should be as
> simple
> as setting the document language to spanish.
> 
> Helge Hafting
> 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: I need workaround of encoding problem - SOLVED!

2006-03-01 Thread Marcelo Acuña
> >I get a new hard disk, and I installed suse 9.3,
> with
> >this I installed lyx 1.3.5. I make several
> >installations with different options, (english US,
> >spanish, english UK, for default language, etc.)
> >Spellchecker no work in any case. I make trial with
> >export LANG=es_ES, I get that lyx appears with
> menu,
> >but spellchecker no work.
> >Marcelo
> >
> Did you install dictionaries for aspell as well?
> Installing aspell only installs the executable
> program.  It does not install any dictionaries, you
> must do that too before you can spellcheck.
> 
> What happens if you create a short plaintext file
> with some spelling errors and run
> aspell test.txt
> on the command line? 
> If this doesn't work, then aspell cannot possibly
> work with lyx either.  If this works but lyx
> spellchecking doesn't, then the problem is in lyx
> somehow.
> 
> Helge Hafting
> 
Helge, Stephen,
aspell and ispell are correctly installed.

>From Lyx 1.4.0pre5, and for first time, keyboard
work OK. Until four day early I was using 1.3.7 and
testing 1.4.0pre3. Now, with pre5, I not need keymap
and not need strange key for accented characters.
With this I discovered that an option of Preferences
that in any 1.3.x no work for me ---Use Input
Encoding--- now, and only with ispell ---not with
aspell---,
work correctly.
With (aspell or lyx 1.3.x) and (Use Input Encoding) I
get word cuted or stranges characters by acented
characters.
Thanks to all. I am very happy.
Marcelo




__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: "Marcelo Acuña" <[EMAIL PROTECTED]>

To: "Helge Hafting" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005_id=109051_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[> Helga writes:]
> > 0. Backup the .lyx file, in case the process goes
> > wrong.
> > 1. Look at the lyx file, check what an ERT
> > containing
> > ~--- looks like.  My example is for lyx 1.4
> > 2. Use a powerful text editor on the .lyx file, tell
> >  it to replace every occurence of --- with:
> > \begin_inset ERT
> > status collapsed
> >
> > \begin_layout Standard
> > ~---
> > \end_layout
> >
> > \end_inset
> >
> >
> > I.e.
> > aaa---bbb
> > should become
> >
> > aaa
> > \begin_inset ERT
> > status collapsed
> >
> > \begin_layout Standard
> > ~---
> > \end_layout
> >
> > \end_inset
> >
> > bbb

> Helge, what good text editor ---in Linux--- can I to
> use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type ":" and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then ":" and "sq" to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
> I seem to remember you had lots of these?
> You can fix them all this way:
> Lyx can't do this with search and replace, but
> a text editor capable of replacing several lines can
> do it by working on the .lyx file.

It would be so "loverly" if in LyX one could select an ERT object, paste 
it into the "replace with" field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations