docbook-apps

  • 1.  Merge biblioentry data to citation

    Posted 11-27-2018 17:54
    Hi,

    Is there a way to only have a biblioentry once in the bibliography and then
    cite the details multiple times?
    So for example here in
    https://www.chicagomanualofstyle.org/tools_citationguide/citation-guide-1.html

    Something like this? (Though this doesn't work).

    <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    315-16.</para></footnote>......</para>
    ...
    <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    402.</para></footnote>......</para>
    ...
    <bibliography>
    <biblioentry
    xml:id="isbn-9780143111641"><author><surname>Smith</surname><firstname>Zadie</firstname></author><publisher>
    <city>New
    York</city>
    <publishername>Penguin
    Press</publishername></publisher><date>2016</date><biblioid
    class="isbn">9780143111641</biblioid> </biblioentry>
    </bibliography>

    Would produce:

    .....Zadie Smith, Swing Time (New York: Penguin Press, 2016), 315–16...
    .....Zadie Smith, Swing Time (New York: Penguin Press, 2016), 402....

    That way the details only needed edited/updated once.

    Thanks,

    Peter



  • 2.  Re: [docbook-apps] Merge biblioentry data to citation

    Posted 11-28-2018 07:58
    Hi Peter,

    Am Tue, 27 Nov 2018 18:54:04 +0100
    schrieb Peter Fleck <peterfleck@gmail.com>:

    > Is there a way to only have a biblioentry once in the bibliography
    > and then cite the details multiple times?
    > So for example here in
    > https://www.chicagomanualofstyle.org/tools_citationguide/citation-guide-1.html
    >
    > Something like this? (Though this doesn't work).
    >
    > <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    > 315-16.</para></footnote>......</para>
    > ...
    > <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    > 402.</para></footnote>......</para>

    It seems, biblioref would be the appropriate tag for you:

    https://tdg.docbook.org/tdg/5.1/biblioref.html

    With biblioref you can add the attributes "begin", "end", and "units"
    like this:

    <para>See <biblioref begin="315" end="316" units="pages"
    linkend="isbn-9780143111641"/>.</para>

    If you process it with version 1.79.2 of the stylesheets, you will get
    this result:

    See [isbn-9780143111641].

    It seems, the attributes above are unsupported. I think this is a bug
    as I couldn't find any code which uses them. If you want to take them
    into account, you need to write a customization layer.

    One final note about citation. You can use it to reference multiple
    bibliographic entries like this:

    <para> See <citation><biblioref
    linkend="A"/>, <biblioref linkend="B"/></citation>

    which renders as:

    See [A, B].

    (watch for spaces inside <citation>).


    --
    Gruß/Regards,
    Thomas Schraitle



  • 3.  Re: [docbook-apps] Merge biblioentry data to citation

    Posted 11-28-2018 10:57

    Am 28.11.2018 um 08:58 schrieb Thomas Schraitle:
    > Hi Peter,
    >
    > Am Tue, 27 Nov 2018 18:54:04 +0100
    > schrieb Peter Fleck <peterfleck@gmail.com>:
    >
    >> Is there a way to only have a biblioentry once in the bibliography
    >> and then cite the details multiple times?
    >> So for example here in
    >> https://www.chicagomanualofstyle.org/tools_citationguide/citation-guide-1.html
    >>
    >> Something like this? (Though this doesn't work).
    >>
    >> <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    >> 315-16.</para></footnote>......</para>
    >> ...
    >> <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    >> 402.</para></footnote>......</para>
    > It seems, biblioref would be the appropriate tag for you:
    >
    > https://tdg.docbook.org/tdg/5.1/biblioref.html
    >
    > With biblioref you can add the attributes "begin", "end", and "units"
    > like this:
    >
    > <para>See <biblioref begin="315" end="316" units="pages"
    > linkend="isbn-9780143111641"/>.</para>
    >
    > If you process it with version 1.79.2 of the stylesheets, you will get
    > this result:
    >
    > See [isbn-9780143111641].
    >
    > It seems, the attributes above are unsupported. I think this is a bug
    > as I couldn't find any code which uses them. If you want to take them
    > into account, you need to write a customization layer.
    >
    > One final note about citation. You can use it to reference multiple
    > bibliographic entries like this:
    >
    > <para> See <citation><biblioref
    > linkend="A"/>, <biblioref linkend="B"/></citation>
    >
    > which renders as:
    >
    > See [A, B].
    >
    > (watch for spaces inside <citation>).
    >
    I have this form: <citation><biblioref linkend="SB85"/></citation>

    and this biblioentry (shortened)

    <biblioentry xreflabel="Schooley und Baker (1985)"  xml:id="SB85">
       <authorgroup>
           <author><personname><firstname>D.
    A.</firstname><surname>Schooley</surname></personname></author>
           <author><personname><firstname>F.
    C.</firstname><surname>Baker</surname></personname></author>
           <editor><personname><firstname>G.
    A.</firstname><surname>Kerkut</surname></personname></editor>
       </authorgroup>
       <citetitle pubwork="chapter">Juvenile Hormone Biosynthesis</citetitle>
        <citetitle pubwork="book">Comprehensive insect physiology,
    biochemistry, and pharmacology</citetitle>
       <publisher>
          <publishername>Pergamon Press</publishername>
       </publisher>
       <volumenum>7</volumenum>
      <pubdate>1985</pubdate> 
       
    </biblioentry>

    You may add the pagenumbers you want for the individual citation  here:

    <citation><biblioref linkend="SB85"/>p. 405</citation>. You can also add
    to the same place something like "and citations therein".

    Regards

    Bernhard

    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




  • 4.  Re: [docbook-apps] Merge biblioentry data to citation

    Posted 11-28-2018 15:09
    Thanks Thomas. This is the way to go I think.
    I see the comment in the xref.xsl file


    <xsl:template match="d:biblioref" name="biblioref">

    I'll open an issue on Github.

    Peter

    On Wed, 28 Nov 2018 at 08:58, Thomas Schraitle <tom_schr@web.de> wrote:

    > Hi Peter,
    >
    > Am Tue, 27 Nov 2018 18:54:04 +0100
    > schrieb Peter Fleck <peterfleck@gmail.com>:
    >
    > > Is there a way to only have a biblioentry once in the bibliography
    > > and then cite the details multiple times?
    > > So for example here in
    > >
    > https://www.chicagomanualofstyle.org/tools_citationguide/citation-guide-1.html
    > >
    > > Something like this? (Though this doesn't work).
    > >
    > > <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    > > 315-16.</para></footnote>......</para>
    > > ...
    > > <para>......<footnote><para><citation linkend="isbn-9780143111641"/>,
    > > 402.</para></footnote>......</para>
    >
    > It seems, biblioref would be the appropriate tag for you:
    >
    > https://tdg.docbook.org/tdg/5.1/biblioref.html
    >
    > With biblioref you can add the attributes "begin", "end", and "units"
    > like this:
    >
    > <para>See <biblioref begin="315" end="316" units="pages"
    > linkend="isbn-9780143111641"/>.</para>
    >
    > If you process it with version 1.79.2 of the stylesheets, you will get
    > this result:
    >
    > See [isbn-9780143111641].
    >
    > It seems, the attributes above are unsupported. I think this is a bug
    > as I couldn't find any code which uses them. If you want to take them
    > into account, you need to write a customization layer.
    >
    > One final note about citation. You can use it to reference multiple
    > bibliographic entries like this:
    >
    > <para> See <citation><biblioref
    > linkend="A"/>, <biblioref linkend="B"/></citation>
    >
    > which renders as:
    >
    > See [A, B].
    >
    > (watch for spaces inside <citation>).
    >
    >
    > --
    > Gruß/Regards,
    > Thomas Schraitle
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >