Search found 501 matches

by Dan
Wed May 15, 2019 3:48 pm
Forum: Common Problems
Topic: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?
Replies: 6
Views: 3670

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.
by Dan
Tue May 14, 2019 4:08 pm
Forum: General XML Questions
Topic: XPath to get variable using from linked key using oxy_xpath in PDF css
Replies: 1
Views: 1798

Re: XPath to get variable using from linked key using oxy_xpath in PDF css

Avoid using [1], it means the first item from its parent. Use (..)[1] to select the first item returned by the inner expression. I would write the expression like: //*[contains(@class, " front-page/front-page ")]//*[contains(@class, " topic/category ")]/*[contains(@class, "t...
by Dan
Tue May 14, 2019 3:48 pm
Forum: Common Problems
Topic: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?
Replies: 6
Views: 3670

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Hello Chris,
This is interesting, than you for reporting it. We will try to find a solution.

Many regards,
Dan
by Dan
Tue May 14, 2019 3:43 pm
Forum: Common Problems
Topic: unwanted returns in <codeblock>
Replies: 8
Views: 5912

Re: unwanted returns in <codeblock>

Hello Bridget,

Please try different PDF Readers.
I see that the one from Chrome works completely different from the Acrobat Reader.
The first one sets newlines after each visual line, while Acrobat is putting the entire codeblock on a single line, that is bad also.

Many regards,
Dan
by Dan
Mon May 13, 2019 3:41 pm
Forum: Common Problems
Topic: The space between two task steps is increased when adding an image
Replies: 1
Views: 1031

Re: the space of the

Can you post a DITA snippet?
Thank you,
Dan
by Dan
Mon May 13, 2019 3:41 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF with CSS: back-page
Replies: 1
Views: 1093

Re: PDF with CSS: back-page

We do not have this page defined in the default CSS, but you do have a workaround: You have to use a DITA bookmap and add a backmatter to it. In this backmatter add a reference to a topic that contains the back-page content. That topic must be marked with a special outputclass attribute value, like ...
by Dan
Mon May 13, 2019 3:30 pm
Forum: Common Problems
Topic: Getting a handle on <bookmap> CSS selectors
Replies: 1
Views: 1873

Re: Getting a handle on <bookmap> CSS selectors

Hello Chris,
Thank you for sharing your scripts!
Many regards,
Dan
by Dan
Mon May 13, 2019 3:25 pm
Forum: Common Problems
Topic: add page break as required
Replies: 1
Views: 1030

Re: add page break as required

What transformation are you using? If you are using the CSS based PDF transformation, please see:
https://www.oxygenxml.com/doc/ug-pdf-cs ... e_breaking
The main documentation is here:
https://www.oxygenxml.com/doc/ug-pdf-css/

Many regards,
Dan
by Dan
Wed May 08, 2019 2:41 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Sharing CSS files between authoring window and Chemistry PDF (and WebHelp HTML5?)
Replies: 14
Views: 5517

Re: Sharing CSS files between authoring window and Chemistry PDF (and WebHelp HTML5?)

Oxygen folks - is there a way to run Chemistry PDF with only my CSS applied? I will gladly take responsibility for all counters, page and elements formats, etc.
No, there is no such option. You can try to change the build.xml file from the com.oxygenxml.pdf.css DITA plugin.

Many regards,
Dan
by Dan
Wed May 08, 2019 2:03 pm
Forum: Common Problems
Topic: Are there any tutorials on using DITA with Chemistry?
Replies: 2
Views: 2185

Re: Are there any tutorials on using DITA with Chemistry?

Yes, there is a tutorial about customizing the CSS based DITA transformations. You can read more here:

https://www.oxygenxml.com/doc/ug-pdf-css/

We will redesing the website layout to make this resource easier to find.

Many regards,
Dan
by Dan
Mon May 06, 2019 2:28 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 18
Views: 7681

Re: Hazard Statement Styling

There is no simple way to achieve this by CSS layout, but is an workaround. You should create a series of simple background images for the hazard statement headers. These background images should replace the normal header coloring, and have the left part empty - on this part the danger symbol is pla...
by Dan
Mon May 06, 2019 12:56 pm
Forum: Common Problems
Topic: Can't Style Context Label Text
Replies: 1
Views: 1084

Re: Can't Style Context Label Text

What do you want to accomplish exactly? If your usecase is to create padding to the rest of the elements that follow the label, you can use something like: *[class ~= "task/context"] { padding-left: 1in; } *[class ~= "task/context"] > .tasklabel { margin-left: -1in; } Many regard...
by Dan
Wed Apr 24, 2019 11:21 am
Forum: Common Problems
Topic: Preface
Replies: 5
Views: 2094

Re: Preface

Hello, Please read the topic: https://www.oxygenxml.com/doc/versions/21.0/ug-pdf-css/topics/dcpp_debugging_the_css.html In this way you can find out how to develop your CSS rules. 1. For example, to match a topic child of a chapter, you can expand your selector: *[class ~= "topic/topic"][i...
by Dan
Mon Apr 15, 2019 3:36 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Topic titles in a header
Replies: 9
Views: 3799

Re: Topic titles in a header

You should use the string defined earlier, like: @page { ... @bottom-right { content: string(chaptertitle)" - " "Page " counter(page); font-size: 10pt; } .. } Please read more information about string sets here (this is the userguide for the Oxygen PDF Chemistry engine that is us...
by Dan
Fri Apr 12, 2019 3:54 pm
Forum: Common Problems
Topic: How to change the project language?
Replies: 9
Views: 5093

Re: How to change the project language?

In the PDF there are still i18n problems - we are preparing a nightly build with fixes. Please write on support@oxygenxml.com to get details about how to download it. The idea will be to change the output language just by setting the xml:lang on the root element or by using the 'default.language' tr...
by Dan
Fri Apr 12, 2019 8:30 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to skip numbering for some first topics?
Replies: 1
Views: 1048

Re: How to skip numbering for some first topics?

You may find useful the documentation: https://www.oxygenxml.com/doc/versions/21.0/ug-pdf-css/topics/dcpp_numbering_intro.html The built-in CSS rules are in: [PLUGIN_DIR]/css/print/p-numbering-shallow.css and [PLUGIN_DIR]/css/print/p-numbering-deep.css . The first CSS contains the rules that add a &...
by Dan
Fri Apr 12, 2019 8:19 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Page breaks for chapters and sections titles
Replies: 3
Views: 1919

Re: Page breaks for chapters and sections titles

Can you give details?

Thank you,
Dan
by Dan
Thu Apr 11, 2019 3:06 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Page breaks not working as intended
Replies: 8
Views: 3749

Re: Page breaks not working as intended

We reproduced the problem, and we are now working to find a solution for this. We will let you know when we have a fix for that.
Many regards,
Dan
by Dan
Thu Apr 11, 2019 2:52 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Topic titles in a header
Replies: 9
Views: 3799

Re: Topic titles in a header

You should change the stringset definition for chapter: In your case you can remove the " | " counter(chapter) from the string-set: *[class ~= "map/map"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/title"] { string-set: chaptertitl...
by Dan
Wed Apr 10, 2019 3:55 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Page breaks not working as intended
Replies: 8
Views: 3749

Re: Page breaks not working as intended

What oXygen version are you using?
Can you let us know the Chemistry build ID from the transformation console?

Thank you,
Dan
by Dan
Wed Apr 10, 2019 3:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generation of Table of contents and index page
Replies: 11
Views: 4685

Re: Generation of Table of contents and index page

Hello, Unfortunately putting the chapter number before the page number is not supported by the transformation. But putting a line of dots between the indexterm and the page can be done like this: *[class~="index/formatted-value"], *[class~="index/refid"] { display:inline; } *[cla...
by Dan
Tue Apr 09, 2019 9:05 am
Forum: Common Problems
Topic: Figure and Table numbering
Replies: 12
Views: 8716

Re: Figure and Table numbering

Hello,
Currently there is no way of doing this chapter-wise figure and table numbering. I will record a feature request.
Thank you,
Dan
by Dan
Mon Apr 08, 2019 3:40 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Topic titles in a header
Replies: 9
Views: 3799

Re: Topic titles in a header

@Manohar_1024 Please change the string set definitions, or modify the headers directly, using the @page selectors: https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/dcpp_headers_and_footers.html#ariaid-title9 Please read the entire page. Let me know if the documentation is not clear. Many...
by Dan
Mon Apr 08, 2019 3:30 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generation of Table of contents and index page
Replies: 11
Views: 4685

Re: Generation of Table of contents and index page

It is not clear, you succeeded in having a TOC and Index? If not, please read below: The index section collects all the index terms from the publication and shows them in a sorted tree. To add index to your publication, you just need to add index terms to the topics metadata: <title>The topic title....
by Dan
Fri Apr 05, 2019 12:59 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Topic titles in a header
Replies: 9
Views: 3799

Re: Topic titles in a header

You need to reset that string on chapters of higher level. See that a string-set may define multiple values at once. For example in the default CSS we have a reset of the sectiontitle at each top level chapter title element: .. *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class...
by Dan
Fri Apr 05, 2019 12:53 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generation of Table of contents and index page
Replies: 11
Views: 4685

Re: Generation of Table of contents and index page

Any DITA map generates in the PDF output a table of contents.
If the topics contain indexterms, these are collected and added to an index page at the end of the publication.
Try transforming the DITA samples bundled in oXygen and see the output.

Many regards,
Dan
by Dan
Thu Apr 04, 2019 3:40 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Picture titles formatting with CSS
Replies: 4
Views: 2148

Re: Picture titles formatting with CSS

Hello, First of all, you need to use the CSS inspector over the merged HTML file, as it explained here: https://www.oxygenxml.com/doc/versions/21.0/ug-pdf-css/topics/dcpp_debugging_the_css.html Next, read: https://www.oxygenxml.com/doc/versions/21.0/ug-pdf-css/topics/dcpp_images.html?hl=figures#aria...
by Dan
Mon Apr 01, 2019 9:15 am
Forum: Common Problems
Topic: Extra point dot in Warning
Replies: 3
Views: 1362

Re: Extra point dot in Warning

Please specify the context. Is it a PDF transformation, a Webhelp one, or you get this when editing?
Regards,
Dan