Re: Meta key inserts symbols on Mac

2011-08-06 Thread bart deruyter
Hi,

if I  understand it right,  you want to modify the mac keybindings. These
you won't find in lyx of course, but in your mac keyboard preferences.
Perhaps there is an option to allow a program override the mac shortcuts? I
actually really can't say, 'cause I use linux here. Otherwise you really
will have to modify each shortcut you need to change, in your mac or in lyx
(preferences-Editing-Shortcuts).

grtz,

Bart
http://www.bartart3d.be/


2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles




Re: TOC trouble and margins are not followed

2011-08-06 Thread Jürgen Spitzmüller
bart deruyter wrote:
 So for an automatic TOC, numbered sections are a requirement. That's quite a
 useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
 guess I'll have to add latex code to get rid of the numbering now, right?

http://wiki.lyx.org/FAQ/Numbering#unnumbered-toc-sections

HTH,
Jürgen


RE: TOC trouble and margins are not followed

2011-08-06 Thread Helge Hafting

So for an automatic TOC, numbered sections are a requirement. That's quite a
useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
guess I'll have to add latex code to get rid of the numbering now, right?

section* never go into the TOC, and it is never numbered either.
All you get is the bigger bolder font.

section goes into the TOC. It may or may not be numbered.
No latex code needed for either approach.

Menu Document-Settings-Numbering  TOC is what you want.
Here you decide to what level among part,chapter,section,... 
there should be numbers, and to what level they should appear
in the TOC.

No latex, just a user-friendly dialog box.

The default is to use numbering. After you change it, you may
save the new setting as default - very useful if you plan on writing 
most of your future documents without numbering. 

The same goes for all the other document settings - you
can change the default so you won't have to do it again for
the next documents you write.

You can also make empty template documents and save them
to the template folder. 

Helge Hafting 





RE: How to use short dashes in program listings?

2011-08-06 Thread Helge Hafting

I don't understand why the minus sign - isn't properly converted by latex.
Is there a way to correct this without escaping to latex, as you suggested?

This does not happen with program listings when I try.
The -- construct becomes a long dash only in plain text, not in listings.

There are several ways of writing program code in LyX:

* Listings inset:

Insert-Program Listing
You get a box where you can write program code, where minus signs will
be left alone. Even when there are several in a row. Right-click the
box to get settings where you can change the font and even turn on advanced 
features
like syntax highlighting for the programming language you use.

* Using the program source files directly:

Insert-File-Child document Set include type to program listing
Basically the same setup as the above mentioned inset, but it refers
directly to the source file. So docs and source never get out of sync,
because they are the same! You can specify from/to lines, if
you don't want to print the entire source file.

* Using the paragraph type LyX code. 
This is more limited, you get the typewriter font and
no options for syntax highlightling. 

* Using the text style code, provided by the logical markup module
This one seems to merge minus signs, so try the listings inset instead.
May be useful for code in languages that doesn't have --.

Helge Hafting
Helge Hafting


Re: RE: TOC trouble and margins are not followed

2011-08-06 Thread bart . deruyter

hey all,

it indeed works :-D Yay!!! Thanks to all. I just tested the lilypond  
feature, works great too :-). Considering to finish my guitar study book in  
lyx now too. I'll let you know when my first book is ready :-p.


grtz,
Bart

Op schreef Helge Hafting helge.haft...@hist.no:













So for an automatic TOC, numbered sections are a requirement. That's  
quite a



useless restriction. If I didn't wan'ta TOC I wouldn't insert one. And I



guess I'll have to add latex code to get rid of the numbering now, right?





section* never go into the TOC, and it is never numbered either.



All you get is the bigger bolder font.





section goes into the TOC. It may or may not be numbered.



No latex code needed for either approach.





Menu Document-Settings-Numbering  TOC is what you want.



Here you decide to what level among part,chapter,section,...



there should be numbers, and to what level they should appear



in the TOC.





No latex, just a user-friendly dialog box.





The default is to use numbering. After you change it, you may



save the new setting as default - very useful if you plan on writing



most of your future documents without numbering.





The same goes for all the other document settings - you



can change the default so you won't have to do it again for



the next documents you write.





You can also make empty template documents and save them



to the template folder.





Helge Hafting
















Re: encoding problem

2011-08-06 Thread Liviu Andronic
2011/8/6 zhaoyunsong zhao_yuns...@163.com:
 I installed LyX2.0 on a Windows XP system with this file
 LyX-2.0.0-3-Installer-Bundle.exe
 To input Chinese, I want to change the encoding option, but the option is
 grayed and I can not change is, what's wrong?

This may be so if you choose 'Use non-TeX fonts' in Fonts (then it
uses Unicode by default). I would suggest that you try to create a
document using defaults, and then you should be able to change the
encoding.
Liviu


 The attachment is the screen print





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


Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Hi Bart -

Thanks for your suggestion, but (no surprise here) this is yet another of
Apple's regrettable design decision that users have no ability to easily
change. The system preferences have no controls for this behavior. There is
probably some obscure plist file somewhere that controls this behavior, but
multiple Google searches have been fruitless.  Does anyone has suggestions
as to how to change this at the operating system level?

Emacs gets around this by providing settings (at the Emacs level) for
overriding this special character behavior of the option key (see
http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
should do something similar?

How are other Mac users dealing with this?  Has this been discussed before?
(I was unable to find anything in the mailing list archive).  I recently
switched to LyX 2.0 and this was one of the first things I noticed.  Any
ideas or suggestions would be much appreciated.


Charles


On Sat, Aug 6, 2011 at 00:19, bart deruyter bart.deruy...@gmail.com wrote:

 Hi,

 if I  understand it right,  you want to modify the mac keybindings. These
 you won't find in lyx of course, but in your mac keyboard preferences.
 Perhaps there is an option to allow a program override the mac shortcuts? I
 actually really can't say, 'cause I use linux here. Otherwise you really
 will have to modify each shortcut you need to change, in your mac or in lyx
 (preferences-Editing-Shortcuts).

 grtz,

 Bart
 http://www.bartart3d.be/



 2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles





Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
I should also mention that this behavior can't be overriden by adding Meta
shortcuts to my .bind file, so even the solution originally proposed (adding
each Meta- shortcut to the bind file) won't work.  That is, if I assign a
shortcut to M-m and then try to use Option-m from LyX, it still inserts a
\mu character, following the operating system's special character
behavior.


Charles


On Sat, Aug 6, 2011 at 11:16, charles reid charlesre...@gmail.com wrote:

 Hi Bart -

 Thanks for your suggestion, but (no surprise here) this is yet another of
 Apple's regrettable design decision that users have no ability to easily
 change. The system preferences have no controls for this behavior. There is
 probably some obscure plist file somewhere that controls this behavior, but
 multiple Google searches have been fruitless.  Does anyone has suggestions
 as to how to change this at the operating system level?

 Emacs gets around this by providing settings (at the Emacs level) for
 overriding this special character behavior of the option key (see
 http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
 should do something similar?

 How are other Mac users dealing with this?  Has this been discussed before?
 (I was unable to find anything in the mailing list archive).  I recently
 switched to LyX 2.0 and this was one of the first things I noticed.  Any
 ideas or suggestions would be much appreciated.


 Charles



 On Sat, Aug 6, 2011 at 00:19, bart deruyter bart.deruy...@gmail.comwrote:

 Hi,

 if I  understand it right,  you want to modify the mac keybindings. These
 you won't find in lyx of course, but in your mac keyboard preferences.
 Perhaps there is an option to allow a program override the mac shortcuts? I
 actually really can't say, 'cause I use linux here. Otherwise you really
 will have to modify each shortcut you need to change, in your mac or in lyx
 (preferences-Editing-Shortcuts).

 grtz,

 Bart
 http://www.bartart3d.be/



 2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles






Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 01:17 schrieb charles reid:

 Hi all -
 
 I'm using the latest binary of LyX available for Mac, 2.0, and I've been 
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such 
 as \mu) by pressing Option+M, or Option+(some letter). However, this 
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do 
 some math things like insert pairs of \left \right parentheses.  My question 
 is, how can I override the default Mac behavior of inserting greek symbols 
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been 
 unable to find any solutions, and the only one I can think of is redefining 
 every single Meta+(letter) combination, which seems like a lot of 
 work/trouble to solve a basic problem.

Hi,
with LyX 1.6.x the Option- and Command- keys had the same (duplicate) mappings. 
You could type Option-m or Command-m - both did activate the math-mode.
This had the drawback that many characters available on mac were hidden - like 
µ (Option-m). That's why it's now only Command-m in LyX-2.0.
Please, study the list of short cuts in the Help - Shortcuts document.

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 19:23 schrieb charles reid:

 I should also mention that this behavior can't be overriden by adding Meta 
 shortcuts to my .bind file, so even the solution originally proposed (adding 
 each Meta- shortcut to the bind file) won't work.  That is, if I assign a 
 shortcut to M-m and then try to use Option-m from LyX, it still inserts a 
 \mu character, following the operating system's special character behavior.

What did you do exactly to change the mapping?
I can map math-mode to Option-m in LyX preferences.
And in case you want to edit the bind-file directly:
it shouldn't be M-m there... it should be A-m.
(As mentioned at the beginning of mac.bind)

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Ah, ok, thanks, I missed that M to A change mentioned in mac.bind
somehow.  I was defining M-m in the bind file, and mistaking that to mean
Option-m, but once I defined A-m it worked as expected by using
Option-m, and it overrode the system's special character behavior.  Thanks
a million!


Charles


On Sat, Aug 6, 2011 at 11:45, Stephan Witt st.w...@gmx.net wrote:

 Am 06.08.2011 um 19:23 schrieb charles reid:

  I should also mention that this behavior can't be overriden by adding
 Meta shortcuts to my .bind file, so even the solution originally proposed
 (adding each Meta- shortcut to the bind file) won't work.  That is, if I
 assign a shortcut to M-m and then try to use Option-m from LyX, it still
 inserts a \mu character, following the operating system's special
 character behavior.

 What did you do exactly to change the mapping?
 I can map math-mode to Option-m in LyX preferences.
 And in case you want to edit the bind-file directly:
 it shouldn't be M-m there... it should be A-m.
 (As mentioned at the beginning of mac.bind)

 Stephan


font set problem

2011-08-06 Thread zhaoyunsong
I want to write Chinese in my document.
 
So I followed the instruction in Wiki,
Note: the following steps are only necessary up to LyX 1.6.x. As of LyX 2.0, 
you will just need to clickDocument→Settings...→Fonts→Use non-TeX fonts (via 
XeTeX/LuaTeX). Then you can immediatelyView→PDF (XeTeX).
 
the attachment is the screenshot of font select dialog, but if i chose a font 
with Chinese name, I will get an error when compiling the document,attachment: 未命名.PNG

beamer handouts?

2011-08-06 Thread Ignacio Martinez
Hi,
I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
This is what I have in mind
http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
but i don't know where to copy the .sty file and if that is the only
thing that i need to do.
Thanks!,

-Ignacio


Re: beamer handouts?

2011-08-06 Thread Paul Rubin
Ignacio Martinez ignacio at virginia.edu writes:


 I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
 This is what I have in mind
 http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
 but i don't know where to copy the .sty file and if that is the only
 thing that i need to do.

Put the .sty file in ~/texmf/tex/latex/beamer (create the directory if
necessary). Open a terminal there and run 'texhash'.  Then add the usepackage
command to the preamble of your LyX presentation and you should be good to go.

Paul



Re: beamer handouts?

2011-08-06 Thread Liviu Andronic
On Sat, Aug 6, 2011 at 11:09 PM, Ignacio Martinez igna...@virginia.edu wrote:
 Hi,
 I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
 This is what I have in mind
 http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
 but i don't know where to copy the .sty file and if that is the only
 thing that i need to do.

For instructions to install a new class see Help  Customization  Section 5.1.
Liviu


 Thanks!,

 -Ignacio




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


Re: Meta key inserts symbols on Mac

2011-08-06 Thread bart deruyter
Hi,

if I  understand it right,  you want to modify the mac keybindings. These
you won't find in lyx of course, but in your mac keyboard preferences.
Perhaps there is an option to allow a program override the mac shortcuts? I
actually really can't say, 'cause I use linux here. Otherwise you really
will have to modify each shortcut you need to change, in your mac or in lyx
(preferences-Editing-Shortcuts).

grtz,

Bart
http://www.bartart3d.be/


2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles




Re: TOC trouble and margins are not followed

2011-08-06 Thread Jürgen Spitzmüller
bart deruyter wrote:
 So for an automatic TOC, numbered sections are a requirement. That's quite a
 useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
 guess I'll have to add latex code to get rid of the numbering now, right?

http://wiki.lyx.org/FAQ/Numbering#unnumbered-toc-sections

HTH,
Jürgen


RE: TOC trouble and margins are not followed

2011-08-06 Thread Helge Hafting

So for an automatic TOC, numbered sections are a requirement. That's quite a
useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
guess I'll have to add latex code to get rid of the numbering now, right?

section* never go into the TOC, and it is never numbered either.
All you get is the bigger bolder font.

section goes into the TOC. It may or may not be numbered.
No latex code needed for either approach.

Menu Document-Settings-Numbering  TOC is what you want.
Here you decide to what level among part,chapter,section,... 
there should be numbers, and to what level they should appear
in the TOC.

No latex, just a user-friendly dialog box.

The default is to use numbering. After you change it, you may
save the new setting as default - very useful if you plan on writing 
most of your future documents without numbering. 

The same goes for all the other document settings - you
can change the default so you won't have to do it again for
the next documents you write.

You can also make empty template documents and save them
to the template folder. 

Helge Hafting 





RE: How to use short dashes in program listings?

2011-08-06 Thread Helge Hafting

I don't understand why the minus sign - isn't properly converted by latex.
Is there a way to correct this without escaping to latex, as you suggested?

This does not happen with program listings when I try.
The -- construct becomes a long dash only in plain text, not in listings.

There are several ways of writing program code in LyX:

* Listings inset:

Insert-Program Listing
You get a box where you can write program code, where minus signs will
be left alone. Even when there are several in a row. Right-click the
box to get settings where you can change the font and even turn on advanced 
features
like syntax highlighting for the programming language you use.

* Using the program source files directly:

Insert-File-Child document Set include type to program listing
Basically the same setup as the above mentioned inset, but it refers
directly to the source file. So docs and source never get out of sync,
because they are the same! You can specify from/to lines, if
you don't want to print the entire source file.

* Using the paragraph type LyX code. 
This is more limited, you get the typewriter font and
no options for syntax highlightling. 

* Using the text style code, provided by the logical markup module
This one seems to merge minus signs, so try the listings inset instead.
May be useful for code in languages that doesn't have --.

Helge Hafting
Helge Hafting


Re: RE: TOC trouble and margins are not followed

2011-08-06 Thread bart . deruyter

hey all,

it indeed works :-D Yay!!! Thanks to all. I just tested the lilypond  
feature, works great too :-). Considering to finish my guitar study book in  
lyx now too. I'll let you know when my first book is ready :-p.


