My answer assumes that your question is about converting DITA to PDF, RTF, DOCX, ODT, etc (that is, an XSL-FO based output format).


On 02/08/2018 09:24 AM, Grundtvig Nielsen Niels wrote:
Good morning! I have finally managed to argue my way to an update, and I
have recently welcomed a new colleague who is keen to work the same way
as I do … and I continue rescuing content from (good-looking) binary
formats and transforming it into clean, re-usable DITA.



This morning’s question: I’ve just been checking the output from a
series of <task> topics, and it looks to me as though the topic title is
being rendered in a smaller font than labels such as Procedure and What
to do next.

"Procedure" is styled using one of these attribute-set (XXE_install_dir/addon/config/dita/xsl/fo/task.xsl):

---
  <xsl:attribute-set name="steps-informal-title"
                     use-attribute-sets="section-title">
  </xsl:attribute-set>
---

OR

---
  <xsl:attribute-set name="steps-title" use-attribute-sets="section-title">
  </xsl:attribute-set>
---

"What to do next" is styled using this attribute-set:

---
<xsl:attribute-set name="postreq-title" use-attribute-sets="section-title">
  </xsl:attribute-set>
---

Attribute-set section-title is (XXE_install_dir/addon/config/dita/xsl/fo/topic.xsl):

---
  <xsl:attribute-set name="section-title" use-attribute-sets="title">
    <xsl:attribute name="font-size">1.2em</xsl:attribute>
    <xsl:attribute name="line-height">1.11</xsl:attribute>
    <xsl:attribute name="space-before.optimum">1.11em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0.55em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0.6em</xsl:attribute>
  </xsl:attribute-set>
---

Compare this to the attribute-sets used for topic titles (XXE_install_dir/addon/config/dita/xsl/fo/topic.xsl):

---
<xsl:attribute-set name="topic-title" use-attribute-sets="any-topic-title">
    <xsl:attribute name="font-size">1.6em</xsl:attribute>
    <xsl:attribute name="line-height">1</xsl:attribute><!--Not 0.83-->
    <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
    <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
    <xsl:attribute name="border-bottom-color" select="$title-color"/>
    <xsl:attribute name="padding-bottom">0.21em</xsl:attribute>
    <xsl:attribute name="space-before.optimum">0.83em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">0.9em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0.41em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0.5em</xsl:attribute>
  </xsl:attribute-set>

  <xsl:attribute-set name="part-title" use-attribute-sets="topic-title">
    <xsl:attribute name="font-size">1.8em</xsl:attribute>
    <xsl:attribute name="line-height">1</xsl:attribute><!--Not 0.74-->
    <xsl:attribute name="border-bottom-width">4pt</xsl:attribute>
    <xsl:attribute name="space-before.optimum">0.74em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">0.7em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0.37em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.3em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0.4em</xsl:attribute>
  </xsl:attribute-set>

...

<xsl:attribute-set name="section9-title" use-attribute-sets="topic-title">
    <xsl:attribute name="font-size">1.2em</xsl:attribute>
    <xsl:attribute name="line-height">1.11</xsl:attribute>
    <xsl:attribute name="space-before.optimum">1.11em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0.55em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0.6em</xsl:attribute>
  </xsl:attribute-set>
---



Not entirely logical :-}

Indeed.




Is this something I may accidentally have done myself,

May be. In principle, the font size used for a topic title of any kind cannot be smaller than the font size used for "Procedure" and "What to do next".



and if so how do I correct it?

Recommended solution: review your customizations.

Quick and dirty solution: redefine attribute-set "section-title". For example, change the "font-size" to "1em".




--
XMLmind DITA Converter Support List
ditac-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to