Numbered Headings Render in different font and size

Issue #9 resolved
Former user created an issue

When exporting a page from Advanced page/PDF Export or directly from page using Tools/Export to PDF, the heading numbering is rendered in a different font and at a smaller point size (could be same font and size as standard text, except bold). Numbering works correctly. Pages render correctly in Confluence.

Comments (11)

  1. Wayne Maltby

    Tomas Theunissen added a comment - 09/May/12 1:16 AM

    Is it the numbering that is in a different font/size, the actual heading text or both?

    Response: Only the numbering is in a different font and point size.

  2. Wayne Maltby

    Confluence Version: 3.4.7 Plugin key: nl.avisi.confluence.plugins.numberedheadings Developer: Avisi B.V. Plugin version: 2.1.0

  3. Tomas Theunissen

    I have not had time to check it out yet, but I guess the problem lies with your custom CSS rules for PDF exports.

  4. Tomas Theunissen

    I am able to reproduce it and found out that it is in fact caused by the custom CSS. More specifically the specific heading rules in combination with the following rule:

    p, td, th, table td, table th, li, a, div, span, .panelMacro, .panelMacro td, .panelMacro p {
    font-size: 10pt; line-height: 13pt;
    font-family: "Palatino Linotype", Palatino, serif;
    }

    Numbered Headings adds an additional 'span' tag in the heading like: <h1><span class="nh-number">1. </span>Heading 1</h1>

    The CSS rule above changes the font-size to 10pt, but the specific heading rules have bigger font-sizes. Hence the difference in size. The easiest fix is to remove the 'span' selector from the rule above, like so:

    p, td, th, table td, table th, li, a, div, .panelMacro, .panelMacro td, .panelMacro p {
    font-size: 10pt; line-height: 13pt;
    font-family: "Palatino Linotype", Palatino, serif;
    }

    Let me know if this fixes your problem.

  5. Log in to comment