grtz,
Bart

Op schreef Helge Hafting helge.haft...@hist.no:













So for an automatic TOC, numbered sections are a requirement. That's  
quite a



useless restriction. If I didn't wan'ta TOC I wouldn't insert one. And I



guess I'll have to add latex code to get rid of the numbering now, right?





section* never go into the TOC, and it is never numbered either.



All you get is the bigger bolder font.





section goes into the TOC. It may or may not be numbered.



No latex code needed for either approach.





Menu Document-Settings-Numbering  TOC is what you want.



Here you decide to what level among part,chapter,section,...



there should be numbers, and to what level they should appear



in the TOC.





No latex, just a user-friendly dialog box.





The default is to use numbering. After you change it, you may



save the new setting as default - very useful if you plan on writing



most of your future documents without numbering.





The same goes for all the other document settings - you



can change the default so you won't have to do it again for



the next documents you write.





You can also make empty template documents and save them



to the template folder.





Helge Hafting
















Re: encoding problem

2011-08-06 Thread Liviu Andronic
2011/8/6 zhaoyunsong zhao_yuns...@163.com:
 I installed LyX2.0 on a Windows XP system with this file
 LyX-2.0.0-3-Installer-Bundle.exe
 To input Chinese, I want to change the encoding option, but the option is
 grayed and I can not change is, what's wrong?

