Fw: Re[3]: LyX .doc

2009-09-21 Thread 0
--- Forwarded message ---

 From: 0 the_herd_of_the_hor...@yahoo.com
 Subject: Re: LyX   .doc
 To: rgheck rgh...@bobjweil.com
 Date: Sunday, September 20, 2009, 6:10 PM
 I badly need a more detailed
 instruction. This is what I have:
 ==
 LyX: Cannot convert file
 An error occurred whilst running latex2rt -p -S -o
 newfile2.rtf
 newfile2.tex
 
 --- On Sun, 9/20/09, rgheck rgh...@bobjweil.com
 wrote:
 
  From: rgheck rgh...@bobjweil.com
  Subject: Re: LyX   .doc
  To: the_herd_of_the_hor...@yahoo.com
  Date: Sunday, September 20, 2009, 10:55 AM
  On 09/19/2009 07:33 PM, 0 wrote:
   How can I export a LyX file to RTF?
  
      
  Get latex2rtf (google it). Install it, reconfigure
 LyX, and
  the export 
  option will just be there.
  
  rh
  
   From: rgheckrgh...@bobjweil.com
   Subject: Re: LyX  .doc
   To: Andre Poenitzandre.poen...@mathematik.tu-chemnitz.de
   Cc: the_herd_of_the_hor...@yahoo.com,
  lyx-users@lists.lyx.org
   Date: Saturday, September 19, 2009, 11:42 PM
        
   Can I
  
   a) save
   b) export
   c) edit
  
   a document in MS Word (.doc) format in
 LyX?
  
  
          
   This depends upon exactly what you want to
 do. If
  the
   situation is that you have a Word document
 and you
  want to
   import it into LyX, then this can be done,
 though
  not
   directly, as there's no good converter chain
 for
  you to use.
   (That said, I believe what I'm about to
 describe
  could be
   automated using PyUno, or whatever the OOo
 python
  scripting
   service is called.) What you would need to do
 is
  open the
   document in OpenOffice, then save it as
 LaTeX, and
  then
   import that into LyX.
  
   Conversely, if you want to save the document
 in a
  format in
   which it can be edited by those who have not
 seen
  the light
   (aka, Word users), then you can export to
 RTF.
  
   Richard
  
  
        
  
  
      
  
  
 
 
 
 





Re: LyX .doc

2009-09-21 Thread rgheck

On 09/20/2009 04:39 PM, Stefano Franchi wrote:


On the other hand, I knew about tex2word and word2tex, but I have no easy
access to a Windows machine and they do not work under wine, unfortunately.

   
You can go Word--OpenOffice--LaTeX. Indeed, I keep thinking that I 
should find the time to write a script that would do this: It surely 
must be possible to automate the process. Back the other way, htlatex 
will export a Word (HTML) format, which I guess is some variety of 
HTML that Word understands. And isn't Word supposed now to import ODT? 
There's at least a plugin for that.



The general tenor of the replies to the original message seems to confirm my
experience: it is possible to convert to/from word but impossible (i.e. too
time-consuming) to work in a shared word/lyx environment. Indeed I use
openoffice in any interaction with my students (who would only use word) and
find it perfectly acceptable. On the other hand, I can enjoy the productivity
of LyX/Latex for my own projects even when the final link of the publishing
chain is stuck on word.

   
I'm puzzled about why working with students requires using OpenOffice. I 
tell my students to send me things as PDF, and if I want to comment 
directly on the paper, electronically, I can do that in okular (and 
Windows folks can do it in foxit).


Richard



Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
  [...] I would
  like to see my footnotes for each section
 renumbered
  starting with 1.
    [...] I tried inserting
 the code
  \...@addtoreset{footnote}{section} in the
 document preamble
  and still nothing.
           
  Marcelo Acuña:
       
  I could not either obtain that.
  I have koma-script book.
 For book.cls, you can do this:
 
 \let\oldsec=\section
 \def\section{\setcounter{\footnote}{0}\oldsec}
 
 That seems to work, though it wouldn't be shocking if there
 were 
 side-effects.
 
 rh

 This work ok!
 Thanks!
Marcelo

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


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
   [...] I would
   like to see my footnotes for each section
 renumbered
   starting with 1.
    [...] I tried inserting the code
   \...@addtoreset{footnote}{section} in the document
 preamble
   and still nothing.
 
 Marcelo Acuña:
  I could not either obtain that.
  I have koma-script book.
 
 What about the following (for the KOMA script):
 
 % per-chapter numbering
 \numberwithin{footnote}{chapter}
 
 Nikos

 This is the default option.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
[...] I would
like to see my footnotes for each section
  renumbered
starting with 1.
     [...] I tried inserting the code
\...@addtoreset{footnote}{section} in the
 document
  preamble
and still nothing.
  
  Marcelo Acuña:
   I could not either obtain that.
   I have koma-script book.
  
  What about the following (for the KOMA script):
  
  % per-chapter numbering
  \numberwithin{footnote}{chapter}
  
  Nikos
 
  This is the default option.
  Marcelo

 Oops for me too Nikos.
 This is for get chapter number-footnote number.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Question about bold and underline missing buttons

2009-09-21 Thread silvio grosso
Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's 
interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked 
me is: where are those 2 buttons.
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio






Re: Question about bold and underline missing buttons

2009-09-21 Thread Niklas HuldŽen

silvio grosso skrev:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).

On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked me is: 
where are those 2 buttons.
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio




Well, before computers turned up, manuscripts used to be either 
handwritten and/or typed out on a typewriter, before they were sent to 
the printer. Typewriters could not easily emphasize a word so one would 
use underlining as to signal that the text should be emphasized in the 
printed version (also in handwritten manuscripts).


Emphasizing the text in the printed manuscript would be done using som 
form of italic/slanted type in most cases. If the printed typeface did 
not have any slanted version one could also use s p a c e s to emphasize 
a printed word. Later typewriter models could make bold text by applying 
the character multiple times slightly offset.


That said, you almost never find bold or underlined text in properly 
edited and printed texts (except in headlines of different types and 
some lists). I think LyX is only trying to bring forward this 
typographical practice. I mean, why use underlining when you can use 
emphasizing directly.


regards

Niklas



Re: Question about bold and underline missing buttons

2009-09-21 Thread rgheck

