- Join over
**1.5M+ people** - Join over
**100K+ communities** - Free
**without limits** - Create
**your own community**

- Jan 31 21:25
mrob95 on master

change to \(\) for inline math,… add equation* and align* update docs and 2 more (compare)

- Jan 31 21:25mrob95 closed #21
- Jan 31 21:25mrob95 commented #21
- Jan 31 19:03annakirkpatrick opened #21
- Jan 26 14:38
mrob95 on master

- Jan 26 14:34
mrob95 on breathe

Transition sublime and template Update dependencies Add install script and 2 more (compare)

- Jan 15 20:50
mrob95 on master

Create LICENSE (compare)

- Nov 17 2019 14:49
mrob95 on master

Add core context (compare)

- Nov 17 2019 14:28
mrob95 on master

Add install script (compare)

- Nov 01 2019 07:33
mrob95 on master

Update dependencies (compare)

- Oct 27 2019 17:56mrob95 synchronize #19
- Oct 27 2019 17:56
mrob95 on languages

Improve formatting (compare)

- Oct 27 2019 17:03mrob95 synchronize #19
- Oct 27 2019 17:03
mrob95 on languages

Initial multilanguage support load to edit Further improvement and 1 more (compare)

- Oct 27 2019 16:50
mrob95 on master

Transition sublime and template (compare)

- Oct 27 2019 16:17mrob95 closed #20
- Oct 27 2019 16:17
mrob95 on master

Transition core Latex and apps Aliases and 5 more (compare)

- Oct 27 2019 16:16mrob95 synchronize #20
- Oct 27 2019 16:16
mrob95 on breathe

Generalise latex contexts (compare)

- Oct 26 2019 14:06mrob95 opened #20

started up mathfly again for a new semester after spending the holidays tinkering with caster and I was met with "bad grammar - grammar too complex". The last week or two of the previous semester I was also getting this error and I assumed it was because I edited the toml files and probably did something wrong.

is Breathe the newest version of mathfly?

I had saved version of mathfly that i had used prior to a major update a while back and this version does not suffer from this error

perhaps there is some dependencies that I'm missing. Would there be any way of checking?

oldish tablet surface pro 4 with eight gigs of RAM. Would that be an issue do you think?

Just to check, try saying "disable LaTeX" to make sure multiple grammars aren't active at the same time

I disabled latex and now attempting to execute commands using scientific notebook mathfly is responding but the bad grammar error is repeated in the natlink window after every command

that addressed the issues revolving around grammar complexity

yeah that's no problem at all. I'll be switching back to the older version now as its working perfectly

thanks for getting back to me. I know you must be busy going through all that 20 year old natlink python code.

appreciate your work!

btw it would not be difficult to create a scientific notebook grammar for caster rather than having to switch between two grammars, let me know if that would be useful

Hi everyone...I'm a new user to mathfly and have found it really useful. Unfortunately it has suddenly stopped working. I use it with Lyx but now when I'm dictating text, dictation only works in math mode. Otherwise, dragon keeps giving me a message saying "please say that again". Dictation works fine across other apps like Word, Chrome, and even in mathmode in Lyx but not outside of math mode. I'd appreciate any help

Hi! Glad you're finding it useful. Is it just dictation which is not working? Dragon's dictation can be very picky about which apps it does and doesn't work with, I'm not sure I've got a good solution. You could also try the

`say <text>`

command, which should allow you to input text without using Dragon dictation
@mrob95 Not urgent as it only happens a few times an hour, but I wanted to report an error I'm getting with some of the longer strings of math dictation. In particular, I have latex-maths enabled and I'm getting some warnings in the Python output window. The relevant utterances also are simply not entered into my document. Here are a few examples:

`WARNING:engine:Grammar MergeRule(Merged42Ma): failed to decode recognition (u'equals', u'uniform', u'sub', u'one', u'right', u'equals', u'uniform', u'sub', u'two', u'right', u'equals', u'uniform', u'sub', u'three', u'right', u'ampersand', u'equals').`

and

`WARNING:engine:Grammar MergeRule(Merged15Ma): failed to decode recognition (u'alpha', u'plus', u'x-ray', u'minus', u'one', u'right', u'prekris', u'one', u'minus', u'papa', u'right', u'super', u'script', u'eight', u'up', u'plus', u'november', u'minus', u'x-ray', u'minus', u'one', u'right').`

Note that in the first example all of the component words are recognized correctly, while in the second example the word 'bravo' was misrecognized as 'eight up'. I believe even the misrecognition should have yielded a valid sequence of commands, however (if a somewhat silly one).

Like I said, not urgent, but probably a bug worth looking at some point. Let me know if I can provide any more information. Thanks.

Hi Anna, firstly I'm impressed that you can hold such a long string of commands in your head at once ^^. I have always needed a pause for thought after a few commands.

I am not 100% sure that this is the issue, but one thing you could try is bumping up the value of `max_ccr_repetitions`