This may be so if you choose 'Use non-TeX fonts' in Fonts (then it
uses Unicode by default). I would suggest that you try to create a
document using defaults, and then you should be able to change the
encoding.
Liviu


 The attachment is the screen print





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


Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Hi Bart -

Thanks for your suggestion, but (no surprise here) this is yet another of
Apple's regrettable design decision that users have no ability to easily
change. The system preferences have no controls for this behavior. There is
probably some obscure plist file somewhere that controls this behavior, but
multiple Google searches have been fruitless.  Does anyone has suggestions
as to how to change this at the operating system level?

Emacs gets around this by providing settings (at the Emacs level) for
overriding this special character behavior of the option key (see
http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
should do something similar?

How are other Mac users dealing with this?  Has this been discussed before?
(I was unable to find anything in the mailing list archive).  I recently
switched to LyX 2.0 and this was one of the first things I noticed.  Any
ideas or suggestions would be much appreciated.


Charles


On Sat, Aug 6, 2011 at 00:19, bart deruyter bart.deruy...@gmail.com wrote:

 Hi,

 if I  understand it right,  you want to modify the mac keybindings. These
 you won't find in lyx of course, but in your mac keyboard preferences.
 Perhaps there is an option to allow a program override the mac shortcuts? I
 actually really can't say, 'cause I use linux here. Otherwise you really
 will have to modify each shortcut you need to change, in your mac or in lyx
 (preferences-Editing-Shortcuts).

 grtz,

 Bart
 http://www.bartart3d.be/



 2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles





Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
I should also mention that this behavior can't be overriden by adding Meta
shortcuts to my .bind file, so even the solution originally proposed (adding
each Meta- shortcut to the bind file) won't work.  That is, if I assign a
shortcut to M-m and then try to use Option-m from LyX, it still inserts a
\mu character, following the operating system's special character
behavior.


Charles


On Sat, Aug 6, 2011 at 11:16, charles reid charlesre...@gmail.com wrote:

 Hi Bart -

 Thanks for your suggestion, but (no surprise here) this is yet another of
 Apple's regrettable design decision that users have no ability to easily
 change. The system preferences have no controls for this behavior. There is
 probably some obscure plist file somewhere that controls this behavior, but
 multiple Google searches have been fruitless.  Does anyone has suggestions
 as to how to change this at the operating system level?

 Emacs gets around this by providing settings (at the Emacs level) for
 overriding this special character behavior of the option key (see
 http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
 should do something similar?

 How are other Mac users dealing with this?  Has this been discussed before?
 (I was unable to find anything in the mailing list archive).  I recently
 switched to LyX 2.0 and this was one of the first things I noticed.  Any
 ideas or suggestions would be much appreciated.


 Charles



 On Sat, Aug 6, 2011 at 00:19, bart deruyter bart.deruy...@gmail.comwrote:

 Hi,

 if I  understand it right,  you want to modify the mac keybindings. These
 you won't find in lyx of course, but in your mac keyboard preferences.
 Perhaps there is an option to allow a program override the mac shortcuts? I
 actually really can't say, 'cause I use linux here. Otherwise you really
 will have to modify each shortcut you need to change, in your mac or in lyx
 (preferences-Editing-Shortcuts).

 grtz,

 Bart
 http://www.bartart3d.be/



 2011/8/6 charles reid charlesre...@gmail.com

 Hi all -

 I'm using the latest binary of LyX available for Mac, 2.0, and I've been
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such
 as \mu) by pressing Option+M, or Option+(some letter). However, this
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
 some math things like insert pairs of \left \right parentheses.  My question
 is, how can I override the default Mac behavior of inserting greek symbols
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
 unable to find any solutions, and the only one I can think of is redefining
 every single Meta+(letter) combination, which seems like a lot of
 work/trouble to solve a basic problem.


 Charles






Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 01:17 schrieb charles reid:

 Hi all -
 
 I'm using the latest binary of LyX available for Mac, 2.0, and I've been 
 struggling to fix an annoying behavior. In Mac, you can insert symbols (such 
 as \mu) by pressing Option+M, or Option+(some letter). However, this 
 conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do 
 some math things like insert pairs of \left \right parentheses.  My question 
 is, how can I override the default Mac behavior of inserting greek symbols 
 when I use Meta+(letter) in favor of the normal LyX behavior?  I've been 
 unable to find any solutions, and the only one I can think of is redefining 
 every single Meta+(letter) combination, which seems like a lot of 
 work/trouble to solve a basic problem.

Hi,
with LyX 1.6.x the Option- and Command- keys had the same (duplicate) mappings. 
You could type Option-m or Command-m - both did activate the math-mode.
This had the drawback that many characters available on mac were hidden - like 
µ (Option-m). That's why it's now only Command-m in LyX-2.0.
Please, study the list of short cuts in the Help - Shortcuts document.

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 19:23 schrieb charles reid:

 I should also mention that this behavior can't be overriden by adding Meta 
 shortcuts to my .bind file, so even the solution originally proposed (adding 
 each Meta- shortcut to the bind file) won't work.  That is, if I assign a 
 shortcut to M-m and then try to use Option-m from LyX, it still inserts a 
 \mu character, following the operating system's special character behavior.

What did you do exactly to change the mapping?
I can map math-mode to Option-m in LyX preferences.
And in case you want to edit the bind-file directly:
it shouldn't be M-m there... it should be A-m.
(As mentioned at the beginning of mac.bind)

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Ah, ok, thanks, I missed that M to A change mentioned in mac.bind
somehow.  I was defining M-m in the bind file, and mistaking that to mean
Option-m, but once I defined A-m it worked as expected by using
Option-m, and it overrode the system's special character behavior.  Thanks
a million!


Charles


On Sat, Aug 6, 2011 at 11:45, Stephan Witt st.w...@gmx.net wrote:

 Am 06.08.2011 um 19:23 schrieb charles reid:

  I should also mention that this behavior can't be overriden by adding
 Meta shortcuts to my .bind file, so even the solution originally proposed
 (adding each Meta- shortcut to the bind file) won't work.  That is, if I
 assign a shortcut to M-m and then try to use Option-m from LyX, it still
 inserts a \mu character, following the operating system's special
 character behavior.

 What did you do exactly to change the mapping?
 I can map math-mode to Option-m in LyX preferences.
 And in case you want to edit the bind-file directly:
 it shouldn't be M-m there... it should be A-m.
 (As mentioned at the beginning of mac.bind)

 Stephan


font set problem

2011-08-06 Thread zhaoyunsong
I want to write Chinese in my document.
 
So I followed the instruction in Wiki,
Note: the following steps are only necessary up to LyX 1.6.x. As of LyX 2.0, 
you will just need to clickDocument→Settings...→Fonts→Use non-TeX fonts (via 
XeTeX/LuaTeX). Then you can immediatelyView→PDF (XeTeX).
 
the attachment is the screenshot of font select dialog, but if i chose a font 
with Chinese name, I will get an error when compiling the document,attachment: 未命名.PNG

beamer handouts?

2011-08-06 Thread Ignacio Martinez
Hi,
I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
This is what I have in mind
http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
but i don't know where to copy the .sty file and if that is the only
thing that i need to do.
Thanks!,

-Ignacio


Re: beamer handouts?

2011-08-06 Thread Paul Rubin
Ignacio Martinez ignacio at virginia.edu writes:


 I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
 This is what I have in mind
 http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
 but i don't know where to copy the .sty file and if that is the only
 thing that i need to do.

Put the .sty file in ~/texmf/tex/latex/beamer (create the directory if
necessary). Open a terminal there and run 'texhash'.  Then add the usepackage
command to the preamble of your LyX presentation and you should be good to go.

Paul



Re: beamer handouts?

2011-08-06 Thread Liviu Andronic
On Sat, Aug 6, 2011 at 11:09 PM, Ignacio Martinez igna...@virginia.edu wrote:
 Hi,
 I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
 This is what I have in mind
 http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
 but i don't know where to copy the .sty file and if that is the only
 thing that i need to do.

For instructions to install a new class see Help  Customization  Section 5.1.
Liviu


 Thanks!,

 -Ignacio




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


Re: Meta key inserts symbols on Mac

2011-08-06 Thread bart deruyter
Hi,

if I  understand it right,  you want to modify the mac keybindings. These
you won't find in lyx of course, but in your mac keyboard preferences.
Perhaps there is an option to allow a program override the mac shortcuts? I
actually really can't say, 'cause I use linux here. Otherwise you really
will have to modify each shortcut you need to change, in your mac or in lyx
(preferences-Editing-Shortcuts).

grtz,

Bart
http://www.bartart3d.be/


2011/8/6 charles reid 

> Hi all -
>
> I'm using the latest binary of LyX available for Mac, 2.0, and I've been
> struggling to fix an annoying behavior. In Mac, you can insert symbols (such
> as \mu) by pressing Option+M, or Option+(some letter). However, this
> conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
> some math things like insert pairs of \left \right parentheses.  My question
> is, how can I override the default Mac behavior of inserting greek symbols
> when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
> unable to find any solutions, and the only one I can think of is redefining
> every single Meta+(letter) combination, which seems like a lot of
> work/trouble to solve a basic problem.
>
>
> Charles
>
>


Re: TOC trouble and margins are not followed

2011-08-06 Thread Jürgen Spitzmüller
bart deruyter wrote:
> So for an automatic TOC, numbered sections are a requirement. That's quite a
> useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
> guess I'll have to add latex code to get rid of the numbering now, right?

http://wiki.lyx.org/FAQ/Numbering#unnumbered-toc-sections

HTH,
Jürgen


RE: TOC trouble and margins are not followed

2011-08-06 Thread Helge Hafting

>So for an automatic TOC, numbered sections are a requirement. That's quite a
>useless restriction. If I didn't wan't a TOC I wouldn't insert one. And I
>guess I'll have to add latex code to get rid of the numbering now, right?

"section*" never go into the TOC, and it is never numbered either.
All you get is the bigger bolder font.

"section" goes into the TOC. It may or may not be numbered.
No latex code needed for either approach.

Menu Document->Settings->Numbering & TOC is what you want.
Here you decide to what level among part,chapter,section,... 
there should be numbers, and to what level they should appear
in the TOC.

No latex, just a user-friendly dialog box.

The default is to use numbering. After you change it, you may
save the new setting as default - very useful if you plan on writing 
most of your future documents without numbering. 

The same goes for all the other document settings - you
can change the default so you won't have to do it again for
the next documents you write.

You can also make empty template documents and save them
to the template folder. 

Helge Hafting 





RE: How to use short dashes in program listings?

2011-08-06 Thread Helge Hafting

>I don't understand why the minus sign "-" isn't properly converted by latex.
>Is there a way to correct this without escaping to latex, as you suggested?

This does not happen with program listings when I try.
The "--" construct becomes a long dash only in plain text, not in listings.

There are several ways of writing program code in LyX:

* Listings inset:

"Insert->Program Listing"
You get a box where you can write program code, where minus signs will
be left alone. Even when there are several in a row. Right-click the
box to get settings where you can change the font and even turn on advanced 
features
like syntax highlighting for the programming language you use.

* Using the program source files directly:

"Insert->File->Child document" Set "include type" to "program listing"
Basically the same setup as the above mentioned inset, but it refers
directly to the source file. So docs and source never get out of sync,
because they are the same! You can specify from/to lines, if
you don't want to print the entire source file.

* Using the paragraph type "LyX code". 
This is more limited, you get the typewriter font and
no options for syntax highlightling. 

* Using the text style "code", provided by the "logical markup" module
This one seems to merge minus signs, so try the listings inset instead.
May be useful for code in languages that doesn't have "--".

Helge Hafting
Helge Hafting


Re: RE: TOC trouble and margins are not followed

2011-08-06 Thread bart . deruyter

hey all,

it indeed works :-D Yay!!! Thanks to all. I just tested the lilypond  
feature, works great too :-). Considering to finish my guitar study book in  
lyx now too. I'll let you know when my first book is ready :-p.


