多くの哲学論文のように引用にラベルを付けるにはどうすればよいでしょうか?

多くの哲学論文のように引用にラベルを付けるにはどうすればよいでしょうか?

多くの哲学論文では、分析対象として選ばれた論文に次のようにラベルを付けるというのが一般的な慣例です。

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

この効果は、引用符のような環境を定義することによって実現されているようです。そのような環境が組み込まれたパッケージはありますか? ない場合は、このような環境を設計するのを手伝ってくれる人はいますか? 私は TeX 初心者です。これは itemize 環境のように見えますが、ラベルがそれほど左に設定されていません。ありがとうございます!

答え1

パッケージでこれを行うには、と呼ばれるenumitem新しい のような環境を定義します。この環境は、使用するたびに次のように再開されます。enumeratesensitive

\newlist{sensitive}{enumerate}{1}
\setlist[sensitive]{resume, label=(\textsc{Sensitive}$_\arabic*$), labelindent=\parindent, leftmargin=*}

そして使用する

\begin{sensitive}
...
\end{sensitive}

MWE:

\documentclass{article}

\usepackage{enumitem}

\newlist{sensitive}{enumerate}{1}
\setlist[sensitive]{resume, label=(\textsc{Sensitive}$_\arabic*$), labelindent=\parindent, leftmargin=*}

\begin{document}

Finally, notions of sensitivity also extend to probabilistic knowledge. For instance,
Nozick 1981 states the following sensitivity condition on knowledge:
\begin{sensitive}
  \item\label{sensitive1} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if $p$ 
    weren't true and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$ wouldn't
    believe, via $M$, that $p$.
\end{sensitive}
The advocate of probabilistic knowledge may endorse the following deflationist variant of \ref{sensitive1}:
\begin{sensitive}
  \item\label{sensitive2} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if it were
    not the case that $p$ and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$
    wouldn't believe, via $M$, that $p$.
\end{sensitive}
Here again, the expressivist may capture the spirit of a statement concerning the truth
\end{document} 

出力:

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


編集

enumerateそれ以外の場合は、例えば と呼ばれる単一の新しい のような環境を定義し、mylistラベルと再開するタイミングをローカルに定義することができます。

\begin{mylist}[resume, label=(\textsc{Frequentist}$_\arabic*$)]

MWE:

\documentclass{article}
\usepackage{enumitem}

\newlist{mylist}{enumerate}{1}
\setlist[mylist]{labelindent=\parindent, leftmargin=*}

\begin{document}

Finally, notions of sensitivity also extend to probabilistic knowledge. For instance,
Nozick 1981 states the following sensitivity condition on knowledge:
\begin{mylist}[label=(\textsc{Sensitive}$_\arabic*$)]
  \item\label{sensitive1} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if $p$
    weren't true and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$ wouldn't
    believe, via $M$, that $p$.
\end{mylist}
The advocate of probabilistic knowledge may endorse the following deflationist variant of \ref{sensitive1}:
\begin{mylist}[resume, label=(\textsc{Sensitive}$_\arabic*$)]
  \item\label{sensitive2} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if it were
    not the case that $p$ and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$
    wouldn't believe, via $M$, that $p$.
\end{mylist}
Here again, the expressivist may capture the spirit of a statement concerning the truth
\begin{mylist}[label=(\textsc{Frequentist}$_\arabic*$)]
  \item\label{frequentist1} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if $p$
    weren't true and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$ wouldn't
    believe, via $M$, that $p$.
\end{mylist}
The advocate of probabilistic knowledge may endorse the following deflationist variant of \ref{frequentist1}:
\begin{mylist}[resume, label=(\textsc{Frequentist}$_\arabic*$)]
  \item\label{frequentist2} $S$ knows, via method (or way of believing) $M$, that $p$ only if: if it were
    not the case that $p$ and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$
    wouldn't believe, via $M$, that $p$.
\end{mylist}
Here again, the expressivist may capture the spirit of a statement concerning the truth
\end{document} 

出力:

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

答え2

これには個人環境を定義できます。

\documentclass{article}
\usepackage{hyperref}

\makeatletter
\newlength{\lquotelabelwidth}
\newlength{\lquote@label@temp}
\AtEndDocument{%
  \write\@auxout{\string\global\string\lquotelabelwidth=\the\lquote@label@temp\relax}%
}

