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$
    – corey979
    Commented Sep 8, 2016 at 10:26
  • $\begingroup$ TeXForm, to be accurate. $\endgroup$
    – Szabolcs
    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$
    – corey979
    Commented Sep 8, 2016 at 12:05
  • $\begingroup$ @cyrille.piatecki Did you try as TeXForm /@ Table[BernoulliB[n,X]//TraditionalForm,{n,0,10}]? $\endgroup$
    – Szabolcs
    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$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.