Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally pull back crossrefs in bibliographies. #800

Closed
kohlhase opened this issue Sep 29, 2016 · 3 comments
Milestone

Comments

@kohlhase
Copy link
Contributor

@kohlhase kohlhase commented Sep 29, 2016

This is related to #766, and the styling of bibliographies. In the application of using LaTeXML to generate publication nice lists I only have one more problem: I do not want crossref to result in a citation reference. For instance, if I run the following document through latexml

\documentclass{article}
\bibliography{foo}
\begin{document}
\nocite{BanKoh:mmlof07}
\end{document}

with the following bibTeX database foo.bib

@InCollection{BanKoh:mmlof07,
   author = {Grzegorz Bancerek and Michael Kohlhase},
   title = {Towards a {Mizar Mathematical Library} in {OMD}oc Format},
   pages = {265--275},
   url = {http://kwarc.info/kohlhase/papers/trybook.pdf},
   crossref = {MatZal:fip07},
pubs = {mkohlhase}}

@Book{MatZal:fip07,
    title = {From Insight to Proof: Festschrift in Honour of {Andrzej Trybulec}},
    booktitle = {From Insight to Proof: Festschrift in Honour of {Andrzej Trybulec}},
    series = {Studies in Logic, Grammar and Rhetoric},
    editor = {Matuszewski, R. and Zalewska, A.},
    publisher = {University of Bia{\l}ystok},
    year = {2007},
    volume = {10:23},
    url={http://mizar.org/trybulec65/}}

currently generates (note the See 21).

[4] R. Matuszewski and A. Zalewska (Eds.) (2007) From insight to proof: festschrift in honour of Andrzej Trybulec. Studies in Logic, Grammar and Rhetoric, Vol. 10:23, University of Białystok. External Links: Link 
[11] G. Bancerek and M. Kohlhase Towards a Mizar Mathematical Library in OMDoc format. See 21, pp. 265–275. External Links: Link

There are two problems in this:

  • the numbering is wrong
  • I would really like to see
[11] G. Bancerek and M. Kohlhase Towards a Mizar Mathematical Library in OMDoc format. In R. Matuszewski and A. Zalewska (Eds.) (2007) From insight to proof: festschrift in honour of Andrzej Trybulec. Studies in Logic, Grammar and Rhetoric, Vol. 10:23, University of Białystok. External Links: Link,  pp. 265–275. External Links: Link

It would be very nice if we could have a way for LaTeXML to inline the crossrefs in processing.
This could be an option, but it could also be a macro I give in the source file, e.g. \nobibcrossrefs or something similar.

@kohlhase

This comment has been minimized.

Copy link
Contributor Author

@kohlhase kohlhase commented Sep 30, 2016

Even though I think that LaTeXML should solve this problem, I will try to work around this for my application: KWARC/bibs#7

@kohlhase

This comment has been minimized.

Copy link
Contributor Author

@kohlhase kohlhase commented Oct 1, 2016

Hmmm, after the "let's dump this on Bruce" reflex wore off, I realized that this is really easy to do in a postprocessing step. I made a little XSLT style sheet that does the trick. It does however make some assumptions (see the comments), and may not work for you.
So instead of

latexmlc --bibtex --destination=foo.bib.xml foo.bib
latexmlc bar.tex --bibliography foo.bib.xml 

you simply have to do

latexmlc --bibtex --destination=foo.bib.xml --stylesheet=crossrefs.xsl foo.bib
latexmlc bar.tex --bibliography foo.bib.xml 
@kohlhase

This comment has been minimized.

Copy link
Contributor Author

@kohlhase kohlhase commented Oct 1, 2016

To technically, this issue is fixed, --> closing

Maybe this little stylesheet is useful enough to integrate into the LaTeXML distribution (after @brucemiller has looked over it). A better name would probably be ltxcrossrefs.xsl though.

@kohlhase kohlhase closed this Oct 1, 2016
@dginev dginev added this to the LaTeXML-0.8.3 milestone Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.