Epigraph 명령에 특수 기호가 있는 각주

Epigraph 명령에 특수 기호가 있는 각주

에 관한 질문과 관련된 문제가 있습니다.각주 및 비문.

즉, 해당 질문에서 egreg는 다음과 같은 (매우 깨끗한!) 답변을 제공했습니다.

그냥 사용하십시오 \footcitetext:

\epigraph{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
  Ut purus elit, vestibulum ut}{Author\footnotemark}
\footcitetext{author00:_title}

\dagger그러나 이 답변에서는 각주 기호와 같은 기호를 얻을 수 없습니다 .

egreg의 답변 아래에서 설명을 물었고 그는 bigfootpackage를 사용하면 그러한 결과를 얻을 수 있다고 친절하게 지적했습니다.

그러한 솔루션은 어떤 모습이어야 합니까?

피드백을 보내주셔서 미리 감사드립니다.

답변1

bigfoot패키지가 필요하지 않다고 생각합니다 .

 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}

(각주 카운터의 숫자 값 저장 - 이전 및 복원 - 이후).

편의를 위해 두 가지 유형의 각주 간 전환을 위한 두 개의 매크로( \switchfootnotenumsym및 ) 를 만들었습니다 .\switchfootnotesymnum

\begin{filecontents}{\jobname.bib}
    @Book{author00:_title,
        author =   {Author},
        title =    {Title},
        publisher =    {Publisher},
        year =     2000}
\end{filecontents}

\documentclass[12pt,twoside,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french]{babel}
\frenchbsetup{StandardLists=true}

\usepackage{setspace}
\usepackage{graphicx} 
\usepackage{lmodern}
\usepackage{xspace}
\usepackage{epigraph}

% New counter for switching from numeric footnotes to the ones with symbols and vice-versa
\newcounter{tempfootnote} 
% Macro for switching from numeric footnotes to the ones with symbols
\newcommand{\switchfootnotenumsym}{%
    \setcounter{tempfootnote}{\value{footnote}} % save the current value of footnote counter
    \setcounter{footnote}{0} 
    \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
}
% Newcommand for switching from the footnote with symbols to the numeric ones
\newcommand{\switchfootnotesymnum}{%
    \setcounter{footnote}{\value{tempfootnote}} 
    \renewcommand{\thefootnote}{\arabic{footnote}}
}

\usepackage{lipsum}
\usepackage{filecontents}

\usepackage[autostyle=true]{csquotes}
\usepackage[style=authoryear-comp,
hyperref,
backend=biber,
isbn=false,
doi=false,
url=false,
date=year]{biblatex}
\AtEveryBibitem{\clearlist{language}}
\renewcommand*{\newunitpunct}{\addcomma\space}
\bibliography{\jobname}
\usepackage[colorlinks]{hyperref}

\begin{document}
    \switchfootnotenumsym
    \setcounter{footnote}{1}% if you want the \dagger (which is the number two) set the counter to one 
    \epigraph{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut}{Author\footnotemark}
    \footcitetext{author00:_title}
    \switchfootnotesymnum

    Normal text\footnote{Normal footnote}

    \switchfootnotenumsym
    This is only to show you the correspondence between numbers and symbols (they are only 9):

    1\footnote{footnote} 2\footnote{footnote} 3\footnote{footnote} 4\footnote{footnote} 5\footnote{footnote}
    6\footnote{footnote} 7\footnote{footnote} 8\footnote{footnote} 9\footnote{footnote} 
    \switchfootnotesymnum

    Other normal text\footnote{With other normal footnote}
\end{document}

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

Stefan Kottwitz의 크레딧입니다.

편집하다:

연속적인 기호 각주 카운터가 필요한 경우(기호는 9개만 가능하며 기호 각주 카운터가 9보다 크면 오류가 발생한다는 점을 기억하세요):

\begin{filecontents}{\jobname.bib}
    @Book{author00:_title,
        author =   {Author},
        title =    {Title},
        publisher =    {Publisher},
        year =     2000}
\end{filecontents}

\documentclass[12pt,twoside,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french]{babel}
\frenchbsetup{StandardLists=true}

\usepackage{setspace}
\usepackage{graphicx} 
\usepackage{lmodern}
\usepackage{xspace}
\usepackage{epigraph}

% New counters for switching from numeric footnotes to the ones with symbols and vice-versa
\newcounter{tempfootnotenum}
\newcounter{tempfootnotesym}
\setcounter{tempfootnotenum}{0}% initial value 
\setcounter{tempfootnotesym}{0}% initial value 

% Macro for switching from numeric footnotes to the ones with symbols
\newcommand{\switchfootnotenumsym}{%
    \setcounter{tempfootnotenum}{\value{footnote}}% save the current value of numeric footnote counter
    \setcounter{footnote}{\value{tempfootnotesym}}% restore the value of the previous symbol footnote counter
    \renewcommand*{\thefootnote}{\fnsymbol{footnote}}% set footnote with symbols
}
% Newcommand for switching from the footnote with symbols to the numeric ones
\newcommand{\switchfootnotesymnum}{%
    \setcounter{tempfootnotesym}{\value{footnote}}% save the current value of symbol footnote counter
    \setcounter{footnote}{\value{tempfootnotenum}}% restore the value of the previous numeric footnote counter
    \renewcommand{\thefootnote}{\arabic{footnote}}% set numeric footnote
}

\usepackage{lipsum}
\usepackage{filecontents}

\usepackage[autostyle=true]{csquotes}
\usepackage[style=authoryear-comp,
hyperref,
backend=biber,
isbn=false,
doi=false,
url=false,
date=year]{biblatex}
\AtEveryBibitem{\clearlist{language}}
\renewcommand*{\newunitpunct}{\addcomma\space}
\bibliography{\jobname}
\usepackage[colorlinks]{hyperref}

\begin{document}
    \switchfootnotenumsym
    \epigraph{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut}{Author\footnotemark}
    \footcitetext{author00:_title}
    \switchfootnotesymnum

    Normal text\footnote{Normal footnote}

    \switchfootnotenumsym
    \epigraph{We love ducks}{Author\footnotemark}
    \footcitetext{author00:_title}
    \switchfootnotesymnum

    Other normal text\footnote{With another normal footnote}

    \switchfootnotenumsym
    \epigraph{We love lions, too}{Author\footnotemark}
    \footcitetext{author00:_title}
    \switchfootnotesymnum

    I hope this is what you need\footnote{Third footnote}

\end{document}

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

관련 정보