grtz,
Bart

Op schreef Helge Hafting :













>So for an automatic TOC, numbered sections are a requirement. That's  
quite a



>useless restriction. If I didn't wan'ta TOC I wouldn't insert one. And I



>guess I'll have to add latex code to get rid of the numbering now, right?





"section*" never go into the TOC, and it is never numbered either.



All you get is the bigger bolder font.





"section" goes into the TOC. It may or may not be numbered.



No latex code needed for either approach.





Menu Document->Settings->Numbering & TOC is what you want.



Here you decide to what level among part,chapter,section,...



there should be numbers, and to what level they should appear



in the TOC.





No latex, just a user-friendly dialog box.





The default is to use numbering. After you change it, you may



save the new setting as default - very useful if you plan on writing



most of your future documents without numbering.





The same goes for all the other document settings - you



can change the default so you won't have to do it again for



the next documents you write.





You can also make empty template documents and save them



to the template folder.





Helge Hafting
















Re: encoding problem

2011-08-06 Thread Liviu Andronic
2011/8/6 zhaoyunsong :
> I installed LyX2.0 on a Windows XP system with this file
> "LyX-2.0.0-3-Installer-Bundle.exe"
> To input Chinese, I want to change the encoding option, but the option is
> grayed and I can not change is, what's wrong?
>
This may be so if you choose 'Use non-TeX fonts' in Fonts (then it
uses Unicode by default). I would suggest that you try to create a
document using defaults, and then you should be able to change the
encoding.
Liviu


> The attachment is the screen print
>
>



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


Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Hi Bart -

Thanks for your suggestion, but (no surprise here) this is yet another of
Apple's regrettable design decision that users have no ability to easily
change. The system preferences have no controls for this behavior. There is
probably some obscure plist file somewhere that controls this behavior, but
multiple Google searches have been fruitless.  Does anyone has suggestions
as to how to change this at the operating system level?

Emacs gets around this by providing settings (at the Emacs level) for
overriding this special character behavior of the option key (see
http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
should do something similar?

How are other Mac users dealing with this?  Has this been discussed before?
(I was unable to find anything in the mailing list archive).  I recently
switched to LyX 2.0 and this was one of the first things I noticed.  Any
ideas or suggestions would be much appreciated.


Charles


On Sat, Aug 6, 2011 at 00:19, bart deruyter  wrote:

> Hi,
>
> if I  understand it right,  you want to modify the mac keybindings. These
> you won't find in lyx of course, but in your mac keyboard preferences.
> Perhaps there is an option to allow a program override the mac shortcuts? I
> actually really can't say, 'cause I use linux here. Otherwise you really
> will have to modify each shortcut you need to change, in your mac or in lyx
> (preferences-Editing-Shortcuts).
>
> grtz,
>
> Bart
> http://www.bartart3d.be/
>
>
>
> 2011/8/6 charles reid 
>
>> Hi all -
>>
>> I'm using the latest binary of LyX available for Mac, 2.0, and I've been
>> struggling to fix an annoying behavior. In Mac, you can insert symbols (such
>> as \mu) by pressing Option+M, or Option+(some letter). However, this
>> conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
>> some math things like insert pairs of \left \right parentheses.  My question
>> is, how can I override the default Mac behavior of inserting greek symbols
>> when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
>> unable to find any solutions, and the only one I can think of is redefining
>> every single Meta+(letter) combination, which seems like a lot of
>> work/trouble to solve a basic problem.
>>
>>
>> Charles
>>
>>
>


Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
I should also mention that this behavior can't be overriden by adding Meta
shortcuts to my .bind file, so even the solution originally proposed (adding
each Meta- shortcut to the bind file) won't work.  That is, if I assign a
shortcut to "M-m" and then try to use Option-m from LyX, it still inserts a
\mu character, following the operating system's "special character"
behavior.


Charles


On Sat, Aug 6, 2011 at 11:16, charles reid  wrote:

> Hi Bart -
>
> Thanks for your suggestion, but (no surprise here) this is yet another of
> Apple's regrettable design decision that users have no ability to easily
> change. The system preferences have no controls for this behavior. There is
> probably some obscure plist file somewhere that controls this behavior, but
> multiple Google searches have been fruitless.  Does anyone has suggestions
> as to how to change this at the operating system level?
>
> Emacs gets around this by providing settings (at the Emacs level) for
> overriding this special character behavior of the option key (see
> http://www.emacswiki.org/emacs/MetaKeyProblems#toc15).  Is it possible LyX
> should do something similar?
>
> How are other Mac users dealing with this?  Has this been discussed before?
> (I was unable to find anything in the mailing list archive).  I recently
> switched to LyX 2.0 and this was one of the first things I noticed.  Any
> ideas or suggestions would be much appreciated.
>
>
> Charles
>
>
>
> On Sat, Aug 6, 2011 at 00:19, bart deruyter wrote:
>
>> Hi,
>>
>> if I  understand it right,  you want to modify the mac keybindings. These
>> you won't find in lyx of course, but in your mac keyboard preferences.
>> Perhaps there is an option to allow a program override the mac shortcuts? I
>> actually really can't say, 'cause I use linux here. Otherwise you really
>> will have to modify each shortcut you need to change, in your mac or in lyx
>> (preferences-Editing-Shortcuts).
>>
>> grtz,
>>
>> Bart
>> http://www.bartart3d.be/
>>
>>
>>
>> 2011/8/6 charles reid 
>>
>>> Hi all -
>>>
>>> I'm using the latest binary of LyX available for Mac, 2.0, and I've been
>>> struggling to fix an annoying behavior. In Mac, you can insert symbols (such
>>> as \mu) by pressing Option+M, or Option+(some letter). However, this
>>> conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do
>>> some math things like insert pairs of \left \right parentheses.  My question
>>> is, how can I override the default Mac behavior of inserting greek symbols
>>> when I use Meta+(letter) in favor of the normal LyX behavior?  I've been
>>> unable to find any solutions, and the only one I can think of is redefining
>>> every single Meta+(letter) combination, which seems like a lot of
>>> work/trouble to solve a basic problem.
>>>
>>>
>>> Charles
>>>
>>>
>>
>


Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 01:17 schrieb charles reid:

> Hi all -
> 
> I'm using the latest binary of LyX available for Mac, 2.0, and I've been 
> struggling to fix an annoying behavior. In Mac, you can insert symbols (such 
> as \mu) by pressing Option+M, or Option+(some letter). However, this 
> conflicts with LyX's keyboard shortcuts, e.g. Option+M should allow me to do 
> some math things like insert pairs of \left \right parentheses.  My question 
> is, how can I override the default Mac behavior of inserting greek symbols 
> when I use Meta+(letter) in favor of the normal LyX behavior?  I've been 
> unable to find any solutions, and the only one I can think of is redefining 
> every single Meta+(letter) combination, which seems like a lot of 
> work/trouble to solve a basic problem.

Hi,
with LyX 1.6.x the Option- and Command- keys had the same (duplicate) mappings. 
You could type Option-m or Command-m - both did activate the math-mode.
This had the drawback that many characters available on mac were hidden - like 
µ (Option-m). That's why it's now only Command-m in LyX-2.0.
Please, study the list of short cuts in the Help -> Shortcuts document.

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread Stephan Witt
Am 06.08.2011 um 19:23 schrieb charles reid:

> I should also mention that this behavior can't be overriden by adding Meta 
> shortcuts to my .bind file, so even the solution originally proposed (adding 
> each Meta- shortcut to the bind file) won't work.  That is, if I assign a 
> shortcut to "M-m" and then try to use Option-m from LyX, it still inserts a 
> \mu character, following the operating system's "special character" behavior.

What did you do exactly to change the mapping?
I can map math-mode to Option-m in LyX preferences.
And in case you want to edit the bind-file directly:
it shouldn't be "M-m" there... it should be "A-m".
(As mentioned at the beginning of mac.bind)

Stephan

Re: Meta key inserts symbols on Mac

2011-08-06 Thread charles reid
Ah, ok, thanks, I missed that "M" to "A" change mentioned in mac.bind
somehow.  I was defining "M-m" in the bind file, and mistaking that to mean
"Option-m", but once I defined "A-m" it worked as expected by using
"Option-m," and it overrode the system's special character behavior.  Thanks
a million!


Charles


On Sat, Aug 6, 2011 at 11:45, Stephan Witt  wrote:

> Am 06.08.2011 um 19:23 schrieb charles reid:
>
> > I should also mention that this behavior can't be overriden by adding
> Meta shortcuts to my .bind file, so even the solution originally proposed
> (adding each Meta- shortcut to the bind file) won't work.  That is, if I
> assign a shortcut to "M-m" and then try to use Option-m from LyX, it still
> inserts a \mu character, following the operating system's "special
> character" behavior.
>
> What did you do exactly to change the mapping?
> I can map math-mode to Option-m in LyX preferences.
> And in case you want to edit the bind-file directly:
> it shouldn't be "M-m" there... it should be "A-m".
> (As mentioned at the beginning of mac.bind)
>
> Stephan


font set problem

2011-08-06 Thread zhaoyunsong
I want to write Chinese in my document.
 
So I followed the instruction in Wiki,
Note: the following steps are only necessary up to LyX 1.6.x. As of LyX 2.0, 
you will just need to clickDocument→Settings...→Fonts→Use non-TeX fonts (via 
XeTeX/LuaTeX). Then you can immediatelyView→PDF (XeTeX).
 
the attachment is the screenshot of font select dialog, but if i chose a font 
with Chinese name, I will get an error when compiling the document,<>

beamer handouts?

2011-08-06 Thread Ignacio Martinez
Hi,
I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
This is what I have in mind
http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
but i don't know where to copy the .sty file and if that is the only
thing that i need to do.
Thanks!,

-Ignacio


Re: beamer handouts?

2011-08-06 Thread Paul Rubin
Ignacio Martinez  virginia.edu> writes:


> I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
> This is what I have in mind
> http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
> but i don't know where to copy the .sty file and if that is the only
> thing that i need to do.

Put the .sty file in ~/texmf/tex/latex/beamer (create the directory if
necessary). Open a terminal there and run 'texhash'.  Then add the usepackage
command to the preamble of your LyX presentation and you should be good to go.

Paul



Re: beamer handouts?

2011-08-06 Thread Liviu Andronic
On Sat, Aug 6, 2011 at 11:09 PM, Ignacio Martinez  wrote:
> Hi,
> I'm trying to create beamer handouts with lyx (in ubuntu 11.04).
> This is what I have in mind
> http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
> but i don't know where to copy the .sty file and if that is the only
> thing that i need to do.
>
For instructions to install a new class see Help > Customization > Section 5.1.
Liviu


> Thanks!,
>
> -Ignacio
>



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