Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4807 > unrolled thread

getting data written to notebook to look nice

Started byPhil Hammond <phil@hammondo.org>
First post2011-09-07 09:47 +0000
Last post2011-09-07 09:47 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  getting data written to notebook to look nice Phil Hammond <phil@hammondo.org> - 2011-09-07 09:47 +0000

#4807 — getting data written to notebook to look nice

FromPhil Hammond <phil@hammondo.org>
Date2011-09-07 09:47 +0000
Subjectgetting data written to notebook to look nice
Message-ID<j47eiv$l5a$1@smc.vnet.net>
With the command:

NotebookWrite[nbQuiz,
 ToBoxes[Row[{probNum, OutputForm[".  "],
    HoldForm @@ {expr} /. List -> Plus}]]]

I am getting the following to appear in the nbQuiz notebook:

1.  x - 5y + 5x + 2y + 6x

which is actually the text I want. What's actually there, apparently,
is:

Row[{1, OutputForm[".  "], \!\(\*
TagBox[
RowBox[{"x", "-",
RowBox[{"5", " ", "y"}], "-",
RowBox[{"5", " ", "x"}], "+",
RowBox[{"2", " ", "y"}], "+",
RowBox[{"6", " ", "x"}]}],
HoldForm]\)}]

But it looks crummy. Question: how do I make it look like math a la
TraditionalForm?

A broader question: I've been making my high school math tests &
quizzes (up through Calculus) for years using LaTeX and am trying to
convert to Mathematica where I think I can generate multiple versions
with solutions, plots, and so on. However this is going very slowly; a
few hours just to get the next tiny step. Is there a Mathematica
reference that is oriented rather specifically toward what I'm trying
to do? Any advice would be greatly appreciated.

P Hammond

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web