On 09/21/2009 10:27 AM, silvio grosso wrote:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's 
interface which allows to emphasize a text.
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

   
I don't know for sure why the buttons aren't there, but I think the 
reason is the same as the reason that there isn't a button for italics. 
Now you might say, yes, there is! But there isn't. Emphasis isn't 
italics, as you will find it you do this:

This is emphreally emphemphatic/emph/emph
In most document classes, really will be italicized and emphatic 
will be upright.


Emphasis is semantic. It means something. So does noun, for which 
there is also a button. The others are not. LyX discourages their use; 
hence the lack of a button. Of course, you could also have something 
equivalent to HTML's strong tag, which defaults in most browsers to 
boldface, and the Logical Markup module defines such a thing. But at 
present there's no way for modules to add things to the toolbars. Such a 
button would have to be added independently.


This is not very hard to do. The safest way is to copy the file 
stdtoolbars.inc from LyX's resource directories (normally, this would be 
/usr/share/lyx/ui/ on Linux) to your local LyX directory 
($HOME/.lyx/ui/, on Linux) and then modify it as follows.


Around line 85, you will see this:
Item Toggle emphasis font-emph
Item Toggle noun font-noun
Add this:
Item Toggle bold font-bold
if you just want bold or
Item Toggle strong flex-insert CharStyle:strong
for strong. Then you have to add the button file itself (to 
$HOME/.lyx/images/, on Linux). This should be a 20x20 PNG named the same 
(more or less) as the LFUN you are calling. As it happens, there seems 
already to be a font-bold.png; you could just copy this to 
flex-insert_CharStyle:strong.png for the latter case.


Richard



delay with text

2009-09-21 Thread M . Kocinski
Can You, please, help in the following problem?

I often observe a delay in appaering a letter on the screen after choosing
it on my keyboard, when LyX using.
Sometimes it is Ok., then a dealy returns and I quickly choose buttons on
my keyboard and the letters appear or disappear slowly on the screen.
I am using in LyX in Windows XP where the system goes properly, without
any sepcial problems.

Best regards,
Marek Kociński



Re: Question about bold and underline missing buttons

2009-09-21 Thread Steve Litt
On Monday 21 September 2009 11:34:16 rgheck wrote:
 On 09/21/2009 10:27 AM, silvio grosso wrote:
  Hello everybody,
 
  I am sorry for asking such a trivial question so bear with me :-)
  In essence, I would like to know why there are not two buttons, in the
  Lyx interface, to underline or bold a text.
 
  Don't get me wrong.
  I know you can perform these two options easily with Lyx :-)
  Actually, there are really plenty of ways to do so.
  For instance, my preferite way (because it is fast) is to press ctr+b
  (to bold) and ctr+u (to underline). However, in my opinion, it is a bit
  strange to have a button in the Lyx's interface which allows to
  emphasize a text. I am referring to the one with the big E on it (its
  shortcut is ctr+e). On the other hand, there are not the two buttons
  needed to bold or underline. I suppose there is a reason for it?

[clip]

 Emphasis is semantic. It means something. So does noun, for which
 there is also a button. The others are not. LyX discourages their use;
 hence the lack of a button. Of course, you could also have something
 equivalent to HTML's strong tag, which defaults in most browsers to
 boldface, and the Logical Markup module defines such a thing. But at
 present there's no way for modules to add things to the toolbars. Such a
 button would have to be added independently.

Hi Silvio,

First, your question wasn't the slightest bit trivial -- it in fact is one of 
the most profound questions asked here.

I'd like to put even more **EMPHASIS** on what Richard said. It's my personal 
opinion that on any document more than five pages long, you're walking the 
trail of tears if you use things like bold, italic, Smallcaps and the 
like. This is because what you **REALLY** want to do  is reveal special usage 
of the word(s) to the reader. If you always used italic for emphasis, you'd 
need to remember that and make sure you never used bold for emphasis.

Here's another problem. Let's say you use Italic for emphasis, and also use 
Italic for the four suits of a card deck, Clubs, Diamonds, Spades and Hearts. 
Now you want to change the four suits to be bold. If you'd used two different 
character styles for the two, you'd simply change the definition of the 
character style. If you'd strongarmed them all to italic, you'd need to search 
and replace throughout the document.

Emph is really a kinda sorta character style built into LyX. I'm pretty sure 
it can be redefined to produce bold output, or bold italic output, or Large 
output, or whatever you want. I know for a fact you can do that with real 
character styles.

You noted in your original post (not quoted here) that your MS Word and 
Texmaker using friends have buttons for underline and bold. If they use those 
buttons, they've fallen into some very bad habits, because they've substituted 
appearance for meaning. As a document gets long and you need to maintain 
consistency, the only way to do that is with styles, both for paragraphs and 
for smaller runs of text (character styles). MS Word has excellent paragraph 
and character styles -- they should be used. I've used paragraph and character 
styles ever since Wordperfect 5.0 came out in the late 1980's.

Personally, I don't use Emph, Noun (the little man on the button) or the Font 
button. Instead I have character styles for all. In that way, I can have 
styles named for their meaning and appearing how I define them to appear. That 
way, if 6 months after writing a book I decide that a chapter name should be 
large and italic instead of bold, I can make the switch in my layout file, and 
all chapter names will change accordingly.

No discussion of this subject is complete without thanking the LyX development 
team for implementing character styles. Thank you!

HTH, and excellent question.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt


Re: LyX .doc

2009-09-21 Thread William Seager
On September 21, 2009 08:57:41 rgheck wrote:
  if I want to comment 
 directly on the paper, electronically, I can do that in okular
 

this is off topic a bit, but is there a way to search for
annotations after they've been made and saved?
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: Question about bold and underline missing buttons

2009-09-21 Thread rgheck

On 09/21/2009 01:04 PM, Steve Litt wrote:

Emph is really a kinda sorta character style built into LyX. I'm pretty sure
it can be redefined to produce bold output, or bold italic output, or Large
output, or whatever you want. I know for a fact you can do that with real
character styles.

   
What Ctrl-E (or the toolbar button) gets you is what we call a 
character range. But there is also an emphasis character style, 
defined in the Logical Markup module. Both can be redefined, though in 
different ways. To redefine the range, you have to do it in LaTeX, via 
something like: \def\emph. The character style can be redefined in LyX 
itself.


Richard



Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error
and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian


[SOLVED] Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,
following Richard's hint -- LaTeX export and then manually running latex --
I was able to see that all links to embedded objects were incomplete. No
idea what caused this, though ...

