10 votes

Code Indentation in Mathematica 11.3

Here's a quick plug for some stuff in that question I linked. I have it all built into my GitHub so you can load a thing to let your cells be indentable by: ...
b3m2a1's user avatar
  • 46.9k
9 votes

Code Indentation in Mathematica 11.3

GeneralUtilities`HoldPrettyForm Needs["GeneralUtilities`"] HoldPrettyForm[Row[Table[Table[Plot[Sin[i x] Cos[j x], {x, 0, Pi}], {i, 1, 5}], {j, 1, 3}]]] ...
kglr's user avatar
  • 395k
5 votes
Accepted

exporting nb to pdf without images being cropped?

I suggest you embed your graphic in a size-controlled page. For example, displaying these differently sized images in one A4 PDF page. ...
Chris Degnen's user avatar
  • 30.9k
4 votes
Accepted

How to use expression results in Notebook Titles, Chapters, Sub-chapters, etc

Just type your text into the cell, and then where you want your content to depend on another cell, type Dynamic[x] in an inline cell, i.e., a cell you create by ...
Carl Woll's user avatar
  • 131k
4 votes
Accepted

Inserting page break to output cell from code

To insert a pagebreak after each output cell, you can add CellPrint@Cell["", "PageBreak"]; after your Print statements as shown below: ...
dan7geo's user avatar
  • 1,410
4 votes

Code Indentation in Mathematica 11.3

As already said in other answers, this is very subjective, but here a tip I find very useful for coding plots: I put every command on a different line, and I use the comma separator at the beginning ...
Fraccalo's user avatar
  • 6,057
3 votes

PageBreakAbove -> True breaks CellMargins

Update: How to fix the bug I've found where the bug lives: it is the option CellGroupingRules -> {"SectionGrouping", 30} of the built-in ...
Alexey Popkov's user avatar
3 votes
Accepted

How to set width of exported pdf/eps

You can set the PageWidth option inside of the Cell's code. Assuming that a variable cell ...
Alexey Popkov's user avatar
3 votes

Code Indentation in Mathematica 11.3

I have a feeling many are going to find things they don't like slightly about my indentation, and this is totally a subjective question based on preference. I don't think there's a standardized best ...
GenericAccountName's user avatar
2 votes
Accepted

PageBreakAbove -> True breaks CellMargins

tl;dr; fix: ...
Kuba's user avatar
  • 137k
2 votes

exporting nb to pdf without images being cropped?

If you want to see how the images are cropped due to the limited paper width, use the ScreenEnvironment called "Printout" and show the ruler. In the ruler, the tab indicating the limit of the paper ...
andre314's user avatar
  • 18.5k
2 votes
Accepted

Formatting multi-page PDF with large plots and LargeLabels on Landscape orientation

Over the years of the site's existence, questions have regularly arisen about the export of multi-page PDF files, similar to this one, and for all this time an adequate solution without an involvement ...
Alexey Popkov's user avatar
1 vote
Accepted

Exporting a Grid over multiple pages

partition1 is the original data: partition1 = Partition[Table[Style[i, 24, "Times"], {i, 0, 80}], 4]; Because ...
corey979's user avatar
  • 24k
1 vote
Accepted

How to view the print/PDF printable page edge in a Notebook?

1. Printout environment 1.1 window menu In the notebook menu "Format", sub-menu "Screen Environment", it's possible to choose a "Printout" environment. There is no line indicating the edge, but ...
rhermans's user avatar
  • 36.5k

Only top scored, non community-wiki answers of a minimum length are eligible