Skip to main content
3 of 3
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/

Try to check the following option: File->Printing Settings->Printing Options -> Print cell brackets->True (also available in the Option Inspector under "PrintCellBrackets").

Mathematica graphicsMathematica graphics

To keep syntax coloring etc., please have a look at: Saving a notebook as PDF, preserving syntax highlighting.

Yves Klett
  • 15.7k
  • 5
  • 59
  • 134