Re: (la)tex export as batch process?
- To: mathgroup at smc.vnet.net
- Subject: [mg41275] Re: (la)tex export as batch process?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 12 May 2003 04:35:52 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <b9ibna$pb2$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
the original tip is form Paul Hinton
You can launch the frontend with
frontEndCommand[] :=
Switch[
$OperatingSystem,
"Windows"|"WindowsNT",
ToFileName[{$TopDirectory}, "Mathematica.exe"],
"Unix",
ToFileName[{$TopDirectory, "Executables", $SystemID},
"Mathematica"],
_,
$Failed
]
$FrontEnd =
FrontEndObject[LinkLaunch[frontEndCommand[] <> " -mathlink"]];
than run Export[].
Regards
Jens
Hein Roehrig wrote:
>
> Hi *,
>
> I would like to automate converting a notebook to (la)tex. However,
> doing this in the background or as batch job fails because the TeXSave
> function apparently requires a running frontend.
>
> Is there any way to start a frontend and let it process a notebook
> without any user interaction? I don't mind if it opens windows (an X
> server will be available, Xvfb will do) but there should be no
> interaction needed.
>
> Thanks in advance for any advice,
> Hein