Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

询问:是否有接口在全局super的参考文献引用的情况下,进行inline引用? #95

Closed
liziwl opened this issue Mar 15, 2022 · 4 comments

Comments

@liziwl
Copy link

liziwl commented Mar 15, 2022

是否有接口在全局super的参考文献引用的情况下,进行inline(非上标的数字)引用?

@sikouhjw
Copy link

你需要的可能是 \citestyle{numbers},可以自定义一个命令

\newcommand{\mycite}[1]{\setcitestyle{numbers}\cite{#1}\setcitestyle{super}}

@zepinglee
Copy link
Owner

是否有接口在全局super的参考文献引用的情况下,进行inline(非上标的数字)引用?

目前没有提供,可以设置

\makeatletter
\DeclareRobustCommand\parencite{%
  \begingroup
  \citestyle{numbers}%
  \let\NAT@ctype\z@
  \NAT@partrue
  \NAT@swatrue
  \@ifstar{%
    \NAT@fulltrue
    \NAT@cites
  }{%
    \NAT@fullfalse
    \NAT@cites
  }%
}
\makeatother

我在下个版本把这个加进去吧。

@zepinglee
Copy link
Owner

你需要的可能是 \citestyle{numbers},可以自定义一个命令

\newcommand{\mycite}[1]{\setcitestyle{numbers}\cite{#1}\setcitestyle{super}}

感谢帮忙回复!#95 (comment) 的设置可以支持 \parencite[][]{} 这样带可选参数的形式。

@liziwl
Copy link
Author

liziwl commented Mar 15, 2022

感谢两位的回复!完美解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants