Skip to content

参考文献 J/OL 发表日期与网页更新日期不一致 #1095

Answered by hushidong
phys-jychen asked this question in 提问
Discussion options

You must be logged in to vote

默认是用date的信息来填更新日期的,当然也可以不使用它,那么就用另一个eventdate来填。

之前利用year信息来判断date存在,所以只要year,date存在,就会用date/year的信息来作为更新日期。

下面的例子中修改为用day来判断date存在,若不存在,则判断date不存在,所以会用eventdate来输出更新日期。

如果还有其他需求,可以继续修改下面这个modifydate宏。

比如:

\documentclass{ctexart}
\usepackage{amsmath,amsfonts,amssymb,amsthm}

\usepackage
  [
    backend      = biber,
    style     = gb7714-2015,
  ]{biblatex}
  
  
\renewbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
        \ifboolexpr{%
        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
        }%
        {}%更新或修改日期通常有day信息
        {\iffieldundef{day}{%
                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\pri…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@phys-jychen
Comment options

@LogCreative
Comment options

@LogCreative
Comment options

Comment options

You must be logged in to vote
4 replies
@hushidong
Comment options

@phys-jychen
Comment options

@LogCreative
Comment options

@phys-jychen
Comment options

Answer selected by phys-jychen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
提问
Labels
None yet
4 participants