How can I define a style with
FontSize from Section and
CellFrame from Program?
I must have read fontstyle instead of fontsize in your question. Therefore, the approach below shows how to use the complete style of Section with the frame of Program. To achieve what you want, just create a new style and copy any style properties (e.g.
Sidenote: To inherit a style, it's not necessary to copy anything. You can just use
as explained by Mike in the comments.
Go to Format -> Edit Stylesheet... and click on the
Note: When you only want to reuse an existing style, you can just copy the cell without showing the cell expression. I only explained it because we need it in the following and show, what you really copy.
Now you go into your empty local stylesheet and create a new style by entering a name into the text box on top of the page. Click on your created style cell and open it with Ctrl+Shift+E. Paste the contents of the section definition there
Be carefull, that you remove the first line of the original Section cell, so that only your
Now, you do equivalent steps to copy the