如何擺脫 paralist 參考書目中的第一顆子彈

如何擺脫 paralist 參考書目中的第一顆子彈

這個問題,我設法使用 獲得了單段落參考書目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}

在此輸入影像描述

相關內容