Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4049796
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:59:22+00:00 2026-05-20T13:59:22+00:00

By default Notebook[] has a small set of Options : In[4]:= Options[EvaluationNotebook[]] Out[4]= {FrontEndVersion

  • 0

By default Notebook[] has a small set of Options:

In[4]:= Options[EvaluationNotebook[]]

Out[4]= {FrontEndVersion -> 
  "7.0 for Microsoft Windows (32-bit) (February 18, 2009)", 
 StyleDefinitions -> "Default.nb", 
 WindowMargins -> {{0, Automatic}, {Automatic, 0}}, 
 WindowSize -> {616, 537}}

Sometimes I wish to modify Notebook appearance and set additional Options. For example I like to have comments to be Plain rather than Bold:

SetOptions[EvaluationNotebook[], 
 AutoStyleOptions -> {"CommentStyle" -> {FontWeight -> Plain, 
     FontColor -> GrayLevel[0.6`], ShowAutoStyles -> False, 
     ShowSyntaxStyles -> False, AutoNumberFormatting -> False}}]

Now Options[EvaluationNotebook[]] will return also new option I have set.

But sometimes I wish to restore default behavior and delete additional Options. How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:59:23+00:00Added an answer on May 20, 2026 at 1:59 pm

    Igor’s answer is almost right. To remove the options set by

    SetOptions[EvaluationNotebook[], 
     AutoStyleOptions -> {"CommentStyle" -> {FontWeight -> Plain, 
         FontColor -> GrayLevel[0.6`], ShowAutoStyles -> False, 
         ShowSyntaxStyles -> False, AutoNumberFormatting -> False}}]
    

    You need to run

    SetOptions[EvaluationNotebook[], 
     AutoStyleOptions -> {"CommentStyle" -> Inherited}]
    

    But this only works for options that are standard and have a default to inherit (if it’s a cell then from the enclosing section or notebook, if it’s a notebook then from the stylesheet). What if you make up your own option, e.g.

    Protect[HiddenData];
    SetOptions[EvaluationNotebook[], HiddenData -> {"here's a string"}]
    

    I don’t know how to programmatically remove this option.


    Edit:

    Actually, to remove the HiddenData option created above, I can use something like

    NotebookPut[DeleteCases[NotebookGet[EvaluationNotebook[]], 
                            $CellContext`HiddenData -> _], 
                EvaluationNotebook[]]
    

    Edit 2:

    Mr Wizard asked how to remove all user-set notebook options. Assuming that this means all options that can’t be inherited, then I believe that the following should work:

    NotebookPut[
     With[{nb = NotebookGet[EvaluationNotebook[]], opts = Options[Notebook][[All, 1]]}, 
      Prepend[Select[Rest@nb, MemberQ[opts, First[#]] &], First@nb]], 
     EvaluationNotebook[]]
    

    But maybe there are options associated with the StyleSheet that I’ve ignored…

    If he meant how do you get back to your system’s default notebook options – then you can just delete all notebook options:

    NotebookPut[Notebook[First@NotebookGet[EvaluationNotebook[]]], 
                EvaluationNotebook[]]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

By default the webjump hotlist has the following which I use quite often: M-x
The default 64 MB max heap memory can be small for a large Java
Default ASP.NET MVC project has one MapRoute like routes.MapRoute( Default, {controller}/, new { controller
Default, Windows controls don't have DoubleBuffer. When I use it, I can reduce flicker.
The default user registration page in Drupal 7 has fields to enter a username,
Default programs for launching a specific type of file can be configured in windows.
The default widget for ManyToManyFields in django-admin is difficult to use. I can set
By default, wxGrid shows a small ( 10 pixels? ) blank border on the
Default syntax for Header set Expires is: Header set Expires Wed, 21 May 2010
With default view set to agendaWeek . If I load fullCalendar at 11:59PM the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.