Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- With[{styles = {"Section", "Subsection", "Subsubsection"}},
- SetOptions[EvaluationNotebook[],
- DockedCells -> Cell @ BoxData @ ToBoxes @ Button[
- "align",
- Map[
- Set[
- CurrentValue[#, {CellMargins,1,1}],
- CurrentValue[PreviousCell[#, CellStyle->styles], {CellMargins,1,1}]
- ]&,
- Cells[CellStyle->"Text"]
- ]
- ]
- ]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement