I have created an action menu that allows you to change the style of a cell. It works. However, I would like it to dynamically update the action menu "name". I can't get the name to refresh. Anyone have any ideas? Here is my code.
ActionMenu[
Dynamic[CurrentValue[Cell, "CellStyleName"]]
,
Evaluate[
# :> FrontEndTokenExecute[InputNotebook[], "Style", #] & /@ {
"Subtitle", "Section", "Text", "Input", "Subsection",
"DisplayFormula", "DisplayFormulaNumbered"
}
],
Appearance -> "PopupMenu"
]
CurrentValue[Cell, "CellStyleName"]from theCellyou really want it. E.g. when you ust this to change the style of the cell that ActionMenu is in, it will update. – Kuba Oct 08 '15 at 09:24