RE: Minutes typeseting

2011-01-26 Thread Xabier Abasolo


-Mensaje original-
I doubt that the package has native LyX support, but you could still use  
it in LyX. You need to add \usepackage{minutes} in teh preamble and then  
use the package through ERT insets (Insert  TeX code).

Which file should I insert in TeX code? The pachage has 6 files: 
MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.

Thanks



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Pavel Sanda
Guenter Hanisch wrote:
 Where do I find assistance for this problem? With cordial thanks

http://www.lyx.org/trac/ticket/7187
pavel


Re: Minutes typeseting

2011-01-26 Thread Liviu Andronic
On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo  
xabierabas...@yahoo.es wrote:



-Mensaje original-
I doubt that the package has native LyX support, but you could still use
it in LyX. You need to add \usepackage{minutes} in teh preamble and then
use the package through ERT insets (Insert  TeX code).

Which file should I insert in TeX code? The pachage has 6 files:

I am not familiar with this package, but to my knowledge you shouldn't  
insert any file. Just add the preamble line. Then in the ERT inset you  
should start using the package directly. For this consult its  
documentation and perhaps some example documents on-line.




MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.


Please don't worry. LaTeX can be very confusing at the beginning.
Liviu



--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Vincent van Ravesteijn
On Wed, Jan 26, 2011 at 8:58 AM, Guenter Hanisch
guenter.hani...@univie.ac.at wrote:
 As a Lyx beginner (however experience with LaTeX) I installed Lyx with
 LyX-1.6.8-2-Installer.exe and on my screen is everything one above the
 other (see pdf supplement). If I open and write a new document, the cursor
 jumps back after each blank around several letters. To compile is ok.
 Where do I find assistance for this problem? With cordial thanks


And as extra info, this will be fixed in any new LyX-release.

Vincent


Subject: LyX 2.0beta3: Spell Checking + Multilingualism

2011-01-26 Thread Walter
(Note: Mostly this email dates from pre-Christmas December - took me awhile
   to post!)

(This is a bit more verbose than it should be, as I am presently stuck in
an historic colonial hill station of Tunisia, by the Algerian border, and
being winter the weather is bitter and I am therefore locked in my hotel
room with time, but no internet connection!)

Whilst using LyX 2.0beta1 [since verified on LyX 2.0beta3] I recently ran
a spell check for the first time.

The interface is good and no doubt an improvement on previous eras, however
the following struck me as possible to improve.

Those items marked with [*] I consider a bug in LyX. Those items marked
with [X] I consider a bug elsewhere.


1. Preferences|Language Settings|Spellchecker [*]
   --
   Fields lack a description.  Faced with having used non-US spelling
   in my document (for shame!), I do not want to manually set hundreds
   of individual words to be 'English (UK)', which using the inbuilt right
   sidebar interface appears to be the default way forward.  (For some
   reason, 'English (AU)' is not even an option on my system, though that's
   probably my fault.)

   Thus driven to the preferences dialog, I was unsure of which mystical
   value to enter in to the great LyX machine.  Assuming 'man aspell' would
   clear it up, indeed some text was located that made the expected format
   for the entry of a single language value probable:

It follows the same format of the  LANG  environmental variable on
 most systems. It consists of the two letter ISO 639 language code and
 an optional two letter ISO 3166 country code after a dash or underscore.

   I tried this (en_AU), and it did work.  However, there are two problems:
- Even the first step would be a challenge for some users
- I would like to add multiple values to the field, since otherwise even
  at this early stage of my document still hundreds of words and place
  names in French, German, Greek (+romanised Greek), Chinese (+romanised
  Chinese), etc. trip up the spell checker. (Use of these languages
  is frequent and scattered right throughout the document.)

   The method to do this (eg: separate multiple values with a space or comma),
   or indeed whether entering multiple values in to this field is at all
   possible remains unclear.

   Whilst the ideal route would be to add (relatively) complex integration
   code that auto-detected available spellcheckers, their dictionaries,
   and provided a sexy GUI for end user language selection instead of a
   mystical text field, I realise this is not going to happen overnight or
   perhaps ever.

   Thus, as a relatively easy half-way fix, could we please have some
   increased on-screen documentation?  Something like eg: 'en_GB' for
   aspell. may suffice for 95% of users.

2. Right click to set spellchecker language on a highlighted word fails [*]
   
   It appears that when 'Tools|Preferences|Language Settings|Spellchecker|
   Spellcheck continuously' is set, and red-wavy (Note: LyX 2.0.0beta1 was
   wavy, LyX 2.0.0beta3 is straight and thicker) underlined words are right
   clicked, there is an option to set their language for spellchecking
   purposes.  However, this does not appear to actually do anything!
   This makes it necessary for the user to select the word then use 'Edit|
   Language|Whatever language' to actually perform the change - pointless
   tedium.

3. Wider problem of spellchecking and multilingual support
   ---
   Regarding points 1 and 2, really there is a wider problem of multilingual
   support being a little 'all over the place', with a bunch of different
   solutions in use.  In terms of LyX, none of these are really solutions
   as even with LyX 2.0beta1 it appears to be demonstrably impossible to link
   the manual language markup made in conjunction with a font-linked solution
   to the manual language markup required for spellchecking purposes.

   The TeX-world's colourful background to all this is understandable, and of
   course I would not suggest to fly in the face of either configurability
   nor tradition nor the existing user base's preferences, however to my mind
   it would be expedient for ease of use (especially for new users with
   little TeX background, who - let's face it - represent the largest
   possible and probable future user base) if LyX would 'encourage' people
   to an 'intelligent' default solution instead of leaving them high and dry
   with a there's 1000 ways to do it but we're not really going to hint at
   any of them situation, as we see at present.  Now, I see the adoption
   of XeTeX-specific checkboxes in LyX 2.0beta1 as a *great* step forward
   in this direction, but there's a ways to go yet.

   As per previous posts whereby I suggested revising the user interface 

Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called algorithms, so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called program listing, not
algorithm.

What to do?

Niko


user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
I am fairly new to LyX.   I have been disappointed to find that simple commands 
defined via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as evil red text onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression 
from the LyX manuals and user comments that LyX was pretty good at interpreting 
and rendering user-defined commands.  Have I misunderstood something, or am I 
doing something wrong, or is there something wrong with my LyX installation?  
(I realize there are several other threads with similar questions, but none of 
them have a clear answer to this as far as I can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB


Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:

I am fairly new to LyX.   I have been disappointed to find that simple commands defined 
via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as evil red text onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression from the 
LyX manuals and user comments that LyX was pretty good at interpreting and rendering 
user-defined commands.  Have I misunderstood something, or am I doing something wrong, or 
is there something wrong with my LyX installation?  (I realize there are several other 
threads with similar questions, but none of them have a clear answer to this as far as I 
can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB



To help you search through the Math manual: the nomenclature that LyX 
uses for this is math macro. The caveat is that you define math macros 
in the body of the document, not in the preamble. All things in the 
preamble are not parsed by LyX at all but simply passed on to the latex 
process.


--
Julien



Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
This is such an awesome package that someone should try and hack a LyX
layout.

el

On 1/26/11 2:44 PM, Liviu Andronic wrote:
 On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo
 xabierabas...@yahoo.es wrote:


 -Mensaje original-
 I doubt that the package has native LyX support, but you could still use
 it in LyX. You need to add \usepackage{minutes} in teh preamble and then
 use the package through ERT insets (Insert  TeX code).

 Which file should I insert in TeX code? The pachage has 6 files:

 I am not familiar with this package, but to my knowledge you shouldn't
 insert any file. Just add the preamble line. Then in the ERT inset you
 should start using the package directly. For this consult its
 documentation and perhaps some example documents on-line.
 
 
 MINUTES.DTX
 MINUTES.INS
 OVERVIEW.TEX
 PROTOKOL.TEX
 Plus a PDF and a README.

 Sorry, I´m an ignorant.

 Please don't worry. LaTeX can be very confusing at the beginning.
 Liviu
 
 
 



Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

Hi Ryan,

(list c.c.ed)

On 26/01/2011 4:33 PM, Bennink, Ryan S. wrote:

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand (which 
I have a lot of!), and the result is a bunch of ugly formulas.  One of the main 
reasons I'm trying LyX is that it was claimed to be more compatible with raw 
LaTeX than Scientific Word, which I have used for years.



I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}



Regarding the use of the preamble, section 15.2 Self-Defined Functions of the math manual says 
that you can use the \DeclareMathOperator in the preamble to define your own named functions such that 
the result is the same ... as with a predefined function, which I took to mean it would look 
onscreen like a predefined function. But then there is the footnote which says self-defined functions 
are displayed in red, predefined ones in black.  If that means all LyX does is show the command name as 
ERT, then in my opinion that is a somewhat weak (and somewhat misleading) feature.


That's a good point. I would recommend to send a message to the LyX 
documentation team.


As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.


First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.


Cheers,
Julien


Re: user-defined functions (yet again)

2011-01-26 Thread Ryan Bennink
 
 On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:
  I am fairly new to LyX.   I have been disappointed to find that simple 
commands defined via \newcommand and
 \DeclareMathOperator in the preamble (for example, \newcommand{\sinc}{sinc}) 
appear as evil red
 text onscreen. In fact, they look exactly the same as undefined (illegal!) 
commands.  I got the
 impression from the LyX manuals and user comments that LyX was pretty good 
at interpreting and rendering
 user-defined commands.  Have I misunderstood something, or am I doing 
something wrong, or is there
 something wrong with my LyX installation?  (I realize there are several 
other threads with similar
 questions, but none of them have a clear answer to this as far as I can 
tell.)
 
  I am using LyX 1.6.7 on windows xp sp3.
 
  RSB
 
 
 To help you search through the Math manual: the nomenclature that LyX 
 uses for this is math macro. The caveat is that you define math macros 
 in the body of the document, not in the preamble. All things in the 
 preamble are not parsed by LyX at all but simply passed on to the latex 
 process.
 

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand 
(which I have a lot of!), and the result is a bunch of ugly formulas.  One of 
the main reasons I'm trying LyX is that it was claimed to be more compatible 
with raw LaTeX than Scientific Word, which I have used for years.

Regarding the use of the preamble, section 15.2 Self-Defined Functions of 
the math manual says that you can use the \DeclareMathOperator in the preamble 
to define your own named functions such that the result is the same ... as 
with a predefined function, which I took to mean it would look onscreen like 
a predefined function. But then there is the footnote which says self-defined 
functions are displayed in red, predefined ones in black.  If that means all 
LyX does is show the command name as ERT, then in my opinion that is a 
somewhat weak (and somewhat misleading) feature.

Ryan





Re: Minutes typeseting

2011-01-26 Thread Jean-Marc Lasgouttes

Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :

 This is such an awesome package that someone should try and hack a LyX
 layout.

Some parts look easy, but others like the \task macro use a mix of optional
and required arguments that will be difficult to handle.

JMarc

RE: user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
 Thanks for the response Julien.  I am starting to use math macros.  But a 
 limitation of them is that I have to create them in LyX; they aren't 
 automatically generated when I import LaTeX files I have written by hand 
 (which I have a lot of!), and the result is a bunch of ugly formulas.  One 
 of the main reasons I'm trying LyX is that it was claimed to be more 
 compatible with raw LaTeX than Scientific Word, which I have used for years.


I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}

 Regarding the use of the preamble, section 15.2 Self-Defined Functions of 
 the math manual says that you can use the \DeclareMathOperator in the 
 preamble to define your own named functions such that the result is the 
 same ... as with a predefined function, which I took to mean it would look 
 onscreen like a predefined function. But then there is the footnote which 
 says self-defined functions are displayed in red, predefined ones in 
 black.  If that means all LyX does is show the command name as ERT, then in 
 my opinion that is a somewhat weak (and somewhat misleading) feature.

