Hello. Sorry for having asked in a probably short and unclear way. In fact, I have not gotten so far as to become unsatisfied with the footnote content rendering ... ! (For the record, while a Chicago bibliography uses hanging indentation, according to my information, the content of a Chicago footnote should not have hanging indentation.)

My reference to the footnote style was only because the Chicago footnote style belongs together with the Chicago bibliography style ... So: I was trying to refer to what it DITA is called a <bibliolist>, which occurs in <backmatter>. Thus a Chicago style bibliography referred to from <bibliolist>. I need - or should optimally have - a bibliography, according to the Chicago manual of style, which is frequently used in Humaniora and more. See http://www.chicagomanualofstyle.org/home.html

Anyway, a Chicago bibliography looks like this:

Authors Name1. «The long
   title». Publisher1. 2017
Authors Name2. «The good
   title». Publisher2. 2011
Authors Name3. «The bad
   title». Publisher3. 2013

For the record, I have created my bibliography inside a one column <table>, since XMLmind permits the sorting of tables - but not of lists.

I could imagine that I would need to mark up the author name, for instance like below, in order to give XSL something to work with (e.g. so that it can “move” the author name to the left, to create a intendation:

<entry><text>Author Name</text> <i>The bad title.</i> Publisher3. 2013</entry>

However, in real life, for the moment, each row of the bibliography looks more like this:

   <entry>Author Name <i>The bad title.</i> Publisher3. 2013</entry>

(Thus, I have, for the time being, not marked up the author name.)

If it had been CSS I had to work with, then I could use the entry:first-letter selector to move the first letter e.g. 3em to the left (perhaps after first having created a 3em padding-left).

And, also, I use <table>, but it is possible I should reather have used <simpletable>.

And another issue: Each row of the bibliography should occur “compact”, thus there ought be no big gap between each row. This has, sofar, been another issue for me ...

By the way - and just for the record: My initial idea was to use one column for each part. Thus one <entry> for author, another <entry> for title, another <entry> for publisher, and another one for year and so. And then - if it had been XHTML output - I could just modify the HTML table to look as I wanted. However, that was - indeed - impossible for me in PDF output. So now I am back with a one column table.

Leif Halvard Silli



On 10 Jan 2018, at 12:13, Hussein Shafie wrote:

On 01/10/2018 08:05 AM, Leif Halvard Silli wrote:
DITA seems to me to operate with a Chicago footnote style. However, a
Chicago literature list, with hanging indent, seems impossible, in PDF
output: I cannot find a way - for PDF output - to  create a hanging
indented list for keeping the literature list. Is there some way to do
this?


Sorry but I don't know what is a Chicago footnote style. Anyway, if you just find that footnotes do not look very good, may be it's an Apache FOP problem. See attachments: same footnote first rendered by Apache FOP and then rendered by RenderX XEP.



--> If you want to change the way footnotes are rendered, please customize ditac as explained here:

"2. Customizing the look of the PDF files generated by ditac"
http://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp/manual-6.html#customAttributeSet

You may have to redefine the following XSL template. Excerpts from ditac_install_dir/xsl/fo/miscellaneous.xsl:

---
  <xsl:template match="*[contains(@class,' topic/fn ')]">
    <xsl:if test="not(@id)">
      <fo:footnote>
        <xsl:call-template name="footnoteCallout">
          <xsl:with-param name="footnote" select="."/>
        </xsl:call-template>

        <xsl:call-template name="footnoteBody">
          <xsl:with-param name="footnote" select="."/>
        </xsl:call-template>
      </fo:footnote>
    </xsl:if>
  </xsl:template>
---

where "footnoteCallout" and "footnoteBody" are defined in ditac_install_dir/xsl/fo/body.xsl.

---
  <xsl:attribute-set name="fn-callout">
    <xsl:attribute name="baseline-shift">super</xsl:attribute>
    <xsl:attribute name="font-size">smaller</xsl:attribute>
    <xsl:attribute name="font-weight">normal</xsl:attribute>
    <xsl:attribute name="font-style">normal</xsl:attribute>
    <xsl:attribute name="font-variant">normal</xsl:attribute>
    <xsl:attribute name="color">black</xsl:attribute>
    <xsl:attribute name="text-decoration">none</xsl:attribute>
  </xsl:attribute-set>

  <xsl:template name="footnoteCallout">
    <xsl:param name="footnote" select="''"/>

    <fo:inline xsl:use-attribute-sets="fn-callout">
      <xsl:choose>
        <xsl:when test="$footnote/@callout">
          <xsl:value-of select="$footnote/@callout"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:number count="//*[contains(@class,' topic/fn ')]"
                      level="any" format="(1)" select="$footnote"/>
        </xsl:otherwise>
      </xsl:choose>
    </fo:inline>
  </xsl:template>

 ...MORE...
---

--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to