@misc definieren
Verfasst: Do 20. Aug 2015, 22:30
Hallo,
ich möchte gerne @misc definieren. Undzwar will ich das o.J. weghaben (nur bei @misc)
Wie lässt sich das umsetzen?
DANKE!
ich möchte gerne @misc definieren. Undzwar will ich das o.J. weghaben (nur bei @misc)
Wie lässt sich das umsetzen?
DANKE!
\documentclass[ngerman]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{csquotes} \usepackage{xpatch} \usepackage{filecontents} \usepackage[style=authortitle]{biblatex} \begin{filecontents*}{\jobname.bib} @misc{DIN, shorttitle = {KURZTITEL}, title = {LANGTITEL}, author = {DINxxxx:xxxx} } @online{Internet, author = {Autor}, title = {Titel}, year = {2015}, url = {http://www.invalid.invalid}, urldate = {2015-08-10} } @book{jwp, shorttitle = {TESTBUCH}, title = {IchundDU}, year = {}, publisher = {Beuth Verlag}, author = {ICH} } \end{filecontents*} \renewcommand{\bibfootnotewrapper}[1]{ \bibsentence#1} \renewcommand*{\newunitpunct}{\addcomma\space} \renewcommand*{\labelnamepunct}{\addspace} \renewcommand*{\nametitledelim}{\addcolon\space} \renewcommand*{\finentrypunct}{\addspace} \setlength{\bibhang}{1,25cm} \DeclareNameAlias{sortname}{last-first} \DeclareFieldFormat*{citetitle}{#1} % Reihenfolge ändern und Standardtrenner \renewbibmacro*{publisher+location+date}{% \printlist{publisher}% \newunit \printlist{location}% \newunit \usebibmacro{date}% \newunit} % Kurztitel (shorttitle) hinzufügen \renewbibmacro*{title}{% \ifboolexpr{ test {\iffieldundef{title}} and test {\iffieldundef{subtitle}} } {} {\printfield[brackets]{shorttitle}% \setunit{\addspace}% \ifentrytype{online} {\printtext[brackets]{% \printfield[titlecase]{title}% \setunit{\subtitlepunct}% \printfield[titlecase]{subtitle}}} {\printtext[title]{% \printfield[titlecase]{title}% \setunit{\subtitlepunct}% \printfield[titlecase]{subtitle}}}% \newunit}% \printfield{titleaddon}} \DeclareFieldFormat[online]{url}{\url{#1}} \DeclareFieldFormat{urldate}{Abrufdatum\addcolon\space#1} \xpatchbibdriver{online} {\usebibmacro{date}} {} {}{} \newbibmacro*{url+urldate}{% \usebibmacro{url}% \ifentrytype{online} {\setunit{\addspace}% \printtext{Stand\addcolon\addspace}% \usebibmacro{date}} {} \iffieldundef{urlyear} {} {\setunit*{\addspace}% \usebibmacro{urldate}}} % Jahr hinzufügen \renewbibmacro*{cite}{% \iffieldundef{shorthand} {\ifnameundef{labelname} {} {\printnames{labelname} \setunit{\nametitledelim}}% \usebibmacro{cite:title}% \newunit \iffieldundef{year} {\bibstring{nodate}} {\printfield{year}}}% {\usebibmacro{cite:shorthand}}} \DefineBibliographyStrings{german}{% nodate = {{}o\adddot\addabthinspace J\adddot} } \addbibresource{\jobname.bib} \addbibresource{biblatex-examples.bib} \begin{document} Lorem\footcite[][]{DIN} Lorem\footcite[Vgl.][12]{jwp} Lorem\footcite[Vgl.][12]{Internet} \printbibliography \end{document}