paddymcall / SARIT-pdf-conversions

XML to PDF for SARIT texts
https://github.com/sarit/SARIT-corpus
2 stars 1 forks source link

Where are labels defined for the internal references? #20

Closed ppasedach closed 8 years ago

ppasedach commented 8 years ago

The ones dealt with via commands like \cref{ABC.1.2.3}? The \cite{abc123} family of commands work together with biber, but \cref expects \labels to be defined inside the document. Where are they? Not yet implemented? Wouldn't they point to a primary literature reference, where we'd specify the edition used? Or are they even supposed to point to specific places in other files in SARIT? I see that pramanavarttikavrtti.tex has many \label commands, but dharmottarapradiipa.tex doesn't.

paddymcall commented 8 years ago

\label{} and \cref{} are for maintaining internal links (corresponding roughly to the xml:id attribute and the ref element.

\cite{} is for bibliographic references (which can also be internal). This is a bug then for dharmottarapradiipa.tex.

ppasedach commented 8 years ago

That means that something like \cref{Pā.4.3.59} should rather be \cite[4.3.59]{Pā.}, and Pā. would need to be included, with further details, in the .bib file?

paddymcall commented 8 years ago

Those are canonical refs, set by the cRef attribute (has nothing to do with LaTeX's cleveref cref commands). Should be handled correctly now, distinguishing cRef and target attributes.