That's a good point. I would recommend to send a message to the LyX 
documentation team.

As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.

First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.

Cheers,
Julien

Thanks.  I confirmed that \newcommand does work if it's within the document 
environment, but not in the preamble (which seems odd to me, since the preamble 
seems to be a pretty reasonable place to define commands).  Also, it only works 
if you import it, not if you enter it in manually from within LyX (again, not 
something I expected, but perhaps understandable).  Since LyX can handle 
\newcommand, it shouldn't be hard to get \DeclareMathOperator to display nicely 
also.

I am indeed impressed with what LyX can do, which is why I believe it can be 
even better.  I would love to contribute -- I actually had started planning out 
something very similar to LyX about a decade ago -- but unfortunately I don't 
have much spare time now.  Maybe someday!

Ryan


Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
perhaps a modified/simplified adaptation may be attempted?

el

-- 

Sent from the iPhone of
Dr. Eberhard W. Lisse


On Jan 27, 2011, at 0:08, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 
 Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :
 
 This is such an awesome package that someone should try and hack a LyX
 layout.
 
 Some parts look easy, but others like the \task macro use a mix of optional
 and required arguments that will be difficult to handle.
 
 JMarc


Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz niko.schwarz at googlemail.com writes:

 
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.
 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
Program Listing 1, Program Listing 2 etc. in the output (they'll still say
Algorithm in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word algorithm.

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Re: user-defined functions (yet again)

2011-01-26 Thread Pavel Sanda
Ryan Bennink wrote:
 One of the main reasons I'm trying LyX is that it was claimed to be more
 compatible with raw LaTeX than Scientific Word, which I have used for years.

can you share the source where from comes this claim? compatibilty with pure
latex is one of the weakest point of lyx i would say and if you need to
exchange pure .tex files regularly with other authors think twice before using 
lyx...

pavel


RE: Minutes typeseting

2011-01-26 Thread Xabier Abasolo


-Mensaje original-
I doubt that the package has native LyX support, but you could still use  
it in LyX. You need to add \usepackage{minutes} in teh preamble and then  
use the package through ERT insets (Insert  TeX code).

Which file should I insert in TeX code? The pachage has 6 files: 
MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.

Thanks



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Pavel Sanda
Guenter Hanisch wrote:
 Where do I find assistance for this problem? With cordial thanks

http://www.lyx.org/trac/ticket/7187
pavel


Re: Minutes typeseting

2011-01-26 Thread Liviu Andronic
On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo  
xabierabas...@yahoo.es wrote:



-Mensaje original-
I doubt that the package has native LyX support, but you could still use
it in LyX. You need to add \usepackage{minutes} in teh preamble and then
use the package through ERT insets (Insert  TeX code).

Which file should I insert in TeX code? The pachage has 6 files:

I am not familiar with this package, but to my knowledge you shouldn't  
insert any file. Just add the preamble line. Then in the ERT inset you  
should start using the package directly. For this consult its  
documentation and perhaps some example documents on-line.




MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.


Please don't worry. LaTeX can be very confusing at the beginning.
Liviu



--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Vincent van Ravesteijn
On Wed, Jan 26, 2011 at 8:58 AM, Guenter Hanisch
guenter.hani...@univie.ac.at wrote:
 As a Lyx beginner (however experience with LaTeX) I installed Lyx with
 LyX-1.6.8-2-Installer.exe and on my screen is everything one above the
 other (see pdf supplement). If I open and write a new document, the cursor
 jumps back after each blank around several letters. To compile is ok.
 Where do I find assistance for this problem? With cordial thanks


And as extra info, this will be fixed in any new LyX-release.

Vincent


Subject: LyX 2.0beta3: Spell Checking + Multilingualism

2011-01-26 Thread Walter
(Note: Mostly this email dates from pre-Christmas December - took me awhile
   to post!)

(This is a bit more verbose than it should be, as I am presently stuck in
an historic colonial hill station of Tunisia, by the Algerian border, and
being winter the weather is bitter and I am therefore locked in my hotel
room with time, but no internet connection!)

Whilst using LyX 2.0beta1 [since verified on LyX 2.0beta3] I recently ran
a spell check for the first time.

The interface is good and no doubt an improvement on previous eras, however
the following struck me as possible to improve.

Those items marked with [*] I consider a bug in LyX. Those items marked
with [X] I consider a bug elsewhere.


1. Preferences|Language Settings|Spellchecker [*]
   --
   Fields lack a description.  Faced with having used non-US spelling
   in my document (for shame!), I do not want to manually set hundreds
   of individual words to be 'English (UK)', which using the inbuilt right
   sidebar interface appears to be the default way forward.  (For some
   reason, 'English (AU)' is not even an option on my system, though that's
   probably my fault.)

   Thus driven to the preferences dialog, I was unsure of which mystical
   value to enter in to the great LyX machine.  Assuming 'man aspell' would
   clear it up, indeed some text was located that made the expected format
   for the entry of a single language value probable:

It follows the same format of the  LANG  environmental variable on
 most systems. It consists of the two letter ISO 639 language code and
 an optional two letter ISO 3166 country code after a dash or underscore.

   I tried this (en_AU), and it did work.  However, there are two problems:
- Even the first step would be a challenge for some users
- I would like to add multiple values to the field, since otherwise even
  at this early stage of my document still hundreds of words and place
  names in French, German, Greek (+romanised Greek), Chinese (+romanised
  Chinese), etc. trip up the spell checker. (Use of these languages
  is frequent and scattered right throughout the document.)

   The method to do this (eg: separate multiple values with a space or comma),
   or indeed whether entering multiple values in to this field is at all
   possible remains unclear.

   Whilst the ideal route would be to add (relatively) complex integration
   code that auto-detected available spellcheckers, their dictionaries,
   and provided a sexy GUI for end user language selection instead of a
   mystical text field, I realise this is not going to happen overnight or
   perhaps ever.

   Thus, as a relatively easy half-way fix, could we please have some
   increased on-screen documentation?  Something like eg: 'en_GB' for
   aspell. may suffice for 95% of users.

2. Right click to set spellchecker language on a highlighted word fails [*]
   
   It appears that when 'Tools|Preferences|Language Settings|Spellchecker|
   Spellcheck continuously' is set, and red-wavy (Note: LyX 2.0.0beta1 was
   wavy, LyX 2.0.0beta3 is straight and thicker) underlined words are right
   clicked, there is an option to set their language for spellchecking
   purposes.  However, this does not appear to actually do anything!
   This makes it necessary for the user to select the word then use 'Edit|
   Language|Whatever language' to actually perform the change - pointless
   tedium.

