Search found 60 matches

by bwofficer
Wed Mar 16, 2022 4:30 am
Forum: Styles, Stylesheets and XML
Topic: Further on my mc-auto-number-position problems
Replies: 0
Views: 863

Further on my mc-auto-number-position problems

This is a follow-on to my post "Auto-number margin problems for short vs long numbers, PDFs" ( https://forums.madcapsoftware.com/viewtopic.php?f=10&t=33711 )

I'm experimenting with various ways of positioning heading auto-numbers to find the one that works best when the autonumber at any given ...
by bwofficer
Tue Mar 15, 2022 1:53 am
Forum: Styles, Stylesheets and XML
Topic: Problems styling the first p of first li of a ul
Replies: 3
Views: 2027

Re: Problems styling the first p of first li of a ul

Thanks, Rob

That worked fine. I had to tweak it a little because I'm allowing nested lists and I only want the first para of the first list item of the top level list to be selected, but that was easy enough.

To make it easier to see what effect the CSS was having, I changed the style 'payload' to ...
by bwofficer
Mon Mar 14, 2022 8:50 am
Forum: Styles, Stylesheets and XML
Topic: Problems styling the first p of first li of a ul
Replies: 3
Views: 2027

Re: Problems styling the first p of first li of a ul

I've found that li > p:first-child selects the first para in all list items, as I'd expect.

Then I tried li:first-child > p , expecting it to select all paras in the first list item. It doesn't. Is there some CSS syntax rule that means the pseudo-class :first-child can only be used with the last ...
by bwofficer
Mon Mar 14, 2022 8:29 am
Forum: Styles, Stylesheets and XML
Topic: Problems styling the first p of first li of a ul
Replies: 3
Views: 2027

Problems styling the first p of first li of a ul

I want to style the first paragraph of the first list item in my unordered lists.

I've tried various complex selectors and combinations but nothing works.

Why won't ul li:first-of-type p:first-of-type { MY STYLING HERE; } work?

Or ul li:first-child p:first-child { MY STYLING HERE; } ?


P.S. this ...
by bwofficer
Thu Mar 10, 2022 4:50 am
Forum: Printed Documentation Targets
Topic: Auto-number margin problems for short vs long numbers, PDFs
Replies: 2
Views: 1806

Auto-number margin problems for short vs long numbers, PDFs

My print output style for product notes applies auto-numbering to h2 and h3 headings. h2 is numbered 1, 2, 3... etc. and h3 is numbered n.1, n.2, n.3... etc. (where n is the h2 number).

I've written the CSS and the output looks just fine until the h2 or h3 numbers reach 10. Then the extra digit ...
by bwofficer
Fri Mar 04, 2022 11:11 am
Forum: Styles, Stylesheets and XML
Topic: h1 autonumbering 1,2,3,A,B,C WITHOUT an h1.Appendix class
Replies: 1
Views: 1386

Re: h1 autonumbering 1,2,3,A,B,C WITHOUT an h1.Appendix clas

P.S. Is it possible to link a stylesheet to only PART of a TOC? If so, might it be possible to have the 1, 2, 3 numbered h1 rule in the main stylesheet but have it overridden by an Appendix A, Appendix B, Appendix C numbered h1 in another stylesheet that only applies to the appendices part of the TOC.
by bwofficer
Fri Mar 04, 2022 11:05 am
Forum: Styles, Stylesheets and XML
Topic: h1 autonumbering 1,2,3,A,B,C WITHOUT an h1.Appendix class
Replies: 1
Views: 1386

h1 autonumbering 1,2,3,A,B,C WITHOUT an h1.Appendix class

I'm creating product user manuals as PDFs. I want to number the h1 headings 1,2,3 in the main body but Appendix A, Appendix B, Appendix C in the appendices. I've seen loads of posts on this forum on how to do this but neither of the two main solutions suggested meet all my needs. Is there an ...
by bwofficer
Wed Feb 24, 2021 9:34 am
Forum: Single-Sourcing
Topic: Single-sourcing with PDF and xml file outputs
Replies: 3
Views: 2924

Re: Single-sourcing with PDF and xml file outputs

Thanks, Dave and Doloremipsum

I'll give that a go.

One potential problem is that the diagnostic help information is presented as tables in the user manual and diagnostic manual. Simply outputting that as an additional clean HTML target means I'd have to make sure the table is laid out in a way ...
by bwofficer
Fri Feb 19, 2021 9:42 am
Forum: Styles, Stylesheets and XML
Topic: Outputting as raw text with custom xml tags
Replies: 1
Views: 1141

Outputting as raw text with custom xml tags

If I write an error code guide in Flare (for publishing as a PDF) can I also get Flare to compile the text from the error codes table in that guide and output it as a tagged text or customised xml file that the software engineer can import into his project to ensure the text remains consistent ...
by bwofficer
Fri Feb 19, 2021 9:31 am
Forum: Single-Sourcing
Topic: Single-sourcing with PDF and xml file outputs
Replies: 3
Views: 2924

Single-sourcing with PDF and xml file outputs

I want to single-source error message and corrective actions text for some industrial equipment to ensure they appear identically in:
1. The user manual (PDF)
2. The diagnostics manual (PDF)
3. Online help
4. The on-screen text file (probably xml) which will be given to a software engineer to ...