Re: Square brackets with Lyx keyboard

2015-06-09 Thread Guenter Milde
On 2015-06-08, Kevin Spi wrote:
 Dear all,

 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.

...

 Note that inserting curly brackets, using Alt+M AltGr+{, works just
 fine. So the problem is not the AltGr. I only notice the problem with
 the square bracket.

 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.

On my German qwertz keyboard, the [ is on Alt-Gr+8 and inserting a [ into
a maths-box works fine with LyX 2.1.3 (under Debian Gnu/Linux) with German
locale.

What is your language setting?

I know, this is not much of a help, but it may narrow down the problem.

 Do any of you have an idea how I can solve this? 

You can define/edit keybindings under ToolsSettingsEditkeys (or
similar, my LyX speaks German).

Hope this helps,

Günter



Re: Square brackets with Lyx keyboard

2015-06-09 Thread Jürgen Spitzmüller
2015-06-08 23:13 GMT+02:00 Kevin Spi spirilyxformgm...@spiri.be:

 Dear all,

 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.

 I had the problem on one laptop, where I used Lyx 2.1.3. When on another
 laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
 So the bug must have appeared between those versions.

 Note that inserting curly brackets, using Alt+M AltGr+{, works just fine.
 So
 the problem is not the AltGr. I only notice the problem with the square
 bracket.

 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.

 Do any of you have an idea how I can solve this? Or should I wait for a
 next
 version?


This is most probably
http://www.lyx.org/trac/ticket/9057

This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings

\bind C-M-~S-1bookmark-save 1
\bind C-M-~S-2bookmark-save 2
\bind C-M-~S-3bookmark-save 3
\bind C-M-~S-4bookmark-save 4
\bind C-M-~S-5bookmark-save 5
\bind C-M-~S-6bookmark-save 6
\bind C-M-~S-7bookmark-save 7
\bind C-M-~S-8bookmark-save 8
\bind C-M-~S-9bookmark-save 9


by these:


\bind S-F1bookmark-save 1
\bind S-F2bookmark-save 2
\bind S-F3bookmark-save 3
\bind S-F4bookmark-save 4
\bind S-F5bookmark-save 5
\bind S-F6bookmark-save 6
\bind S-F7bookmark-save 7
\bind S-F8bookmark-save 8
\bind S-F9bookmark-save 9


Alternatively, you could also alter the bindings in the preferences dialogs.

HTH
Jürgen



 Best regards,
 Kevin




Re: Square brackets with Lyx keyboard

2015-06-09 Thread Kevin Spi
Jürgen Spitzmüller spitz at lyx.org writes:

 
 
 2015-06-08 23:13 GMT+02:00 Kevin Spi spirilyxformgmane at
spiri.be:Dear all,
 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.
 I had the problem on one laptop, where I used Lyx 2.1.3. When on another
 laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
 So the bug must have appeared between those versions.
 Note that inserting curly brackets, using Alt+M AltGr+{, works just fine. So
 the problem is not the AltGr. I only notice the problem with the square
bracket.
 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.
 Do any of you have an idea how I can solve this? Or should I wait for a next
 version?
 
 
 This is most probablyhttp://www.lyx.org/trac/ticket/9057
 
 This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings\bind C-M-~S-1   
bookmark-save 1 \bind C-M-~S-2    bookmark-save 2 \bind
C-M-~S-3    bookmark-save 3 \bind C-M-~S-4   
bookmark-save 4 \bind C-M-~S-5    bookmark-save 5 \bind
C-M-~S-6    bookmark-save 6 \bind C-M-~S-7   
bookmark-save 7 \bind C-M-~S-8    bookmark-save 8 \bind
C-M-~S-9    bookmark-save 9 
 
 by these:\bind S-F1    bookmark-save 1 \bind
S-F2    bookmark-save 2 \bind S-F3   
bookmark-save 3 \bind S-F4    bookmark-save 4 \bind
S-F5    bookmark-save 5 \bind S-F6   
bookmark-save 6 \bind S-F7    bookmark-save 7 \bind
S-F8    bookmark-save 8 \bind S-F9   
bookmark-save 9
 
 Alternatively, you could also alter the bindings in the preferences dialogs.


I was able to correct this by resetting the key binding in the preferences
dialog. Thank you!



Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Ricardo Gaspar
Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX. 
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar




Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Scott Kostyshak
On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:
 Hi there,
 
 I am a new user of Lyx, but a not a beginner in LaTEX. 

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.

 I couldn’t find in the internet why Lyx doesn’t allow to edit the source 
 LaTEX file. It would be an awesome feature and could make Lyx a great rival 
 against the other LaTEX editors.
 I like the simplicity of Lyx and the features it provides, but sometimes I 
 would like to change or add code directly to the source file.
 
 Can you please answer this question? Or at least redirect me to a site where 
 I can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.

Best,

Scott


Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Christopher Menzel

Hi Ricardo,

Can you provide an example of a situation where the feature in question 
would be useful? I composed in raw LaTeX for 20 years but since 
switching pretty much full-time to LyX several years ago I have yet to 
find a situation that LyX (plus perhaps a little ERT 
http://wiki.lyx.org/FAQ/ERT)  couldn't handle with aplomb.


-chris

Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar






Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Richard Heck

On 06/09/2015 06:13 PM, Scott Kostyshak wrote:

On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.


I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.


Yes, the basic problem is that this is highly non-trivial, though not 
impossible, and it isn't
really compatible with the idea behind LyX. Contrary to how it is often 
advertised, LyX is
NOT a LaTeX frontend. LaTeX is only one of the formats we natively 
export (though by far

the most important).

The ability to edit the LaTeX would basically involve offering the user 
the LaTeX source
for some fragment of text, then running tex2lyx on whatever the user 
ended up with, then
replacing the relevant fragment of text witih the result. This is still 
harder than it sounds,
since tex2lyx outputs some text (a LyX file, basically), and what we 
really need is the data
structure that LyX would create upon reading that file. This could be 
done, though, by reading
the new text into a temporary Buffer and doing some kind of cut and 
paste behind the scenes.
But there's not really any guarantee that what LyX would export at that 
point would actually
be the same as what the user entered: That kind of 'roundtrip' is a 
goal, not a reality.


Alternatively, the LaTeX the user created could become ERT. But then 
maybe such a user

should just use LaTeX.

Richard



Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Benedict Holland
I have to plug emacs for native lyx support. That application is awesome at
parsing raw Latex. As Richard said, this is the antithesis of why anyone
would use Lyx. I have become a huge fan of seamlessly integrating my latex
documents, mostly tables, using the input command and editing the .tex file
using emacs. Since there is already excellent Latex editors, I don't
understand why it would be desirable for Lyx to incorporate such features.

~Ben

On Tue, Jun 9, 2015 at 10:13 PM, Richard Heck rgh...@lyx.org wrote:

 On 06/09/2015 06:13 PM, Scott Kostyshak wrote:

 On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:

 Hi there,

 I am a new user of Lyx, but a not a beginner in LaTEX.

 Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
 keep providing feedback and if you happen to have the time and
 interests, patches or (if you do not enjoy programming) improvements to
 the documentation would be welcome. It's especially useful to receive
 feedback from new users, in my opinion.

  I couldn’t find in the internet why Lyx doesn’t allow to edit the source
 LaTEX file. It would be an awesome feature and could make Lyx a great rival
 against the other LaTEX editors.
 I like the simplicity of Lyx and the features it provides, but sometimes
 I would like to change or add code directly to the source file.

 Can you please answer this question? Or at least redirect me to a site
 where I can find it?

 This is an often requested feature. See for example:
 http://wiki.lyx.org/LyX/FeaturePoll2#toc10
 http://www.lyx.org/trac/ticket/5260

 The basic answer, from what I understand, is simply that it is *very*
 hard to parse LaTeX. LyX has its own format. It can export that format
 to LaTeX very reliably, but it is extremely difficult to make that a
 seamless two-way communication.


 Yes, the basic problem is that this is highly non-trivial, though not
 impossible, and it isn't
 really compatible with the idea behind LyX. Contrary to how it is often
 advertised, LyX is
 NOT a LaTeX frontend. LaTeX is only one of the formats we natively export
 (though by far
 the most important).

 The ability to edit the LaTeX would basically involve offering the user
 the LaTeX source
 for some fragment of text, then running tex2lyx on whatever the user ended
 up with, then
 replacing the relevant fragment of text witih the result. This is still
 harder than it sounds,
 since tex2lyx outputs some text (a LyX file, basically), and what we
 really need is the data
 structure that LyX would create upon reading that file. This could be
 done, though, by reading
 the new text into a temporary Buffer and doing some kind of cut and paste
 behind the scenes.
 But there's not really any guarantee that what LyX would export at that
 point would actually
 be the same as what the user entered: That kind of 'roundtrip' is a goal,
 not a reality.

 Alternatively, the LaTeX the user created could become ERT. But then maybe
 such a user
 should just use LaTeX.

 Richard




Re: Square brackets with Lyx keyboard

2015-06-09 Thread Guenter Milde
On 2015-06-08, Kevin Spi wrote:
 Dear all,

 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.

...

 Note that inserting curly brackets, using Alt+M AltGr+{, works just
 fine. So the problem is not the AltGr. I only notice the problem with
 the square bracket.

 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.

On my German qwertz keyboard, the [ is on Alt-Gr+8 and inserting a [ into
a maths-box works fine with LyX 2.1.3 (under Debian Gnu/Linux) with German
locale.

What is your language setting?

I know, this is not much of a help, but it may narrow down the problem.

 Do any of you have an idea how I can solve this? 

You can define/edit keybindings under ToolsSettingsEditkeys (or
similar, my LyX speaks German).

Hope this helps,

Günter



Re: Square brackets with Lyx keyboard

2015-06-09 Thread Jürgen Spitzmüller
2015-06-08 23:13 GMT+02:00 Kevin Spi spirilyxformgm...@spiri.be:

 Dear all,

 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.

 I had the problem on one laptop, where I used Lyx 2.1.3. When on another
 laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
 So the bug must have appeared between those versions.

 Note that inserting curly brackets, using Alt+M AltGr+{, works just fine.
 So
 the problem is not the AltGr. I only notice the problem with the square
 bracket.

 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.

 Do any of you have an idea how I can solve this? Or should I wait for a
 next
 version?


This is most probably
http://www.lyx.org/trac/ticket/9057

This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings

\bind C-M-~S-1bookmark-save 1
\bind C-M-~S-2bookmark-save 2
\bind C-M-~S-3bookmark-save 3
\bind C-M-~S-4bookmark-save 4
\bind C-M-~S-5bookmark-save 5
\bind C-M-~S-6bookmark-save 6
\bind C-M-~S-7bookmark-save 7
\bind C-M-~S-8bookmark-save 8
\bind C-M-~S-9bookmark-save 9


by these:


\bind S-F1bookmark-save 1
\bind S-F2bookmark-save 2
\bind S-F3bookmark-save 3
\bind S-F4bookmark-save 4
\bind S-F5bookmark-save 5
\bind S-F6bookmark-save 6
\bind S-F7bookmark-save 7
\bind S-F8bookmark-save 8
\bind S-F9bookmark-save 9


Alternatively, you could also alter the bindings in the preferences dialogs.

HTH
Jürgen



 Best regards,
 Kevin




Re: Square brackets with Lyx keyboard

2015-06-09 Thread Kevin Spi
Jürgen Spitzmüller spitz at lyx.org writes:

 
 
 2015-06-08 23:13 GMT+02:00 Kevin Spi spirilyxformgmane at
spiri.be:Dear all,
 There appears to be a bug in the latest Lyx version, 2.1.3, when using an
 Azerty keyboard. Usually when I wish to add square brackets in an equation,
 I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
 that on Azerty keyboards this is necessary.
 I had the problem on one laptop, where I used Lyx 2.1.3. When on another
 laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
 So the bug must have appeared between those versions.
 Note that inserting curly brackets, using Alt+M AltGr+{, works just fine. So
 the problem is not the AltGr. I only notice the problem with the square
bracket.
 I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
 the same problem.
 Do any of you have an idea how I can solve this? Or should I wait for a next
 version?
 
 
 This is most probablyhttp://www.lyx.org/trac/ticket/9057
 
 This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings\bind C-M-~S-1   
bookmark-save 1 \bind C-M-~S-2    bookmark-save 2 \bind
C-M-~S-3    bookmark-save 3 \bind C-M-~S-4   
bookmark-save 4 \bind C-M-~S-5    bookmark-save 5 \bind
C-M-~S-6    bookmark-save 6 \bind C-M-~S-7   
bookmark-save 7 \bind C-M-~S-8    bookmark-save 8 \bind
C-M-~S-9    bookmark-save 9 
 
 by these:\bind S-F1    bookmark-save 1 \bind
S-F2    bookmark-save 2 \bind S-F3   
bookmark-save 3 \bind S-F4    bookmark-save 4 \bind
S-F5    bookmark-save 5 \bind S-F6   
bookmark-save 6 \bind S-F7    bookmark-save 7 \bind
S-F8    bookmark-save 8 \bind S-F9   
bookmark-save 9
 
 Alternatively, you could also alter the bindings in the preferences dialogs.


I was able to correct this by resetting the key binding in the preferences
dialog. Thank you!



Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Ricardo Gaspar
Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX. 
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar




Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Scott Kostyshak
On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:
 Hi there,
 
 I am a new user of Lyx, but a not a beginner in LaTEX. 

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.

 I couldn’t find in the internet why Lyx doesn’t allow to edit the source 
 LaTEX file. It would be an awesome feature and could make Lyx a great rival 
 against the other LaTEX editors.
 I like the simplicity of Lyx and the features it provides, but sometimes I 
 would like to change or add code directly to the source file.
 
 Can you please answer this question? Or at least redirect me to a site where 
 I can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.

Best,

Scott


Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Christopher Menzel

Hi Ricardo,

Can you provide an example of a situation where the feature in question 
would be useful? I composed in raw LaTeX for 20 years but since 
switching pretty much full-time to LyX several years ago I have yet to 
find a situation that LyX (plus perhaps a little ERT 
http://wiki.lyx.org/FAQ/ERT)  couldn't handle with aplomb.


-chris

Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar






Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Richard Heck

On 06/09/2015 06:13 PM, Scott Kostyshak wrote:

On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.


I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.


Yes, the basic problem is that this is highly non-trivial, though not 
impossible, and it isn't
really compatible with the idea behind LyX. Contrary to how it is often 
advertised, LyX is
NOT a LaTeX frontend. LaTeX is only one of the formats we natively 
export (though by far

the most important).

The ability to edit the LaTeX would basically involve offering the user 
the LaTeX source
for some fragment of text, then running tex2lyx on whatever the user 
ended up with, then
replacing the relevant fragment of text witih the result. This is still 
harder than it sounds,
since tex2lyx outputs some text (a LyX file, basically), and what we 
really need is the data
structure that LyX would create upon reading that file. This could be 
done, though, by reading
the new text into a temporary Buffer and doing some kind of cut and 
paste behind the scenes.
But there's not really any guarantee that what LyX would export at that 
point would actually
be the same as what the user entered: That kind of 'roundtrip' is a 
goal, not a reality.


Alternatively, the LaTeX the user created could become ERT. But then 
maybe such a user

should just use LaTeX.

Richard



Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Benedict Holland
I have to plug emacs for native lyx support. That application is awesome at
parsing raw Latex. As Richard said, this is the antithesis of why anyone
would use Lyx. I have become a huge fan of seamlessly integrating my latex
documents, mostly tables, using the input command and editing the .tex file
using emacs. Since there is already excellent Latex editors, I don't
understand why it would be desirable for Lyx to incorporate such features.

~Ben

On Tue, Jun 9, 2015 at 10:13 PM, Richard Heck rgh...@lyx.org wrote:

 On 06/09/2015 06:13 PM, Scott Kostyshak wrote:

 On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:

 Hi there,

 I am a new user of Lyx, but a not a beginner in LaTEX.

 Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
 keep providing feedback and if you happen to have the time and
 interests, patches or (if you do not enjoy programming) improvements to
 the documentation would be welcome. It's especially useful to receive
 feedback from new users, in my opinion.

  I couldn’t find in the internet why Lyx doesn’t allow to edit the source
 LaTEX file. It would be an awesome feature and could make Lyx a great rival
 against the other LaTEX editors.
 I like the simplicity of Lyx and the features it provides, but sometimes
 I would like to change or add code directly to the source file.

 Can you please answer this question? Or at least redirect me to a site
 where I can find it?

 This is an often requested feature. See for example:
 http://wiki.lyx.org/LyX/FeaturePoll2#toc10
 http://www.lyx.org/trac/ticket/5260

 The basic answer, from what I understand, is simply that it is *very*
 hard to parse LaTeX. LyX has its own format. It can export that format
 to LaTeX very reliably, but it is extremely difficult to make that a
 seamless two-way communication.


 Yes, the basic problem is that this is highly non-trivial, though not
 impossible, and it isn't
 really compatible with the idea behind LyX. Contrary to how it is often
 advertised, LyX is
 NOT a LaTeX frontend. LaTeX is only one of the formats we natively export
 (though by far
 the most important).

 The ability to edit the LaTeX would basically involve offering the user
 the LaTeX source
 for some fragment of text, then running tex2lyx on whatever the user ended
 up with, then
 replacing the relevant fragment of text witih the result. This is still
 harder than it sounds,
 since tex2lyx outputs some text (a LyX file, basically), and what we
 really need is the data
 structure that LyX would create upon reading that file. This could be
 done, though, by reading
 the new text into a temporary Buffer and doing some kind of cut and paste
 behind the scenes.
 But there's not really any guarantee that what LyX would export at that
 point would actually
 be the same as what the user entered: That kind of 'roundtrip' is a goal,
 not a reality.

 Alternatively, the LaTeX the user created could become ERT. But then maybe
 such a user
 should just use LaTeX.

 Richard




Re: Square brackets with Lyx keyboard

2015-06-09 Thread Guenter Milde
On 2015-06-08, Kevin Spi wrote:
> Dear all,

> There appears to be a bug in the latest Lyx version, 2.1.3, when using an
> Azerty keyboard. Usually when I wish to add square brackets in an equation,
> I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
> that on Azerty keyboards this is necessary.

...

> Note that inserting curly brackets, using Alt+M AltGr+{, works just
> fine. So the problem is not the AltGr. I only notice the problem with
> the square bracket.

> I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
> the same problem.

On my German "qwertz" keyboard, the [ is on Alt-Gr+8 and inserting a [ into
a maths-box works fine with LyX 2.1.3 (under Debian Gnu/Linux) with German
locale.

What is your language setting?

I know, this is not much of a help, but it may narrow down the problem.

> Do any of you have an idea how I can solve this? 

You can define/edit keybindings under Tools>Settings>Edit>keys (or
similar, my LyX speaks German).

Hope this helps,

Günter



Re: Square brackets with Lyx keyboard

2015-06-09 Thread Jürgen Spitzmüller
2015-06-08 23:13 GMT+02:00 Kevin Spi :

> Dear all,
>
> There appears to be a bug in the latest Lyx version, 2.1.3, when using an
> Azerty keyboard. Usually when I wish to add square brackets in an equation,
> I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
> that on Azerty keyboards this is necessary.
>
> I had the problem on one laptop, where I used Lyx 2.1.3. When on another
> laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
> So the bug must have appeared between those versions.
>
> Note that inserting curly brackets, using Alt+M AltGr+{, works just fine.
> So
> the problem is not the AltGr. I only notice the problem with the square
> bracket.
>
> I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
> the same problem.
>
> Do any of you have an idea how I can solve this? Or should I wait for a
> next
> version?
>

This is most probably
http://www.lyx.org/trac/ticket/9057

This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings

\bind "C-M-~S-1""bookmark-save 1"
\bind "C-M-~S-2""bookmark-save 2"
\bind "C-M-~S-3""bookmark-save 3"
\bind "C-M-~S-4""bookmark-save 4"
\bind "C-M-~S-5""bookmark-save 5"
\bind "C-M-~S-6""bookmark-save 6"
\bind "C-M-~S-7""bookmark-save 7"
\bind "C-M-~S-8""bookmark-save 8"
\bind "C-M-~S-9""bookmark-save 9"


by these:


\bind "S-F1""bookmark-save 1"
\bind "S-F2""bookmark-save 2"
\bind "S-F3""bookmark-save 3"
\bind "S-F4""bookmark-save 4"
\bind "S-F5""bookmark-save 5"
\bind "S-F6""bookmark-save 6"
\bind "S-F7""bookmark-save 7"
\bind "S-F8""bookmark-save 8"
\bind "S-F9""bookmark-save 9"


Alternatively, you could also alter the bindings in the preferences dialogs.

HTH
Jürgen


>
> Best regards,
> Kevin
>
>


Re: Square brackets with Lyx keyboard

2015-06-09 Thread Kevin Spi
Jürgen Spitzmüller  lyx.org> writes:

> 
> 
> 2015-06-08 23:13 GMT+02:00 Kevin Spi 
spiri.be>:Dear all,
> There appears to be a bug in the latest Lyx version, 2.1.3, when using an
> Azerty keyboard. Usually when I wish to add square brackets in an equation,
> I use the shortcut Alt+M, followed by AltGr+[. The reason I use AltGr is
> that on Azerty keyboards this is necessary.
> I had the problem on one laptop, where I used Lyx 2.1.3. When on another
> laptop I upgraded from Lyx 2.1.0 to 2.1.3, the problem appeared also there.
> So the bug must have appeared between those versions.
> Note that inserting curly brackets, using Alt+M AltGr+{, works just fine. So
> the problem is not the AltGr. I only notice the problem with the square
bracket.
> I use Lyx 2.1.3 on Windows 8.1 on two Dell Latitude laptops, with exactly
> the same problem.
> Do any of you have an idea how I can solve this? Or should I wait for a next
> version?
> 
> 
> This is most probablyhttp://www.lyx.org/trac/ticket/9057
> 
> This will be fixed in LyX 2.2. You can easily fix this for yourself by
replacing in the file cua.bind these bindings\bind "C-M-~S-1"   
"bookmark-save 1" \bind "C-M-~S-2"    "bookmark-save 2" \bind
"C-M-~S-3"    "bookmark-save 3" \bind "C-M-~S-4"   
"bookmark-save 4" \bind "C-M-~S-5"    "bookmark-save 5" \bind
"C-M-~S-6"    "bookmark-save 6" \bind "C-M-~S-7"   
"bookmark-save 7" \bind "C-M-~S-8"    "bookmark-save 8" \bind
"C-M-~S-9"    "bookmark-save 9" 
> 
> by these:\bind "S-F1"    "bookmark-save 1" \bind
"S-F2"    "bookmark-save 2" \bind "S-F3"   
"bookmark-save 3" \bind "S-F4"    "bookmark-save 4" \bind
"S-F5"    "bookmark-save 5" \bind "S-F6"   
"bookmark-save 6" \bind "S-F7"    "bookmark-save 7" \bind
"S-F8"    "bookmark-save 8" \bind "S-F9"   
"bookmark-save 9"
> 
> Alternatively, you could also alter the bindings in the preferences dialogs.


I was able to correct this by resetting the key binding in the preferences
dialog. Thank you!



Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Ricardo Gaspar
Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX. 
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar




Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Scott Kostyshak
On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:
> Hi there,
> 
> I am a new user of Lyx, but a not a beginner in LaTEX. 

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.

> I couldn’t find in the internet why Lyx doesn’t allow to edit the source 
> LaTEX file. It would be an awesome feature and could make Lyx a great rival 
> against the other LaTEX editors.
> I like the simplicity of Lyx and the features it provides, but sometimes I 
> would like to change or add code directly to the source file.
> 
> Can you please answer this question? Or at least redirect me to a site where 
> I can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.

Best,

Scott


Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Christopher Menzel

Hi Ricardo,

Can you provide an example of a situation where the feature in question 
would be useful? I composed in raw LaTeX for 20 years but since 
switching pretty much full-time to LyX several years ago I have yet to 
find a situation that LyX (plus perhaps a little ERT 
)  couldn't handle with aplomb.


-chris

Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.
I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

Keep the good work!

Best regards,
Ricardo Gaspar






Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Richard Heck

On 06/09/2015 06:13 PM, Scott Kostyshak wrote:

On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:

Hi there,

I am a new user of Lyx, but a not a beginner in LaTEX.

Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
keep providing feedback and if you happen to have the time and
interests, patches or (if you do not enjoy programming) improvements to
the documentation would be welcome. It's especially useful to receive
feedback from new users, in my opinion.


I couldn’t find in the internet why Lyx doesn’t allow to edit the source LaTEX 
file. It would be an awesome feature and could make Lyx a great rival against 
the other LaTEX editors.
I like the simplicity of Lyx and the features it provides, but sometimes I 
would like to change or add code directly to the source file.

Can you please answer this question? Or at least redirect me to a site where I 
can find it?

This is an often requested feature. See for example:
http://wiki.lyx.org/LyX/FeaturePoll2#toc10
http://www.lyx.org/trac/ticket/5260

The basic answer, from what I understand, is simply that it is *very*
hard to parse LaTeX. LyX has its own format. It can export that format
to LaTeX very reliably, but it is extremely difficult to make that a
seamless two-way communication.


Yes, the basic problem is that this is highly non-trivial, though not 
impossible, and it isn't
really compatible with the idea behind LyX. Contrary to how it is often 
advertised, LyX is
NOT a LaTeX frontend. LaTeX is only one of the formats we natively 
export (though by far

the most important).

The ability to edit the LaTeX would basically involve offering the user 
the LaTeX source
for some fragment of text, then running tex2lyx on whatever the user 
ended up with, then
replacing the relevant fragment of text witih the result. This is still 
harder than it sounds,
since tex2lyx outputs some text (a LyX file, basically), and what we 
really need is the data
structure that LyX would create upon reading that file. This could be 
done, though, by reading
the new text into a temporary Buffer and doing some kind of cut and 
paste behind the scenes.
But there's not really any guarantee that what LyX would export at that 
point would actually
be the same as what the user entered: That kind of 'roundtrip' is a 
goal, not a reality.


Alternatively, the LaTeX the user created could become ERT. But then 
maybe such a user

should just use LaTeX.

Richard



Re: Suggestion to improve Lyx for LaTEX users

2015-06-09 Thread Benedict Holland
I have to plug emacs for native lyx support. That application is awesome at
parsing raw Latex. As Richard said, this is the antithesis of why anyone
would use Lyx. I have become a huge fan of seamlessly integrating my latex
documents, mostly tables, using the input command and editing the .tex file
using emacs. Since there is already excellent Latex editors, I don't
understand why it would be desirable for Lyx to incorporate such features.

~Ben

On Tue, Jun 9, 2015 at 10:13 PM, Richard Heck  wrote:

> On 06/09/2015 06:13 PM, Scott Kostyshak wrote:
>
>> On Tue, Jun 09, 2015 at 10:00:25PM +0100, Ricardo Gaspar wrote:
>>
>>> Hi there,
>>>
>>> I am a new user of Lyx, but a not a beginner in LaTEX.
>>>
>> Hi Ricardo, and welcome! It's nice to have a fresh perspective. Please
>> keep providing feedback and if you happen to have the time and
>> interests, patches or (if you do not enjoy programming) improvements to
>> the documentation would be welcome. It's especially useful to receive
>> feedback from new users, in my opinion.
>>
>>  I couldn’t find in the internet why Lyx doesn’t allow to edit the source
>>> LaTEX file. It would be an awesome feature and could make Lyx a great rival
>>> against the other LaTEX editors.
>>> I like the simplicity of Lyx and the features it provides, but sometimes
>>> I would like to change or add code directly to the source file.
>>>
>>> Can you please answer this question? Or at least redirect me to a site
>>> where I can find it?
>>>
>> This is an often requested feature. See for example:
>> http://wiki.lyx.org/LyX/FeaturePoll2#toc10
>> http://www.lyx.org/trac/ticket/5260
>>
>> The basic answer, from what I understand, is simply that it is *very*
>> hard to parse LaTeX. LyX has its own format. It can export that format
>> to LaTeX very reliably, but it is extremely difficult to make that a
>> seamless two-way communication.
>>
>
> Yes, the basic problem is that this is highly non-trivial, though not
> impossible, and it isn't
> really compatible with the idea behind LyX. Contrary to how it is often
> advertised, LyX is
> NOT a LaTeX frontend. LaTeX is only one of the formats we natively export
> (though by far
> the most important).
>
> The ability to edit the LaTeX would basically involve offering the user
> the LaTeX source
> for some fragment of text, then running tex2lyx on whatever the user ended
> up with, then
> replacing the relevant fragment of text witih the result. This is still
> harder than it sounds,
> since tex2lyx outputs some text (a LyX file, basically), and what we
> really need is the data
> structure that LyX would create upon reading that file. This could be
> done, though, by reading
> the new text into a temporary Buffer and doing some kind of cut and paste
> behind the scenes.
> But there's not really any guarantee that what LyX would export at that
> point would actually
> be the same as what the user entered: That kind of 'roundtrip' is a goal,
> not a reality.
>
> Alternatively, the LaTeX the user created could become ERT. But then maybe
> such a user
> should just use LaTeX.
>
> Richard
>
>