3. Wider problem of spellchecking and multilingual support
   ---
   Regarding points 1 and 2, really there is a wider problem of multilingual
   support being a little 'all over the place', with a bunch of different
   solutions in use.  In terms of LyX, none of these are really solutions
   as even with LyX 2.0beta1 it appears to be demonstrably impossible to link
   the manual language markup made in conjunction with a font-linked solution
   to the manual language markup required for spellchecking purposes.

   The TeX-world's colourful background to all this is understandable, and of
   course I would not suggest to fly in the face of either configurability
   nor tradition nor the existing user base's preferences, however to my mind
   it would be expedient for ease of use (especially for new users with
   little TeX background, who - let's face it - represent the largest
   possible and probable future user base) if LyX would 'encourage' people
   to an 'intelligent' default solution instead of leaving them high and dry
   with a there's 1000 ways to do it but we're not really going to hint at
   any of them situation, as we see at present.  Now, I see the adoption
   of XeTeX-specific checkboxes in LyX 2.0beta1 as a *great* step forward
   in this direction, but there's a ways to go yet.

   As per previous posts whereby I suggested revising the user interface 

Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called algorithms, so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called program listing, not
algorithm.

What to do?

Niko


user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
I am fairly new to LyX.   I have been disappointed to find that simple commands 
defined via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as evil red text onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression 
from the LyX manuals and user comments that LyX was pretty good at interpreting 
and rendering user-defined commands.  Have I misunderstood something, or am I 
doing something wrong, or is there something wrong with my LyX installation?  
(I realize there are several other threads with similar questions, but none of 
them have a clear answer to this as far as I can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB


Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:

I am fairly new to LyX.   I have been disappointed to find that simple commands defined 
via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as evil red text onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression from the 
LyX manuals and user comments that LyX was pretty good at interpreting and rendering 
user-defined commands.  Have I misunderstood something, or am I doing something wrong, or 
is there something wrong with my LyX installation?  (I realize there are several other 
threads with similar questions, but none of them have a clear answer to this as far as I 
can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB



To help you search through the Math manual: the nomenclature that LyX 
uses for this is math macro. The caveat is that you define math macros 
in the body of the document, not in the preamble. All things in the 
preamble are not parsed by LyX at all but simply passed on to the latex 
process.


--
Julien



Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
This is such an awesome package that someone should try and hack a LyX
layout.

el

On 1/26/11 2:44 PM, Liviu Andronic wrote:
 On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo
 xabierabas...@yahoo.es wrote:


 -Mensaje original-
 I doubt that the package has native LyX support, but you could still use
 it in LyX. You need to add \usepackage{minutes} in teh preamble and then
 use the package through ERT insets (Insert  TeX code).

 Which file should I insert in TeX code? The pachage has 6 files:

 I am not familiar with this package, but to my knowledge you shouldn't
 insert any file. Just add the preamble line. Then in the ERT inset you
 should start using the package directly. For this consult its
 documentation and perhaps some example documents on-line.
 
 
 MINUTES.DTX
 MINUTES.INS
 OVERVIEW.TEX
 PROTOKOL.TEX
 Plus a PDF and a README.

 Sorry, I´m an ignorant.

 Please don't worry. LaTeX can be very confusing at the beginning.
 Liviu
 
 
 



Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

Hi Ryan,

(list c.c.ed)

On 26/01/2011 4:33 PM, Bennink, Ryan S. wrote:

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand (which 
I have a lot of!), and the result is a bunch of ugly formulas.  One of the main 
reasons I'm trying LyX is that it was claimed to be more compatible with raw 
LaTeX than Scientific Word, which I have used for years.



I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}



Regarding the use of the preamble, section 15.2 Self-Defined Functions of the math manual says 
that you can use the \DeclareMathOperator in the preamble to define your own named functions such that 
the result is the same ... as with a predefined function, which I took to mean it would look 
onscreen like a predefined function. But then there is the footnote which says self-defined functions 
are displayed in red, predefined ones in black.  If that means all LyX does is show the command name as 
ERT, then in my opinion that is a somewhat weak (and somewhat misleading) feature.


That's a good point. I would recommend to send a message to the LyX 
documentation team.


As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.


First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.


Cheers,
Julien


Re: user-defined functions (yet again)

2011-01-26 Thread Ryan Bennink
 
 On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:
  I am fairly new to LyX.   I have been disappointed to find that simple 
commands defined via \newcommand and
 \DeclareMathOperator in the preamble (for example, \newcommand{\sinc}{sinc}) 
appear as evil red
 text onscreen. In fact, they look exactly the same as undefined (illegal!) 
commands.  I got the
 impression from the LyX manuals and user comments that LyX was pretty good 
at interpreting and rendering
 user-defined commands.  Have I misunderstood something, or am I doing 
something wrong, or is there
 something wrong with my LyX installation?  (I realize there are several 
other threads with similar
 questions, but none of them have a clear answer to this as far as I can 
tell.)
 
  I am using LyX 1.6.7 on windows xp sp3.
 
  RSB
 
 
 To help you search through the Math manual: the nomenclature that LyX 
 uses for this is math macro. The caveat is that you define math macros 
 in the body of the document, not in the preamble. All things in the 
 preamble are not parsed by LyX at all but simply passed on to the latex 
 process.
 

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand 
(which I have a lot of!), and the result is a bunch of ugly formulas.  One of 
the main reasons I'm trying LyX is that it was claimed to be more compatible 
with raw LaTeX than Scientific Word, which I have used for years.

Regarding the use of the preamble, section 15.2 Self-Defined Functions of 
the math manual says that you can use the \DeclareMathOperator in the preamble 
to define your own named functions such that the result is the same ... as 
with a predefined function, which I took to mean it would look onscreen like 
a predefined function. But then there is the footnote which says self-defined 
functions are displayed in red, predefined ones in black.  If that means all 
LyX does is show the command name as ERT, then in my opinion that is a 
somewhat weak (and somewhat misleading) feature.

Ryan





Re: Minutes typeseting

2011-01-26 Thread Jean-Marc Lasgouttes

Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :

 This is such an awesome package that someone should try and hack a LyX
 layout.

Some parts look easy, but others like the \task macro use a mix of optional
and required arguments that will be difficult to handle.

JMarc

RE: user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
 Thanks for the response Julien.  I am starting to use math macros.  But a 
 limitation of them is that I have to create them in LyX; they aren't 
 automatically generated when I import LaTeX files I have written by hand 
 (which I have a lot of!), and the result is a bunch of ugly formulas.  One 
 of the main reasons I'm trying LyX is that it was claimed to be more 
 compatible with raw LaTeX than Scientific Word, which I have used for years.


I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}

 Regarding the use of the preamble, section 15.2 Self-Defined Functions of 
 the math manual says that you can use the \DeclareMathOperator in the 
 preamble to define your own named functions such that the result is the 
 same ... as with a predefined function, which I took to mean it would look 
 onscreen like a predefined function. But then there is the footnote which 
 says self-defined functions are displayed in red, predefined ones in 
 black.  If that means all LyX does is show the command name as ERT, then in 
 my opinion that is a somewhat weak (and somewhat misleading) feature.

That's a good point. I would recommend to send a message to the LyX 
documentation team.

As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.

First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.

Cheers,
Julien

Thanks.  I confirmed that \newcommand does work if it's within the document 
environment, but not in the preamble (which seems odd to me, since the preamble 
seems to be a pretty reasonable place to define commands).  Also, it only works 
if you import it, not if you enter it in manually from within LyX (again, not 
something I expected, but perhaps understandable).  Since LyX can handle 
\newcommand, it shouldn't be hard to get \DeclareMathOperator to display nicely 
also.

I am indeed impressed with what LyX can do, which is why I believe it can be 
even better.  I would love to contribute -- I actually had started planning out 
something very similar to LyX about a decade ago -- but unfortunately I don't 
have much spare time now.  Maybe someday!

Ryan


Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
perhaps a modified/simplified adaptation may be attempted?

el

-- 

Sent from the iPhone of
Dr. Eberhard W. Lisse


On Jan 27, 2011, at 0:08, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 
 Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :
 
 This is such an awesome package that someone should try and hack a LyX
 layout.
 
 Some parts look easy, but others like the \task macro use a mix of optional
 and required arguments that will be difficult to handle.
 
 JMarc


Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz niko.schwarz at googlemail.com writes:

 
 Hi, I'm using LyX with the springer LNCS article class. In my previous
 work, all the program listings I had to write could reasonably well be
 called algorithms, so I used the algorithm class in a float. This
 time, they aren't really algorithms, they're just program listings.
 So, I'd the surrounding float to be called program listing, not
 algorithm.
 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
