Search found 395 matches

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: 959

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: 1048

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: 991

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: 3114

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: 780

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: 1013

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: 1238

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: 2079

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: 3982

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: 780

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: 1437

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: 1437

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: 1700

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: 1959

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: 991

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: 1958

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: 1958

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...
by Dan
Wed Jun 20, 2018 2:46 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 1958

Re: Tables border distort in pdf output

The columns have a fixed width specified, something like 30pt, 400px, etc.. The problem is that when they sum up, the result is smaller than the border applied to the table. Until we fix the problem, please use proportional widths as a workaround. For example, if you have colspec width="100pt" colsp...
by Dan
Thu Jun 14, 2018 12:52 pm
Forum: Common Problems
Topic: customize cover page input bottom
Replies: 2
Views: 1200

Re: customize cover page input bottom

In this case I would make an SVG image with the formatted slogan text and colors. Then I would use: @bottom-left { content: " "; background-image:url('slogan.svg'); background-position:50% 50%; background-repeat: no-repeat; } You will need to specify a content, even if empty, otherwise the page marg...
by Dan
Wed Jun 13, 2018 4:35 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1700

Re: Customize cover page

You might find useful the CSS property text-decoration:overline instead of using a border.
by Dan
Wed Jun 13, 2018 4:30 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1700

Re: Customize cover page

Hello Thomas, The :after pseudo elements are "inside" the front-page-title, that is why the top border extends and covers the entire width. I propose the following workaround: - In your DITA Map, locate the <title> element and wrap its content in a <ph outputclass="bordered"> element. <map> <title><...
by Dan
Thu May 31, 2018 2:13 pm
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1138

Re: Page breaks in Glossary

Hello, The glossref elements are on the first level in the DITA map and the publishing process considers them to be chapters. This is a bug. Workarounds: 1. Wrap the glossref elements into a topicref, or: 2. Change the XSL file [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.pd...
by Dan
Thu May 31, 2018 1:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hiding chapter number from selected topics
Replies: 3
Views: 733

Re: Hiding chapter number from selected topics

You can try to use a DITA bookmap instead of DITA map, and wrap the topics you do not need numbered into an appendix element. If the output is still not good, try getting help on the DITA users list: https://groups.google.com/forum/#!forum/dita-ot-users If you decide to use the CSS customizations fr...
by Dan
Wed May 30, 2018 4:31 pm
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1138

Re: Page breaks in Glossary

Ok. Please reproduce with a very small sample, then send it to us using the support form: https://www.oxygenxml.com/contact.html

Many regards,
Dan
by Dan
Wed May 30, 2018 11:48 am
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1138

Re: Page breaks in Glossary

Hello Anna, I could not reproduce the problem using a simple map. Please try to run the default transformation scenario, with no customization: If the page breaks are not appearing it means there are some selectors in your customization CSS that cause this problem. If the page breaks are still appea...
by Dan
Tue May 29, 2018 11:56 am
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 3982

Re: Chemistry: Omit Cover Page and TOC?

Hi, In the next oXygen version there will be extension points for XSLT processing of the merged DITA map. Until then you can try to modify the post-process.xsl file from the DITA-OT that comes with oXygen: [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.pdf.css/xsl/post-process...
by Dan
Tue May 29, 2018 11:28 am
Forum: Common Problems
Topic: Can't style the number of an ordered list, it always remains bold
Replies: 2
Views: 1326

Re: Can't style the number of an ordered list, it always remains bold

Indeed, there is a difference: For the screen is used the :before pseudo element while for the print the :marker pseudo element.
You should use:

Code: Select all


*[class~="topic/ol"] > *[class~="topic/li"]::marker {
font-weight:normal;
}
by Dan
Wed May 23, 2018 4:14 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 3982

Re: Chemistry: Omit Cover Page and TOC?

You could try something like:

Code: Select all



*[class ~= 'map/map'] > map {
display:none !important;
}
*[class ~= 'map/map'] > front-page{
display:none !important;
}
Many regards,
Dan
by Dan
Wed May 23, 2018 3:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: customize PDF output
Replies: 3
Views: 938

Re: customize PDF output

Hello, To remove the chapter labels from the table of contents and titles, please add these selectors to your customization CSS: /* Titles in the TOC. */ *[class ~= "map/topicref"][is-part] > *[class ~= "map/topicmeta"] > *[class ~= "topic/navtitle"]:before{ content:none !important; } *[class ~= "ma...
by Dan
Fri May 18, 2018 9:20 am
Forum: General XML Questions
Topic: Blank Page after TOC
Replies: 4
Views: 1776

Re: Blank Page after TOC

Hello,
I am not sure why they appear, I did not reproduce it. But you should try using:

Code: Select all


 *[class ~= "topic/xref"][href][scope='external']:after,
*[class ~= "topic/link"][href][scope='external']:after {
display:none !important;
}
It should solve the problem.
Best regards,
Dan