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

关于参考文献会议部分不符合国标形式的问题 #32

Open
zhouyy2021 opened this issue Mar 22, 2024 · 11 comments
Open

关于参考文献会议部分不符合国标形式的问题 #32

zhouyy2021 opened this issue Mar 22, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@zhouyy2021
Copy link

相关代码

请填写相关错误的 latex 代码

会议论文[C]后面应该接的是//而不是.

会议论文[C]最后的时间应该在卷号前面,如果有地址也应该满足

尝试换成国标numic,但是生成的参考文献行距不一样,名字大小写无所谓,和学校要求冲突

pro

@zhouyy2021 zhouyy2021 added the bug Something isn't working label Mar 22, 2024
@zhouyy2021
Copy link
Author

麻烦作者看看这个问题,好几个老师最近反映

@zhouyy2021
Copy link
Author


STRINGS { s1 t1 }

FUNCTION {output.nonnu}
{ 's1 :=
  output.state mid.sentence =
    { ": " * write$ }
    { output.state after.block =
    {  write$
%      newline$
      "" write$
    }
    { output.state before.all =
        'write$
        { " " * write$ }
      if$
    }
      if$
      mid.sentence 'output.state :=
    }
  if$
  s1
}
FUNCTION {output.checkpro}
{ 't1 :=
  duplicate$ empty$
    { pop$ "empty "t1 * "in" *cite$* warning$ }
    'output.nonnu
  if$
}

FUNCTION {inproceedings}
{ output.bibitem
  format.authors "author" output.check
  % new.block
  % "[C]//" * format.title * "title" output.check
  format.title "[C]//" * "title" output.check
  new.block
  crossref missing$
    { format.in.ed.bookt "booktitle" output.checkpro
    % format.date ": " * "year"  output.check
    % format.date ":" * format.pages * output
    % new.bl
      % format.bvolume output
      % format.number.series output
      % format.pages output
      address empty$
        { organization publisher 
          new.sentence.checkb
          organization output
          publisher output
          % format.date ":" * format.pages * output
          % format.date "year" output.checkpro
          year output
          format.vol.num.pages output.year
      
        }
        { address output.nonnull
          format.date "year" output.check
          new.sentence
          organization output
          publisher output
        }
      if$
    }
    { format.incoll.inproc.crossref output.nonnull
      format.pages output
    }
  if$
  new.block
  note output
  fin.entry
}

对会议文献的bst做以上修改,[C]后面//和最后的年份等顺序正常,但是年后面接的. 或者, 而不是:,还需要作者再看看哪里需要修改一下。

@ZMY319
Copy link

ZMY319 commented Mar 26, 2024

我修改完代码之后,怎么还是不对

@zhouyy2021
Copy link
Author

zhouyy2021 commented Mar 26, 2024 via email

@ZMY319
Copy link

ZMY319 commented Mar 26, 2024

双斜线和年份是对的,但是不显示会议名称了

@zhouyy2021
Copy link
Author

zhouyy2021 commented Mar 26, 2024 via email

@ZMY319
Copy link

ZMY319 commented Mar 26, 2024

你编译是对的吗,能分享完整的bst文件吗

@zhouyy2021
Copy link
Author

zhouyy2021 commented Mar 26, 2024 via email

@zhouyy2021
Copy link
Author

zhouyy2021 commented Mar 26, 2024 via email

@ZMY319
Copy link

ZMY319 commented Mar 26, 2024

修改了.cls文件,引用gbt7714格式,最后是正确的
\usepackage{gbt7714}
\newtoks\bibdatabase
% \RequirePackage{ }
\newcommand{\printbib}{
\zihao{5}
\linespread{1.5238}
\setlength{\bibsep}{0pt}
\selectfont
% \bibliographystyle{bib/lzubib}
\bibliographystyle{gbt7714-numerical}
% \bibliographystyle{gbt7714-author-year}
% \bibliographystyle{gbt7714-numerical}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{参考文献}
\bibliography{\the \bibdatabase}
}

@zhouyy2021
Copy link
Author

zhouyy2021 commented Mar 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants