
~ 안에이 질문, 나는 를 사용하여 단일 단락 참고 문헌을 얻었습니다 paralist
. 이제 첫 번째 총알을 없애고 싶습니다. 일반 목록에서는 작동 paraenum
하지만 참고문헌에서는 실패합니다. 어떻게 관리할 수 있나요?
예를 들면 다음과 같습니다. 글머리 기호를 제거하면 작동하지만 참고문헌에서는 제거되지 않습니다.
\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue,]{hyperref}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\setlength{\bibsep}{0.0cm}
% ========== DEFINE COUNTER DEPENDENT BULLET ============
\makeatletter
\newcommand{\mybullet}{%
\ifnum\value{enumi}=1
\else
\textbullet
\fi
}
\makeatother
\usepackage{paralist}
% ====== REDEFINE BIBLIOGRAPHY ===================
\renewenvironment{thebibliography}[1]{\let\par\relax%
\section*{\refname}\inparaenum}{\endinparaenum}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item[\mybullet] \oldbibitem}
\begin{document}
% ====== IT WORKS IN PARALIST =========
Test paralist without first bullet:
\begin{inparaenum}[\mybullet]
\item bullet-free first item
\item second item
\item third item
\end{inparaenum}
% ====== BUT NOT IN THE BIBLIOGRAPHY =========
Let us cite \citet{Author:1976} \citep[but also][]{Someone:2000}.
% ========== BIBLIOGRAPHY ============
\begin{thebibliography}{93}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi
\bibitem[{Author {et~al.}(1976)Author, Other, \&
Yetanother}]{Author:1976}
Author, F., Other, S., \& Yetanother, T. 1976, Obscure Journal, 25, 314
\bibitem[{Someone {et~al.}(2000)Someone, Someother, \& Thirdone}]{Someone:2000}
Someone, F., Someother, S., \& Thirdone, T. 2000, Otherjournal, 321, 42
\end{thebibliography}
\end{document}
또한 누군가가 인용에서 참고문헌(반드시 특정 항목에 대한 것은 아님)으로의 하이퍼링크를 수정한다면 정말 좋을 것입니다!
답변1
이것은 도움이 될 것입니다
% ====== REDEFINE BIBLIOGRAPHY ===================
\renewenvironment{thebibliography}[1]{\let\par\relax%
\section*{\refname}\inparaenum[\mybullet]}{\endinparaenum}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item \oldbibitem}
전체 코드:
\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue,]{hyperref}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\setlength{\bibsep}{0.0cm}
% ========== DEFINE COUNTER DEPENDENT BULLET ============
\makeatletter
\newcommand{\mybullet}{%
\ifnum\value{enumi}=1
\else
\textbullet
\fi
}
\makeatother
\usepackage{paralist}
% ====== REDEFINE BIBLIOGRAPHY ===================
\renewenvironment{thebibliography}[1]{\let\par\relax%
\section*{\refname}\inparaenum[\mybullet]}{\endinparaenum}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item \oldbibitem}
\begin{document}
% ====== IT WORKS IN PARALIST =========
Test paralist without first bullet:
\begin{inparaenum}[\mybullet]
\item bullet-free first item
\item second item
\item third item
\end{inparaenum}
% ====== BUT NOT IN THE BIBLIOGRAPHY =========
Let us cite \citet{Author:1976} \citep[but also][]{Someone:2000}.
% ========== BIBLIOGRAPHY ============
\begin{thebibliography}{93}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi
\bibitem[{Author {et~al.}(1976)Author, Other, \&
Yetanother}]{Author:1976}
Author, F., Other, S., \& Yetanother, T. 1976, Obscure Journal, 25, 314
\bibitem[{Someone {et~al.}(2000)Someone, Someother, \& Thirdone}]{Someone:2000}
Someone, F., Someother, S., \& Thirdone, T. 2000, Otherjournal, 321, 42
\end{thebibliography}
\end{document}