in settings.toml a bit. I don't think there is any science behind the current maximum of 16. Someone chose it a long time ago as a number that was big enough to rarely cause issues while also not triggering grammar complexity errors, and it stuck.

@mrob95 I think the ability to work with such long strings of commands is just a matter of practice. I dictate a lot of math with a lot of complicated expressions! Also remember that I had been dictating math, with a different system, for about 5 years before I switched to math fly. So, my brain has a lot of practice turning mathematical expressions into spoken words. :-)

I will take a look at the value you mention in settings.toml. Since I have not been able to trigger the errors consistently, it will take a few days to see if it works.

I am wondering if anyone has successfully used math fly as a substitute for handwriting in actually manipulating algebraic expressions?

I'm talking about working through a problem where you are not sure exactly what strategy to use in might need to try multiple things before finding the correct approach. (So, not a situation in a class where you basically know what to do and just have to mechanically follow the steps to do it.)

I have used math fly exclusively for dictating LaTeX. This is great for presenting my work, but I have never been able to use LaTeX when actually solving math problems. I just can't keep track of enough information in my head and/or is too hard to find the information I need in my source document and/or I am distracted by compilation errors.

Of course, LaTeX is (to oversimplify) basically a markup language. LyX and Scientific Notebook are significantly different in that you could at least see the math that you would dictating in real time.

As pain in my hands/wrist/arms/shoulders can make handwriting difficult, I'm considering whether it is worth the time investment (and, for Scientific Notebook, financial investment) to become proficient with mathfly + LyX or Scientific Notebook. I would be interested to hear anyone's experiences.

I'm talking about working through a problem where you are not sure exactly what strategy to use in might need to try multiple things before finding the correct approach. (So, not a situation in a class where you basically know what to do and just have to mechanically follow the steps to do it.)

I have used math fly exclusively for dictating LaTeX. This is great for presenting my work, but I have never been able to use LaTeX when actually solving math problems. I just can't keep track of enough information in my head and/or is too hard to find the information I need in my source document and/or I am distracted by compilation errors.

Of course, LaTeX is (to oversimplify) basically a markup language. LyX and Scientific Notebook are significantly different in that you could at least see the math that you would dictating in real time.

As pain in my hands/wrist/arms/shoulders can make handwriting difficult, I'm considering whether it is worth the time investment (and, for Scientific Notebook, financial investment) to become proficient with mathfly + LyX or Scientific Notebook. I would be interested to hear anyone's experiences.

I definitely think it's possible - I can't write at all and used scientific notebook throughout my degree for all homeworks, exams, etc. I never needed extra time in exams so it's not a huge amount slower than handwriting I don't think. There is still a bit of mental overhead involved in mapping things to commands in your head and fixing errors but it's manageable when the output is rendered instantly.

The LyX grammar is fairly similar to the LateX one so it probably wouldn't be too much of an investment to try it out and see how it fits. Personally I prefer scientific notebook 5.5 but I think the only way to get hold of it is to buy mathtalk - version 6 is much worse for voice input imo. @esc123 has used both I think so they may be able to give an opinion on whether it would be worthwhile.

I'm looking into free alternatives to scientific notebook at the moment, there is a web-based one called mathcha which has potential but I haven't yet found a configuration I like

I also have trouble with working through a problem in latex. But I think with lots of grammar customization it should work. Just the difference going from "x-ray underscore number one" to "x-ray score one" already helped a lot.

I think lyx is much better suited as you can at least see what you are doing. For me the biggest hurdle is actually navigating within a formula in lyx. And I have not found a work around for that yet...

But my Arm pain has pushed me more towards programming and trying to avoid long math derivations... As paper still is for better for me and dictating math seems to be especially straining for my voice...

Would definitely be worth a try I think:

https://www.mackichan.com/index.html?products/dnloadreq55.html~mainFrame

There is none of the "nested boxes" nonsense you get in lyx

@mrob95 @knork_gitlab Thanks for your thoughts! I will probably start by giving LyX a try, as it is free, and I do have some colleagues who have actually used it.

@mrob95 I would definitely be interested to hear if you find a good free alternative to scientific notebook.

@knork_gitlab I don't think grammar customization can entirely solve the problem of it being hard to work through problems in LaTeX. I am so "fluent" in the mathfly LaTeX grammar (with a few personal modifications) that I can transcribe entire mathematical expression/equations from a written form with essentially no pauses. (In fact, I may have broken the grammar complexity rules by dictating too much without pausing. See discussion above.) So, I have absolutely no challenges taking an equation in my head and inputting it to the software. That mapping is so ingrained that I sometimes accidentally use a phonetic alphabet when speaking about math to others. So, I'm really not convinced that needing to remember how to speak expressions is a limiting factor for me. (Granted, I am pretty sure I have literally spent hundreds of hours dictating math with math fly...)

