summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/luabibentry/luabibentry.sty
blob: 025f8067978f8d49834e38120376c672838ace3f (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%%
%% This is file `luabibentry.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% luabibentry.dtx  (with options: `package')
%% 
%% 
%%  
%% Copyright (c) 2012 by Oliver Kopp <oliver.kopp.googlemail.com>
%% 
%% This file was generated from file(s) of luabibentry distribution.
%% -----------------------------------------------------------------
%% 
%% This work may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, version 1.3c of the license.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The Current Maintainer and author of this work is Oliver Kopp.
%% 
%% This file may only be distributed together with the files listed in
%% `luabibentry.dtx'. You may however distribute the files listed in
%% `luabibentry.dtx' without this file.
%% 
%% Usage:
%% 
%% \setupbibentry{<bibliography>} before the usage of \bibentry.
%% \setupbibentry{\jobname} may be used if the bibliography has the same name as the .tex file.
%% 
%% \bibentry{<entry>} where you want to have placed an entry.
%% In case an entry is not found "?" is output
%% 
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{luabibentry}
[2012/02/02 v0.1a LuaLaTeX Package to place bibliography entries in text]

\RequirePackage{ifluatex}
\ifluatex\else
  \PackageError{luabibentry}{lualatex needed}{%
    Package `luabibentry' needs LuaTeX.\MessageBreak
    So you should use `lualatex' to process you document!\MessageBreak
    See documentation of `luabibentry' for further information.}%
  \expandafter\expandafter\expandafter\csname endinput\endcsname
\fi
\directlua{require("luabibentry.lua")}
\newcommand{\setupbibentry}[1]{\directlua{luabibentry.builddata{"#1.bbl"}}}
\newcommand{\bibentry}[1]{\nocite{#1}\directlua{luabibentry.bibentry{"#1"}}}
\endinput
%%
%% End of file `luabibentry.sty'.