Closed zachjweiner closed 5 years ago
@zachjweiner CellsToTeX
package uses built-in Export
function to export cells to PDF. If you don't want TeX code for individual cells, but whole notebook as one PDF, then you don't need CellsToTeX
package at all. Just use built-in export capabilities. You could also look at relevant Mathematica SE posts for more details and solutions to common problems with PDF export.
@jkuczm What I meat to refer to was the method you describe in the middle of your post to export other cells (e.g. output) to pdf's, cell-by-cell. I've been using this to include pdf's of all cells (including input cells) rather than the code itself just for aesthetic reasons (the fonts aren't quite the same when exporting with LaTeX code). I was wondering if it were possible to export a group of cells in the same way, so that rather than including several consecutive pdf's in my tex document, I can just include one pdf of an entire group of cells. I think this is different from the built-in export capabilities - I don't think those would be intended for having Mathematica code in-line in a tex document, right?
CellsToTeX
under the hood is simply calling Export["somefile.pdf", cellExpression, "PDF", options]
for each cell it exports, so it doesn't offer anything more than built-in Export
. You can put in second argument of Export
list of cells, CellGroup
expression, or whole Notebook
expression to get single PDF.
Is there a way to output all the cells of a notebook as a single pdf file, rather than a collection of pdf's for each cell?