我对使用选项\citet
加载时命令的使用有疑问。我是 LaTeX 初学者,这可能是一个简单的问题,但我仍然无法解决它。biblatex
natbib=true
我正在写论文LaTeX
,我想in-text
用命令创建引文标注\citet
。问题是输出中作者的字母全部大写。我只想将first letter
每个作者的字母大写。
有没有什么办法可以解决这个问题?
\RequirePackage{hyphsubst}
\HyphSubstLet{ngerman}{ngerman-x-latest}
\documentclass[final, english, ngerman, a4paper, 12pt, numbers=noenddot,
cd=true,
cdfont=false,cdfont=nohead,cdfont=nodin,
cdmath=false,
cdhead=false,
cdfoot=true,
cdcover=monochrome,
cdgeometry=asymmetric,
declaration=heading,
declaration=notoc,
abstract=heading,
]{tudscrreprt}
\usepackage[utf8]{inputenc}
\usepackage{settings/tudbwlimPackages}
\usepackage{settings/tudbwlimStyle}
\usepackage{caption}
\usepackage{scrhack}
\usepackage{algpseudocode}
\usepackage{amsmath}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{longtable}
\usepackage{pbox}
\usepackage{tabularx}
\usepackage{textcomp}
\usepackage{pdflscape}
\usepackage{enumitem}
\usepackage{etoolbox}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
\usepackage{color}
\usepackage{mathrsfs}
\usepackage{svg}
\usepackage{settings/BiblatexSetup}
\AfterPackage*{biblatex}%
{
\RequirePackage[breaklinks=true, colorlinks=false, linktoc=section, linkcolor=blue, citecolor=black, hidelinks]{hyperref}
% Da hyperref allerhand Veränderungen an vielen Standardbefehlen vornimmt, sollte dieses als letztes in der Präambel eingebunden werden. Nur Pakete, bei denen in der Dokumentation explizit darauf hingewiesen wird, dass diese nach hyperref zu laden sind, sollten auch danach folgen.
\hypersetup{pdfprintscaling=None} % gleiches Verhalten, auch ohne hyperref, liefert: \pdfcatalog{/ViewerPreferences<</PrintScaling/None>>}
\usepackage{footnote} % https://tex.stackexchange.com/questions/207192/footcite-in-float-caption
\makesavenoteenv{figure}
\makesavenoteenv{table}
\makesavenoteenv{algorithm}
}
\AfterPackage*{hyperref}
{
\RequirePackage[automake,acronym,symbols,nomain,translate=babel,]{glossaries}
\usepackage{settings/GlossariesSetup}
}
\begin{document}
\end{document}
这是 .sty 文件的内容
\ExecuteBibliographyOptions{ibidtracker=constrict,dashed=false,bibwarn=true,sortlocale=auto,arxiv=false,isbn=true,url=false,doi=false,eprint=false,%
maxcitenames=2,maxbibnames=100,uniquename=false,uniquelist=false,giveninits=true,date=year,ibidtracker=false,%
% authortitle-dw options
%namefont=smallcaps,firstnamefont=smallcaps,nopublisher=false,idembib=false,edbyidem=false,addyear=true,journalnumber=afteryear,series=afteryear,safeinputenc=true
}
\setlength{\bibitemsep}{\baselineskip}
\AtEveryBibitem{\clearfield{issn}}
%\DeclareDelimFormat{footcitenametitledelim}{\addcolon\space}
\renewcommand*{\labelnamepunct}{\addcolon\space} %\DeclareDelimFormat{nametitledelim}{\addcolon\space}
\renewcommand*{\multinamedelim}{\thinspace\&\thinspace}
\renewcommand*{\finalnamedelim}{\thinspace\&\thinspace}
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}
%\renewcommand*{\mkbibnamegiven}[1]{\textsc{#1}}
\renewcommand{\nameyeardelim}{\addspace}
% authortitle-dw options
%\renewcommand*{\bibmultinamedelim}{\space\slash\space}
%\renewcommand*{\bibfinalnamedelim}{\space\slash\space}
%\renewcommand*{\bibrevsdnamedelim}{}
%\renewcommand*{\jourvolstring}{\space Vol.\space}
\setcounter{biburllcpenalty}{9000}
\setcounter{biburlucpenalty}{9000}
\DeclareFieldFormat*{title}{#1\isdot} %[article,book,inbook,incollection,inproceedings,misc,patent,report,thesis,unpublished]
\DeclareFieldFormat*{citetitle}{\mkbibemph{#1}} % [article,book,inbook,incollection,inproceedings,misc,patent,techreport,thesis,unpublished]
\DeclareFieldFormat[article]{journaltitle}{\mkbibemph{#1},}
\DeclareFieldFormat[article]{volume}{\bibstring{jourvol}\addnbspace #1}
\DeclareFieldFormat[article]{number}{\bibstring{number}\addnbspace #1}
% authortitle-dw options
%%%\DeclareFieldFormat[article]{journaltitle}{\mkbibemph{#1},}
%%%\DeclareFieldFormat[inbook,incollection,inproceedings]{booktitle}{\mkbibemph{#1}}
%%%\DeclareFieldFormat[masterthesis,misc,article,inproceedings,techreport,phdthesis,mastersthesis,thesis,report,inbook,incollection]{title}{#1.}
%%%\AtEveryBibitem{\clearlist{language}}
\DeclareNameAlias{sortname}{last-first}
%%\DeclareDelimFormat[cbx@textcite]{nameyeardelim}{\addspace}
%%\DeclareDelimFormat[cbx@textcite]{nonameyeardelim}{\addspace}
\newbibmacro*{customfootcite}
{\global\boolfalse{cbx:loccit}%
\iffieldundef{shorthand}%
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\addspace}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\iffieldundef{labelyear}
{}
{\iffieldundef{shorttitle}%
{\printtext[parens]{\usebibmacro{cite:labeldate+extradate}}\addcolon\addspace\printtext{\printfield[emph]{title}}}%
{\printtext[parens]{\usebibmacro{cite:labeldate+extradate}}\addcolon\addspace\printtext{\printfield[emph]{shorttitle}}}%
}}}%
{\usebibmacro{cite:shorthand}}%
}
\DeclareCiteCommand{\footcite}[\mkbibfootnote]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{customfootcite}
}
{\multicitedelim}
{\usebibmacro{postnote}}
% https://tex.stackexchange.com/questions/97376/missing-vol-and-no-in-biblatex-biber
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\setunit{\addcomma\space}%<---- was \setunit*{\adddot}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addcomma\space}% was: \setunit*{\addspace}
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addcomma\space}}% was: \setunit{\addspace}
\usebibmacro{volume+number+eid}%
\setunit{\addspace}%
\usebibmacro{issue+date}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit}
\DefineBibliographyStrings{english}{
andothers = {{et\,al\adddot}}, bibliography = {Bibliography}, mathesis = {master's thesis}, phdthesis = {doctoral thesis}, techreport = {technical report}, resreport = {research report}, edition = {edition}, volume = {volume}
}
\DefineBibliographyStrings{ngerman}{
andothers = {{et\,al\adddot}}, bibliography = {Literaturverzeichnis}, mathesis = {Diplomarbeit}, phdthesis = {Dissertation}, techreport = {Technischer Bericht}, resreport = {Forschungsbericht}, edition = {Auflage}, volume = {Band}, jourvol = {Vol.},
}
\DefineBibliographyStrings{german}{
andothers = {{et\,al\adddot}}, bibliography = {Literaturverzeichnis}, mathesis = {Diplomarbeit}, phdthesis = {Dissertation}, techreport = {Technischer Bericht}, resreport = {Forschungsbericht}, edition = {Auflage}, volume = {Band}, jourvol = {Vol.},
}
围兜入口
@Article{Behnamian2015,
author = {J. Behnamian},
title = {Graph colouring-based algorithm to parallel jobs scheduling on parallel factories},
journal = {International Journal of Computer Integrated Manufacturing},
year = {2015},
volume = {29},
number = {6},
pages = {622--635},
month = {oct},
doi = {10.1080/0951192x.2015.1099074},
publisher = {Informa {UK} Limited},
}
希望这个更好。提前谢谢您。
答案1
您正在加载一个私有包\usepackage{settings/BiblatexSetup}
,它正在改变biblatex
工作方式。该包中的以下行:
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}
是什么导致名称以小写字母显示(\textsc
)。你知道吗为什么您正在加载这个包吗?您的大学是否要求这样做?如果是这样,那么也许小写名称是必需的。如果您不知道为什么要加载这个包,您可能根本不想加载它。如果您只需要更改这一点,并且包所做的其他一切都符合您的要求,您可以在加载包后将以下行添加到您的序言中:
\renewcommand*{\mkbibnamefamily}[1]{#1}