Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. SetOptions[NotebookSelection[SelectedNotebook[]], CellStyle->"ItemParagraph"]
  2.  
  3. Button["ItemParagraph", FrontEndExecute@FrontEndToken[SelectedNotebook[], "Style", "ItemParagraph"]]
  4.  
  5. SelectionMove[SelectedNotebook[], All, Cell]
  6.  
  7. (
  8. SelectionMove[#, All, Cell];
  9. FrontEndTokenExecute[EvaluationNotebook[], "Style", "Title"]
  10. ) & /@ Cells[CellStyle -> "Section"]
  11.  
  12. (
  13. SelectionMove[#, All, Cell];
  14. MathLink`CallFrontEnd[FrontEnd`SelectionSetStyle[#, "Title"]]
  15. ) & /@ Cells[CellStyle -> "Section"]
  16.  
  17. (
  18. SelectionMove[#, All, Cell];
  19. Experimental`CellStyleNames[#] = "Title";
  20. ) & /@ Cells[CellStyle -> "Section"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement