瀏覽代碼

biblatex-mwe added

Martin Thoma 12 年之前
父節點
當前提交
74ccb400c2

+ 9 - 0
documents/biblatex-mwe/Makefile

@@ -0,0 +1,9 @@
+SOURCE = biblatex-mwe
+make:
+	pdflatex -shell-escape $(SOURCE).tex -output-format=pdf
+	biber $(SOURCE).tex
+	pdflatex -shell-escape $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.out *.toc *.bbl *.blg *.pyg *.bcf *.run.xml

+ 1 - 0
documents/biblatex-mwe/README.md

@@ -0,0 +1 @@
+Example was created by matth on [tex.stackexchange.com](http://tex.stackexchange.com/a/34136/5645).

+ 7 - 0
documents/biblatex-mwe/biblatex-examples.bib

@@ -0,0 +1,7 @@
+@BOOK
+  {KandR,
+   AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.",
+   TITLE   = "{The C Programming Language Second Edition}",
+   PUBLISHER = "Prentice-Hall, Inc.",
+   YEAR = 1988
+  }

+ 26 - 0
documents/biblatex-mwe/biblatex-mwe.tex

@@ -0,0 +1,26 @@
+\documentclass[]{article}
+
+\usepackage[autostyle]{csquotes}
+
+\usepackage[
+    backend=biber,
+    style=authoryear-icomp,
+    sortlocale=de_DE,
+    natbib=true,
+    url=false, 
+    doi=true,
+    eprint=false
+]{biblatex}
+\addbibresource{biblatex-examples.bib}
+
+\usepackage[]{hyperref}
+\hypersetup{
+    colorlinks=true,
+}
+
+%% ##############################
+\begin{document}
+    Lorem ipsum dolor sit amet~\citep{KandR}.
+    At vero eos et accusam et justo duo dolores et ea rebum~\citet{KandR}.
+    \printbibliography 
+\end{document}