Search found 501 matches

by Dan
Thu Jun 21, 2018 4:54 pm
Forum: Common Problems
Topic: image paths in CSS?
Replies: 1
Views: 2194

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: 11
Views: 5394

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: 11
Views: 5394

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

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&q...
by Dan
Thu Jun 14, 2018 12:52 pm
Forum: Common Problems
Topic: customize cover page input bottom
Replies: 2
Views: 2692

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...
by Dan
Wed Jun 13, 2018 4:35 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 4577

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

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"> ele...
by Dan
Thu May 31, 2018 2:13 pm
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 2528

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

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

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

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: 20
Views: 12570

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

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: 20
Views: 12570

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

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:non...
by Dan
Fri May 18, 2018 9:20 am
Forum: General XML Questions
Topic: Blank Page after TOC
Replies: 4
Views: 4751

Re: Blank Page after TOC

Hello, I am not sure why they appear, I did not reproduce it. But you should try using: *[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
by Dan
Thu May 17, 2018 3:53 pm
Forum: General XML Questions
Topic: Blank Page after TOC
Replies: 4
Views: 4751

Re: Blank Page after TOC

I think this situation was already solved. You can try to install a new snapshot Chemistry build from: http://mirror.oxygenxml.com/maven-nightly/com/oxygenxml/oxygen-pdf-chemistry/20.1-SNAPSHOT/oxygen-pdf-chemistry-20.1-SNAPSHOT-package.zip See the installation instructions from: https://www.oxygenx...
by Dan
Thu May 17, 2018 3:42 pm
Forum: Common Problems
Topic: Numbering titles
Replies: 1
Views: 1416

Re: Numbering titles

One technique is to put an outputclass on the topicref elements in the map and on the root of the topics you do not want them numbered. Then in CSS match elements having this outputclass and avoid incrementing counters: /* Content */ *[class ~= "topic/topic"][is-chapter][outputclass ~= &qu...
by Dan
Thu May 17, 2018 3:36 pm
Forum: Common Problems
Topic: Place caption below image
Replies: 5
Views: 3093

Re: Place caption below image

Unfortunately the flex CSS layout is not supported by the Chemistry PDF processor. I recommend making a change in the XSLT pipeline. Please locate the file "post-process.xsl" in your oXygen installation (the framewords/dita/DITA-OT2.x/plugins/com.oxygenxml.pdf.css/xsl folder) and add the f...
by Dan
Thu May 17, 2018 11:56 am
Forum: Common Problems
Topic: Styling titles
Replies: 1
Views: 1322

Re: Styling titles

Hello, Try adding the following rule to the customization CSS: *[class ~= "topic/topic"] > *[class ~= "topic/title"]{ margin-top: 10em; background-color: pink; } If it does not work (should create huge spaces before the titles and render them in pink), it means there are other CS...
by Dan
Thu May 10, 2018 2:09 pm
Forum: Common Problems
Topic: How to add a customized PDF cover
Replies: 8
Views: 6111

Re: How to add a customized PDF cover

Hello, If you intend to use the WYSIWYG transformation scenario and you do not have installed a Prince XML PDF CSS processor on your system, please upgrade to the latest Oxygen version. This comes with the Oxygen Chemistry PDF CSS processor embedded and this can be selected from the transformation s...
by Dan
Wed May 09, 2018 10:12 am
Forum: Common Problems
Topic: Link with page number on same page
Replies: 1
Views: 2090

Re: Link with page number on same page

Hello Arnaud, Sorry, there is no support in the PDF processor for this. But wouldn't be confusing for the reader to see that the majority of links have the "(on page XYZ)" suffix and some of the do not? Probably for these links inside the same page it should be "(on this page)".....
by Dan
Wed May 09, 2018 9:39 am
Forum: Common Problems
Topic: Hiding shortdesc in related informations
Replies: 2
Views: 2516

Re: Hiding shortdesc in related informations

The link descriptions coming from the DITA relationship tables or from in-topic related links elements are structured in the merged map as: <related-links class="- topic/related-links "> <linkpool class="- topic/linkpool "> <link class="- topic/link " ... role="fri...
by Dan
Wed May 09, 2018 8:59 am
Forum: General XML Questions
Topic: SVG obhect centering issue
Replies: 2
Views: 2740

Re: SVG obhect centering issue

Hello Anna, Your CSS is good, it works for me when I refer a small-size SVG sample. Can you send us an SVG that exhibits the problem? You can use the technical support form. The lines: margin: auto; display:block; are not necessary, the content of a @top-center page margin box has the property "...
by Dan
Fri May 04, 2018 8:53 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 5427

Re: Add page break to topicref at map level

For clarity I add here an XSL snippet (it should be added to your customization XSL for the PDF2 DITA-OT plugin). It contains a modified copy of the template from the DITA-OT\plugins\org.dita.pdf2\xsl\fo\commons.xsl stylesheet: <xsl:template match="*" mode="commonTopicProcessing"...
by Dan
Wed Apr 11, 2018 12:45 pm
Forum: General XML Questions
Topic: Center image in PDF output by CSS
Replies: 3
Views: 5037

Re: Center image in PDF output by CSS

Yes, there were some delays because of the Orthodox Easter holidays. I've already replied on the private email.

Regards,
Dan
by Dan
Wed Apr 11, 2018 10:07 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customize chapter in toc
Replies: 4
Views: 2129

Re: Customize chapter in toc

Hello, Indeed, the children of the shortdesc are considered blocks. This is a bug - a side effect from the fact we considered the topicmeta elements at any level to be blocks. I corrected it, the fix will enter the next oXygen version. As a workaround, please add to your CSS the following snippet: *...
by Dan
Thu Apr 05, 2018 4:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: hazardstatement output in pdf is distorted
Replies: 2
Views: 1293

Re: hazardstatement output in pdf is distorted

Yes, this is a bug, I will record it in our issue tracker. As a workaround add this to your customization CSS:

Code: Select all


*[class~='hazard-d/hazardstatement'] {
min-width: auto;
}
by Dan
Thu Apr 05, 2018 4:13 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customize chapter in toc
Replies: 4
Views: 2129

Re: Customize chapter in toc

Hello, 1) The following is an example of customizing the font size for the items representing chapters. The chapters are level one topics and are marked in the merged DITA document TOC with the "is-chapter" attribute: *[class ~= "map/topicref"][is-chapter = "true"] > *[...
by Dan
Thu Apr 05, 2018 2:57 pm
Forum: General XML Questions
Topic: Center image in PDF output by CSS
Replies: 3
Views: 5037

Re: Center image in PDF output by CSS

Hello Anna, Check the placement attribute is set to "break" on your images (others than the ones from the fig element) and use the following CSS snippet: /* This centers the title text and the image if the image has the placement attribute set to inline. The inline placement is the the def...