#How to make long division using latex?

1 messages · Page 1 of 1 (latest)

signal grotto
#

I need to use the TeXit bot to show an example of polynomial division, but i do not know how to make the symbol and put the terms inside/next to/on top of any ideas? thanks

sleek thistle
#

,ctan polynom

smoky archBOT
#

The polynom package implements macros for manipulating polynomials, for example it can typeset long polynomial divisions. The main test case and application is the polynomial ring in one variable with rational coefficients.
​ ​ ​ ​ ​ ​ Sources: /macros/latex/contrib/polynom
Documentation: README, Example of package use, Package documentation
​ ​ ​ ​ ​ ​ Version: 0.19 2017-07-17
​ Contained in: TeX Live as polynom, MiKTeX as polynom
​ ​ ​ ​ ​ ​ ​ Topics: Maths
Read more at CTAN page of the package.

sleek thistle
#

This includes polynomial division

signal grotto
#

How would i use it, sorry i'm quite new to this bot and latex

#

oh just saw the other pdf lol

#

im still confused on how i would actually write it out tho

sleek thistle
#

Ok don't look at the example pdf

#

Look at the documentation

#

For example

signal grotto
#

do i just need to have the usepackage command?

sleek thistle
#

You'll need \usepackage{polynom} in your preamble yes

signal grotto
#

ok so how do i tell the texit bot that or is it the same

sleek thistle
#

,help preamble

smoky archBOT
#
`preamble` command documentation.
Usage

,preamble
,preamble --revert
,preamble --retract
,preamble --reset
,preamble --preset [presetname]
,preamble --replace [code]
,preamble --add [code]
,preamble --remove [code]

Description

With no arguments or flags, displays the preamble used to compile your LaTeX.
The flags may be used to modify or replace your preamble.
This command supports file uploads, the contents of which are treated as [code].

If [code] is provided without a flag, it is added to your preamble.
Note that most preamble modifications must be reviewed by a bot manager.

Flags

​ ​ ​ ​ add: Add code to your preamble, or prompt for new lines to add.
retract: Retract a previously submitted preamble.
​ revert: Switch to your previous preamble
​ ​ reset: Resets your preamble to the default.
​ preset: Replace your preamble with one of our pre-built presets (disabled)
replace: Replaces your preamble with [code], or prompt for the new preamble.
​ remove: Removes all lines from your preamble containing the given text, or prompt for line numbers to remove.

Have more questions?

Visit our support server here to speak to our friendly support team!

signal grotto
#

so would i just type ,preamble \usepackage{polynom}

sleek thistle
#

,preamble --add \usepackage{polynom}

smoky archBOT
#

Preamble extension cancelled, your preamble was not modified.

signal grotto
#

oh ok

#

thank you

sleek thistle
#

And then make sure to type y in response to the prompt

signal grotto
#

ok

#

actually, one more thing

#

how do i set which stage i want it to go to

sleek thistle
#

That's in the documentation as well

signal grotto
#

this?

sleek thistle
#

Yes

#

So you would do \polylongdiv[stage=X]{poly a}{poly b}

#

I think

signal grotto
#

yes thats done the trick

#

thanks!