After a bit of experimenting, I moved my LyX file to the LyX working
directory, along with all source files for embedded objects (PDF, PNG and so
on), double checked they were properly linked and voila, the PDF output was
produced.

I'm still puzzled as to why a working LyX document would all of a sudden
refuse to compile. It was compiling alright three days ago, I only corrected
some typos, and now all the object links were broken. Weird.

Thanks, rh,
-- Christian



###

Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error

and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian




Does LaTeX export work? I'm guessing maybe not. And if not, it's a LyX
problem, somewhere. If so, then try running latex manually on the
exported file.

rh


Spotlight indexing on Mac OS X

2009-09-21 Thread Pete Crite

Hi,

I've been trying to get LyX Spotlight indexing working for Mac OS X  
10.5.8 Leopard. I noticed the following lines in my console:


22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find executable for  
CFBundle/CFPlugIn 0x149c00 /Applications/LyX/LyX.app/Contents/Library/ 
Spotlight/LyX-Metadata.mdimporter (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find function  
pointer MetadataImporterPluginFactory for factory C99B643C-A50B-409E- 
B499-BCB9FB8C170F in CFBundle/CFPlugIn 0x149c00 /Applications/LyX/ 
LyX.app/Contents/Library/Spotlight/LyX-Metadata.mdimporter (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] (Warning)  
ImportPluginLoading: Plugin at url 'Spotlight/LyX-Metadata.mdimporter/  
-- /Applications/LyX/LyX.app/Contents/Library/' cannot be loaded.  It  
will not be used.


I attempted to follow the instructions on the wiki to type the  
following into the terminal:
mdimport -r /Applications/LyX/LyX.app/Contents/Library/Spotlight/LyX- 
Metadata.mdimporter


but this only repeated the above three error messages. Is there anyway  
to get Spotlight working? (N.B. the path referred to, /Applications/ 
LyX/LyX.app, is indeed the location of my application.)


Cheers,
Pete.

amsthm package support

2009-09-21 Thread Gustavo
Hello,

First I would like to congratulate the Lyx development team for this amazing
program. I am a master's degree student in mathematics and Lyx is a hand on
the wheel to create mathematical texts, specially for editing complicated
formulas, which, in bare latex, are ugly and unreadable. For instance, I
can't understand anything here:

\[\hat{f}_{n}=\int_{\left[0,1\right)}f\cdot\psi_{n}\,
d\mu=\sqrt{2^{k}}\int_{\left[\frac{2r-2}{2^{k+1}},\frac{2r-1}{2^{k+1}}\right]}f\,
d\lambda-\sqrt{2^{k}}\int_{\left[\frac{2r-1}{2^{k+1}},\frac{2r}{2^{k+1}}\right]}f\,
d\lambda\textrm{,}\]

The formula generated is very simple, yet it is not possible to see it in
this code. I have been using Lyx for two years now, and currently I am using
it to write my thesis.

As a mathematician, I frequently use the package amsthm and, as far as I
know, unfortunately, Lyx does not support this package. I need to insert
latex code (\begin{theorem}, \end{theorem} and similar) everywhere. Not that
this is too restrictive, but it would be nicer if those commands where
better integrated with Lyx. Since Lyx already provides amsmath and amssymb
packages whenever that option is chosen in Document configurations, I
believe that it should also provide amsthm with them.

Related to this subject, I found this bug report, but there isn't a
description.

http://www.lyx.org/trac/changeset/22460

Cheers,
Gustavo.


Fw: Re[3]: LyX .doc

2009-09-21 Thread 0
--- Forwarded message ---

 From: 0 the_herd_of_the_hor...@yahoo.com
 Subject: Re: LyX   .doc
 To: rgheck rgh...@bobjweil.com
 Date: Sunday, September 20, 2009, 6:10 PM
 I badly need a more detailed
 instruction. This is what I have:
 ==
 LyX: Cannot convert file
 An error occurred whilst running latex2rt -p -S -o
 newfile2.rtf
 newfile2.tex
 
 --- On Sun, 9/20/09, rgheck rgh...@bobjweil.com
 wrote:
 
  From: rgheck rgh...@bobjweil.com
  Subject: Re: LyX   .doc
  To: the_herd_of_the_hor...@yahoo.com
  Date: Sunday, September 20, 2009, 10:55 AM
  On 09/19/2009 07:33 PM, 0 wrote:
   How can I export a LyX file to RTF?
  
      
  Get latex2rtf (google it). Install it, reconfigure
 LyX, and
  the export 
  option will just be there.
  
  rh
  
   From: rgheckrgh...@bobjweil.com
   Subject: Re: LyX  .doc
   To: Andre Poenitzandre.poen...@mathematik.tu-chemnitz.de
   Cc: the_herd_of_the_hor...@yahoo.com,
  lyx-users@lists.lyx.org
   Date: Saturday, September 19, 2009, 11:42 PM
        
   Can I
  
   a) save
   b) export
   c) edit
  
   a document in MS Word (.doc) format in
 LyX?
  
  
          
   This depends upon exactly what you want to
 do. If
  the
   situation is that you have a Word document
 and you
  want to
   import it into LyX, then this can be done,
 though
  not
   directly, as there's no good converter chain
 for
  you to use.
   (That said, I believe what I'm about to
 describe
  could be
   automated using PyUno, or whatever the OOo
 python
  scripting
   service is called.) What you would need to do
 is
  open the
   document in OpenOffice, then save it as
 LaTeX, and
  then
   import that into LyX.
  
   Conversely, if you want to save the document
 in a
  format in
   which it can be edited by those who have not
 seen
  the light
   (aka, Word users), then you can export to
 RTF.
  
   Richard
  
  
        
  
  
      
  
  
 
 
 
 





Re: LyX .doc

2009-09-21 Thread rgheck

On 09/20/2009 04:39 PM, Stefano Franchi wrote:


On the other hand, I knew about tex2word and word2tex, but I have no easy
access to a Windows machine and they do not work under wine, unfortunately.

   
You can go Word--OpenOffice--LaTeX. Indeed, I keep thinking that I 
should find the time to write a script that would do this: It surely 
must be possible to automate the process. Back the other way, htlatex 
will export a Word (HTML) format, which I guess is some variety of 
HTML that Word understands. And isn't Word supposed now to import ODT? 
There's at least a plugin for that.



