Sat 18 Aug 2012 10:48:20 AM UTC, comment #11:
Rewriting the keyboard mapping is ok, but it has to be done just for maxima sessions:
Adding that to init-maxima.scm after calling plugin-configure to have in-maxima? defined, solves the problem satisfactorily, so I committed it.
=> closed.
|
Fri 17 Aug 2012 03:17:20 PM UTC, comment #10:
I added a comment about this to section on mathematical input in sessions in the docs.
However, there is a way for a plugin to unbind keyboard shortcuts, using kbd-delete-key-binding2 (defined in kernel/gui/kbd-define.scm). In this particular case, the plugin for Maxima might want to do:
And this will disable the $ keybinding. The problem is that it does it so globally, which isn't particularly well behaved. A better solution might be to set the binding to nothing when in-session? and in-math? so:
|
Fri 25 Nov 2005 09:20:03 PM UTC, comment #9:
Maybe the help page on "Session|Mathematical Input" needs to explicitly speak about this workaround, just like section 8.4 of page "Writing Simple Documents" explains how to input \ in text mode.
|
Fri 25 Nov 2005 08:42:45 PM UTC, comment #8:
Thanks for the workaround!
|
Fri 25 Nov 2005 08:23:16 PM UTC, comment #7:
Alternatively you can type
S-F5 $
That is Shift and F5 function key at the same time, then $
this will allow the $ sign in mathematical input mode (as per help page "Writing Simple documents - 8.4" (last line).
|
Fri 25 Nov 2005 08:04:39 PM UTC, comment #6:
I have started the maxima interactive and typed a dummy formula containg a dollar sign $.
I have highlighted the dollar sign, and then copied it using right-click "Edit|Copy".
Then I enter the Mathematical input, and when I need a dollar sign, I right-click and select "Edit|Paste".
This does paste a dollar sign and "fixes" your bug.
There is probably a better solution... I will look into it ;-)
|
Fri 25 Nov 2005 05:03:45 PM UTC, comment #5:
I'll try to be a bit more precise.
When working on a TeXmacs document, hitting the $ key changes to math mode, i.e. the inline equation editor. This is when I'm outside of any interactive sessions.
Now when I open an interactive maxima session, everything works just fine, including the $ key: it displays a "$" in the input line, and output is suppressed, as you have confirmed.
The problem arises at step 2 of my original report. After activating the "Mathematical input" option in the "Session / Input mode" menu, the $ key is no longer having any effect (inside the session!). It neither switches input modes nor does it type a "$" in the input line to suppress output. Since this $ I just typed is completely ignored, maxima doesn't suppress its output. In other words, when "Math input" is active, it's no longer possible to suppress maxima's output.
Since this bug only happens with math input mode, the status line says: "generic maxima math roman 10 blue".
I'm using TeXmacs 1.0.5.12 and Maxima 5.9.2 (gcl) on a Gentoo system.
Thanks for taking care of this issue.
|
Fri 25 Nov 2005 04:22:45 PM UTC, comment #4:
Maybe you mean that pressing the $ key on your keyboard does not actually draw the $ character on your screen.
This would be an entirely different problem.
Does the $ key work everywhere else (command prompt, inside texmacs, etc...).
This might be that your xkeymap has a problem, or that the font that you use for TeXmacs / maxima does not have a glyph for $ (maybe there was some error during the Metafont phase earlier on).
On my configuration, TeXmacs reports that the maxima input area uses the roman 10 blue for input.
What does your TeXmacs status line say?
|
Fri 25 Nov 2005 04:14:16 PM UTC, comment #3:
I have SuSE Linux (9.3) with the latest TeXmacs (1.0.5.12) and the latest maxima (5.9.2) and it all seems to work as designed:
From texmacs, click on "Insert|Session|Maxima"
then type 2 + 3$ (see below %i1 for the transcript); this outputs nothing (as designed), then type % + 3; (see below %i2), this gives the result 8 (see below %o2)
(%i1) 2 + 3$
(%i2) % + 3;
(%o2) 8
As per manual, the first output (%o1) is created, but not displayed, as $ suppresses the output
|
Fri 25 Nov 2005 12:49:13 PM UTC, comment #2:
I'm not sure I'm understanding your comment. I'm aware of the fact that $ is used to enter equations in TeXmacs, but in a maxima session with math input it doesn't seem to do anything at all. (Correct me if I'm wrong.)
In this case the expected behaviour is to obtain a "$" in the input, since this is useful when working with Maxima.
BTW, TeXmacs is great.
|
Fri 25 Nov 2005 12:27:45 PM UTC, comment #1:
In TeX math mode, $ means enter equation display (see Tex book)
|
Thu 24 Nov 2005 01:45:20 PM UTC, original submission:
1. Open a maxima session
2. Switch to mathematical input
3. Try ending a line with "$" to suppress output
You'll notice that nothing happens when pressing "$". Hence it's impossible to suppress output when math input is active.
|