Git Product home page Git Product logo

Comments (4)

moewew avatar moewew commented on September 21, 2024

Sehe mir das nachher an. Ab Biber 2.11 wird Dein Code von #57 nicht mehr funktionieren: plk/biber#215. Siehe auch https://tex.stackexchange.com/q/422938/35864

from biblatex-archaeologie.

LukasCBossert avatar LukasCBossert commented on September 21, 2024

Danke für beides. Da muss ich bei #57 wohl nochmals ran....

from biblatex-archaeologie.

moewew avatar moewew commented on September 21, 2024
\documentclass{scrartcl}
\usepackage[backend=biber,style=archaeologie]{biblatex}
\addbibresource{archaeologie-examples.bib}

\makeatletter
\DeclareBibliographyOption[string]{biblabel}{%
  \ifcsundef{archblx@biblabel@#1}
    {\PackageError{biblatex-archaeologie}
       {Unknown value '#1' for option 'biblabel'.}
       {Unknown value '#1' for option 'biblabel'.\MessageBreak
        Possible values are 'plain', 'bold', 'brackets', 'parens'.}%
     \csdef{archblx@biblabel}{\csuse{archblx@biblabel@plain}}}
    {\csdef{archblx@biblabel}{\csuse{archblx@biblabel@#1}}}}
    
\let\archblx@biblabel@plain\@firstofone
\def\archblx@biblabel@bold{\mkbibbold}
\def\archblx@biblabel@brackets{\mkbibbrackets}
\def\archblx@biblabel@parens{\mkbibparens}

\DeclareFieldFormat{bibcitelabel}{\csuse{archblx@biblabel}{#1}}

\renewbibmacro{labelwidthbib}{%
  \begingroup
    \DeclareFieldFormat{bibhyperref}{##1}%
    \csuse{blx@hook@cite}%
    \csuse{blx@hook@citekey}%
    \defcounter{maxnames}{\blx@maxcitenames}%
    \printtext[bibcitelabel]{\usebibmacro{cite}}%
  \endgroup
}
\makeatletter

\ExecuteBibliographyOptions{biblabel=bold}

\usepackage{hyperref}
\begin{document}
  \footcite{Mann2011}
  \printbibliography
\end{document}

Wenn es mit einer Option implementiert sein soll.

Ansonsten kannst Du den Optionskram rauswerfen und den Nutzer einfach darauf hinweisen \DeclareFieldFormat{bibcitelabel}{\csuse{archblx@biblabel}{#1}} selbst wie gewünscht z.B. als \DeclareFieldFormat{bibcitelabel}{\mkbibbold{#1}} oder \DeclareFieldFormat{bibcitelabel}{#1} anzupassen.

Zur Zeit sehe ich keine gute automatische Lösung für #57 mehr. Meine Lösung zu https://tex.stackexchange.com/q/422938/35864 ist eine Behelfslösung, die die gesamte Namensverarbeitung von BibTeX/Biber mehr schlecht als recht neu mit RegExp implementiert und dabei einige Dinge kaputt macht. ienisseis Lösung ist zwar etwas besser, basiert aber auf der gleichen Idee und hat dieselben grundsätzlichen Probleme.

from biblatex-archaeologie.

LukasCBossert avatar LukasCBossert commented on September 21, 2024

Super! Vielen Dank für die Lösung. Habe sie gleich schon eingebaut.

Da wird wohl #57 wieder eingestampft. Deine Lösung auf TeX-SE habe ich mir angeschaut. Hilft aber leider auch nicht immer.

from biblatex-archaeologie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.