각주의 첫 글자가 항상 대문자인지 확인하는 방법은 무엇입니까?

각주의 첫 글자가 항상 대문자인지 확인하는 방법은 무엇입니까?

내 친구는 "ibid"와 같은 것을 \footcite함께 사용하고 원하는 데 문제가 있습니다 . authorstyle-icomp(ebd. 독일어) 의 시작 부분에 있으면 대문자로 표시됩니다 footnote. 또한 그의 참고문헌에는 "al-Kabir"과 같은 아랍어 성이 포함되어 있는데, 이 이름은 대문자로 시작해야 합니다 footnote. 즉, 각주는 항상 대문자로 시작해야 합니다.

다음에서 찾은 매크로로 문제를 해결하려고 했습니다.https://stackoverflow.com/questions/2818119/automatically-capitalize-first-letter-of-first-word-in-a-new-sentence-in-latex( \uppercasesingleletter), 불행하게도 (a) 여전히 모든 것을 대문자로 쓰고 (b) 새로워진 명령에 통합되지 않습니다 footnote.

최소한 작동하지 않는 예는 다음과 같습니다.

\documentclass{scrartcl}

\usepackage{csquotes}
\usepackage{polyglossia}
\setmainlanguage[spelling=new]{german}

\def\uppercasesingleletter#1{\uppercase{#1}}

\let\oldfootnote\footnote
% compiles, but doesn't do anything
\renewcommand\footnote[1]{\oldfootnote{\uppercasesingleletter{#1}}}
% does not compile in the first place
% \renewcommand\footnote[1]{\oldfootnote{\uppercasesingleletter{#1}}}

\begin{filecontents}{test.bib}
    @book{ali:title:2008,
    title = {Ali's Title},
    author = {Ali, Jamal},
    date = {2008}
    }

    @book{azzayn:title:1965,
    title = {Az-Zayn's Title},
    editor = {az-Zayn, Ahmad},
    date = {1965}
    }
\end{filecontents}

\usepackage[backend=biber,citestyle=authoryear-icomp]{biblatex}
\addbibresource{test.bib}

\DeclareFieldFormat*{citetitle}{\emph{#1}}

\begin{document}

\uppercasesingleletter{only the first letter of this should be uppercase!}

To this here I want to make a reference.\footcite[p. 14]{ali:title:2008} And another one.\footcite[p. 15]{ali:title:2008}

However, what follows needs some more explaining.\footnote{\cite[p. 16]{ali:title:2008}, compare \cite[p. 141]{azzayn:title:1965}.}

First we go back to the first source,\footcite[p. 12]{ali:title:2008} and then we can see that this is an entirely different thing though.\footcite[p. 150]{azzayn:title:1965}

\end{document}

답변1

이것은 작동하지 않습니다. \uppercase는 간단한 텍스트에는 잘 작동하지만 임의의 내용이나 와 같은 복잡한 명령에는 작동하지 않는 기본 요소입니다 \cite.

귀하의 경우에도 그것을 사용할 필요가 없다고 생각합니다. 각주는 대부분의 경우 이미 대문자로 시작됩니다. 가 있으며 \Cite commandaz-Zayn의 경우 다음을 사용할 수 있습니다 \autocap.

   @book{azzayn:title:1965,
    title = {Az-Zayn's Title},
    editor = {\autocap{a}z-Zayn, Ahmad},
    date = {1965}
    }

(또한보십시오Biblatex, 아랍어 이름과 이름 접두사의 대문자 사용)

\documentclass{scrartcl}
\usepackage{csquotes}
\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage[backend=biber,citestyle=authoryear-icomp]{biblatex}
\addbibresource{bib.bib}

\begin{document}

\footcite[14]{ali:title:2008}\footcite[1]{ali:title:2008}

\footnote{\Cite[16]{ali:title:2008}, compare \cite[141]{azzayn:title:1965}.}

\footcites[16]{ali:title:2008}[compare][141]{azzayn:title:1965}

\footcite[12]{ali:title:2008} \footcite[150]{azzayn:title:1965}

\end{document}

참고: 포스트노트에 "p."를 추가하지 마세요. Biblatex를 사용해보세요.

여기에 이미지 설명을 입력하세요

관련 정보