The general tenor of the replies to the original message seems to confirm my
experience: it is possible to convert to/from word but impossible (i.e. too
time-consuming) to work in a shared word/lyx environment. Indeed I use
openoffice in any interaction with my students (who would only use word) and
find it perfectly acceptable. On the other hand, I can enjoy the productivity
of LyX/Latex for my own projects even when the final link of the publishing
chain is stuck on word.

   
I'm puzzled about why working with students requires using OpenOffice. I 
tell my students to send me things as PDF, and if I want to comment 
directly on the paper, electronically, I can do that in okular (and 
Windows folks can do it in foxit).


Richard



Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
  [...] I would
  like to see my footnotes for each section
 renumbered
  starting with 1.
    [...] I tried inserting
 the code
  \...@addtoreset{footnote}{section} in the
 document preamble
  and still nothing.
           
  Marcelo Acuña:
       
  I could not either obtain that.
  I have koma-script book.
 For book.cls, you can do this:
 
 \let\oldsec=\section
 \def\section{\setcounter{\footnote}{0}\oldsec}
 
 That seems to work, though it wouldn't be shocking if there
 were 
 side-effects.
 
 rh

 This work ok!
 Thanks!
Marcelo

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


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
   [...] I would
   like to see my footnotes for each section
 renumbered
   starting with 1.
    [...] I tried inserting the code
   \...@addtoreset{footnote}{section} in the document
 preamble
   and still nothing.
 
 Marcelo Acuña:
  I could not either obtain that.
  I have koma-script book.
 
 What about the following (for the KOMA script):
 
 % per-chapter numbering
 \numberwithin{footnote}{chapter}
 
 Nikos

 This is the default option.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
[...] I would
like to see my footnotes for each section
  renumbered
starting with 1.
     [...] I tried inserting the code
\...@addtoreset{footnote}{section} in the
 document
  preamble
and still nothing.
  
  Marcelo Acuña:
   I could not either obtain that.
   I have koma-script book.
  
  What about the following (for the KOMA script):
  
  % per-chapter numbering
  \numberwithin{footnote}{chapter}
  
  Nikos
 
  This is the default option.
  Marcelo

 Oops for me too Nikos.
 This is for get chapter number-footnote number.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Question about bold and underline missing buttons

2009-09-21 Thread silvio grosso
Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's 
interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked 
me is: where are those 2 buttons.
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio






Re: Question about bold and underline missing buttons

2009-09-21 Thread Niklas HuldŽen

silvio grosso skrev:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).

On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked me is: 
where are those 2 buttons.
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio




Well, before computers turned up, manuscripts used to be either 
handwritten and/or typed out on a typewriter, before they were sent to 
the printer. Typewriters could not easily emphasize a word so one would 
use underlining as to signal that the text should be emphasized in the 
printed version (also in handwritten manuscripts).


Emphasizing the text in the printed manuscript would be done using som 
form of italic/slanted type in most cases. If the printed typeface did 
not have any slanted version one could also use s p a c e s to emphasize 
a printed word. Later typewriter models could make bold text by applying 
the character multiple times slightly offset.


That said, you almost never find bold or underlined text in properly 
edited and printed texts (except in headlines of different types and 
some lists). I think LyX is only trying to bring forward this 
typographical practice. I mean, why use underlining when you can use 
emphasizing directly.


regards

Niklas



Re: Question about bold and underline missing buttons

2009-09-21 Thread rgheck

On 09/21/2009 10:27 AM, silvio grosso wrote:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my preferite way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit strange to have a button in the Lyx's 
interface which allows to emphasize a text.
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

   
I don't know for sure why the buttons aren't there, but I think the 
reason is the same as the reason that there isn't a button for italics. 
Now you might say, yes, there is! But there isn't. Emphasis isn't 
italics, as you will find it you do this:

This is emphreally emphemphatic/emph/emph
In most document classes, really will be italicized and emphatic 
will be upright.


Emphasis is semantic. It means something. So does noun, for which 
there is also a button. The others are not. LyX discourages their use; 
hence the lack of a button. Of course, you could also have something 
equivalent to HTML's strong tag, which defaults in most browsers to 
boldface, and the Logical Markup module defines such a thing. But at 
present there's no way for modules to add things to the toolbars. Such a 
button would have to be added independently.


This is not very hard to do. The safest way is to copy the file 
stdtoolbars.inc from LyX's resource directories (normally, this would be 
/usr/share/lyx/ui/ on Linux) to your local LyX directory 
($HOME/.lyx/ui/, on Linux) and then modify it as follows.


Around line 85, you will see this:
Item Toggle emphasis font-emph
Item Toggle noun font-noun
Add this:
Item Toggle bold font-bold
if you just want bold or
Item Toggle strong flex-insert CharStyle:strong
for strong. Then you have to add the button file itself (to 
$HOME/.lyx/images/, on Linux). This should be a 20x20 PNG named the same 
(more or less) as the LFUN you are calling. As it happens, there seems 
already to be a font-bold.png; you could just copy this to 
flex-insert_CharStyle:strong.png for the latter case.


Richard



delay with text

2009-09-21 Thread M . Kocinski
Can You, please, help in the following problem?

I often observe a delay in appaering a letter on the screen after choosing
it on my keyboard, when LyX using.
Sometimes it is Ok., then a dealy returns and I quickly choose buttons on
my keyboard and the letters appear or disappear slowly on the screen.
I am using in LyX in Windows XP where the system goes properly, without
any sepcial problems.

Best regards,
Marek Kociński



Re: Question about bold and underline missing buttons

2009-09-21 Thread Steve Litt
On Monday 21 September 2009 11:34:16 rgheck wrote:
 On 09/21/2009 10:27 AM, silvio grosso wrote:
  Hello everybody,
 
  I am sorry for asking such a trivial question so bear with me :-)
  In essence, I would like to know why there are not two buttons, in the
  Lyx interface, to underline or bold a text.
 
  Don't get me wrong.
  I know you can perform these two options easily with Lyx :-)
  Actually, there are really plenty of ways to do so.
  For instance, my preferite way (because it is fast) is to press ctr+b
  (to bold) and ctr+u (to underline). However, in my opinion, it is a bit
  strange to have a button in the Lyx's interface which allows to
  emphasize a text. I am referring to the one with the big E on it (its
  shortcut is ctr+e). On the other hand, there are not the two buttons
  needed to bold or underline. I suppose there is a reason for it?