Program Listing 1, Program Listing 2 etc. in the output (they'll still say
Algorithm in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word algorithm.

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Re: user-defined functions (yet again)

2011-01-26 Thread Pavel Sanda
Ryan Bennink wrote:
 One of the main reasons I'm trying LyX is that it was claimed to be more
 compatible with raw LaTeX than Scientific Word, which I have used for years.

can you share the source where from comes this claim? compatibilty with pure
latex is one of the weakest point of lyx i would say and if you need to
exchange pure .tex files regularly with other authors think twice before using 
lyx...

pavel


RE: Minutes typeseting

2011-01-26 Thread Xabier Abasolo


-Mensaje original-
I doubt that the package has native LyX support, but you could still use  
it in LyX. You need to add \usepackage{minutes} in teh preamble and then  
use the package through ERT insets (Insert > TeX code).

Which file should I insert in TeX code? The pachage has 6 files: 
MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.

Thanks



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Pavel Sanda
Guenter Hanisch wrote:
> Where do I find assistance for this problem? With cordial thanks

http://www.lyx.org/trac/ticket/7187
pavel


Re: Minutes typeseting

2011-01-26 Thread Liviu Andronic
On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo  
 wrote:



-Mensaje original-
I doubt that the package has native LyX support, but you could still use
it in LyX. You need to add \usepackage{minutes} in teh preamble and then
use the package through ERT insets (Insert > TeX code).

Which file should I insert in TeX code? The pachage has 6 files:

I am not familiar with this package, but to my knowledge you shouldn't  
insert any file. Just add the preamble line. Then in the ERT inset you  
should start using the package directly. For this consult its  
documentation and perhaps some example documents on-line.




MINUTES.DTX
MINUTES.INS
OVERVIEW.TEX
PROTOKOL.TEX
Plus a PDF and a README.

Sorry, I´m an ignorant.


Please don't worry. LaTeX can be very confusing at the beginning.
Liviu



--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: Lyx One above the other printed letters at the screen

2011-01-26 Thread Vincent van Ravesteijn
On Wed, Jan 26, 2011 at 8:58 AM, Guenter Hanisch
 wrote:
> As a Lyx beginner (however experience with LaTeX) I installed Lyx with
> LyX-1.6.8-2-Installer.exe and on my screen is everything one above the
> other (see pdf supplement). If I open and write a new document, the cursor
> jumps back after each blank around several letters. To compile is ok.
> Where do I find assistance for this problem? With cordial thanks
>

And as extra info, this will be fixed in any new LyX-release.

Vincent


Subject: LyX 2.0beta3: Spell Checking + Multilingualism

2011-01-26 Thread Walter
(Note: Mostly this email dates from pre-Christmas December - took me awhile
   to post!)

(This is a bit more verbose than it should be, as I am presently stuck in
an historic colonial hill station of Tunisia, by the Algerian border, and
being winter the weather is bitter and I am therefore locked in my hotel
room with time, but no internet connection!)

Whilst using LyX 2.0beta1 [since verified on LyX 2.0beta3] I recently ran
a spell check for the first time.

The interface is good and no doubt an improvement on previous eras, however
the following struck me as possible to improve.

Those items marked with "[*]" I consider a bug in LyX. Those items marked
with "[X]" I consider a bug elsewhere.


1. Preferences|Language Settings|Spellchecker [*]
   --
   Fields lack a description.  Faced with having used non-US spelling
   in my document ("for shame!"), I do not want to manually set hundreds
   of individual words to be 'English (UK)', which using the inbuilt right
   sidebar interface appears to be the default way forward.  (For some
   reason, 'English (AU)' is not even an option on my system, though that's
   probably my fault.)

   Thus driven to the preferences dialog, I was unsure of which mystical
   value to enter in to the great LyX machine.  Assuming 'man aspell' would
   clear it up, indeed some text was located that made the expected format
   for the entry of a single language value probable:

"It follows the same format of the  LANG  environmental variable on
 most systems. It consists of the two letter ISO 639 language code and
 an optional two letter ISO 3166 country code after a dash or underscore."

   I tried this ("en_AU"), and it did work.  However, there are two problems:
- Even the first step would be a challenge for some users
- I would like to add multiple values to the field, since otherwise even
  at this early stage of my document still hundreds of words and place
  names in French, German, Greek (+romanised Greek), Chinese (+romanised
  Chinese), etc. trip up the spell checker. (Use of these languages
  is frequent and scattered right throughout the document.)

   The method to do this (eg: separate multiple values with a space or comma),
   or indeed whether entering multiple values in to this field is at all
   possible remains unclear.

   Whilst the ideal route would be to add (relatively) complex integration
   code that auto-detected available spellcheckers, their dictionaries,
   and provided a sexy GUI for end user language selection instead of a
   mystical text field, I realise this is not going to happen overnight or
   perhaps ever.

   Thus, as a relatively easy half-way fix, could we please have some
   increased on-screen documentation?  Something like "eg: 'en_GB' for
   aspell." may suffice for 95% of users.

2. Right click to set spellchecker language on a highlighted word fails [*]
   
   It appears that when 'Tools|Preferences|Language Settings|Spellchecker|
   Spellcheck continuously' is set, and red-wavy (Note: LyX 2.0.0beta1 was
   wavy, LyX 2.0.0beta3 is straight and thicker) underlined words are right
   clicked, there is an option to set their language for spellchecking
   purposes.  However, this does not appear to actually do anything!
   This makes it necessary for the user to select the word then use 'Edit|
   Language|Whatever language' to actually perform the change - pointless
   tedium.

3. Wider problem of spellchecking and multilingual support
   ---
   Regarding points 1 and 2, really there is a wider problem of multilingual
   support being a little 'all over the place', with a bunch of different
   "solutions" in use.  In terms of LyX, none of these are really "solutions"
   as even with LyX 2.0beta1 it appears to be demonstrably impossible to link
   the manual language markup made in conjunction with a font-linked solution
   to the manual language markup required for spellchecking purposes.

   The TeX-world's colourful background to all this is understandable, and of
   course I would not suggest to fly in the face of either configurability
   nor tradition nor the existing user base's preferences, however to my mind
   it would be expedient for ease of use (especially for new users with
   little TeX background, who - let's face it - represent the largest
   possible and probable future user base) if LyX would 'encourage' people
   to an 'intelligent' default solution instead of leaving them high and dry
   with a "there's 1000 ways to do it but we're not really going to hint at
   any of them" situation, as we see at present.  Now, I see the adoption
   of XeTeX-specific checkboxes in LyX 2.0beta1 as a *great* step forward
   in this direction, but "there's a ways to go yet".

   As per previous posts whereby I suggested 

Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous
work, all the program listings I had to write could reasonably well be
called "algorithms," so I used the algorithm class in a float. This
time, they aren't really algorithms, they're just program listings.
So, I'd the surrounding float to be called "program listing," not
"algorithm."

What to do?

Niko


user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
I am fairly new to LyX.   I have been disappointed to find that simple commands 
defined via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as "evil red text" onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression 
from the LyX manuals and user comments that LyX was pretty good at interpreting 
and rendering user-defined commands.  Have I misunderstood something, or am I 
doing something wrong, or is there something wrong with my LyX installation?  
(I realize there are several other threads with similar questions, but none of 
them have a clear answer to this as far as I can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB


Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:

I am fairly new to LyX.   I have been disappointed to find that simple commands defined 
via \newcommand and \DeclareMathOperator in the preamble (for example, 
\newcommand{\sinc}{sinc}) appear as "evil red text" onscreen. In fact, they 
look exactly the same as undefined (illegal!) commands.  I got the impression from the 
LyX manuals and user comments that LyX was pretty good at interpreting and rendering 
user-defined commands.  Have I misunderstood something, or am I doing something wrong, or 
is there something wrong with my LyX installation?  (I realize there are several other 
threads with similar questions, but none of them have a clear answer to this as far as I 
can tell.)

I am using LyX 1.6.7 on windows xp sp3.

RSB



To help you search through the Math manual: the nomenclature that LyX 
uses for this is "math macro". The caveat is that you define math macros 
in the body of the document, not in the preamble. All things in the 
preamble are not parsed by LyX at all but simply passed on to the latex 
process.


--
Julien



Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
This is such an awesome package that someone should try and hack a LyX
layout.

el

On 1/26/11 2:44 PM, Liviu Andronic wrote:
> On Wed, 26 Jan 2011 10:47:48 +0100, Xabier Abasolo
>  wrote:
>>
>>
>> -Mensaje original-
>> I doubt that the package has native LyX support, but you could still use
>> it in LyX. You need to add \usepackage{minutes} in teh preamble and then
>> use the package through ERT insets (Insert > TeX code).
>>
>> Which file should I insert in TeX code? The pachage has 6 files:
>>
> I am not familiar with this package, but to my knowledge you shouldn't
> insert any file. Just add the preamble line. Then in the ERT inset you
> should start using the package directly. For this consult its
> documentation and perhaps some example documents on-line.
> 
> 
>> MINUTES.DTX
>> MINUTES.INS
>> OVERVIEW.TEX
>> PROTOKOL.TEX
>> Plus a PDF and a README.
>>
>> Sorry, I´m an ignorant.
>>
> Please don't worry. LaTeX can be very confusing at the beginning.
> Liviu
> 
> 
> 



Re: user-defined functions (yet again)

2011-01-26 Thread Julien Rioux

Hi Ryan,

(list c.c.ed)

On 26/01/2011 4:33 PM, Bennink, Ryan S. wrote:

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand (which 
I have a lot of!), and the result is a bunch of ugly formulas.  One of the main 
reasons I'm trying LyX is that it was claimed to be more compatible with raw 
LaTeX than Scientific Word, which I have used for years.



I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}



Regarding the use of the preamble, section 15.2 "Self-Defined Functions" of the math manual says 
that you can use the \DeclareMathOperator in the preamble to define your own named functions such that 
"the result is the same ... as with a predefined function", which I took to mean it would look 
onscreen like a predefined function. But then there is the footnote which says "self-defined functions 
are displayed in red, predefined ones in black".  If that means all LyX does is show the command name as 
ERT, then in my opinion that is a somewhat weak (and somewhat misleading) feature.


That's a good point. I would recommend to send a message to the LyX 
documentation team.


As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.


First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.


Cheers,
Julien


Re: user-defined functions (yet again)

2011-01-26 Thread Ryan Bennink
> 
> On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:
> > I am fairly new to LyX.   I have been disappointed to find that simple 
commands defined via \newcommand and
> \DeclareMathOperator in the preamble (for example, \newcommand{\sinc}{sinc}) 
appear as "evil red
> text" onscreen. In fact, they look exactly the same as undefined (illegal!) 
commands.  I got the
> impression from the LyX manuals and user comments that LyX was pretty good 
at interpreting and rendering
> user-defined commands.  Have I misunderstood something, or am I doing 
something wrong, or is there
> something wrong with my LyX installation?  (I realize there are several 
other threads with similar
> questions, but none of them have a clear answer to this as far as I can 
tell.)
> >
> > I am using LyX 1.6.7 on windows xp sp3.
> >
> > RSB
> >
> 
> To help you search through the Math manual: the nomenclature that LyX 
> uses for this is "math macro". The caveat is that you define math macros 
> in the body of the document, not in the preamble. All things in the 
> preamble are not parsed by LyX at all but simply passed on to the latex 
> process.
> 

