Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Linebreaks and style when saving as TeX

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32807] Linebreaks and style when saving as TeX
  • From: Johan Simon Seland <johans at ifi.uio.no>
  • Date: Thu, 14 Feb 2002 01:43:21 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I am trying to include a rather small ~50 line notebook in a LaTeX
document. I use "Save as special"->TeX and save the notebook.

When I run latex on the notebook the result is not good.
The main problem is that it is to aggressive inserting linebreaks in the
.tex source file. An expression like

[1] = m[T_,t_] := Position[T,_?(# > t &),1,1][[1]][[1]] - 1 

is broken into three lines. Like this.

\dispSFinmath{
\MathBegin{MathArray}{l}
\mu [\Mvariable{\ScriptCapitalT \_},\Mvariable{t\_}]:=  \\
\noalign{\vspace{0.555556ex}}
\hspace{1.em} \Mfunction{Position}[\ScriptCapitalT ,\_?(\#>t\&),  \\
\noalign{\vspace{0.555556ex}}
\hspace{5.em} 1,1][[1]][[1]]-1\\
\MathEnd{MathArray}
}

I also have some fractions in my notebook. I would like them to be saved
as \frac{foo}{bar} and not (foo)/(bar) in the tex file. Both foo and bar
are a little complicated, so with the ugly linebreaks it becomes
unreadable. I have managed to do this before.Then it happened
automatically.

One third question as well. When I have inserted a line break manually
in the frontend, it is saved as \IndentingNewLine in the tex file. This
macro is undefined, just removing it from the sourcefile solves the
problem.

I am using Mathematica for Students, 4.1 for Linux and I have downloaded
the latest version of Convert (which includes TeXSave) from wolfram.
This problem happens both with the old and the new TeXSave.

--
Regards
Johan Seland



  • Prev by Date: RE: Stumped again on a simple list
  • Next by Date: Re: Understanding the Output
  • Previous by thread: Re: simulating random variables
  • Next by thread: Re: Linebreaks and style when saving as TeX