Where I run into trouble is the need to then operate on those expressions to create new expressions. When my expressions get long, it can be really hard to find the parts that I need with in potentially multiple lines of text in my text editor. This is especially true when there are many nested functions and it's hard to keep track of which curly braces go together. I think my issue really is related to the fact that written mathematical notation serves a purpose as essentially spare memory. It is really hard to hold a long expression in working memory, so the notation helps us keep track of all of the parts of an expression/equation. When my expressions get complex enough/long enough that I can't easily read and interpret the LaTeX source, I essentially lose the function of that extra working memory.

This does pose the question of whether an editor that does real-time compilation could be helpful. I suspect it could be, but then we have to worry about how that editor will behave with Dragon. Of course, the math fly commands themselves are just keystrokes and should be fine, but actual mathematical proofs also contain sentences. Having to open the dictation box (or remembering the "say" command) every time I need to place an 'and' between equations sounds pretty terrible. But it might be an idea worth looking into nonetheless.

@mrob95 I would definitely be interested to hear if you find a good free alternative to scientific notebook.

@knork_gitlab I don't think grammar customization can entirely solve the problem of it being hard to work through problems in LaTeX. I am so "fluent" in the mathfly LaTeX grammar (with a few personal modifications) that I can transcribe entire mathematical expression/equations from a written form with essentially no pauses. (In fact, I may have broken the grammar complexity rules by dictating too much without pausing. See discussion above.) So, I have absolutely no challenges taking an equation in my head and inputting it to the software. That mapping is so ingrained that I sometimes accidentally use a phonetic alphabet when speaking about math to others. So, I'm really not convinced that needing to remember how to speak expressions is a limiting factor for me. (Granted, I am pretty sure I have literally spent hundreds of hours dictating math with math fly...)

Where I run into trouble is the need to then operate on those expressions to create new expressions. When my expressions get long, it can be really hard to find the parts that I need with in potentially multiple lines of text in my text editor. This is especially true when there are many nested functions and it's hard to keep track of which curly braces go together. I think my issue really is related to the fact that written mathematical notation serves a purpose as essentially spare memory. It is really hard to hold a long expression in working memory, so the notation helps us keep track of all of the parts of an expression/equation. When my expressions get complex enough/long enough that I can't easily read and interpret the LaTeX source, I essentially lose the function of that extra working memory.

This does pose the question of whether an editor that does real-time compilation could be helpful. I suspect it could be, but then we have to worry about how that editor will behave with Dragon. Of course, the math fly commands themselves are just keystrokes and should be fine, but actual mathematical proofs also contain sentences. Having to open the dictation box (or remembering the "say" command) every time I need to place an 'and' between equations sounds pretty terrible. But it might be an idea worth looking into nonetheless.

@knork_gitlab since you commented that dictating math seems to be straining for your voice, I just wanted to mention that I have found several other ways to handle computer input besides just dictation. The biggest one is the combination of a Tobii gaming eyetracker (the gaming ones are way less expensive and sometimes have better technical specs!) and free software called OptiKey. If you are interested, I have previously shared a screen capture video of me using OptiKey to write code: https://www.youtube.com/watch?v=BWwKV0W7d-k&t=202s

I've also tried and researched a bunch of other assistive technology and happy to talk with anyone who would be interested in my thoughts.

Apologies, I'm significantly late to the discussion. @annakirkpatrick before using Castor and subsequently Mathfly I was toying with LaTeX as a means for getting around my RSI to do some courses in calculus and linear algebra. It didnt take long to run into the same problems as you describe i.e., difficulty editing LaTeX source code and keeping all the elements of the expressions in my head.

To address the latter problem for some time I was trying to get some form of LaTeX live preview going in Vim whereby the LaTeX output would update in real-time. But there was still the problem of editing the source code in amongst all those brackets!

In the end, as I had already purchased MathTalk before this out of desperation (and found basically useless) I already had scientific notebook installed. The combination of scientific notebook + Mathfly was sufficient for me to get through calculus and linear algebra. Im currently working on probability theory for a data science master's and things are going well.

Using scientific notebook for me has solved both the editing mathematics problem and eliminated the need to keep all mathematical expressions in your head as it is displayed readily in SN. Hence I was able to manipulate algebraic expressions while simultaneously trying to work out the problem in question like you described.

The caveat here is that you are probably working on a much higher level of mathematics than me so I can't say for sure whether the same will apply to you. This is especially pertinent given the fairly steep pricetag for MathTalk.

But in short, I have found the combination of MathFly + Scientific Notebook enough for me to successfully navigate my mathematics courses. Whether that's any use for you I don't know.

Regarding Lyx, I tried that as well and I think is definitely usable but I found scientific notebook more convenient and efficient particular relating to cursor navigation. Whether that's worth the pricetag for MathTalk is another question :)

@annakirkpatrick it would be cool to see a video of what you're doing with dictating math. From what you're saying it sounds like you got much better at it than i ever did. I think my problem was partially that I kept switching the names of my commands so never got super used to them.