Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX macro \prm doesn't work; correction suggested #445

Open
Greg1950 opened this issue Aug 26, 2020 · 1 comment
Open

LaTeX macro \prm doesn't work; correction suggested #445

Greg1950 opened this issue Aug 26, 2020 · 1 comment

Comments

@Greg1950
Copy link
Contributor

Alan Bromborsky sent me a new module for GAlgebra, gprinter.py. Possibly Bromborsky has already passed the new module on to the PyGAE group, but as of this writing it has not yet been included in the galgebra-master.zip file one downloads from [(https://github.com/pygae/galgebra)]. I have written to Bromborsky separately to inform him of the minor issue described below.

gprinter.py defines a string ip_cmds, which in turn defines a LaTeX macro \prm by

$$\newcommand{\prm}[1]{{#1}}$$ .

This command does nothing to its single argument. I believe the correct definition should read

$$\newcommand{\prm}[1]{{#1}'}$$

or

$$\newcommand{\prm}[1]{{#1}^\prime}$$ .

The point of the macro is to affix a superscripted prime mark on the right side of the macro's argument. For example, $\prm{(fg)}$ upon typesetting should appear as (fg)' .

It should be mentioned that the macro in question also appears in the string ip_cmds that appears in printer.py, where it is written as I've suggested.

Greg Grunberg
[email protected]

@eric-wieser
Copy link
Member

eric-wieser commented Aug 26, 2020

The one in printer.py was correct since at least fab9012.

I think this is unique to the gprinter.py file. We've in contact with Alan, and gave that file a preliminary review outside of GitHub in which we found a few bugs. It's unlikely to make it into master for at least another few weeks, and we're considering making it a separate package to galgebra as at this point it functions almost independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants