0
$\begingroup$

Using the Mathematica command

Table[BernoulliB[n,X]//TraditionalForm,{n,0,10}] 

I get eleven polynomials which I want to write inside a TeX file with the minimal possible effort. Is there an elegant way to do this so that I can avoid to type each polynomial into the TeX file.

$\endgroup$
8
  • $\begingroup$ UseTexForm onto it. $\endgroup$ Commented Sep 8, 2016 at 10:26
  • $\begingroup$ TeXForm, to be accurate. $\endgroup$ Commented Sep 8, 2016 at 11:01
  • $\begingroup$ I wonder why this does'nt work on my computer. When I use TexForm on, sys, the Bernoulli table there is no evalluatoin $\endgroup$ Commented Sep 8, 2016 at 11:15
  • $\begingroup$ @Szabolcs Yup, a typo; of course it should be TeXForm. $\endgroup$ Commented Sep 8, 2016 at 12:05
  • $\begingroup$ @cyrille.piatecki Did you try as TeXForm /@ Table[BernoulliB[n,X]//TraditionalForm,{n,0,10}]? $\endgroup$ Commented Sep 8, 2016 at 12:19

1 Answer 1

1
$\begingroup$

It was already suggested in the comments to use TeXForm, but you might also like to know that within a Mathematica notebook you can highlight output with your cursor, right click, choose the option "LaTeX" under "Copy As", and then paste into your .tex file.

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.