Search found 398 matches

by Dan
Wed May 23, 2018 4:14 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4136

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

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

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
by Dan
Thu May 17, 2018 3:53 pm
Forum: General XML Questions
Topic: Blank Page after TOC
Replies: 4
Views: 1870

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

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 ~= "no-counters"...
by Dan
Thu May 17, 2018 3:36 pm
Forum: Common Problems
Topic: Place caption below image
Replies: 2
Views: 856

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 following X...
by Dan
Thu May 17, 2018 11:56 am
Forum: Common Problems
Topic: Styling titles
Replies: 1
Views: 675

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 CSS rules that change ...
by Dan
Thu May 10, 2018 2:09 pm
Forum: Common Problems
Topic: How to add a customized PDF cover
Replies: 8
Views: 2723

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

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)"..

Many regards,
Dan
by Dan
Wed May 09, 2018 9:39 am
Forum: Common Problems
Topic: Hiding shortdesc in related informations
Replies: 2
Views: 1236

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="friend" scope="local" type="topic"> <l...
by Dan
Wed May 09, 2018 8:59 am
Forum: General XML Questions
Topic: SVG obhect centering issue
Replies: 2
Views: 1234

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 "text...
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: 2498

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"> <xsl:variable name...
by Dan
Wed Apr 11, 2018 12:45 pm
Forum: General XML Questions
Topic: Center image in PDF output by CSS
Replies: 3
Views: 1491

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

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

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

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"] > *[class ~= "map/topicmeta"] > *[...
by Dan
Thu Apr 05, 2018 2:57 pm
Forum: General XML Questions
Topic: Center image in PDF output by CSS
Replies: 3
Views: 1491

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 default. */ *...
by Dan
Thu Apr 05, 2018 12:31 pm
Forum: Common Problems
Topic: Create a copyright page in PDF output from Chemistry
Replies: 3
Views: 1950

Re: Create a copyright page in PDF output from Chemistry

See the replies from that topic.
Cheers,
Dan
by Dan
Thu Apr 05, 2018 10:06 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add a copyright page to PDF output from Chemistry CSS-PDF transformation
Replies: 1
Views: 675

Re: Add a copyright page to PDF output from Chemistry CSS-PDF transformation

Indeed, a bookmap would be more appropriate for your use case. However, you can add a synthetic page using the following technique. In your customization CSS add the following: @namespace oxy "http://www.oxygenxml.com/extensions/author"; /* Declare a new page. */ @page copyright-notice-page { @top-l...
by Dan
Wed Mar 21, 2018 10:31 am
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 1288

Re: Tracking changes in PDF Output

I am not sure what happens. It would be great if you can send us an example PDF and small DITA topic showing the problem. Please zip them and send them using the technical support form: https://www.oxygenxml.com/techSupport.html

Many regards,
Dan
by Dan
Mon Mar 19, 2018 4:43 pm
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 1288

Re: Tracking changes in PDF Output

Hello Anna, It is possible that the external pdf-css plugin uses other Chemistry processor or other CSSs than the plugin/scenario built in oXygen. See: https://www.oxygenxml.com/doc/versions/20.0/ug-author/topics/preferences-dita-logging.html Please compare the transformation console between the two...
by Dan
Mon Mar 19, 2018 10:07 am
Forum: Common Problems
Topic: Specify max-width
Replies: 6
Views: 2445

Re: Specify max-width

Hello, I added the topicref to a DITA map and it appeared correctly in the TOC of the WYSIWYG transformation. I used the newly released oXygen 20.0. The only problem was the line of dots that connects the topic name to the page number - it has no meaning for the external resources, and it must be re...
by Dan
Thu Mar 15, 2018 12:06 pm
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 1288

Re: Tracking changes in PDF Output

Hello, For the first problem we have no available fix. I have noted as an enhancement request. To remove the footnotes associated to document changes add this snippet to your CSS: oxy-delete, oxy-insert{ float:none; display:none; } If you need to hide the footnotes for the comments, add the oxy-comm...
by Dan
Fri Mar 02, 2018 11:31 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 2498

Re: Add page break to topicref at map level

The "map/topicref" elements from the TOC section have the same @id attribute as the topics they point to in the main content. I recomend to the the following: Change your template to match the "topic/topic" elements. Use the @id attribute of the matched elements to find the corresponding "map/topicr...
by Dan
Thu Feb 22, 2018 12:41 pm
Forum: General XML Questions
Topic: Table styles in CSS (last child)
Replies: 3
Views: 1462

Re: Table styles in CSS (last child)

The CSS selectors from your code sample are matching cells that are at the upper or left side of a separator. In my tests I see only the last cell from the last row having no padding - this is because my table has rowsep and colseps on all rows and cells. I think you simply need to add a fallback CS...
by Dan
Wed Feb 21, 2018 5:33 pm
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 2498

Re: Add page break to topicref at map level

Maybe you can use conrefs? Create a shell topic that has the outputclass set on it that includes the content of the real topic? But maybe dita-users is a better place to find out an answer.
by Dan
Wed Feb 21, 2018 10:05 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 2498

Re: Add page break to topicref at map level

You should move the outputclass attribute to the "topic" element, and change your XSL match to <xsl:template match="*[contains(@class, ' topic/topic ')]">. Avoid matching topicrefs, these go into the TOC section of the publication. Another way is to use the technique discussed here: http://blog.oxyg...
by Dan
Tue Mar 07, 2017 10:07 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 1147

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Please add a white-space property to the "zebra" div, like:

Code: Select all


div[class ~= "zebra"] {
...
white-space:pre-wrap;
...
}
You can read more about this property here:
https://developer.mozilla.org/en/docs/W ... hite-space

Regards,
Dan
by Dan
Fri Feb 17, 2017 10:25 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 1147

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Ok, there are two ways of doing that zebra type of codeblock styling: 1. Modify the index-pass2.js file from the "com.oxygenxml.pdf.css" plugin, adding your JavaScript code. The Prince XML processor is invoked from the build.xml file, in the target with name="prince". You can modfify this target if ...
by Dan
Thu Feb 16, 2017 3:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?
Replies: 2
Views: 708

Re: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?

Hello Justine, You can use the following CSS snippet (it will be included in oXygen 19): @media print { *[class~="topic/topic"] > *[class~="topic/title"] { prince-bookmark-level: 1; -ah-bookmark-level: 1; } *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] { prince-bookmark-l...