|
NAMEhxcite - replace bibliographic references by hyperlinksSYNOPSIShxcite [ -b base ] [ -p pattern ] [ -a auxfile ] [ -m marker ] [ -c ] bibfile [ file ]DESCRIPTIONThe hxcite commands copies the file to standard output, looking for strings of the form [[label]]. The label may not include white space and the double pair of square brackets must enclose the label without any spaces in between. If hxcite finds the label in the bibfile, the string is replaced by the pattern. The pattern can include certain variables. If the label is not found in bibfile, it is left unchanged.The default pattern replaces the string with a hyperlink, but if the -p option is used, the replacement can be any pattern. The input doesn't even have to be HTML. If the label is enclosed in {{...}} instead of [[...]], it is copied to the output unchanged and not replaced by the pattern, but the label is still searched in the bibfile. OPTIONSThe following options are supported:
OPERANDSThe following operands are supported:
EXIT STATUSThe following exit values are returned:
VERSIONSMarch 2000: created by Bert Bos <bert@w3.org> as "cite".August 2008: renamed to "hxcite". Currently maintained by Bert Bos. BUGShxcite does not actually parse HTML or XML input and the -c option simply treats every occurrence of "<!--" as the start of an XML comment, even if it occurs inside an attribute value or a CDATA section. Likewise for "-->" for the end of a comment.There is currently no way to use numbers for references (e.g., "[1]", "[2]") instead of the labels ("[Lie1996]", "[UTN22]"). hxcite requires the %L (label) field to be present in every entry in bibfile, which is not the case for refer(1). hxcite does not implement refer's keyword search. EXAMPLEThe following looks for reference of the form "[[!label]]" in "myfile.html", skipping references that occur inside HTML comments, and looks up the labels in "biblio.ref". The output is written to "new.html" and the list of recognized labels to "myfile.aux".
hxcite -c -m '!' biblio.ref myfile.html > new.html SEE ALSOasc2xml(1), refer(1), hxmkbib(1), hxnormalize(1), hxnum(1), hxprune(1), hxtoc(1), hxunent(1), xml2asc(1), UTF-8 (RFC 2279)
Visit the GSP FreeBSD Man Page Interface. |