2
$\begingroup$

I am trying to find a way to append to the TaggingRules for a currently selected cell. This idea is similar to Cell->Cell Tags->Add/Remove Cell Tags, but with fields for a specific set of TaggingRule options.

I've been looking a various posts and documentation--I am overwhelmed with information and not sure where to start. I am hoping someone might suggest a good place to start. Some promising places that I've found are: Documentation Tools by b3m2a1, stackexchange post on changing Cell options, Joy of Tagging, and Tracking Palette States.

My purpose is that I have several co-authors on a set of notebooks. I'd like them to add to TaggingRules in a structured way. For example, the currently selected cell might have

TaggingRules->{"keywords"->{"apples", "fruit"},"anchor"->{"section:food"},"bibtexKey"->"AppleSeedJ:1794"}

I'd like to create a ButtonNotebook or a Palette (or anything of this genre), that has something akin to (making up code to signal my intent, not working code):

Grid[
{
{"Current Key Words", CurrentValue[InputNotebook[],(*???*)]},
{"New Key Word",InputField[Dynamic[newKeyword]]},
{"Location",InputField[Dynamic[anchor]]}
}
]

which would:

  1. Create empty TaggingRules for the selected Cell if that option not set
  2. Find and Dynamically display specific TaggingRules options if it exists
  3. Append the contents of the InputField to the TaggingRules option.

Just a nudge in the right direction will be appreciated.

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.