エピグラフコマンドで特殊記号を使用した脚注

エピグラフコマンドで特殊記号を使用した脚注

私は以下の質問に関して問題を抱えています脚注と碑文

つまり、その質問に対して、egreg は次のような (非常にわかりやすい!) 回答をしました。

次のように使用します\footcitetext:

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

\daggerしかし、この回答では脚注記号などの記号を取得することはできません。

bigfootegreg の回答の下で、私は彼に説明を求めたところ、彼はパッケージ を使用することでそのような結果を得ることができると親切に指摘してくれました。

そのような解決策はどのようなものになるでしょうか?

フィードバックをいただければ幸いです。

答え1

bigfootパッケージは必要ないと 思います。

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

(脚注カウンターの数値を保存 (前) し、復元 (後) します)。

便宜上、2 種類の脚注を切り替えるための2 つのマクロ (\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}

ここに画像の説明を入力してください

関連情報