\newenvironment{lquote}[1]
 {%
  \settowidth\@tempdima{#1}%
  \addtolength\@tempdima{2pc}% <---------------- add here if you want more
  \ifdim\@tempdima>\lquote@label@temp
    \global\lquote@label@temp=\@tempdima
  \fi
  \list{}{%
    \leftmargin=\lquotelabelwidth
    \labelwidth=\leftmargin
  }%
  \csname phantomsection\endcsname % if hyperref is loaded
  \def\@currentlabel{#1}%
  \item[\textsc{(#1)}]%
 }
 {\endlist}

\newcommand{\lqref}[1]{\textup{\textsc{(\ref{#1})}}}
\makeatother

\begin{document}

Be careful that \lqref{murphy} holds.

Finally, notions of sensitivity also extend to probabilistic knowledge. 
For instance, Nozick 1981 states the following sensitivity condition on 
knowledge:
\begin{lquote}{Sensitive\textsubscript{1}}\label{sensitive1}
  $S$ knows, via method (or way of believing) $M$, that $p$ only if: if $p$ 
  weren't true and $S$ were to use $M$ to arrive at a belief whether (or not) 
  $p$, then $S$ wouldn't believe, via $M$, that~$p$.
\end{lquote}
The advocate of probabilistic knowledge may endorse the following deflationist 
variant of \lqref{sensitive1}:
\begin{lquote}{Sensitive\textsubscript{2}}\label{sensitive2}
  $S$ knows, via method (or way of believing) $M$, that $p$ only if: if it were
  not the case that $p$ and $S$ were to use $M$ to arrive at a belief whether 
  (or not) $p$, then $S$ wouldn't believe, via $M$, that~$p$.
\end{lquote}
Here again, the expressivist may capture the spirit of a statement concerning the truth
\begin{lquote}{Murphy}
\label{murphy}
  If something can go wrong, it will.
\end{lquote}

\end{document} 

これにより、最長ラベルの幅が .aux ファイルに記録され、次回の LaTeX 実行時にラベルの幅を設定できます。括弧用に 2pc (24pt) を追加し、さらに余裕を持たせました。お好みの値に変更してください。

読み込みはhyperref決して必須ではありません。コードが読み込みで動作することを示すために、例に追加しました。

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

答え3

これは、以前作成したもののほんの少し調整したバージョンです (ただし、特に引用用ではないことは言わざるを得ません)。奇妙に思える場合は、名前を意味のあるものに変更してくださいmathau

\documentclass{article}
\usepackage{enumitem}
\makeatletter
\newcommand*{\mathau}[1]{%
  \def\tempa{#1s}%
  \newlist{\tempa}{enumerate}{1}%
  \setlist[\tempa]{label={(\MakeUppercase#1\textsubscript{\arabic*})},leftmargin=*,font=\scshape,resume,ref={\MakeUppercase#1\textsubscript{\arabic*}}}}
\makeatother
\begin{document}
\mathau{sensitive}
\begin{sensitives}
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{sensitives}
Some text showing the need to disambiguate various senses of `concept'.
\mathau{concept}
\begin{concepts}
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{concepts}
Further discussion getting ready to return to sensitivities.
But this turns up another sense of `concept'.
\begin{concepts}
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{concepts}
Now we can return to the sensitivities.
\begin{sensitives}
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{sensitives}
Commentary.
\begin{sensitives}
  \item As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{sensitives}

\end{document}

マタウ、微調整

答え4

カールケラーリスト ラベルを一貫して水平に揃えるには、より適切な回答が返されました (たとえば、「Frequentist」という単語は「Sensitive」という単語よりも長いですが、どちらも同じインデントで始まります)。ただし、リスト内の項目には単語ラベルを使用することが多いため、ラベルを の角括弧内に入れることで、その場で簡単に一意のラベルを作成できます\item[]。ただし、以下の方法では、項目ラベルではなく、項目の本文が揃えられます。

\documentclass{article}
\usepackage[osf]{mathpazo} 
\usepackage{enumitem}
\begin{document}
\setlist{labelwidth=7em, leftmargin=!}
Finally, notions of sensitivity also extend to probabilistic knowledge. For instance, {\scshape Nozick} 1981 states the following sensitivity condition on knowledge:
\begin{enumerate}
\item[\scshape (Sensitive\textsubscript 1)] $S$ knows, via method (or way of believing) $M$, that $p$ only if: if $p$ weren't true and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$ wouldn't believe, via $M$, that $p$.
\end{enumerate}
The advocate of probalistic knowledge may endorse the following deflationist variant of {\scshape (Sensitive\textsubscript 1)}:
\begin{enumerate}
\item[\scshape (Sensitive\textsubscript 2)] $S$ knows, via method (or way of believing) $M$, that $p$ only if: if it were not the case that $p$ and $S$ were to use $M$ to arrive at a belief whether (or not) $p$, then $S$ wouldn't believe, via $M$, that $p$.
\end{enumerate}

\end{document}

7em試行錯誤で見つけましたが、正確さを期したい場合は、7em単語ラベルの長さを計算して置き換えてください。

\usepackage{calc}
%-----
\newlength\sensitive\setlength\sensitive{\widthof{\scshape (Sensitive\textsubscript 1)}}

その後

\setlist{labelwidth={\dimexpr \sensitive  +\parindent \relax}, leftmargin=!}

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

関連情報