From: Jim Lambaugh on
Hi guys

I need to include some Mathematica-code in a LaTeX-document. I would
really like the Mathematica-font and all of that to be apparent as
well, which is why I have come to the conclusion that saving my code
as PDF and including it in LaTeX is the best way to go (please correct
me if I am wrong).

Now, the thing is that Mathematica places a header and a footer on
each page. Is there any way to remove that?

Sincerely,
Jim L.

From: Larry Adelston on
Evaluate the following, where <NotebookObject> is the NotebookObject
for the notebook you are exporting:

SetOptions[<NotebookObject>, PageHeaders->{{None,None,None},
{None,None,None}}, PageFooters->{{None,None,None},{None,None,None}}]



On Mar 1, 2010, at 3:44 AM, Jim Lambaugh wrote:

> Hi guys
>
> I need to include some Mathematica-code in a LaTeX-document. I would
> really like the Mathematica-font and all of that to be apparent as
> well, which is why I have come to the conclusion that saving my code
> as PDF and including it in LaTeX is the best way to go (please correct
> me if I am wrong).
>
> Now, the thing is that Mathematica places a header and a footer on
> each page. Is there any way to remove that?
>
> Sincerely,
> Jim L.


From: ragfield on
On Mar 1, 3:44 am, Jim Lambaugh <lamba...(a)gmail.com> wrote:
> Now, the thing is that Mathematica places a header and a footer on
> each page. Is there any way to remove that?

Take a look at Notebook Options > Printing Options > PageHeaders,
PageFooters, etc. in the Option Inspector. You could also "Save
Selection As" instead of "Save As" and that will not include the page
headers/footers.

-Rob

From: Vince Virgilio on
On Mar 1, 4:44 am, Jim Lambaugh <lamba...(a)gmail.com> wrote:
> Hi guys
>
> I need to include some Mathematica-code in a LaTeX-document. I would
> really like the Mathematica-font and all of that to be apparent as
> well, which is why I have come to the conclusion that saving my code
> as PDF and including it in LaTeX is the best way to go (please correct
> me if I am wrong).
>
> Now, the thing is that Mathematica places a header and a footer on
> each page. Is there any way to remove that?
>
> Sincerely,
> Jim L.

Jim,

Select the code cells, then:

File > Save Selection As (PDF)

does not produce headers or footers.

Vince Virgilio

From: Tyler on
Hi Jim:

Depending on what you're trying to include, source code (.m file) or a
document (i.e., a notebook).

For the former: http://en.wikibooks.org/wiki/LaTeX/Packages/Listings

For the latter: https://www.tug.org/texmf-dist/doc/latex/pdfpages/pdfpages.pdf

Hope that helps.

Cheers,

t.



On Mar 1, 4:44 am, Jim Lambaugh <lamba...(a)gmail.com> wrote:
> Hi guys
>
> I need to include some Mathematica-code in a LaTeX-document. I would
> really like the Mathematica-font and all of that to be apparent as
> well, which is why I have come to the conclusion that saving my code
> as PDF and including it in LaTeX is the best way to go (please correct
> me if I am wrong).
>
> Now, the thing is that Mathematica places a header and a footer on
> each page. Is there any way to remove that?
>
> Sincerely,
> Jim L.