Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4807
| From | Phil Hammond <phil@hammondo.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | getting data written to notebook to look nice |
| Date | 2011-09-07 09:47 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j47eiv$l5a$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
getting data written to notebook to look nice Phil Hammond <phil@hammondo.org> - 2011-09-07 09:47 +0000
csiph-web