신문 특별 규칙 Biblatex 저자 없음

신문 특별 규칙 Biblatex 저자 없음

내 항목에 일부 수정을 가하고 싶습니다.

신문을 특별 저널 항목으로 지정하는 특별한 규칙을 만들고 싶습니다(항목에 "신문"이라는 레이블을 지정하면 도움이 될 것이라고 생각했습니다. 신문 기사이고 저자가 없는 경우에만 "저널"을 원할 것입니다) 저자 위치(앞)를 대체하기 위한 제목이지만 작은 대문자 대신 이탤릭체로 표시해야 합니다.

전류 출력 이미지 대략 어떤 모습이어야 하는지에 대한 이미지 :)

내 MWE는 다음과 같습니다.

\documentclass{scrreprt}
\usepackage[main=ngerman, english]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[ngerman]{isodate}
\usepackage[ngerman]{datetime}
%----------------------------------------------------------------------------
%   BIB
%----------------------------------------------------------------------------
 \usepackage[
    backend=biber,
    style=authoryear,
    sorting=nyvt, 
    maxnames=25,
    dashed=false, 
    isbn=false
  ]{biblatex}
 \addbibresource{library.bib}
\renewcommand{\mkbibnamefamily}[1]{\textsc{#1}}
\renewcommand{\labelnamepunct}{\addcolon\space}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\renewcommand\postnotedelim{\addcolon\addspace}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,unpublished]
  {title}{#1\isdot}
\DeclareFieldFormat
  [thesis]
  {title}{\mkbibemph{#1}\isdot}  % thesis title italic


% no period after addon titles
\usepackage{xpatch}
\DeclareFieldFormat{titleaddon}{\mkbibbrackets{#1}}
\DeclareDelimFormat{titleaddondelim}{\addspace}
\xpatchbibmacro{title}
  {\printfield{titleaddon}}
  {\setunit{\printdelim{titleaddondelim}}%
   \printfield{titleaddon}}
  {}
  {}
\DeclareFieldFormat{booktitleaddon}{\mkbibbrackets{#1}}
\DeclareDelimFormat{booktitleaddondelim}{\addspace}    
\xpatchbibmacro{booktitle}
  {\printfield{booktitleaddon}}
  {\setunit{\printdelim{titleaddondelim}}%
   \printfield{booktitleaddon}}
  {}
  {}
\DeclareFieldFormat{maintitleaddon}{\mkbibbrackets{#1}}
\DeclareDelimFormat{maintitleaddondelim}{\addspace}  
\xpatchbibmacro{maintitle}
  {\printfield{maintitleaddon}}
  {\setunit{\printdelim{titleaddondelim}}%
   \printfield{maintitleaddon}}
  {}
  {}

\begin{document}
\nocite{*}
\printbibliography[heading=bibintoc,title={Literaturverzeichnis}]
\end{document}

또한 테스트 항목은 다음과 같습니다.

@article{yomiuri.1981,
 journal = {Yomiuri Shimbun},
 type = {newspaper},
 year = {22.01.1981},
 pages = {20},
 location = {Kanagawa},
 note = {Morgenausgabe},
 title = {Atarashī taishū bunka sanmi ittai no dendō. Kawasaki ni manga shashin eizō bunka sentā},
 titleaddon = {Neuer Palast der Dreifaltigkeit der Populärkultur. Das Zentrum für Manga, Fotografie und visuelle Kultur in Kawasaki}
} 

@article{testauthor.1981,
 journal = {Yomiuri Shimbun},
 author = {Test, Author},
 type = {newspaper},
 year = {22.01.1981},
 pages = {20},
 location = {Kanagawa},
 note = {Morgenausgabe},
 title = {Atarashī taishū bunka sanmi ittai no dendō. Kawasaki ni manga shashin eizō bunka sentā},
 titleaddon = {Neuer Palast der Dreifaltigkeit der Populärkultur. Das Zentrum für Manga, Fotografie und visuelle Kultur in Kawasaki}
} 

불편을 끼쳐 드려서 죄송합니다. 불행히도 나는 이 문제를 스스로 해결하는 방법을 모릅니다.

답변1

이 상황에서는 이(가 journal) 본질적으로 모든 작업을 인수하기를 원하기 때문에 이는 매우 까다로운 요구 사항입니다 . author아이디어는 Biber가 소스 맵을 사용하여 journal필드를 필드에 복사하도록 하는 것입니다.author

저자가 있는 신문 기사와 저자가 없는 신문 기사 사이에는 몇 가지 세부 사항이 다르기 때문에 이러한 특별한 항목을 표시할 방법이 필요합니다. 이는 입력 옵션을 사용하여 자동으로 수행됩니다 journalauthor.

그런 다음 원래 정의를 복사하고 ' journalauthorcase'에 대한 테스트를 추가해야 합니다.

채팅에서 논의한 대로 저는 biblatex-ext. 또한 필드 이름을 약간 수정했습니다. entrysubtype = {newspaper},대신에 사용했습니다 type. "Morgenausgabe" 필드가 현재 issue대신 있습니다 note.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[main=ngerman, english]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[ngerman]{isodate}
\usepackage[ngerman]{datetime}

\usepackage[
  backend=biber,
  style=ext-authoryear,
  sorting=nyvt,
  maxnames=25,
  dashed=false,
  isbn=false,
  innamebeforetitle=true,
  usetranslator=true,
  alldates=terse,
  labeldate=year,
]{biblatex}

\usepackage{hyperref}

\DefineBibliographyStrings{german}{%
  andothers = {et al\adddot},
  editor    = {Hg\adddot},
  editors   = {Hg\adddot},
  urlseen = {letzter Abruf},
}

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map[overwrite=false]{
      \pertype{article}
      \step[fieldsource=entrysubtype, match=\regexp{\Anewspaper\Z}, final]
      \step[fieldsource=journal, final]
      \step[fieldset=author, origfieldval, final]
      \step[fieldsource=author, match=\regexp{\A(.*)\Z}, replace=\regexp{\{$1\}}]
      \step[fieldset=author+an, fieldvalue={1=journalauthor}]
      \step[fieldset=options, fieldvalue={journalauthor}]
    }
  }
}

\newtoggle{bbx@journalauthor}
\DeclareEntryOption[boolean]{journalauthor}[true]{%
\settoggle{bbx@journalauthor}{#1}}

\renewcommand{\mkbibnamefamily}[1]{%
  \ifitemannotation{journalauthor}
    {\mkbibemph{#1}}
    {\textsc{#1}}}

\DeclareDelimFormat[bib]{nametitledelim}{\addcolon\space}

\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\DeclareFieldAlias{translatortype}{editortype}

\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,unpublished,online]
  {title}{#1\isdot}
\DeclareFieldFormat
  [thesis]
  {title}{\mkbibemph{#1}\isdot} % thesis title italic


% no period after addon titles
\renewcommand*{\titleaddonpunct}{\addspace}
\DeclareFieldFormat{titleaddon}{\mkbibbrackets{#1}}
\DeclareFieldAlias{booktitleaddon}{titleaddon}
\DeclareFieldAlias{maintitleaddon}{titleaddon}


\newbibmacro{online:editor+maintitle}{%
  \printnames{editor}%
  \setunit*{\addcolon\space}%
  \usebibmacro{maintitle}}

\usepackage{xpatch}
\xpatchbibdriver{online}
  {\usebibmacro{byeditor+others}}
  {\usebibmacro{online:editor+maintitle}}
  {}{}
\xpatchbibmacro{editorstrg}{\bibstring}{\bibcpstring}{}{}
\xpatchbibmacro{editorstrg}{\bibstring}{\bibcpstring}{}{}

\renewbibmacro*{in:}{%
  \iftoggle{bbx@journalauthor}
    {}
    {\printtext{%
     \bibstring{in}\intitlepunct}}}

\DeclareNameAlias{ineditor}{sortname}

\renewcommand*{\volnumdelim}{\addcomma\space}

\DeclareListWrapperFormat[article]{parenlocation}{\mkbibparens{#1}}
\DeclareListAlias{parenlocation}{location}
\renewbibmacro*{journal}{%
  \ifboolexpr{
    (test {\iffieldundef{journaltitle}}
     and
     test {\iffieldundef{journalsubtitle}})
    or
    togl {bbx@journalauthor}
  }
    {\ifboolexpr{
       togl {bbx@journalauthor}
       and
       test {\iffieldequalstr{entrysubtype}{newspaper}}
     }
       {\printlist{location}}
       {}}
    {\printtext[journaltitle]{%
       \printfield[titlecase]{journaltitle}%
       \setunit{\subtitlepunct}%
       \printfield[titlecase]{journalsubtitle}}%
     \iffieldequalstr{entrysubtype}{newspaper}
       {\setunit{\addspace}%
        \printlist[parenlocation]{location}}
       {}}}

\renewbibmacro*{issue+date}{%
  \usebibmacro{bbx:ifmergeddate}
    {}
    {\printtext[issuedate]{%
       \printdate}}%
  \setunit{\addcomma\space}%
  \printfield{issue}%
  \setunit{\addcomma\space}}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\jourvoldelim}%
  \iffieldundef{series}
    {}
    {\setunit*{\jourserdelim}%
     \printfield{series}%
     \setunit{\servoldelim}}%
  \usebibmacro{volume+number+eid}%
  \setunit{\volnumdatedelim}%
  \iftoggle{bbx@journalauthor}
    {}
    {}
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}


\urlstyle{same}% boo
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{urldate}{\mkbibparens{\bibstring{urlseen}\addcolon\space#1}}

\makeatletter
\renewbibmacro*{cite:labeldate+extradate}{%
  \iffieldundef{labelyear}
    {}
    {\printtext[extblx@inner\blx@delimcontext delims]{%
       \printtext[bibhyperref]{%
         \iftoggle{bbx@journalauthor}
           {\printfield{issue}%
            \setunit{\addcomma\space}%
            \printtext[\blx@delimcontext labeldate]{%
              \printdateextra}}
           {\printtext[\blx@delimcontext labeldate]{%
              \printlabeldateextra}}}}}}
\makeatother

\renewcommand\postnotedelim{\addcolon\addspace}
\DeclareFieldFormat{postnote}{\mknormrange{#1}}
\DeclareFieldFormat{multipostnote}{\mknormrange{#1}}



%-------------
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{yomiuri.1981,
  journal      = {Yomiuri Shimbun},
  entrysubtype = {newspaper},
  date         = {1981-01-22},
  pages        = {20},
  location     = {Kanagawa},
  issue        = {Morgenausgabe},
  title        = {Atarashī taishū bunka sanmi ittai no dendō.
                  Kawasaki ni manga shashin eizō bunka sentā},
  titleaddon   = {Neuer Palast der Dreifaltigkeit der Populärkultur.
                  Das Zentrum für Manga, Fotografie und visuelle Kultur in Kawasaki}
}
@article{testauthor.1981,
  journal      = {Yomiuri Shimbun},
  author       = {Test, Author},
  entrysubtype = {newspaper},
  date         = {1981-01-22},
  pages        = {20},
  location     = {Kanagawa},
  issue        = {Morgenausgabe},
  title        = {Atarashī taishū bunka sanmi ittai no dendō.
                  Kawasaki ni manga shashin eizō bunka sentā},
  titleaddon   = {Neuer Palast der Dreifaltigkeit der Populärkultur.
                  Das Zentrum für Manga, Fotografie und visuelle Kultur in Kawasaki}
}
@incollection{Chua.2017,
  author    = {Chua, Beng Huat},
  year      = {2017},
  title     = {Regional soft power/creative industries competition},
  publisher = {Routledge},
  maintitle = {Routledge Handbook of East Asian Popular Culture},
  location  = {London},
  pages     = {242--253},
  editor    = {Iwabuchi, K\={o}ichi and Berry, Chris and Tsai, Eva}
}
@book{fukuzawa,
  author     = {Fukuzawa, Yukichi},
  title      = {Fukuzawa Yukichi -- Eine autobiographische Lebensschilderung},
  year       = {1971},
  editor     = {Gerhard  Linzbichler},
  translator = {Gerhard  Linzbichler},
  location   = {Tôkyô},
  publisher  = {Keiô  Gijuku  Daigaku},
}
@book{philippi,
  translator = {Philippi, Donald L.},
  year       = {1968},
  title      = {Kojiki},
  location   = {Tôkyô},
  publisher  = {University of Tokyo Press},
}

@article{Cho.2011,
author = {Cho, Younghan},
year = {2011},
title = {Desperately Seeking East Asia Amidst the Popularity of South Korean Pop Culture in Asia},
pages = {383--404},
volume = {25},
issn = {0950-2386},
journal = {Cultural Studies},
number = {3}
}
@suppcollection{Geertz.2001,
author = {Geertz, Clifford},
year = {2001},
title = {Introduction},
publisher = {Princeton University Press},
maintitle = {Schools of Thought},
mainsubtitle = {Twenty-Five Years of Interpretive Social Science},
pagetotal = {1--12},
location = {Princeton, New Jersey},
editor = {Scott, Joan W. and Keates, Deborah}
}

@book{Furuta.2002,
author = {Furuta, Hisateru and Robson, Dean},
year = {2002},
title = {Broadcasting in Japan},
publisher = {NHK Broadcasting Culture Research Institute},
isbn = {4990138708},
subtitle = {The Twentieth Century Journey from Radio to Multimedia},
location = {Tokyo},
organization = {Nihon h\={o}s\={o} ky\={o}kai h\={o}s\={o} bunka ch\={o}sa kenky\={u}jo},
}

@book{Ito.1978,
author = {It\={o}, Masami},
year = {1978},
title = {Broadcasting in Japan},
volume = {7},
publisher = {{Routledge and Kegan Paul: International Institute of Communications}},
isbn = {071000043X},
location = {London},
maintitle = {Case studies on broadcasting systems}
}

@book{keizaizasshi.1901,
date = {1897/1901},
maintitle = {Kokushi taikei},
maintitleaddon = {Kompendium nationaler Geschichte},
title = {Nihon kiryaku},
volume = {5},
author = {{Keizai Zasshi-sha-hen}},
publisher = {Keizai Zasshi-sha},
doi = {10.11501/991095},
addendum = {(letzter Abruf: 10.03.2019)}
}

@book{Kontentsu.2008,
author = {{Kontentsu bijinesu ch\={o}sa kenky\={u}-kai}},
year = {2008},
title = {Saishin kontentsu bijinesu no subete ga wakaru hon},
publisher = {{Nihon n\={o}ritsu ky\={o}kai manejimento sentā [JMA Management Center]}},
location = {T\={o}ky\={o}},
titleaddon = {Buch, mit dem Sie alles {\"u}ber das neue Contents Business verstehen}
}

@article{Takeda.2010,
author = {Takeda, Kazuya},
year = {2010},
title = {Heij\={o}-ky\={o} ato hakkutsu ch\={o}sa no ima},
titleaddon = {Ausgrabungsübersicht der Heijyo-ky\={o}-Ruinen},
pages = {8-12},
series = {Heijō\={o}-ky\={o} sento 1300-nen},
volume = {599},
journal = {Gekkan k\={o}ko-gaku j\={a}naru},
publisher = {Nara Women's University Academic Information Center}
}

@article{Yang.2012,
title = {From Korean Wave to Korean Living},
author = {Yang, Fang-Chih},
year = {2012},
month = {9},
volume = {43},
pages = {419--445},
journal = {Korea Observer},
issn = {0023-3919},
publisher = {Institute of Korean Studies},
number = {3}
}
@online{ShogakukanInc.2015b,
 year = {2015},
 title = {Shakai shugi keizai},
 url = {http://erf.sbb.spk-berlin.de/han/japanknowledge/https/japanknowledge.com/lib/display/?lid=1001000111175},
 urldate = {2019-02-10},
 author = {{Shogakukan Inc.}},
 maintitle = {Dejitaru daijisen},
 maintitleaddon = {Digitales einsprachiges japanisches Wörterbuch},
 keywords = {encyclopedia}
 } 

@online{Buritanika.2014,
 year = {2014},
 title = {Tahinshu sh\={o}ry\={o} seisan},
 url = {https://kotobank.jp/word/%E5%A4%9A%E5%93%81%E7%A8%AE%E5%B0%91%E9%87%8F%E7%94%9F%E7%94%A3-94128},
 urldate = {2019-02-10},
 author = {{Britannica Japan Co.}},
 maintitle = {Buritanika kokusai daihyakkajiten},
 maintitleaddon = {Britannica internationale Enzyklopädie},
 keywords = {encyclopedia}
 }

@online{JiyukokuminshaCo.2015,
 year = {2015},
 title = {Soren ky\={o}sant\={o}},
 url = {http://erf.sbb.spk-berlin.de/han/japanknowledge/https/japanknowledge.com/lib/display/?lid=500202018012390},
 urldate = {2019-02-10},
 author = {{Jiyukokuminsha Co., Ltd}},
 maintitle = {Gendai y\={o}go no kiso chishiki},
 maintitleaddon = {Basiswissen moderner Terminologien},
 keywords = {encyclopedia}
 }
\end{filecontents*}

\addbibresource{\jobname.bib}

\begin{document}
\autocite{yomiuri.1981} and \autocite{testauthor.1981} and \autocite{Chua.2017,fukuzawa}

\nocite{*}
\printbibliography[heading=bibintoc,title={Literaturverzeichnis}]
\end{document}

참고문헌 출력의 마지막 페이지 스크린샷.

관련 정보