forked from compholio/jabbrv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatex-example.tex
27 lines (19 loc) · 1 KB
/
latex-example.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\documentclass[letterpaper,11pt]{article}
% Remove ``[warnundef]'' to get rid of undefined abbreviation warnings:
\usepackage[warnundef]{jabbrv}
% Old-school compressed citations:
%\usepackage{cite}
% New way for compressed citations (hyperref compatible):
\usepackage[numbers,sort&compress]{natbib}
% Defining a custom abbreviation:
\DefineJournalAbbreviation{Test}{Tes} % <-- Note that there is no period!
% Define custom commands used in the BibTeX file:
\newcommand{\tjri}{Test Journal of Reference Information}
\begin{document}
Test \cite{ref:TestNoPeriod,ref:Test,ref:TestJabbrv,ref:TestPeriod,ref:TestPeriodTwoWords,ref:TestPeriodRefInf,ref:TestPeriodInf,
ref:TestMyAbbrvOneWord,ref:TestMyAbbrvTwoWords,ref:TestPeriodInfPeriod,ref:CmdTest,ref:AbbrvTest,ref:SymbolTest}.
\JournalTitle{Briefings in Functional Genomics}.
\bibliographystyle{jabbrv_unsrt} % <-- Note that a custom jabbrv-compatible style is used!
%\bibliographystyle{jabbrv_vancouver} % Needs the option noperiod
\bibliography{example}
\end{document}