Search found 428 matches

by Dan
Fri Nov 08, 2019 4:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF-CSS issues
Replies: 4
Views: 132

Re: PDF-CSS issues

For point 1 could you post a snippet with the exact XML structure of your table? I noticed you have used rowsep and colsep attributes in your CSS.
by Dan
Fri Nov 08, 2019 4:55 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF-CSS issues
Replies: 4
Views: 132

Re: PDF-CSS issues

For point 2, I used just the selector: *[class ~= "front-page/front-page-title"]:after(1) { content: "January 1, 2019"; } And it worked fine. The page is already defined for the front-page, so just use the :after selector. See also: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_...
by Dan
Fri Nov 08, 2019 4:52 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF-CSS issues
Replies: 4
Views: 132

Re: PDF-CSS issues

For the point 3, please take a look at:
https://www.oxygenxml.com/doc/versions/ ... f4_np5_cbb
It explains how to use the :marker pseudo-class.

For the others, I will come back with details.

Many regards,
Dan
by Dan
Tue Nov 05, 2019 2:10 pm
Forum: Common Problems
Topic: getVariable in plugin com.oxygenxml.pdf.css
Replies: 1
Views: 50

Re: getVariable in plugin com.oxygenxml.pdf.css

Hello, This GitHub project is compatible with older DITA-OT versions (1.8 and 2.0) and is not actively maintained by the Oxygen team. Starting with version 21.0 Oxygen bundles DITA-OT 3.x, whith a modified version of this plugin. If you want to publish with DITA-OT 3.x, we can give you access to a c...
by Dan
Fri Nov 01, 2019 3:01 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to change the margins for the Procedure task label?
Replies: 1
Views: 129

Re: How to change the margins for the Procedure task label?

Hello, For debugging your CSS we recommend using the development tools from a browser. (You can open the .merged.html file from the output folder in the browser.) See: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_debugging_the_css.html#dcpp_debugging_the_css Please use a select...
by Dan
Fri Nov 01, 2019 2:44 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How can I change monospace elements to sans-serif
Replies: 4
Views: 154

Re: How can I change monospace elements to sans-serif

In case you want to replace all fonts in your publication with a single Sans Serif font, you can increase the importance of your CSS rule: * { font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif !important; } In case you want to change the font for all code sections, you should create rules t...
by Dan
Tue Oct 29, 2019 12:37 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to change the default icon in generated PDF
Replies: 3
Views: 95

Re: How to change the default icon in generated PDF

Hello, Please read about fine tuning your CSS using the browser CSS inspectors: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_debugging_the_css.html#dcpp_debugging_the_css The idea is to determine the element or pseudo element that generates the default warning icon, and set it ...
by Dan
Tue Oct 29, 2019 12:34 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to change the default generated text format in PDF
Replies: 2
Views: 74

Re: How to change the default generated text format in PDF

Hello,

I think there is a mistake in your CSS.
I think you need to match both tokens from the CSS class attribute.

Please try:

Code: Select all

*[class ~="sectiontitle"][class ~="tasklabel"] {
    color: blue;
    font-weight:bold;
}
Many regards,
Dan
by Dan
Mon Oct 28, 2019 11:35 am
Forum: Common Problems
Topic: Adding Hyphenation Dictionaries to built-in Oxygen Chemistry
Replies: 1
Views: 121

Re: Adding Hyphenation Dictionaries to built-in Oxygen Chemistry