[clip]

 Emphasis is semantic. It means something. So does noun, for which
 there is also a button. The others are not. LyX discourages their use;
 hence the lack of a button. Of course, you could also have something
 equivalent to HTML's strong tag, which defaults in most browsers to
 boldface, and the Logical Markup module defines such a thing. But at
 present there's no way for modules to add things to the toolbars. Such a
 button would have to be added independently.

Hi Silvio,

First, your question wasn't the slightest bit trivial -- it in fact is one of 
the most profound questions asked here.

I'd like to put even more **EMPHASIS** on what Richard said. It's my personal 
opinion that on any document more than five pages long, you're walking the 
trail of tears if you use things like bold, italic, Smallcaps and the 
like. This is because what you **REALLY** want to do  is reveal special usage 
of the word(s) to the reader. If you always used italic for emphasis, you'd 
need to remember that and make sure you never used bold for emphasis.

Here's another problem. Let's say you use Italic for emphasis, and also use 
Italic for the four suits of a card deck, Clubs, Diamonds, Spades and Hearts. 
Now you want to change the four suits to be bold. If you'd used two different 
character styles for the two, you'd simply change the definition of the 
character style. If you'd strongarmed them all to italic, you'd need to search 
and replace throughout the document.

Emph is really a kinda sorta character style built into LyX. I'm pretty sure 
it can be redefined to produce bold output, or bold italic output, or Large 
output, or whatever you want. I know for a fact you can do that with real 
character styles.

You noted in your original post (not quoted here) that your MS Word and 
Texmaker using friends have buttons for underline and bold. If they use those 
buttons, they've fallen into some very bad habits, because they've substituted 
appearance for meaning. As a document gets long and you need to maintain 
consistency, the only way to do that is with styles, both for paragraphs and 
for smaller runs of text (character styles). MS Word has excellent paragraph 
and character styles -- they should be used. I've used paragraph and character 
styles ever since Wordperfect 5.0 came out in the late 1980's.

Personally, I don't use Emph, Noun (the little man on the button) or the Font 
button. Instead I have character styles for all. In that way, I can have 
styles named for their meaning and appearing how I define them to appear. That 
way, if 6 months after writing a book I decide that a chapter name should be 
large and italic instead of bold, I can make the switch in my layout file, and 
all chapter names will change accordingly.

No discussion of this subject is complete without thanking the LyX development 
team for implementing character styles. Thank you!

HTH, and excellent question.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt


Re: LyX .doc

2009-09-21 Thread William Seager
On September 21, 2009 08:57:41 rgheck wrote:
  if I want to comment 
 directly on the paper, electronically, I can do that in okular
 

this is off topic a bit, but is there a way to search for
annotations after they've been made and saved?
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: Question about bold and underline missing buttons

2009-09-21 Thread rgheck

On 09/21/2009 01:04 PM, Steve Litt wrote:

Emph is really a kinda sorta character style built into LyX. I'm pretty sure
it can be redefined to produce bold output, or bold italic output, or Large
output, or whatever you want. I know for a fact you can do that with real
character styles.

   
What Ctrl-E (or the toolbar button) gets you is what we call a 
character range. But there is also an emphasis character style, 
defined in the Logical Markup module. Both can be redefined, though in 
different ways. To redefine the range, you have to do it in LaTeX, via 
something like: \def\emph. The character style can be redefined in LyX 
itself.


Richard



Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error
and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian


[SOLVED] Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,
following Richard's hint -- LaTeX export and then manually running latex --
I was able to see that all links to embedded objects were incomplete. No
idea what caused this, though ...

After a bit of experimenting, I moved my LyX file to the LyX working
directory, along with all source files for embedded objects (PDF, PNG and so
on), double checked they were properly linked and voila, the PDF output was
produced.

I'm still puzzled as to why a working LyX document would all of a sudden
refuse to compile. It was compiling alright three days ago, I only corrected
some typos, and now all the object links were broken. Weird.

Thanks, rh,
-- Christian



###

Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error

and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian




Does LaTeX export work? I'm guessing maybe not. And if not, it's a LyX
problem, somewhere. If so, then try running latex manually on the
exported file.

rh


Spotlight indexing on Mac OS X

2009-09-21 Thread Pete Crite

Hi,

I've been trying to get LyX Spotlight indexing working for Mac OS X  
10.5.8 Leopard. I noticed the following lines in my console:


