ecterrab

10699 Reputation

20 Badges

16 years, 199 days

MaplePrimes Activity


These are replies submitted by ecterrab

@Polovodov 
If you re-execute the worksheet, re-evaluation happens and everything changes again. So no, this approach does not keep the output and equation label in place after re-evaluation. It would be good if some attribute could be attached to that block of output to keep it in place ... Perhaps something to implement in the Maple GUI in future releases.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

@nm@itsme

OK, in v.884 we have sqrt(x)*a -> \sqrt{x} \, a, so with a space after sqrt and also a new keyword: Latex:-Settings(spaceaftersqrt = true); set it to false and no \, is inserted after \sqrt{x}.

By the way, the current default values of these Settings are what seems more appropriate (say, to me), but opinions are welcome. At this moment we have:

The default values of useinputlineprompt (true in a worksheet, false in a document) and useimaginaryunit (the value of interface(imaginaryunit)) are according to the status of things when you first execute Latex. The prompt appears when File -> Export -> LaTeX on a worksheet, but also if you pass the optional argument thisisinput to Latex.

All the other ones are conventional, and I am inclined to change to powersoftrigonometricfunctions = computernotation (will become maplenotation in the next version probably tomorrow) and am in doubt about usecolor = false

Opinions about these defaults and suggestions for new relevant settings are welcome.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

It looks great. The setting is old, not new.

Among the first feedback I got for what was Physics:-Latex, in August, some people said right away they prefer "\\," instead of " " as invisible times. Mainly, other people don't think of this as having a "global adverse effect", so it is not a matter of "is" or "is not" but more of a preference. The same happens with this space after \sqrt{xxx} that the default latex typesetting does not have.

Anyway, I still don't have a definite opinion about such an exception ... I tend to think "the closer to what I see on the worksheet while not interfering with latex typesetting ideas". Somehow this space after \sqrt{xxx} is quite in the middle of those two concepts.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@johan162 
That is an excellent suggestion. Naturally, I cannot tell the future, but concretely see the menu Copy Special -> Copy as LaTeX happening for the next Maple release.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

Hi

Yes this new \! is intentional, to not leave a space between a function name and its arguments, i.e. have y(x) displayed by latex as you see when you input $y(x)$, instead of what you see when you input $y\left(x\righ)$. So:

This space, in this example between y and (x), is, however, configurable. Try Latex:-Settings(leavespaceafterfunctionname = true) and you will see the space there (i.e., no \!), as before. And then if you want to use the mleftright for some other reason, using this option is the way to go.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

The issue was not related to the Maplesoft Physics Updates, but to the download of any Maple Cloud package, only happening in the Windows platform, and not for everybody but only for some Windows users. This problem got noticed - then mentioned - in connection with the Maplesoft Physics Updates because the number of downloads of this package is bigger than the number of downloads of other packages. All that is explained in this Mapleprimes post.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

This is good news and turns unnecessary the workaround for the problem of installing MapleCloud packages that some people experienced, as per comments also in this other Mapleprimes post.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

 

@nm

In the upcoming versions of the Maplesoft Physics Updates, maybe already tomorrow, only Latex, not Physics:-Latex, will be present. As said, these two commands are the same bit-by-bit. The project started as Physics:-Latex, but now that it is essentially finished, it is time to remove the Physics:- duplication.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm

In the upcoming versions of the Maplesoft Physics Updates, maybe already tomorrow, only Latex, not Physics:-Latex, will be present. As said, these two commands are the same bit-by-bit. The project started as Physics:-Latex, but now that the it is essentially finished, it is time to remove the Physics:- duplication.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

Latex is a replica of Physics:-Latex with its own variables. So if you use Latex:-Settings, then expect Latex to follow that, and if you use Physics:-Latex:-Settings expect Physics:-Latex to follow that. We know this is Physics:-Latex but I mentioned that Latex is now also a user-level command - I recommend(ed already) for you to forget about the 'Physics:-' prefix and in that way avoid having these confusions, where you set one of them but mistakenly use the other one.

By the way I just uploaded the Updates v.871 with some other changes and one more tweak about this: powersoftrigonometricfunctions can now be textbook, computer or mixed, and default is now mixed. With mixed, only trig (not arctrig) functions have their powers displayed as powers of the function's name (\cos^3(x) instead \cos(x)^3). The keywords textbook and computer continue representing the same as before. Additionally, usetypesettingcurrentsetting=true turns OFF this specialy different typeset of powers of trig functions.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

@nm 

It is explained in the previous reply, use Latex:-Settings(powersoftrigonometricfunctions = computernotation)

Regarding the notation cos^(-1) for arccos, I already gave my opinion (see above), but would add that for several people that is good notation. To mention but one, Mathematica, that you frequently refer to, tex-translate ArcCos as \cos^{-1}.

So this is not about "this is bad notation" or "this is good notation" but about giving options to accomodate different preferences. Then there is the default - for which I use to collect opinions, take time to think, and then I decide; my opinion so far is also explained above.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm@dharr

That single \rm is now replaced by \mathrm, and the change is distributed for everybody using Maple 2020 within the Maplesoft Physics Updates v.869 and newer. Thanks for pointing out the problem and providing feedback - Best!

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@lemelinm 
After installing any MapleCloud package, I recommend: entirely close Maple. Then open Maple; and in the case of the Maplesoft Physics Updates only after closing and opening try Physics:-Version();

Independent of that, some people using Windows have problems in installing MapleCloud packages, if that is the case see that Mapleprimes post I mentioned in the previous replay (this window, above).

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

In the Maplesoft Physics Updates v.866 and newer, there is a new Latex setting:

> Latex:-Settings(powersoftrigonometricfunctions);   # tentatively running with this as default

              [powersoftrigonometricfunctions = textbooknotation]

With this setting, for trig functions only, things like sin(x)^2 tex-translate as \sin^2 x, and arcsin(x) as \sin^{-1} x. The other value of this new keyword is 'computernotation', in which case everything is as before this change, sin(x)^2 tex-translate as \sin(x)^2 and arcsin(x) as \textrm{arcsin}(x).

No changes to the other variants I mentioned in my previous reply. The question I am still thinking about is the default value, textbook or computer. @max125, I realize you prefer the notation 'computer' but both have advantages and disadvantages - in fact for instance @nm prefers the other notation. This more of a preference, and for me what counts is textbooks, the closer we get to them the better.

Note: any portion of the-long-keyword powersoftrigonometricfunctions works as well, and the right-hand side can also be textbook or computer (without 'notation'), both work.

By the way, to query about all the settings enter Latex:-Settings(), without arguments. To query about one, enter that argument, and to set it enter an equation, for example as in Latex:-Settings(pow = computer);

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@lemelinm 

Input Physics:-Version(); and you will see the version in use. By the way, if you are using Windows and are having problems to install MapleCloud packages, see this other Mapleprimes post.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

3 4 5 6 7 8 9 Last Page 5 of 52