brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
956 stars 101 forks source link

bib type incollection does not copy over booktitle #768

Closed kohlhase closed 8 years ago

kohlhase commented 8 years ago

I have the following in my LaTeXML-generated bibliography file

      <bibentry key="GarKoh:hocuanls96" type="inproceedings" xml:id="bib.bib594">
        <bib-name role="author">
          <surname>Gardent</surname>
          <givenname>Claire</givenname>
        </bib-name>
        <bib-name role="author">
          <surname>Kohlhase</surname>
          <givenname>Michael</givenname>
        </bib-name>
        <bib-title>Higher–order coloured unification and natural language semantics</bib-title>
        <bib-related role="host" type="proceedings">
          <bib-title>Proceedings of the 34<sup>th</sup> Annual Meeting of the Association for
Computational
Linguistics</bib-title>
          <bib-publisher>ACL</bib-publisher>
        </bib-related>
        <bib-date role="publication">1996</bib-date>
        <bib-part role="pages">1–9</bib-part>
        <bib-place>Santa Cruz</bib-place>
        <bib-url href="http://kwarc.info/kohlhase/papers/acl96.pdf">Link</bib-url>
        <bib-extract role="keywords">conference</bib-extract>
        <bib-data role="pubs">mkohlhase</bib-data>
        <bib-data role="self" type="BibTeX">@inproceedings{GarKoh:hocuanls96,
    author = {Claire Gardent and Michael Kohlhase},
     title = {Higher–Order Coloured Unification and Natural Language Semantics},
 booktitle = {Proceedings of the 34\textsuperscript{th} Annual Meeting of the {Association} for
                  {Computational}
    {Linguistics}},
      year = {1996},
     pages = {1–9},
   address = {Santa Cruz},
 publisher = {ACL},
       url = {http://kwarc.info/kohlhase/papers/acl96.pdf},
  keywords = {conference},
      pubs = {mkohlhase}}
</bib-data>
      </bibentry>

and generates (after post-processing but no html conversion)

      <bibitem class="ltx_bib_inproceedings" key="GarKoh:hocuanls96" type="inproceedings" xml:id="bib.bib594" fragid="bib.bib594">
        <bibtag class="ltx_bib_number" role="number">4</bibtag>
        <bibtag class="ltx_bib_author" role="authors">Gardent and Kohlhase</bibtag>
        <bibtag class="ltx_bib_year" role="year">1996b</bibtag>
        <bibtag class="ltx_bib_title" role="title">Higher–order coloured unification and natural language semantics</bibtag>
        <bibtag class="ltx_bib_key" close="]" open="[" role="refnum">4</bibtag>
        <bibblock xml:space="preserve">
          <text class="ltx_bib_author">C. Gardent and M. Kohlhase</text>
          <text class="ltx_bib_year"> (<bib-date role="publication">1996</bib-date>)</text>
        </bibblock>
        <bibblock xml:space="preserve"><text class="ltx_bib_title"><bib-title>Higher–order coloured unification and natural language semantics</bib-title></text>.</bibblock>
        <bibblock xml:space="preserve"><text class="ltx_bib_place"><bib-place>Santa Cruz</bib-place></text>, <text class="ltx_bib_pages"> pp. <bib-part role="pages">1–9</bib-part></text>.</bibblock>
        <bibblock xml:space="preserve">External Links: <text class="ltx_bib_links"><ref class="ltx_bib_external" href="http://kwarc.info/kohlhase/papers/acl96.pdf">Link</ref></text></bibblock>
        <bibblock class="ltx_bib_cited">Cited by: <ref idref="p1" show="typerefnum" href="#p1">p1</ref>.</bibblock>
      </bibitem>

It seesm that the part

       <bib-related role="host" type="proceedings">
          <bib-title>Proceedings of the 34<sup>th</sup> Annual Meeting of the Association for
Computational
Linguistics</bib-title>
          <bib-publisher>ACL</bib-publisher>
        </bib-related>

is never considered by post-processing.

kohlhase commented 8 years ago

Looking at Makebibliography.pm, it seems that this is intended, but commented out

      # if NO crossref, used embedded editors & booktitle.
      #      ['ltx:bib-related[@type="book"]/ltx:bib-title', ' ', 'in ', 'inbook',   \&do_title,    ',']
kohlhase commented 8 years ago

The same seems to be the case for

        <bib-part role="number">9150</bib-part>

when type='proceedings'. This occurs e.g. for

@proceedings{CICM15,
  editor = {Manfred Kerber and Jacques Carette and Cezary Kaliszyk and Florian Rabe and Volker Sorge},
  venue = {Washington DC, USA},
  eventdate = {2015-07-13/2015-07-17},
  eventtitle = {Conferences on Intelligent Computer Mathematics},
  title = {Intelligent Computer Mathematics},
  booktitle = {{Intelligent Computer Mathematics} 2015},
  NOkey = {CICM15},
  NOlabel = {CICM15},
  keywords = {conference},
  publisher = {Springer},
  series    = {LNCS},
  number    = {9150},
  isbn = {978-3-319-20615-8},
  year = 2015
}
brucemiller commented 8 years ago

Yes, that clause in your second comment is commented out, but it's right in the middle of several other (xpath based) tests that are trying to determine if the book/collection title should be copied over. Apparently there's your entry is missing what was expected, or the tests aren't quite tuned right (likely).

Could you also post the bib entry for GarKoh:hocuanls96, so that I can tune it? Thanks.

kohlhase commented 8 years ago

actually, GarKoh:hocuanls96, is in the first listing :-). Your system is well designed.

  <bib-data role="self" type="BibTeX">@inproceedings{GarKoh:hocuanls96,
    author = {Claire Gardent and Michael Kohlhase},
     title = {Higher–Order Coloured Unification and Natural Language Semantics},
 booktitle = {Proceedings of the 34\textsuperscript{th} Annual Meeting of the {Association} for
                  {Computational}
    {Linguistics}},
      year = {1996},
     pages = {1–9},
   address = {Santa Cruz},
 publisher = {ACL},
       url = {http://kwarc.info/kohlhase/papers/acl96.pdf},
  keywords = {conference},
      pubs = {mkohlhase}}
</bib-data>
kohlhase commented 8 years ago

thanks for looking into this.

brucemiller commented 8 years ago

On 06/23/2016 04:36 PM, Michael Kohlhase wrote:

actually, GarKoh:hocuanls96, is in the first listing :-). Your system is well designed.

Doh! It's smarter than me!!!

brucemiller commented 8 years ago

Should work better now. Thanks for the report!