Search found 408 matches

by Dan
Thu Sep 06, 2018 9:56 am
Forum: Common Problems
Topic: Chemistry chokes on extended-ISO entity
Replies: 3
Views: 1192

Re: Chemistry chokes on extended-ISO entity

To fix this you will need to use a fallback font. If you are using Times New Roman for the entire publication, you may consider adding Symbol as a fallback. In your customization CSS add: *[class ~= "topic/dlentry"] { font-family: "Times New Roman", Symbol; } Or other font that can render the charac...
by Dan
Wed Sep 05, 2018 2:57 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4297

Re: Chemistry: Omit Cover Page and TOC?

I am glad it worked! I added more info about your usecase to the userguide of the DITA CSS PDF plugin, it will be available when we release the next version. The built-in CSS rules contain something like: *[class~='topic/topic'][is-chapter] { -oxy-page-group : start; } The "start" value makes the ch...
by Dan
Tue Sep 04, 2018 3:13 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1740

Re: format-date(current-date()) problem

It looks like Saxon HE is limited by design: https://sourceforge.net/p/saxon/mailman/message/26849522/ The only workaround is to format the date like this: ... content: oxy_xpath("let $cm:= format-date(current-date(), '[MNn]') \ return concat( \ if ($cm= 'January') then 'JAN' else \ if ($cm= 'Februa...
by Dan
Tue Sep 04, 2018 2:52 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1740

Re: format-date(current-date()) problem

Yes, indeed, I tested the expression using the Saxon SA XPath processor, while the Chemistry distribution contains Saxon HE. I will check what happens.

Thank you for the feedback!
Dan
by Dan
Tue Sep 04, 2018 2:14 pm
Forum: Common Problems
Topic: Create a copyright page in PDF output from Chemistry
Replies: 3
Views: 1994

Re: Create a copyright page in PDF output from Chemistry

Yes, it was an incomplete post. Now the details are here: post49050.html#p49050

Dan
by Dan
Tue Sep 04, 2018 12:52 pm
Forum: Common Problems
Topic: Create copyright page
Replies: 8
Views: 3513

Re: Create copyright page

Regular DITA maps do not have the concept of a copyright notice. This is available only in the DITA bookmap structure. If you are constrained to using a regular map and you need to add a copyright page between the front cover and the TOC, use the following technique: In your customization CSS, decla...
by Dan
Tue Sep 04, 2018 12:43 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4297

Re: Chemistry: Omit Cover Page and TOC?

I tested again a snippet from a previous post, and the empty page dissapears if adding the last selector: *[class ~= 'map/map'] > *[class ~= 'toc/toc'] { display:none !important; } *[class ~= 'map/map'] > *[class ~= 'front-page/front-page']{ display:none !important; } *[class~='topic/topic'][is-chap...
by Dan
Tue Sep 04, 2018 12:38 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4297

Re: Chemistry: Omit Cover Page and TOC?

Please add to your customization CSS the following snippet: *[class~='topic/topic'][is-chapter] { -oxy-page-group : auto; } This should fix the page breaking problem. The customization CSS can be referred from the template descriptor, or passed as the args.css parameter to the transformation scenari...
by Dan
Tue Sep 04, 2018 10:39 am
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1740

Re: format-date(current-date()) problem

There is a syntax error in your XPath expression, it misses a comma and you should use singe quotes around the 'ru' token, since the entire expression is already enclosed in double quotes: The correct form is: ... content: oxy_xpath("format-date(current-date(), '[MNn] [Y0001]', 'ru', (), ())"); ... ...
by Dan
Fri Aug 24, 2018 9:04 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Table font size
Replies: 2
Views: 772

Re: CSS-based PDF: Table font size

Hello,

This is caused by a compatibility mode that sets the HTML tables font size to "medium". In fact this should not apply, as the format is HTML 5. I will log a bug about this. Meantime, you should add also this selector:

Code: Select all


*[class ~= "topic/table"] {
font-size: 13px;
}
Many regards,
Dan
by Dan
Thu Aug 23, 2018 12:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG files not scaling properly in PDF publishing
Replies: 3
Views: 863

Re: SVG files not scaling properly in PDF publishing

What scenario are you using to transform your documents? Your SVGs have information about their size? A small sample would be good to determine the fix.

Many regards,
Dan
by Dan
Thu Aug 16, 2018 3:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 12
Views: 2167

Re: Hazard Statement Styling

Hello Mr. Kim, I think you should write your CSS customization rules as: *[class~="hazard-d/hazardstatement"][type="notice"]:before { content: oxy_uppercase(attr(type)); } *[class~="hazard-d/hazardstatement"][type="notice"] { display:block; background-color:blue; border-bottom: 2pt solid; padding:0....
by Dan
Thu Aug 16, 2018 3:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning
Replies: 3
Views: 925

Re: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning

The selectors you pointed to apply to the WYSYWIG PDF transformation only. In the HTML based transformation, the intermediate merged DITA map is transformed to HTML5 using the DITA-OT built-in support, so the generation of the static strings (the labels for chapters, parts, figures, tables, notes, e...
by Dan
Tue Aug 07, 2018 10:49 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Changes to DPI
Replies: 4
Views: 1039

Re: CSS-based PDF: Changes to DPI

Hello, What image format are you using? Can you send us a sample image file? You are using it in the topic content, or to decorate the page background or headers? We have tested with PNG images (created with GIMP) and it works fine. For more information see the "Image Resolution" section from https:...
by Dan
Tue Jul 31, 2018 4:22 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Apply formatting to first column of table based on "otherprops" attribute value
Replies: 6
Views: 1124

Re: Apply formatting to first column of table based on "otherprops" attribute value

Hello Paul, Fist you should use instead of "otherprops" attribute the "outputclass" attribute. The "otherprops" attribute is filetered out during the processing of the merged map. You can use the oXygen refactoring actions to make this change (or a simple find/replace in files across the project). I...
by Dan
Fri Jun 29, 2018 2:31 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF Bookmarks - Bookmaptitlealt duplicated - DITA Map PDF - based on DITA & CSS (WYSIWYG)
Replies: 4
Views: 1046

Re: PDF Bookmarks - Bookmaptitlealt duplicated - DITA Map PDF - based on DITA & CSS (WYSIWYG)

I understand that you need in fact the title of the product to be placed a the top of the bookmarks tree. The booktitlealt is duplicated by the transformation process in the TOC structure so that it can be shown there if needed. Your selector matches both the element from the front page and the one ...
by Dan
Fri Jun 29, 2018 12:46 pm
Forum: Common Problems
Topic: Figure and Table numbering
Replies: 12
Views: 3372

Re: Figure and Table numbering

There are two solutions: 1. You are using the pdf-css-html5 transformation. With this you should get automatically the numbers of the tables before the table titles, with no change in your CSS file. However, I just learned that there is a "com.oxygenxml.html.custom" plugin in the DITA-OT directory t...
by Dan
Fri Jun 29, 2018 11:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Populating <bookmap> element attributes on cover page.
Replies: 3
Views: 821

Re: Populating <bookmap> element attributes on cover page.

If you plan to reuse styles between the WebHelp output, which is HTML5 based, I recommend to use the DITA to PDF based on HTML5 and CSS.
See the video presentation for details:
https://www.oxygenxml.com/demo/opt.html

Many regards,
Dan
by Dan
Fri Jun 29, 2018 11:28 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF: How do I implement a Last Page Footer different from other pages?
Replies: 5
Views: 1122

Re: PDF: How do I implement a Last Page Footer different from other pages?

Is hard to tell what is wrong. We are not doing XSLT customization but we will try to help you by taking a look at your plugin. Please use the https://www.oxygenxml.com/techSupport.html form to send it to us.

Many regards,
Dan
by Dan
Fri Jun 29, 2018 11:25 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF from ditamap, force pagebreak between topics
Replies: 6
Views: 1336

Re: PDF from ditamap, force pagebreak between topics

The page break processing instructions should be placed inside the topic files, not in the map between topic references.
Many regards,
Dan
by Dan
Fri Jun 29, 2018 10:51 am
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 2255

Re: draft watermark until approved?

I think there is no such class on the body element. You will need to use a more complex strategy. The approved element is located in the bookmeta/bookchangehistory element. <bookmeta> <author>Howe Tuduit</author> <critdates> <created date="1/1/2015"/> <revised modified="3/4/2016"/> <revised modified...
by Dan
Thu Jun 28, 2018 11:16 am
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4297

Re: Chemistry: Omit Cover Page and TOC?

In case you are using the WYSIWIG transformation scenario you can add the template to the file: [DITA-OT-DIR]/plugins/com.oxygenxml.pdf.css/xsl/merged2merged/merged.xsl In case you are using the HTML5 based PDF transformation (not WYSIWYG), this is the recommended transformation now, you may use an ...
by Dan
Thu Jun 28, 2018 10:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Populating <bookmap> element attributes on cover page.
Replies: 3
Views: 821

Re: Populating <bookmap> element attributes on cover page.

The attr() function applies to the element matched by the CSS rule selector. In this case it matches the booktitle. If your attributes are on the root element "bookmap", you will need to use XPath to extract the values from this element. Here is a snippet for this: *[class ~= "bookmap/booktitle"]:af...
by Dan
Tue Jun 26, 2018 11:02 am
Forum: Common Problems
Topic: Vertical text on cover
Replies: 4
Views: 1537

Re: Vertical text on cover

This expression worked for me: :root { string-set: author oxy_xpath('//*[contains(@class, "front-page/front-page")]/*[contains(@class, "map/topicmeta")]/*[contains(@class, "topic/author")]/text()'); } In the map there was: <map> <title>The Art of Bike Repair</title> <topicmeta> <author>John Doe</aut...
by Dan
Mon Jun 25, 2018 4:04 pm
Forum: Common Problems
Topic: Vertical text on cover
Replies: 4
Views: 1537

Re: Vertical text on cover

You can collect the metadata and keep it into a string variable. For example, to collect the value of the "author" element : :root { string-set: author oxy_xpath('//*[contains(@class, "bookmap/bookmeta")]/*[contains(@class, "topic/author")]/text()'); } Please note that the string-set property accept...
by Dan
Mon Jun 25, 2018 12:14 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1844

Re: Customize cover page

See the response from: post48027.html#p48027
by Dan
Mon Jun 25, 2018 12:11 pm
Forum: Common Problems
Topic: Header / Footer equivalents from FO
Replies: 6
Views: 2113

Re: Header / Footer equivalents from FO

Hello Scott, To define multiple string sets for an element, please use a single string-set property with a list of comma separated definitions: :root { string-set: prodname oxy_xpath("//bookmeta//prodinfo/prodname"), prodversion oxy_xpath("//bookmeta//prodinfo/vrmlist/vrm/@version") "." oxy_xpath("/...
by Dan
Thu Jun 21, 2018 4:54 pm
Forum: Common Problems
Topic: image paths in CSS?
Replies: 1
Views: 1057

Re: image paths in CSS?

It is relative to the CSS. Unfortunately, the !important modifier does not work in the page rule. We have an issue on our tracking system, it will be resolved in the next version. I think there is a more specific selector in the p-front-page.css that clears the @top-right page margin box: @page fron...
by Dan
Wed Jun 20, 2018 4:09 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 2094

Re: Tables border distort in pdf output

We fixed the problem, it will enter the next major version.
Let us know if the above CSS snippet is working for you, if not, we can provide a Chemistry PDF CSS processor nightly build.

Thank you for the feedback,
Dan
by Dan
Wed Jun 20, 2018 3:08 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 2094

Re: Tables border distort in pdf output

A better solution is to add to your customization CSS the following rule: *[class~="topic/table"] > *[class~="topic/tgroup"] { table-layout: auto; } This makes the table automatically stretch as much as the columns. We will investigate further the problem with the fixed layout table and specified co...