Example style and count
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 33
- Joined: Tue Feb 20, 2018 2:51 pm
Example style and count
Post by anna_craneo »
Hi,
I use PDF Chemistry and CSS styling to format my PDFs.
I would like to change my border look for example element, but it doesn't work if I use common CSS border style.
Code looks like this:
I also want to add Example (examplecount) and tried to do like this:
But it doesn't affect the output at all.
I would really appreciate any help!
I use PDF Chemistry and CSS styling to format my PDFs.
I would like to change my border look for example element, but it doesn't work if I use common CSS border style.
Code looks like this:
Code: Select all
*[class~="topic/example"] {
/*See -colors.css*/
display: block;
margin:10px 0;
padding:0.2em;
border: 1px;
border-color: #4B4646;
border-radius: 0 10px;
background-color: #DCF0F7;
}
Code: Select all
/* Reset the counters */
*[class ~= "map/map"] {
counter-reset: page 1 part 0 chapter 0 figcount 0 tablecount 0 examplecount 0;
}
....
@media print {
/*
Put a number before the figure title.
The counter is reset in p-page-titles-and-numbers.css
*/
*[class~="topic/example"] {
counter-increment: examplecount;
}
*[class~="topic/example"] > *[class~="topic/title"]:before {
content: "Example " counter(examplecount) ".";
}
}
I would really appreciate any help!
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Example style and count
Hello,
In order to help us investigate and find a solution, could you please send us some sample files (a minimal DITA Map containing the topic(s) you need to style in the PDF output) and the CSS you are using?
You should zip the files and send the archive to support@oxygenxml.com
Regards,
Costin
In order to help us investigate and find a solution, could you please send us some sample files (a minimal DITA Map containing the topic(s) you need to style in the PDF output) and the CSS you are using?
You should zip the files and send the archive to support@oxygenxml.com
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service