Danke! Hatte ich zu spät bemerkt. Vielen Dank nochmals es ist eine echte Hilfe wenn man von biblatex keine Ahnung hat und noch nicht einmal weiß nach welchen Schlüsselworten man suchen soll.
Jetzt fehlt "nur" noch der Punkt3. Zwar wird Volume, Number und Month fett geschrieben allerdings müsste noch der Punkt zwischen Volume und Number weg und dazu Number und Month in runden Klammern stehen.
Hi,
GrußCode:\documentclass[ngerman,12pt,a4paper,bibliography=totocnumbered,parskip]{scrreprt} \usepackage{babel} \usepackage{makeidx,graphics,graphicx,fontenc,xcolor,longtable,setspace,colortbl} \usepackage[nouppercase]{scrpage2} \usepackage{geometry,here,multirow,multicol,array,float,fp-basic,fp-snap,tikz,pgfplots,eurosym} \usepackage{chngcntr,MnSymbol} \usepackage{hyphenat} \usepackage[hang]{caption} % Anfang Literaturverzeichnis Vorgaben \usepackage{csquotes} \usepackage[style=authoryear,labelnumber,defernumbers,citestyle=numeric,isbn=false,doi=false,url=false]{biblatex} \defbibenvironment{bibliography} {\list {\printtext[labelnumberwidth]{% \iffieldundef{shorthand} {\printfield{prefixnumber}% \printfield{labelnumber}} {\printfield{shorthand}}}} {\setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}% \renewcommand*{\makelabel}[1]{\hss##1}} {\endlist} {\item} \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} \DeclareFieldFormat*[article]{title}{#1} \DeclareFieldFormat*{month}{\textbf{\mkbibmonth{#1}}} \DeclareFieldFormat*{number}{\textbf{#1}} \DeclareFieldFormat*{pages}{#1} \DeclareFieldFormat*{volume}{\textbf{#1}} \DeclareNameFormat{last-first}{% \iffirstinits {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}} {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}% \usebibmacro{name:andothers}} \DeclareNameAlias{sortname}{last-first} \DefineBibliographyStrings{ngerman}{ bibliography = {Literaturverzeichnis} } %5: \renewcommand*{\finentrypunct}{} %2: \renewbibmacro*{in:}{}% \renewbibmacro*{volume+number+eid}{% \printtext[parens]{% \printfield{volume}% \setunit*{\addspace}% \printfield{number}}% \setunit{\addcomma\space}% \printfield{eid}} %[\mkbibparens] \newcommand{\cmd}[1]{\texttt{\textbackslash #1}} % Ende Literaturverzeichnis Vorgaben \usepackage{hyperref} \addbibresource{biblatex-examples.bib} \begin{document} \section*{The \texttt{numeric} style} XXX \subsection*{\cmd{cite} examples} Test \cite{companion} test. Test2 \cite{aksin} \cite{almendro} \cite{angenendt} \cite{brandt} \cite{cotton} \cite{chiu} \cite{geer} \cite{gillies} \cite{glashow} \cite{ctan} \cite{cms} \cite{jaffe} \cite{yoon} \printbibliography \end{document}
Marco
Hallo,
so weit so gut. Ich habe es noch ein bisschen den Anforderungen angepasst und jetzt sieht das so aus:
Ich bekomme das Leerzeichen vor dem Feld Number nicht weg. Wo hat es sich versteckt?Code:\documentclass[ngerman,12pt,a4paper,bibliography=totocnumbered,parskip]{scrreprt} \usepackage{babel} \usepackage{makeidx,graphics,graphicx,fontenc,xcolor,longtable,setspace,colortbl} \usepackage[nouppercase]{scrpage2} \usepackage{geometry,here,multirow,multicol,array,float,fp-basic,fp-snap,tikz,pgfplots,eurosym} \usepackage{chngcntr,MnSymbol} \usepackage{hyphenat} \usepackage[hang]{caption} % Anfang Literaturverzeichnis Vorgaben \usepackage{csquotes} \usepackage[style=authoryear,labelnumber,defernumbers,citestyle=numeric,isbn=false,doi=false,url=false]{biblatex} \defbibenvironment{bibliography} {\list {\printtext[labelnumberwidth]{% \iffieldundef{shorthand} {\printfield{prefixnumber}% \printfield{labelnumber}} {\printfield{shorthand}}}} {\setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}% \renewcommand*{\makelabel}[1]{\hss##1}} {\endlist} {\item} \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} \DeclareFieldFormat*[article]{title}{#1} \DeclareFieldFormat*{month}{\textbf{\mkbibmonth{#1}}} \DeclareFieldFormat*{pages}{#1} \DeclareNameFormat{last-first}{% \iffirstinits {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}} {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}% \usebibmacro{name:andothers}} \DeclareNameAlias{sortname}{last-first} \DefineBibliographyStrings{ngerman}{ bibliography = {Literaturverzeichnis} } %5: \renewcommand*{\finentrypunct}{} %2: \renewbibmacro*{in:}{}% \renewbibmacro*{volume+number+eid}{\textbf{% \printtext{% \printfield{volume}% \setunit*{\addspace}} % \printtext[parens]{ % \printfield{number}% \setunit{\addcomma\space}% \printfield{eid}}} } %[\mkbibparens] \newcommand{\cmd}[1]{\texttt{\textbackslash #1}} % Ende Literaturverzeichnis Vorgaben \usepackage{hyperref} \addbibresource{biblatex-examples.bib} \begin{document} \section*{The \texttt{numeric} style} XXX \subsection*{\cmd{cite} examples} Test \cite{companion} test. Test2 \cite{aksin} \cite{almendro} \cite{angenendt} \cite{brandt} \cite{cotton} \cite{chiu} \cite{geer} \cite{gillies} \cite{glashow} \cite{ctan} \cite{cms} \cite{jaffe} \cite{yoon} \printbibliography \end{document}
Außerdem wie man bei [3], [10] und [11] sieht wird die Klammer immer mitgedruckt sobald ein Volume angegeben ist auch wenn kein Eintrag für Number vorhanden ist.
Gruß,
Alex
Hi,
was hast du denn da gemacht
das ist wohl ungewollt.Code:\renewbibmacro*{volume+number+eid}{\textbf{% \printtext{% \printfield{volume}% \setunit*{\addspace}} % \printtext[parens]{ % \printfield{number}% \setunit{\addcomma\space}% \printfield{eid}}} }
Nehme mal:
GrußCode:\renewbibmacro*{volume+number+eid}{\textbf{% \printfield{volume}% % \setunit*{\addspace} % \printfield[parens]{number}% \setunit{\addcomma\space}% \printfield{eid}} }
Marco
Ich dreh schon durch!
Perfekt! Jetzt passt es - hoffe ich.
Vielen, vielen Dank! Alleine hätte es vermutlich Wochen gedauert, diese Lösung zu finden!
Gruß,
Alex
Für den Fall, dass "In: " nur bei Artikeln, nicht jedoch z.B. bei Beiträgen aus Sammelbänden entfernt werden soll, hat Herbert Voß auf tex.stackexchange eine elegante Lösung gepostet:
lockstepCode:\usepackage{biblatex} \renewbibmacro{in:}{% \ifentrytype{article}{}{% \printtext{\bibstring{in}\intitlepunct}}}
Geändert von lockstep (27-02-2011 um 20:09 Uhr)
idxlayout - Konfigurierbares Index-Layout, kompatibel mit KOMA-Script und memoir
Lesezeichen