{{ .Site.Params.title_as.publications }}

{{ range .Site.Data.publications }}
{{ if eq $.Site.Params.bib_style "IEEE" }} {{ range .authors }} {{ substr .first_name 0 1 }}. {{ with .middle_name}}{{ substr . 0 1 }}.{{end}} {{ .last_name }}, {{ end }} "{{ .title }}", {{ if .journal }} {{ .journal }}, {{ with .vol }} vol. {{.}}, {{ end }} {{ with .page }} pp. {{.}}, {{ end }} {{ end }} {{ .date }}. {{ else if eq $.Site.Params.bib_style "APA" }} {{ $last_index := sub (.authors | len) 1 }} {{ range $i, $e := .authors }} {{ $e.last_name }}, {{ substr $e.first_name 0 1 }}. {{- with $e.middle_name -}}{{ substr . 0 1 }}.{{- end -}} {{- if ne $i $last_index -}},{{- end -}} {{ end }} ({{ .date }}). {{ .title }}. {{ if .journal }} {{ .journal }} {{- if .vol -}} , {{.vol}}{{if .issue}}({{.issue}}){{end}}, {{- end -}} {{ with .page }} {{.}} {{ end }} {{ end }}. {{ else }} {{ range .authors }} {{ .last_name }} {{ substr .first_name 0 1 }}. {{ end }} {{ .title }} {{ .date }}. {{ end }}
{{ end }}