Hello, Indeed, we need to update the documentation. Please read "Oxygen installation directory" instead of "Chemistry installation directory". So, please follow these steps: 1. Download (https://sourceforge.net/projects/offo/files/) and extract the offo-hyphenation-compiled.zip file. 2. Copy the fop...
by Dan
Fri Oct 25, 2019 3:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Continuous Page Numbering
Replies: 2
Views: 115

Continuous Page Numbering

The page numbers are reset to one in two cases: On the first topic that follows the TOC On the first topic from the index To avoid the page counter being reset, you can use in your customization: *[class ~= "map/map"] > *[class ~= "toc/toc"] + *[class ~= "topic/topic"], *[class ~= "index/groups"] { ...
by Dan
Mon Oct 21, 2019 2:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS String Variables
Replies: 2
Views: 96

Re: CSS String Variables

Hello,
The PDF processor does not support the CSS variables, but it supports LESS (http://lesscss.org/). The extension of the customization file should be .less.
Many regards,
Dan
by Dan
Mon Oct 21, 2019 2:47 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Headers/Footers for Backmatter, Not Frontmatter
Replies: 8
Views: 226

Re: Headers/Footers for Backmatter, Not Frontmatter

You might find useful this topic:

https://www.oxygenxml.com/doc/versions/ ... aid-title5

It shows how to style some topic depending on the role it has in the map.
by Dan
Wed Oct 16, 2019 3:53 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Header Fonts and String Function
Replies: 2
Views: 115

Re: Header Fonts and String Function

Are you using a publishing template (selected in the first page of the DITA transformation scenrio dialog)? Probably the CSS rules from it are more specific. You can use more specific selectors like: @page :left, chapter:left, chapter:first:left { .. } Or you can use the !important specifier: font-f...
by Dan
Tue Oct 15, 2019 2:39 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Formatting of Footers for PDF Output
Replies: 4
Views: 192

Re: Formatting of Footers for PDF Output

Hello,
Please use the property:

Code: Select all

		
@bottom-center {
		....
		white-space:nowrap;
		...
	}
This will make the text bleed out to the left and right space and avoid line breaking. The text will be still centered.

Many regards,
Dan
by Dan
Tue Oct 15, 2019 2:25 pm
Forum: Common Problems
Topic: Indent from second line in case a numbered heading wraps
Replies: 3
Views: 345

Re: Indent from second line in case a numbered heading wraps

Yes. the structure is different for the titles in the main content. You can use a CSS like this one: *[class ~= "topic/topic"] > *[class ~= "topic/title"]:before{ color:red; display:block; position:absolute; top:0; left:0; width:50px; background-color:silver; } *[class ~= "topic/topic"] > *[class ~=...
by Dan
Thu Oct 10, 2019 2:36 pm
Forum: Common Problems
Topic: Indent from second line in case a numbered heading wraps
Replies: 3
Views: 345

Re: Indent from second line in case a numbered heading wraps

There are some limitations in the Chemistry we are trying to solve. Until then, you could try the following CSS snippet: *[class ~= "map/map"][numbering^='deep'] *[class ~= "map/topicref"] > *[class ~= "map/topicmeta"]:before { display:inline-block; background-color: pink; vertical-align: top; } *[c...
by Dan
Thu Oct 10, 2019 11:28 am
Forum: Common Problems
Topic: ::after pseudo-element not working with external links
Replies: 3
Views: 135

Re: ::after pseudo-element not working with external links

Hello Anton, This is caused by a series of built-in CSS selectors that remove the "on page" text that appears after the link text (in case of external links) and are quite specific. The solution is to increase the specificity of your selector, like: *[class ~= "topic/xref"][href]::after, *[class ~= ...
by Dan
Fri Oct 04, 2019 10:13 am
Forum: Common Problems
Topic: Ways to store CSS-accessible book metadata besides <bookmeta>?
Replies: 3
Views: 591

Re: Ways to store CSS-accessible book metadata besides <bookmeta>?

Please read here:
post55679.html#p55679

The idea is to add to the metadata section of the bookmap data elements that expand the needed keys. We are not pushing all the defined keys in the merged map because there are cases of large key pools (thousands).
by Dan
Fri Oct 04, 2019 10:07 am
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 7
Views: 260

Re: Is it possible to access map variables from Customization CSS?

The main condition is to have this key referenced from the content (either topic or map). If you do not have it referenced, you may force a reference by using the topicmeta or bookmeta section of your map and a data element. This has no effect on the published content, but allows the CSS rules to us...
by Dan
Wed Sep 18, 2019 3:45 pm
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 7
Views: 260

Re: Is it possible to access map variables from Customization CSS?

Maybe you can use some XSLT extensions for the webhelp. Please see an example here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wht-task-pt-xslt-import.html The full customization manual is here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wh...
by Dan
Wed Sep 18, 2019 3:37 pm
Forum: Common Problems
Topic: How to modify the pdf properties using CSS Customization
Replies: 2
Views: 109

Re: How to modify the pdf properties using CSS Customization

The title element of a bookmap is quite complex, and contains elements for the book library and an alternate title: <booktitle> <booklibrary>Retro Tools</booklibrary> <mainbooktitle>Main Book Title</mainbooktitle> <booktitlealt>Book Title Alternative</booktitlealt> </booktitle> The builtin CSS uses ...
by Dan
Mon Sep 16, 2019 9:43 am
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 7
Views: 260

Re: Is it possible to access map variables from Customization CSS?

If this simplifies the work for your writers, I think you should go on with this CSS+XPath approach. However, if you plan to publish this to other formats, like WebHelp or plain HTML, you will not benefit of this customization, so please take care.
Many regards,
Dan
by Dan
Mon Sep 16, 2019 9:36 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Suppressing the Number for Parts
Replies: 3
Views: 141

Re: Suppressing the Number for Parts

Please read about changing the numbering using a transformation parameter (args.css.param.numbering) here: https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dcpp_numbering_types.html Another way is shown here (for Chapters, for Parts is similar): https://www.oxygenxml.com/doc/versions/21....
by Dan
Mon Sep 16, 2019 9:32 am
Forum: Common Problems
Topic: Remove Chapter Label and Chapter Numbering
Replies: 1
Views: 84

Re: Remove Chapter Label and Chapter Numbering

Please read about changing the numbering using a transformation parameter (args.css.param.numbering) here: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_numbering_types.html Another way is shown here: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_remove_pref...
by Dan
Fri Aug 23, 2019 9:40 am
Forum: Common Problems
Topic: Transformation to PDF fails (using Chemistry)
Replies: 1
Views: 135

Re: Transformation to PDF fails (using Chemistry)

It looks like transformation is trying to start a chemistry executable that is not embedded into the oXygen installation. This may have two causes: 1. A corrupt chemistry installation is specified in the PATH environment variable. 2. An incorrect chemistry installation is specified in the transforma...
by Dan
Fri Aug 23, 2019 9:31 am
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 357

Re: How to show <othermeta> in PDF transformations?

To forward all the othermeta elements information to the document properties, you can use a this CSS rule:

Code: Select all

*[class ~= "topic/othermeta"][name] {
 		-oxy-pdf-meta-custom: attr(name) attr(content);
}
Many regards,
Dan
by Dan
Thu Aug 22, 2019 1:29 pm
Forum: Common Problems
Topic: Revision tables for bookmaps?
Replies: 1
Views: 154

Re: Revision tables for bookmaps?

Here are some hints: 1. Use a simple table (simpletable DITA element), or a hierarchy of simple tables. As far as I know, these are not counted in the list of tables. 2. The front matter sections are rendered by default without headers. You can read more about the structure and customization possibi...
by Dan
Thu Aug 22, 2019 1:12 pm
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 7
Views: 260

Re: Is it possible to access map variables from Customization CSS?

Hello, Regarding the first issue: The documentation was a bit outdated, thank you for reporting the problem! That topic was referring only to the direct transformation, not to the one based on HTML5. I changed the samples, the documentation will be updated soon. Until that, please used the following...
by Dan
Thu Aug 22, 2019 12:32 pm
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 357

Re: How to show <othermeta> in PDF transformations?

Hello Duncan, I run a test and I changed the XPath expression. You are using the HTML5 based transformation and in this case the othermeta is changed to a div having the topic/othermeta - the example above works for the direct transformation. Here is the updated version: @page :left:right, chapter:f...