Thanks for the response Julien.  I am starting to use math macros.  But a 
limitation of them is that I have to create them in LyX; they aren't 
automatically generated when I import LaTeX files I have written by hand 
(which I have a lot of!), and the result is a bunch of ugly formulas.  One of 
the main reasons I'm trying LyX is that it was claimed to be more compatible 
with raw LaTeX than Scientific Word, which I have used for years.

Regarding the use of the preamble, section 15.2 "Self-Defined Functions" of 
the math manual says that you can use the \DeclareMathOperator in the preamble 
to define your own named functions such that "the result is the same ... as 
with a predefined function", which I took to mean it would look onscreen like 
a predefined function. But then there is the footnote which says "self-defined 
functions are displayed in red, predefined ones in black".  If that means all 
LyX does is show the command name as ERT, then in my opinion that is a 
somewhat weak (and somewhat misleading) feature.

Ryan





Re: Minutes typeseting

2011-01-26 Thread Jean-Marc Lasgouttes

Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :

> This is such an awesome package that someone should try and hack a LyX
> layout.

Some parts look easy, but others like the \task macro use a mix of optional
and required arguments that will be difficult to handle.

JMarc

RE: user-defined functions (yet again)

2011-01-26 Thread Bennink, Ryan S.
>> Thanks for the response Julien.  I am starting to use math macros.  But a 
>> limitation of them is that I have to create them in LyX; they aren't 
>> automatically generated when I import LaTeX files I have written by hand 
>> (which I have a lot of!), and the result is a bunch of ugly formulas.  One 
>> of the main reasons I'm trying LyX is that it was claimed to be more 
>> compatible with raw LaTeX than Scientific Word, which I have used for years.
>>
>
>I believe LyX will import your \newcommands and convert them to math 
macros if the \newcommands appear after \begin{document}
>
>> Regarding the use of the preamble, section 15.2 "Self-Defined Functions" of 
>> the math manual says that you can use the \DeclareMathOperator in the 
>> preamble to define your own named functions such that "the result is the 
>> same ... as with a predefined function", which I took to mean it would look 
>> onscreen like a predefined function. But then there is the footnote which 
>> says "self-defined functions are displayed in red, predefined ones in 
>> black".  If that means all LyX does is show the command name as ERT, then in 
>> my opinion that is a somewhat weak (and somewhat misleading) feature.
>
>That's a good point. I would recommend to send a message to the LyX 
documentation team.
>
>As a general note: LyX is free software and isn't backed up by any 
company. Considering this, sometimes I find that what was accomplished 
with LyX is quite amazing. However sometimes I find it is lacking a lot. 
The great thing, though, is that it can be made better with such great 
feedback like you already started to provide. And better yet you could 
provide a patch which would properly import \newcommands from the 
preamble of your .tex file into a .lyx doc.
>
>First I was only a LyX user and then I started contributing to the 
project when I saw that something was lacking. I would advise you the 
same if you can, it will make LyX better and you can use it to import 
your .tex files properly.
>
>Cheers,
>Julien

Thanks.  I confirmed that \newcommand does work if it's within the document 
environment, but not in the preamble (which seems odd to me, since the preamble 
seems to be a pretty reasonable place to define commands).  Also, it only works 
if you import it, not if you enter it in manually from within LyX (again, not 
something I expected, but perhaps understandable).  Since LyX can handle 
\newcommand, it shouldn't be hard to get \DeclareMathOperator to display nicely 
also.

I am indeed impressed with what LyX can do, which is why I believe it can be 
even better.  I would love to contribute -- I actually had started planning out 
something very similar to LyX about a decade ago -- but unfortunately I don't 
have much spare time now.  Maybe someday!

Ryan


Re: Minutes typeseting

2011-01-26 Thread Dr Eberhard W Lisse
perhaps a modified/simplified adaptation may be attempted?

el

-- 

Sent from the iPhone of
Dr. Eberhard W. Lisse


On Jan 27, 2011, at 0:08, Jean-Marc Lasgouttes  wrote:

> 
> Le 26 janv. 2011 à 22:30, Dr Eberhard W Lisse a écrit :
> 
>> This is such an awesome package that someone should try and hack a LyX
>> layout.
> 
> Some parts look easy, but others like the \task macro use a mix of optional
> and required arguments that will be difficult to handle.
> 
> JMarc


Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz  googlemail.com> writes:

> 
> Hi, I'm using LyX with the springer LNCS article class. In my previous
> work, all the program listings I had to write could reasonably well be
> called "algorithms," so I used the algorithm class in a float. This
> time, they aren't really algorithms, they're just program listings.
> So, I'd the surrounding float to be called "program listing," not
> "algorithm."
> 

If you will have exclusively program listings and no algorithm floats, you can
put the listings in algorithm floats and add to your preamble
\floatname{algorithm}{Program Listing}.  That will change the float captions to
"Program Listing 1", "Program Listing 2" etc. in the output (they'll still say
"Algorithm" in the LyX GUI).  Note that if you insert a List of Algorithms, the
heading of that will still use the word "algorithm".

If you want to mix algorithms and program listings, you'll need to declare a new
float class for the program listings and insert the floats using ERT.

/Paul





Re: user-defined functions (yet again)

2011-01-26 Thread Pavel Sanda
Ryan Bennink wrote:
> One of the main reasons I'm trying LyX is that it was claimed to be more
> compatible with raw LaTeX than Scientific Word, which I have used for years.

can you share the source where from comes this claim? compatibilty with pure
latex is one of the weakest point of lyx i would say and if you need to
exchange pure .tex files regularly with other authors think twice before using 
lyx...

pavel