-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathlatex-example.tex
41 lines (30 loc) · 1.25 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\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:TestDiacritic,ref:TestException,ref:Test,ref:TestJabbrv,ref:TestPeriod,%
ref:TestPeriodTwoWords,ref:TestPeriodRefInf,ref:TestPeriodInf,ref:TestMyAbbrvOneWord,%
ref:TestMyAbbrvTwoWords,ref:TestPeriodInfPeriod,ref:CmdTest,ref:AbbrvTest,%
ref:TestNBSP,%
ref:TestSlash,%
ref:TestSlashSpace,%
ref:TestUnderscore,%
ref:SymbolTest%
}.
\JournalTitle{Journal d'Agriculture}
\JournalTitle{Briefings in Functional Genomics}.
\JournalTitle{Journal of History (European and International)}
\bibliographystyle{jabbrv_unsrt} % <-- Note that a custom jabbrv-compatible style is used!
%\bibliographystyle{jabbrv_vancouver} % Needs the option noperiod
\bibliography{example}
\end{document}