22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find executable for  
CFBundle/CFPlugIn 0x149c00 /Applications/LyX/LyX.app/Contents/Library/ 
Spotlight/LyX-Metadata.mdimporter (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find function  
pointer MetadataImporterPluginFactory for factory C99B643C-A50B-409E- 
B499-BCB9FB8C170F in CFBundle/CFPlugIn 0x149c00 /Applications/LyX/ 
LyX.app/Contents/Library/Spotlight/LyX-Metadata.mdimporter (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] (Warning)  
ImportPluginLoading: Plugin at url 'Spotlight/LyX-Metadata.mdimporter/  
-- /Applications/LyX/LyX.app/Contents/Library/' cannot be loaded.  It  
will not be used.


I attempted to follow the instructions on the wiki to type the  
following into the terminal:
mdimport -r /Applications/LyX/LyX.app/Contents/Library/Spotlight/LyX- 
Metadata.mdimporter


but this only repeated the above three error messages. Is there anyway  
to get Spotlight working? (N.B. the path referred to, /Applications/ 
LyX/LyX.app, is indeed the location of my application.)


Cheers,
Pete.

amsthm package support

2009-09-21 Thread Gustavo
Hello,

First I would like to congratulate the Lyx development team for this amazing
program. I am a master's degree student in mathematics and Lyx is a hand on
the wheel to create mathematical texts, specially for editing complicated
formulas, which, in bare latex, are ugly and unreadable. For instance, I
can't understand anything here:

\[\hat{f}_{n}=\int_{\left[0,1\right)}f\cdot\psi_{n}\,
d\mu=\sqrt{2^{k}}\int_{\left[\frac{2r-2}{2^{k+1}},\frac{2r-1}{2^{k+1}}\right]}f\,
d\lambda-\sqrt{2^{k}}\int_{\left[\frac{2r-1}{2^{k+1}},\frac{2r}{2^{k+1}}\right]}f\,
d\lambda\textrm{,}\]

The formula generated is very simple, yet it is not possible to see it in
this code. I have been using Lyx for two years now, and currently I am using
it to write my thesis.

As a mathematician, I frequently use the package amsthm and, as far as I
know, unfortunately, Lyx does not support this package. I need to insert
latex code (\begin{theorem}, \end{theorem} and similar) everywhere. Not that
this is too restrictive, but it would be nicer if those commands where
better integrated with Lyx. Since Lyx already provides amsmath and amssymb
packages whenever that option is chosen in Document configurations, I
believe that it should also provide amsthm with them.

Related to this subject, I found this bug report, but there isn't a
description.

http://www.lyx.org/trac/changeset/22460

Cheers,
Gustavo.


Fw: Re[3]: LyX & ".doc"

2009-09-21 Thread 0
--- Forwarded message ---

> From: 0 
> Subject: Re: LyX  & ".doc"
> To: "rgheck" 
> Date: Sunday, September 20, 2009, 6:10 PM
> I badly need a more detailed
> instruction. This is what I have:
> ==
> LyX: Cannot convert file
> An error occurred whilst running latex2rt -p -S -o
> "newfile2.rtf"
> "newfile2.tex"
> 
> --- On Sun, 9/20/09, rgheck 
> wrote:
> 
> > From: rgheck 
> > Subject: Re: LyX  & ".doc"
> > To: the_herd_of_the_hor...@yahoo.com
> > Date: Sunday, September 20, 2009, 10:55 AM
> > On 09/19/2009 07:33 PM, 0 wrote:
> > > How can I export a LyX file to RTF?
> > >
> > >    
> > Get latex2rtf (google it). Install it, reconfigure
> LyX, and
> > the export 
> > option will just be there.
> > 
> > rh
> > 
> > >> From: rgheck
> > >> Subject: Re: LyX&  ".doc"
> > >> To: "Andre Poenitz"
> > >> Cc: the_herd_of_the_hor...@yahoo.com,
> > lyx-users@lists.lyx.org
> > >> Date: Saturday, September 19, 2009, 11:42 PM
> > >>      
> > >>> Can I
> > >>>
> > >>> a) save
> > >>> b) export
> > >>> c) edit
> > >>>
> > >>> a document in MS Word (.doc) format in
> LyX?
> > >>>
> > >>>
> > >>>        
> > >> This depends upon exactly what you want to
> do. If
> > the
> > >> situation is that you have a Word document
> and you
> > want to
> > >> import it into LyX, then this can be done,
> though
> > not
> > >> directly, as there's no good converter chain
> for
> > you to use.
> > >> (That said, I believe what I'm about to
> describe
> > could be
> > >> automated using PyUno, or whatever the OOo
> python
> > scripting
> > >> service is called.) What you would need to do
> is
> > open the
> > >> document in OpenOffice, then save it as
> LaTeX, and
> > then
> > >> import that into LyX.
> > >>
> > >> Conversely, if you want to save the document
> in a
> > format in
> > >> which it can be edited by those who have not
> seen
> > the light
> > >> (aka, Word users), then you can export to
> RTF.
> > >>
> > >> Richard
> > >>
> > >>
> > >>      
> > >
> > >
> > >    
> > 
> > 
> 
> 
> 
> 





Re: LyX & ".doc"

2009-09-21 Thread rgheck

On 09/20/2009 04:39 PM, Stefano Franchi wrote:


On the other hand, I knew about tex2word and word2tex, but I have no easy
access to a Windows machine and they do not work under wine, unfortunately.

   
You can go Word-->OpenOffice-->LaTeX. Indeed, I keep thinking that I 
should find the time to write a script that would do this: It surely 
must be possible to automate the process. Back the other way, htlatex 
will export a "Word (HTML)" format, which I guess is some variety of 
HTML that Word understands. And isn't Word supposed now to import ODT? 
There's at least a plugin for that.



The general tenor of the replies to the original message seems to confirm my
experience: it is possible to convert to/from word but impossible (i.e. too
time-consuming) to work in a shared word/lyx environment. Indeed I use
openoffice in any interaction with my students (who would only use word) and
find it perfectly acceptable. On the other hand, I can enjoy the productivity
of LyX/Latex for my own projects even when the final link of the publishing
chain is stuck on word.

   
I'm puzzled about why working with students requires using OpenOffice. I 
tell my students to send me things as PDF, and if I want to comment 
directly on the paper, electronically, I can do that in okular (and 
Windows folks can do it in foxit).


Richard



Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
>  [...] I would
>  like to see my footnotes for each section
> renumbered
>  starting with 1.
>    [...] I tried inserting
> the code
>  "\...@addtoreset{footnote}{section}" in the
> document preamble
>  and still nothing.
>           
> >> Marcelo Acuña:
> >>      
> >>> I could not either obtain that.
> >>> I have koma-script book.
> For book.cls, you can do this:
> 
> \let\oldsec=\section
> \def\section{\setcounter{\footnote}{0}\oldsec}
> 
> That seems to work, though it wouldn't be shocking if there
> were 
> side-effects.
> 
> rh

 This work ok!
 Thanks!
Marcelo

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


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
> > > [...] I would
> > > like to see my footnotes for each section
> renumbered
> > > starting with 1.
> > >  [...] I tried inserting the code
> > > "\...@addtoreset{footnote}{section}" in the document
> preamble
> > > and still nothing.
> 
> Marcelo Acuña:
> > I could not either obtain that.
> > I have koma-script book.
> 
> What about the following (for the KOMA script):
> 
> % per-chapter numbering
> \numberwithin{footnote}{chapter}
> 
> Nikos

 This is the default option.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Re: Renumbering footnotes after each section

2009-09-21 Thread Marcelo Acuña
> > > > [...] I would
> > > > like to see my footnotes for each section
> > renumbered
> > > > starting with 1.
> > > >  [...] I tried inserting the code
> > > > "\...@addtoreset{footnote}{section}" in the
> document
> > preamble
> > > > and still nothing.
> > 
> > Marcelo Acuña:
> > > I could not either obtain that.
> > > I have koma-script book.
> > 
> > What about the following (for the KOMA script):
> > 
> > % per-chapter numbering
> > \numberwithin{footnote}{chapter}
> > 
> > Nikos
> 
>  This is the default option.
>  Marcelo

 Oops for me too Nikos.
 This is for get chapter number-footnote number.
 Marcelo


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/


Question about bold and underline "missing" buttons

2009-09-21 Thread silvio grosso
Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my "preferite" way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit "strange" to have a button in the Lyx's 
interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked 
me is: "where are those 2 buttons".
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio






Re: Question about bold and underline "missing" buttons

2009-09-21 Thread Niklas HuldŽen

silvio grosso skrev:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my "preferite" way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit "strange" to have a button in the Lyx's interface which allows to emphasize a text 
I am referring to the one with the big E on it (its shortcut is ctr+e).

On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

Sometimes, when I try to teach Lyx to new-users the first question they asked me is: 
"where are those 2 buttons".
These two buttons, for example, are available in softwares such as TexMaker or 
WinEdit.
Most of all, I suppose, it occurs because most users are used to work with text 
editors such as Word or  OpenOffice Writer :-)

Best regards,

Silvio




Well, before computers turned up, manuscripts used to be either 
handwritten and/or typed out on a typewriter, before they were sent to 
the printer. Typewriters could not easily emphasize a word so one would 
use underlining as to signal that the text should be emphasized in the 
printed version (also in handwritten manuscripts).


Emphasizing the text in the printed manuscript would be done using som 
form of italic/slanted type in most cases. If the printed typeface did 
not have any slanted version one could also use s p a c e s to emphasize 
a printed word. Later typewriter models could make bold text by applying 
the character multiple times slightly offset.


That said, you almost never find bold or underlined text in properly 
edited and printed texts (except in headlines of different types and 
some lists). I think LyX is only trying to bring forward this 
typographical practice. I mean, why use underlining when you can use 
emphasizing directly.


regards

Niklas



Re: Question about bold and underline "missing" buttons

2009-09-21 Thread rgheck

On 09/21/2009 10:27 AM, silvio grosso wrote:

Hello everybody,

I am sorry for asking such a trivial question so bear with me :-)
In essence, I would like to know why there are not two buttons, in the Lyx 
interface, to underline or bold a text.

Don't get me wrong.
I know you can perform these two options easily with Lyx :-)
Actually, there are really plenty of ways to do so.
For instance, my "preferite" way (because it is fast) is to press ctr+b (to 
bold) and ctr+u (to underline).
However, in my opinion, it is a bit "strange" to have a button in the Lyx's 
interface which allows to emphasize a text.
I am referring to the one with the big E on it (its shortcut is ctr+e).
On the other hand, there are not the two buttons needed to bold or underline.
I suppose there is a reason for it?

   
I don't know for sure why the buttons aren't there, but I think the 
reason is the same as the reason that there isn't a button for italics. 
Now you might say, yes, there is! But there isn't. Emphasis isn't 
italics, as you will find it you do this:

This is really emphatic
In most document classes, "really" will be italicized and "emphatic" 
will be upright.


Emphasis is semantic. It means something. So does "noun", for which 
there is also a button. The others are not. LyX discourages their use; 
hence the lack of a button. Of course, you could also have something 
equivalent to HTML's  tag, which defaults in most browsers to 
boldface, and the Logical Markup module defines such a thing. But at 
present there's no way for modules to add things to the toolbars. Such a 
button would have to be added independently.


This is not very hard to do. The safest way is to copy the file 
stdtoolbars.inc from LyX's resource directories (normally, this would be 
/usr/share/lyx/ui/ on Linux) to your local LyX directory 
($HOME/.lyx/ui/, on Linux) and then modify it as follows.


Around line 85, you will see this:
Item "Toggle emphasis" "font-emph"
Item "Toggle noun" "font-noun"
Add this:
Item "Toggle bold" "font-bold"
if you just want bold or
Item "Toggle strong" "flex-insert CharStyle:strong"
for strong. Then you have to add the button file itself (to 
$HOME/.lyx/images/, on Linux). This should be a 20x20 PNG named the same 
(more or less) as the LFUN you are calling. As it happens, there seems 
already to be a font-bold.png; you could just copy this to 
flex-insert_CharStyle:strong.png for the latter case.


Richard



delay with text

2009-09-21 Thread M . Kocinski
Can You, please, help in the following problem?

I often observe a delay in appaering a letter on the screen after choosing
it on my keyboard, when LyX using.
Sometimes it is Ok., then a dealy returns and I quickly choose buttons on
my keyboard and the letters appear or disappear slowly on the screen.
I am using in LyX in Windows XP where the system goes properly, without
any sepcial problems.

Best regards,
Marek Kociński



Re: Question about bold and underline "missing" buttons

2009-09-21 Thread Steve Litt
On Monday 21 September 2009 11:34:16 rgheck wrote:
> On 09/21/2009 10:27 AM, silvio grosso wrote:
> > Hello everybody,
> >
> > I am sorry for asking such a trivial question so bear with me :-)
> > In essence, I would like to know why there are not two buttons, in the
> > Lyx interface, to underline or bold a text.
> >
> > Don't get me wrong.
> > I know you can perform these two options easily with Lyx :-)
> > Actually, there are really plenty of ways to do so.
> > For instance, my "preferite" way (because it is fast) is to press ctr+b
> > (to bold) and ctr+u (to underline). However, in my opinion, it is a bit
> > "strange" to have a button in the Lyx's interface which allows to
> > emphasize a text. I am referring to the one with the big E on it (its
> > shortcut is ctr+e). On the other hand, there are not the two buttons
> > needed to bold or underline. I suppose there is a reason for it?

[clip]
>
> Emphasis is semantic. It means something. So does "noun", for which
> there is also a button. The others are not. LyX discourages their use;
> hence the lack of a button. Of course, you could also have something
> equivalent to HTML's  tag, which defaults in most browsers to
> boldface, and the Logical Markup module defines such a thing. But at
> present there's no way for modules to add things to the toolbars. Such a
> button would have to be added independently.

Hi Silvio,

First, your question wasn't the slightest bit trivial -- it in fact is one of 
the most profound questions asked here.

I'd like to put even more **EMPHASIS** on what Richard said. It's my personal 
opinion that on any document more than five pages long, you're walking the 
trail of tears if you use things like "bold", "italic", "Smallcaps" and the 
like. This is because what you **REALLY** want to do  is reveal special usage 
of the word(s) to the reader. If you always used italic for emphasis, you'd 
need to remember that and make sure you never used bold for emphasis.

Here's another problem. Let's say you use Italic for emphasis, and also use 
Italic for the four suits of a card deck, Clubs, Diamonds, Spades and Hearts. 
Now you want to change the four suits to be bold. If you'd used two different 
character styles for the two, you'd simply change the definition of the 
character style. If you'd strongarmed them all to italic, you'd need to search 
and replace throughout the document.

