From 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 9 Jan 2006 00:49:07 +0000 Subject: doc/latex git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/doipubmed/README | 41 ++++++++++++++ .../texmf-dist/doc/latex/doipubmed/doipubmed.pdf | Bin 0 -> 81069 bytes .../texmf-dist/doc/latex/doipubmed/doipubmed.perl | 62 +++++++++++++++++++++ Master/texmf-dist/doc/latex/doipubmed/sample.bib | 15 +++++ Master/texmf-dist/doc/latex/doipubmed/sample.pdf | Bin 0 -> 31906 bytes Master/texmf-dist/doc/latex/doipubmed/sample.tex | 11 ++++ 6 files changed, 129 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/doipubmed/README create mode 100644 Master/texmf-dist/doc/latex/doipubmed/doipubmed.pdf create mode 100644 Master/texmf-dist/doc/latex/doipubmed/doipubmed.perl create mode 100644 Master/texmf-dist/doc/latex/doipubmed/sample.bib create mode 100644 Master/texmf-dist/doc/latex/doipubmed/sample.pdf create mode 100644 Master/texmf-dist/doc/latex/doipubmed/sample.tex (limited to 'Master/texmf-dist/doc/latex/doipubmed') diff --git a/Master/texmf-dist/doc/latex/doipubmed/README b/Master/texmf-dist/doc/latex/doipubmed/README new file mode 100644 index 00000000000..ff6f2156dfd --- /dev/null +++ b/Master/texmf-dist/doc/latex/doipubmed/README @@ -0,0 +1,41 @@ +LaTeX Package : doipubmed v 1.0 + +Last Modified : 9th September 2005 + +Author : Nicola Talbot + +Files : doipubmed.dtx - documented source file + doipubmed.ins - installation script + + +The package doipubmed.sty provides the commands +\doi, \pubmed and \citeurl. These commands are +primarily designed for use in bibliographies. +A LaTeX2HTML style file is also provided. + +See the documentation for more details. + +To extract the code do: + +latex doipubmed.ins + +Move doipubmed.sty to somewhere LaTeX will find it +(e.g. texmf/tex/latex/doipubmed/) and remember to update +the TeX database. + +Move doipubmed.perl to somewhere where LaTeX2HTML will find it +(e.g. latex2html/styles/). + +To extract the documentation do: + +latex doipubmed.dtx + +Place the resulting file (doipubmed.dvi) into the documentation +directory (e.g. texmf/doc/latex/doipubmed/). + + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for +the details of that license. + +http://theoval.cmp.uea.ac.uk/~nlct/ diff --git a/Master/texmf-dist/doc/latex/doipubmed/doipubmed.pdf b/Master/texmf-dist/doc/latex/doipubmed/doipubmed.pdf new file mode 100644 index 00000000000..188497a3b9d Binary files /dev/null and b/Master/texmf-dist/doc/latex/doipubmed/doipubmed.pdf differ diff --git a/Master/texmf-dist/doc/latex/doipubmed/doipubmed.perl b/Master/texmf-dist/doc/latex/doipubmed/doipubmed.perl new file mode 100644 index 00000000000..614414481ab --- /dev/null +++ b/Master/texmf-dist/doc/latex/doipubmed/doipubmed.perl @@ -0,0 +1,62 @@ +#!/usr/bin/perl + +# File : doipub.perl +# Author : Nicola Talbot +# Date : 9th September 2005 +# Description : LaTeX2HTML style file implementing doipubmed package + +sub do_cmd_doitext{ + local($_) = @_; + local($doi); + + s/$next_pair_pr_rx/$doi=$2;''/eo; + join('', "doi", $_); +} + +sub do_cmd_pubmedtext{ + local($_) = @_; + local($pubmed); + + s/$next_pair_pr_rx/$pubmed=$2;''/eo; + join('', "PubMed", $_); +} + +sub do_cmd_doi{ + local($_) = @_; + local($doi,$doitext,$br_id); + + s/$next_pair_pr_rx/$br_id=$1;$doi=$2;''/eo; + + $doitext = &do_cmd_doitext("$OP$br_id$CP$doi$OP$br_id$CP"); + + join('', + &make_href("http://dx.doi.org/$doi", $doitext), + $_); +} + +sub do_cmd_pubmed{ + local($_) = @_; + local($pubmed,$pubmedtext,$br_id); + + s/$next_pair_pr_rx/$br_id=$1;$pubmed=$2;''/eo; + + $pubmedtext = &do_cmd_pubmedtext("$OP$br_id$CP$pubmed$OP$br_id$CP"); + + join('', + &make_href("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=$pubmed&dopt=Abstract", + $pubmedtext), + $_); +} + +sub do_cmd_citeurl{ + local($_) = @_; + local($url); + + s/$next_pair_pr_rx/$url=$2;''/eo; + + join('', '<', + &make_href($url, $url), '>', + $_); +} + +1; diff --git a/Master/texmf-dist/doc/latex/doipubmed/sample.bib b/Master/texmf-dist/doc/latex/doipubmed/sample.bib new file mode 100644 index 00000000000..a4d8a83ebbf --- /dev/null +++ b/Master/texmf-dist/doc/latex/doipubmed/sample.bib @@ -0,0 +1,15 @@ +@article{Cawley2002e, + author = "Cawley, Gavin C. and Talbot, Nicola L. C.", + title = "Fast leave-one-out cross-validation of sparse least-squares + support vector machines", + journal = "Neural Networks", + volume = 17, + number = 10, + pages = "1467--1475", + month = DEC, + year = 2004, + note = "(\doi{10.1016/j.neunet.2004.07.002}, + \pubmed{15541948}). Also available from + \citeurl{http://theoval.cmp.uea.ac.uk/~gcc/publications}" +} + diff --git a/Master/texmf-dist/doc/latex/doipubmed/sample.pdf b/Master/texmf-dist/doc/latex/doipubmed/sample.pdf new file mode 100644 index 00000000000..773ca90f981 Binary files /dev/null and b/Master/texmf-dist/doc/latex/doipubmed/sample.pdf differ diff --git a/Master/texmf-dist/doc/latex/doipubmed/sample.tex b/Master/texmf-dist/doc/latex/doipubmed/sample.tex new file mode 100644 index 00000000000..39af1898d82 --- /dev/null +++ b/Master/texmf-dist/doc/latex/doipubmed/sample.tex @@ -0,0 +1,11 @@ +\documentclass{article} + +\usepackage{hyperref} +\usepackage{doipubmed} + +\begin{document} +\nocite{*} +\bibliographystyle{unsrt} +\bibliography{sample} + +\end{document} -- cgit v1.2.3