Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Publish" to pdf

Using Matlab, I would like to create a pdf document summarizing the results of several experiments. Ideally, I'd have one page per experiment with 2 multi-panel figures and a bit of text.

I thought that publish.m would be the way to go, however, publishing to pdf does not support inserting page breaks, and I can neither control the figure quality (which is rather bad), nor the figure size (which means that 2 figures take up the entire page), nor could I stuff the text into headers/footers.

How else could I create a multipage pdf with some control over the layout from within Matlab?

like image 450
Jonas Avatar asked Jan 15 '10 13:01

Jonas


People also ask

What does it mean when you publish a PDF?

Important: Publishing a file makes it visible to everyone on the web.

Can I save a Publisher file as a PDF?

To convert the Publisher file to PDF, first open the file you want to convert. Once open, click the “File” tab in Publisher's ribbon. Next, click “Export” in the left-hand pane. You'll now be in the Create PDF/XPS Document section of the Export options.

Why can't I save a Publisher file as a PDF?

Go to Devices > Printers & Scanners. Deselect the Let Windows manage my default printer option if it's selected. Choose a device under Printers & scanners that isn't your default printer. For example, click on Fax or Microsoft Print to PDF.

What is difference between PDF and XPS?

The main difference between XPS and PDF is that XPS files can be viewed using an XPS Viewer while PDF files can be viewed using Adobe Reader. XPS and PDF are two file formats. XPS is a Microsoft version of PDF. Mac computers and mobile devices do not have built-in XPS viewers.


1 Answers

There exists the Matlab Report Generator Toolbox, which can do that very easy. Of course it costs some money.

You could try to write out some markup text from Matlab and then convert it to PDF using some other tools. Possible converters:

  • Write out LaTeX, then use PdfLaTeX to generate PDF
  • Write out reStructuredText, then use Python docutils to generate PDF
  • Write out DocBook XML, then use any DocBook to PDF converter
  • Write out HTML, then print it with your browser or OpenOffice to PDF.

If you don't want this, have a look at the Matlab documentation. You can specify the image size/resolution for published figures and I think there exists the possibilty to insert line breaks.

like image 114
Wolfgang Ulmer Avatar answered Sep 22 '22 22:09

Wolfgang Ulmer