1
$\begingroup$

This question already has an answer here:

paramOskRavan[\[Gamma]_, t_, t0_] := 
Module[{X, Y, Z, P, \[Tau], B, T, N, \[Tau]1}, \[Gamma] == {X[t], Y[t], Z[t]};
T = D[\[Gamma], t]/Simplify[Sqrt[D[\[Gamma], t].D[\[Gamma], t]]];
N = D[T, t]/Simplify[Sqrt[D[T, t].D[T, t]]];
\[Tau] = Simplify[\[Gamma] + N u + T v /. {t -> t0}];
Return[\[Tau]]
]

How do I insert this code into $\LaTeX$, so that it looks like it does in Wolfram Mathematica?

$\endgroup$

marked as duplicate by Szabolcs, dr.blochwave, MarcoB, user9660, jkuczm Mar 8 '16 at 14:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
$\begingroup$

why don't you select your code, right click/ copy as/ lateX?

Doing so you will get: $$ \text {paramOskRavan} (\gamma \_, \text {t$ \_ $}, \text {t0$ \_ $})\t ext { := }\t ext {Module}\left[\{X, Y, Z, P, \tau, B, T, N, \text {$\tau $1}\}, \gamma = \{X (t), Y (t), Z (t)\}; T = \frac {\frac {\partial\gamma} {\partial t}} {\t ext {Simplify}\left[\sqrt {\frac {\partial\gamma} \ {\partial t}.\frac {\partial\gamma} {\partial t}} \r ight]}; N = \frac {\frac {\partial T} {\partial t}} {\t ext {Simplify}\left[\sqrt {\frac {\partial T} {\partial \ t}.\frac {\partial T} {\partial t}} \r ight]};\t au = \text {Simplify}[\gamma + N u + T v\text { /. }\, \{t\to\text {t0}\}];\t ext {Return}[\tau] \r ight] $$

$\endgroup$

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