Emph is really a kinda sorta character style built into LyX. I'm pretty sure 
it can be redefined to produce bold output, or bold italic output, or Large 
output, or whatever you want. I know for a fact you can do that with real 
character styles.

You noted in your original post (not quoted here) that your MS Word and 
Texmaker using friends have buttons for underline and bold. If they use those 
buttons, they've fallen into some very bad habits, because they've substituted 
appearance for meaning. As a document gets long and you need to maintain 
consistency, the only way to do that is with styles, both for paragraphs and 
for smaller runs of text (character styles). MS Word has excellent paragraph 
and character styles -- they should be used. I've used paragraph and character 
styles ever since Wordperfect 5.0 came out in the late 1980's.

Personally, I don't use Emph, Noun (the little man on the button) or the Font 
button. Instead I have character styles for all. In that way, I can have 
styles named for their meaning and appearing how I define them to appear. That 
way, if 6 months after writing a book I decide that a chapter name should be 
large and italic instead of bold, I can make the switch in my layout file, and 
all chapter names will change accordingly.

No discussion of this subject is complete without thanking the LyX development 
team for implementing character styles. Thank you!

HTH, and excellent question.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt


Re: LyX & ".doc"

2009-09-21 Thread William Seager
On September 21, 2009 08:57:41 rgheck wrote:
>  if I want to comment 
> directly on the paper, electronically, I can do that in okular
> 

this is off topic a bit, but is there a way to search for
annotations after they've been made and saved?
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: Question about bold and underline "missing" buttons

2009-09-21 Thread rgheck

On 09/21/2009 01:04 PM, Steve Litt wrote:

Emph is really a kinda sorta character style built into LyX. I'm pretty sure
it can be redefined to produce bold output, or bold italic output, or Large
output, or whatever you want. I know for a fact you can do that with real
character styles.

   
What Ctrl-E (or the toolbar button) gets you is what we call a 
"character range". But there is also an emphasis character style, 
defined in the Logical Markup module. Both can be redefined, though in 
different ways. To redefine the range, you have to do it in LaTeX, via 
something like: \def\emph. The character style can be redefined in LyX 
itself.


Richard



Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error
and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian


[SOLVED] Conversion error message -- no PDF output

2009-09-21 Thread Christian Liesen
Hi,
following Richard's hint -- LaTeX export and then manually running latex --
I was able to see that all links to embedded objects were incomplete. No
idea what caused this, though ...

After a bit of experimenting, I moved my LyX file to the LyX working
directory, along with all source files for embedded objects (PDF, PNG and so
on), double checked they were properly linked and voila, the PDF output was
produced.

I'm still puzzled as to why a working LyX document would all of a sudden
refuse to compile. It was compiling alright three days ago, I only corrected
some typos, and now all the object links were broken. Weird.

Thanks, rh,
-- Christian



###

Hi,

I have a LyX document that compiled just fine three days ago (pdflatex), but
now I keep getting an error message with the description:

basic_filebuf::_M_convert_to_external conversion error

and no PDF output is produced. Only minor changes have been made since the
last printing. I can not locate the problem. I deleted bits of my document,
but no matter how much I remove, I keep getting the same error message. Any
ideas what else I could try?

I'm on LyX 1.6.4.1 on Mac OS X 10.5.8.

Many thanks,
-- Christian


>
>
Does LaTeX export work? I'm guessing maybe not. And if not, it's a LyX
problem, somewhere. If so, then try running latex manually on the
exported file.

rh


Spotlight indexing on Mac OS X

2009-09-21 Thread Pete Crite

Hi,

I've been trying to get LyX Spotlight indexing working for Mac OS X  
10.5.8 Leopard. I noticed the following lines in my console:


22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find executable for  
CFBundle/CFPlugIn 0x149c00 Spotlight/LyX-Metadata.mdimporter> (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] Cannot find function  
pointer MetadataImporterPluginFactory for factory C99B643C-A50B-409E- 
B499-BCB9FB8C170F in CFBundle/CFPlugIn 0x149c00 LyX.app/Contents/Library/Spotlight/LyX-Metadata.mdimporter> (not loaded)
22/09/09 22/9 • 9:02:22 AM mdworker[38103] (Warning)  
ImportPluginLoading: Plugin at url 'Spotlight/LyX-Metadata.mdimporter/  
-- /Applications/LyX/LyX.app/Contents/Library/' cannot be loaded.  It  
will not be used.


I attempted to follow the instructions on the wiki to type the  
following into the terminal:
mdimport -r /Applications/LyX/LyX.app/Contents/Library/Spotlight/LyX- 
Metadata.mdimporter


but this only repeated the above three error messages. Is there anyway  
to get Spotlight working? (N.B. the path referred to, /Applications/ 
LyX/LyX.app, is indeed the location of my application.)


Cheers,
Pete.

amsthm package support

2009-09-21 Thread Gustavo
Hello,

First I would like to congratulate the Lyx development team for this amazing
program. I am a master's degree student in mathematics and Lyx is a hand on
the wheel to create mathematical texts, specially for editing complicated
formulas, which, in bare latex, are ugly and unreadable. For instance, I
can't understand anything here:

\[\hat{f}_{n}=\int_{\left[0,1\right)}f\cdot\psi_{n}\,
d\mu=\sqrt{2^{k}}\int_{\left[\frac{2r-2}{2^{k+1}},\frac{2r-1}{2^{k+1}}\right]}f\,
d\lambda-\sqrt{2^{k}}\int_{\left[\frac{2r-1}{2^{k+1}},\frac{2r}{2^{k+1}}\right]}f\,
d\lambda\textrm{,}\]

The formula generated is very simple, yet it is not possible to see it in
this code. I have been using Lyx for two years now, and currently I am using
it to write my thesis.

As a mathematician, I frequently use the package amsthm and, as far as I
know, unfortunately, Lyx does not support this package. I need to insert
latex code (\begin{theorem}, \end{theorem} and similar) everywhere. Not that
this is too restrictive, but it would be nicer if those commands where
better integrated with Lyx. Since Lyx already provides amsmath and amssymb
packages whenever that option is chosen in Document configurations, I
believe that it should also provide amsthm with them.

Related to this subject, I found this bug report, but there isn't a
description.

http://www.lyx.org/trac/changeset/22460

Cheers,
Gustavo.