Suggestions for creating fancy LaTeX math, for example:

86 views
Skip to first unread message

Joe Christensen

unread,
Sep 4, 2017, 4:45:29 PM9/4/17
to PreTeXt support
OK, jing doesn't like my solution.   Does anybody have a suggestion for how to do this LaTeX code in XML?

\[\begin{array}{ccccc}
\deq \frac{Q}{\Delta t} & = & \deq \kappa & \deq A & \deq \frac{\Delta T}{\Delta x} \\
\EqStoryOver{45pt}{the rate at which energy flows}{}
& \EqStoryOver{40pt}{depends on}{}
& \EqStoryOver{50pt}{how well air allows energy to flow,}{}
& \EqStoryOver{50pt}{the size of the oven,}{}
& \EqStoryFrac{75pt}{and the amount the temperature needs to change}{}
                    {across the height of the oven}{}
\end{array}\]


This is my guess, which compiles to a reasonable version (http://physics.thomasmore.edu/ConnectedPhysics/s-story.html)

```
                <table>
                <caption>An example of how the math describes the <q>story-of</q> a physical situation.</caption>
                <tabular>
                        <col width="20%" />
                        <col width="20%" />
                        <col width="20%" />
                        <col width="20%" />
                        <col width="20%" />
                    <row halign="center">
                        <cell><m>\deq \frac{Q}{\Delta t}            </m></cell>
                        <cell><m> =                                 </m></cell>
                        <cell><m> \deq \kappa                       </m></cell>
                        <cell><m> \deq A                            </m></cell>
                        <cell><m> \deq \frac{\Delta T}{\Delta x}    </m></cell>
                    </row>
                    <row halign="center">
                        <cell><line>the rate</line><line>at which</line><line>energy</line><line>flows</line></cell>
                        <cell><line>depends</line><line>on</line></cell>
                        <cell><line>how well</line><line>air allows</line><line>energy to</line><line>flow,</line></cell>
                        <cell><line>the size</line><line>of the</line><line>oven,</line></cell>
                        <cell>
                                <tabular>
                                        <col />
                                        <row bottom="minor"><cell><line>and the</line><line>amount the</line><line>temperature</line><line>needs to</line><line>change</line></cell></row>
                                        <row><cell><line>across the</line><line>height of the</line><line>oven</line></cell></row></tabular>
                                </cell>
                    </row>
                </tabular>
                </table>
```

but jing doesn't like the tabular inside the tabular.

Joe Christensen

unread,
Sep 4, 2017, 4:46:54 PM9/4/17
to PreTeXt support
Sorry:
\newcommand{\deq}{\displaystyle}

Rob Beezer

unread,
Sep 4, 2017, 6:15:23 PM9/4/17
to pretext...@googlegroups.com
Dear Joe,

That looks like a good guess. You could try a "sbsgroup" with two "sidebyside"
having 5 panels each. The problematic tabular could go in the last panel.

But you really are abusing the tabular by using a cell border as a fraction bar.
Perhaps you can think of another way to convey the division? You've hidden it
by using "rate" to describe the first term.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To post to this group, send email to pretext...@googlegroups.com
> <mailto:pretext...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/20f804f1-947c-4e61-95d0-4be953361c13%40googlegroups.com
> <https://groups.google.com/d/msgid/pretext-support/20f804f1-947c-4e61-95d0-4be953361c13%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages