Latex output problems

Utilisation de Xcas

Modérateur : xcasadmin

XcasEngGuy
Messages : 164
Inscription : mer. janv. 13, 2010 3:20 pm

Latex output problems

Message par XcasEngGuy » sam. mars 17, 2012 6:58 pm

Hello,
I am using xcas to generate and manipulate equations and I would like to include the results in latex document. I have two questions.

1. Is there a way to exclude the xcas commands in a printout?

2. Often two variables multiplied together are close together and read as one variable. Sometimes the output fromxcas puts a small dot between items that are multiplied together. Is there a way to make that happen all the time?

Thanks Matt

alain974
Messages : 104
Inscription : lun. mai 24, 2010 11:15 am

Re: Latex output problems

Message par alain974 » dim. mars 18, 2012 5:58 am

XcasEngGuy a écrit :Is there a way to exclude the xcas commands in a printout?
I guess you would like to exclude the numbers in squares from the document, and do it automatically, am I right? Personally I do it "by hand" from inside the LaTeX editor. :?
XcasEngGuy a écrit :Often two variables multiplied together are close together and read as one variable.
Could you give us examples please? :?:

If you want something like 3 . x instead of 3x, why not go all the way and choose 3 \times x instead? Or are we the only ones in France to use this symbol? :roll:

parisse
Messages : 5894
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Latex output problems

Message par parisse » dim. mars 18, 2012 7:44 am

If you just need one answer translated to latex, then select it (with the mouse or click on the level then Ctrl-A), then Ctrl-T (T for tex, if you don't remember look at the Edit, selection->Latex menuitem), then do Ctrl-V in your latex editor.

XcasEngGuy
Messages : 164
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Latex output problems

Message par XcasEngGuy » dim. mars 18, 2012 9:58 pm

I mean:

multplying x*y*z

comes out as xyz in the latex file. It becomes more of a problem with variables that have more than single letter names.

try eq1:=z=2*x1*y4*3

I get: z=(2x1y4.3)

Matt

parisse
Messages : 5894
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Latex output problems

Message par parisse » lun. mars 19, 2012 8:21 am

I'm adding a \cdot between identifiers.

XcasEngGuy
Messages : 164
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Latex output problems

Message par XcasEngGuy » lun. mars 19, 2012 4:38 pm

Thank you

Répondre