Как маркировать цитаты, как во многих философских работах?

Как маркировать цитаты, как во многих философских работах?

Во многих философских работах принято обозначать тезисы, выбранные для анализа, следующим образом:

введите описание изображения здесь

Похоже, что этот эффект достигается путем определения окружения, похожего на кавычки. Есть ли какой-нибудь пакет с таким встроенным окружением? Если нет, может ли кто-нибудь помочь мне спроектировать окружение, которое будет выглядеть так? Я новичок в TeX. Мне кажется, что это почти окружение itemize, но метка не установлена ​​так далеко слева. Спасибо!

решение1

Это можно сделать с помощью enumitemпакета, определив новую enumerateсреду, например, sensitive, которая возобновляется каждый раз, когда вы ее используете, следующим образом:

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

а затем использовать

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

МВЭ:

\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*$)]

МВЭ:

\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вычислив длину слова label

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

а потом

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

введите описание изображения здесь

Связанный контент