Преглед на файлове

Print publications if available

Matthias Vogelgesang преди 7 години
родител
ревизия
1aff0fcac0
променени са 4 файла, в които са добавени 66 реда и са изтрити 13 реда
  1. 5 0
      .gitignore
  2. 2 0
      Makefile
  3. 44 0
      cv.tex.in
  4. 15 13
      resume.de.json

+ 5 - 0
.gitignore

@@ -3,3 +3,8 @@
 *.tex
 *.out
 *.pdf
+*.bbl
+*.blg
+*.bcf
+*.run.xml
+pubs.bib

+ 2 - 0
Makefile

@@ -19,3 +19,5 @@ clean:
 
 %.pdf: %.tex $(TEX)
 	@xelatex $<
+	@biber cv
+	@xelatex $<

+ 44 - 0
cv.tex.in

@@ -11,6 +11,38 @@
   hidelinks=true
 ]{hyperref}
 
+((* if resume.publications *))
+\usepackage[
+  maxbibnames=99
+]{biblatex}
+\usepackage{filecontents}
+\begin{filecontents}{pubs.bib}
+  ((* for publication in resume.publications *))
+  @((( publication.type ))){tmp((( loop.index ))),
+    title = {((( publication.title)))},
+    author = {
+      ((* for author in publication.authors *))
+        ((( author ))) and
+      ((* endfor *))
+    },
+    year = {((( publication.year )))},
+    ((* if publication.month *))
+    month = {((( publication.month )))},
+    ((* endif *))
+    pages = {((( publication.pages )))},
+    ((* if publication.journal *))
+    journal = {((( publication.journal )))},
+    volume = {((( publication.volume )))},
+    number = {((( publication.number )))},
+    ((* endif *))
+    ((* if publication.doi *))
+    doi = {((( publication.doi )))},
+    ((* endif *))
+  }
+  ((* endfor *))
+\end{filecontents}
+\bibliography{pubs}
+((* endif *))
 
 % --- Fonts
 
@@ -29,6 +61,11 @@
   itemsep=0.15em,
 }
 
+((* if resume.publications *))
+\defbibheading{customheading}{\noindent\light\large
+VERÖFFENTLICHUNGEN\vspace{1em}}
+((* endif *))
+
 % --- Commands
 
 \newcommand*{\textlight}[1]{{\light #1}}
@@ -154,4 +191,11 @@
     ((* endif *))
     ((( resume.basics.location.city ))), \today
   \end{flushleft}
+
+  ((* if resume.publications *))
+  \pagebreak
+  \nocite{*}
+  \printbibliography[heading=customheading]
+  ((* endif *))
+  \pagebreak
 \end{document}

+ 15 - 13
resume.de.json

@@ -121,24 +121,12 @@
         "name": "Electric bass guitar"
     }],
     "publications": [
-        {
-            "title": "Real-time image-content-based beamline control for smart 4D X-ray imaging",
-            "authors": [
-                "M. Vogelgesang", "T. Farago", "T. F. Morgeneyer", "L. Helfen", "T. dos Santos Rolo", "A. Myagotin", "T. Baumbach"
-            ],
-            "year": 2016,
-            "month": 10,
-            "doi": "10.1107/S1600577516010195",
-            "journal": "Journal of Synchrotron Radiation",
-            "volume": 23,
-            "number": 5,
-            "pages": "1254--1263"
-        },
         {
             "title": "syris: a flexible and efficient framework for X-ray imaging experiments simulation",
             "authors": [
                 "Tomáš Faragó", "Petr Mikulík", "Alexey Ershov", "Matthias Vogelgesang", "Daniel Hänschke", "Tilo Baumbach"
             ],
+            "type": "article",
             "year": 2017,
             "month": 11,
             "doi": "10.1107/S1600577517012255",
@@ -146,6 +134,20 @@
             "volume": 24,
             "number": 6,
             "pages": "1283--1293"
+        },
+        {
+            "title": "Real-time image-content-based beamline control for smart 4D X-ray imaging",
+            "authors": [
+                "Matthias Vogelgesang", "Tomáš Faragó", "T. F. Morgeneyer", "Lukas Helfen", "Tomy dos Santos Rolo", "Anton Myagotin", "Tilo Baumbach"
+            ],
+            "type": "article",
+            "year": 2016,
+            "month": 10,
+            "doi": "10.1107/S1600577516010195",
+            "journal": "Journal of Synchrotron Radiation",
+            "volume": 23,
+            "number": 5,
+            "pages": "1254--1263"
         }
     ]
 }