How to configure a Note element to automatically fill with a

Oxygen general issues.
shuber
Posts: 13
Joined: Tue Aug 27, 2013 5:56 pm

How to configure a Note element to automatically fill with a

Post by shuber »

In Framemaker, when I added a Note to my file, it automatically populated with the <p> element. Now that I'm using Oxygen, I was busy making Notes only to not have any of the note text show up in my PDF - only "NOTE" was displayed. When I went back to the file, I realized that a Note only has <note>, and simply typing in there won't make the text show up in the PDF. Is there a way to configure the Note element to automatically populate with <p> so I don't have to add it each time?
shuber
Posts: 13
Joined: Tue Aug 27, 2013 5:56 pm

Re: How to configure a Note element to automatically fill wi

Post by shuber »

Not sure what happened to my title, but I meant "How to configure a Note element to automatically fill with a <p>"
shuber
Posts: 13
Joined: Tue Aug 27, 2013 5:56 pm

Re: How to configure a Note element to automatically fill wi

Post by shuber »

And while I'm on the subject of configuration, is it possible to configure the table element to display what I want it to (borders, width of columns, no title)? I was instructed to use the table icon in Oxygen to insert tables, and I see there is a way to de-select the checkbox for a title, but it'd be nice not to have to do that each time, and I don't see a place to set up the table attributes before creating the table.
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to configure a Note element to automatically fill wi

Post by Radu »

Hi Susan,

Please see some answers below:
How to configure a Note element to automatically fill with a <p>
The DITA specification does not make it mandatory for a <note> to have a <p> child. And text inserted directly in the note should work just as well when published to PDF using the default PDF publishing based on the DITA Open Toolkit. If it does not work for you, either you have a customization to the DITA Open Toolkit which introduced this bug or you are using another engine to publish to PDF.
But what you could do would be to go to the Oxygen Preferences->"Editor / Templates / Code Templates" page and define a new code template called for example notep with the content:

Code: Select all

<note><p>${caret}</p></note>
.
Then when editing in the Author mode if you press ENTER you should also have the notep available to use.
You can also edit the DITA document type configuration in Oxygen (Preferences->Document Type Association page) and in the Author tab there is a Content Completion tab in which you can remove elements from the content completion list.
Is it possible to configure the table element to display what I want it to (borders, width of columns, no title)? I was instructed to use the table icon in Oxygen to insert tables, and I see there is a way to de-select the checkbox for a title, but it'd be nice not to have to do that each time, and I don't see a place to set up the table attributes before creating the table.
You could use the same idea as above to create a small code template for a certain table structure you are using more often.
Indeed the action for inserting a table available on the toolbar does not (yet) allow you to control certain aspects of table creation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shuber
Posts: 13
Joined: Tue Aug 27, 2013 5:56 pm

Re: How to configure a Note element to automatically fill wi

Post by shuber »

Thank you! I will give that a try.
Post Reply