bugGNU TeXmacs - Bugs: bug #15049, $ not working in maxima session...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15049: $ not working in maxima session with "Mathematical Input"

Submitted by:  Gilles Schintgen <ggs>
Submitted on:  Thu 24 Nov 2005 01:45:20 PM UTC  
Votes:  5  
 
Category: PluginsPriority: 5 - Normal
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Miguel de Benito <mdbenito>
Originator Name: Open/Closed: Closed
Release: 1.0.5.12Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

(Jump to the original submission Jump to the original submission)

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.

Miguel de Benito <mdbenito>
Project MemberIn charge of this item.
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:

Miguel de Benito <mdbenito>
Project MemberIn charge of this item.
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.

Francois Genolini <fgenolini>
Fri 25 Nov 2005 08:42:45 PM UTC, comment #8:

Thanks for the workaround!

Gilles Schintgen <ggs>
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).

Francois Genolini <fgenolini>
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 ;-)

Francois Genolini <fgenolini>
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.

Gilles Schintgen <ggs>
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?

Francois Genolini <fgenolini>
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

Francois Genolini <fgenolini>
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.

Gilles Schintgen <ggs>
Fri 25 Nov 2005 12:27:45 PM UTC, comment #1:

In TeX math mode, $ means enter equation display (see Tex book)

Francois Genolini <fgenolini>
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.

Gilles Schintgen <ggs>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mdbenito (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 5 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 18 Aug 2012 10:48:20 AM UTCmdbenitoStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Fri 17 Aug 2012 03:17:20 PM UTCmdbenitoCategoryUser Interface=>Plugins
      StatusNone=>Need Info
      Assigned toNone=>mdbenito
    Fri 25 Nov 2005 12:49:13 PM UTCggsCarbon-Copy-=>Added ggs

    Back to the top


    Powered by Savane 3.1-cleanup1