保留 BibTeX 中的所有大写

发布于 2024-08-31 17:54:36 字数 1459 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

空心↖ 2024-09-07 17:54:36

我同意 Killian 的观点,即正确的做法是使用 {} 来节省大写,但我不建议总是这样做,因为这种行为是 在某些情况下是错误的,并且不可自动化,但 Bibtex 的正确做法是执行以下操作:以下:

  1. 将书籍和文章标题放入标题大小写(即,将所有重要单词大写 [1],但尚未保护它们);
  2. 保护所有专有名称的大写字母,例如,From {B}rouwer to {H}ilbert
  3. 保护所有技术缩略词的大写,例如,{S}tandard {ML}的定义;保护
  4. 副标题的首词,例如{W}ittgenstein 的扑克:{T}十分钟争论的故事

不保护小写字母:这会阻止 Bibtex 将字符串转换为全部大写字母,这是一些晦涩的书目样式所要求的。

如果您一直在使用拼写检查器,那么幸运的话,其数据库的内容将包含您需要知道的几乎所有正确大写的材料:拼写检查器存储的信息包括哪些单词全部大写,哪些单词全部大写以及哪些单词全部大写。作为专有名称均大写。如果您可以通过编程方式将单词与此匹配,那么您可以自动生成 Bibtex 数据库,需要做一些工作,但这可能是一个两个小时的项目。

令人厌烦的是,Bibtex 不能用于正确获取所有参考书目,因为不同的引文样式实际上具有不同的非重要单词列表。然而,实际上几乎没有人关心这些差异,因此人们可以拿出一份标准的非大写单词列表。

[1] - 重要单词:“a”、所有两个字母的实际单词、“the”、“and”、“some”、所有单字介词和所有单字代词我认为,对于几乎所有出版商来说,这是一个可以接受的非重要单词列表。

I agree with Killian that the right thing is to put {}s to conserve capitalisation, but I don't recommend doing this always, since the behaviour is wrong in some contexts, and not automatisable, but instead the right thing with Bibtex is to do the following:

  1. Put book and article titles into title case (i.e., capitalising all significant words [1], but not protecting them yet);
  2. Protect the capitals of all proper names, e.g., From {B}rouwer to {H}ilbert;
  3. Protect the capitals of all technical acronyms, e.g., The definition of {S}tandard {ML}; and
  4. Protect the initial word of a subtitle, e.g. the {W}ittgenstein's Poker: {T}he story of a ten-minute argument.

Don't protect lowercase letters: this prevents Bibtex from converting the string to all-caps, which is required by some obscure bibliographical styles.

If you have been using a spell-checker, then the contents of its database will, with luck, contain nearly all of the material you need to know to capitalise properly: spell-checker's store information on which words are all-caps, and which are capitalised as proper names. If you can programmatically match words against this, then you can generate your Bibtex database automatically, with more than a little work, but it's maybe a two-hour project.

Tiresomely, Bibtex can't be used to get all bibliographies right, since different citation styles actually have different lists of non-significant words. However, in practice hardly anyone ever cares about the differences, so one can come up with a standard list of non-capitalised words.

[1] - Significant words:"a", all two-letter actual words, "the", "and", "some", all one-word prepositions, and all one-word pronouns would be an acceptable list of non-significant words , I think, to nearly all publishers.

失去的东西太少 2024-09-07 17:54:36

如果您更喜欢编辑 bibtex 样式 (.bst) 而不是参考书目 (.bib),则可以搜索 change.case$ 的出现情况代码>在其中。这是将非人名字段大写或标题化的函数。

通常,对于标题字段,您应该找到类似 title "t" change.case$ 的内容。由于您希望标题不被修改,因此只需将其替换为 title

If you prefer to edit the bibtex style (.bst) rather than the bibliography (.bib), you can search for occurences of change.case$ in it. This is the function that capitalizes or title-izes fields that are not people names.

Typically, for the title field, you should find something like title "t" change.case$. Since you want the title unmodified, replace that by just title.

烂人 2024-09-07 17:54:36

在这种情况下,您应该只在每个整个标题周围添加 {},这具有相同的效果并且应该很容易自动完成。

In that case you should just add {} around each entire title, which has the same effect and should be easy to do automatically.

自控 2024-09-07 17:54:36

我遇到了同样的问题,标题如下:

title = {blah blah AB blah AB blah}

结果为:

“blah blah ab blah ab blah”

使用 Charles根据斯图尔特的建议,我将标题更改为:

title = {blah blah {A}{B} blah {A}{B} blah}

现在我的标题是正确的:
blah blah AB blah AB blah

希望这会有所帮助。

I was getting the same issue with a title such as:

title = {blah blah AB blah AB blah}

turning out as:

"blah blah ab blah ab blah"

Using Charles Stewart's suggestion, I changed my title to:

title = {blah blah {A}{B} blah {A}{B} blah}

Now my title turns out right:
blah blah AB blah AB blah

Hope this helps.

离线来电— 2024-09-07 17:54:36

使用 {大括号} 的一种替代方法是:-

  1. 在第一次运行 pdflatex 然后在 BiBteX 数据库文件上运行 bibtex 后,检查根文件夹中的 .bbl 文件,其中 .bbl 是 BiBteX 数据库。 bbl。

  2. 在您选择的编辑器中打开此 *.bbl 文件。

  3. 该文件将如下所示:
     

    <前><代码>\begin{参考书目}{10}

    \expandafter\ifx\csname url\endcsname

    \放松
    \def\url#1{\texttt{#1}}

    \fi
    \expandafter\ifx\csname urlprefix\endcsname

    \relax\def\urlprefix{URL }

    \fi

    \bibitem{标签}.....

  4. 编辑此 *.bbl 文件以满足您的要求,然后在 .tex 文件上运行 pdflatex 命令。这应该会为您提供所需的结果。

  5. 通过这种方法,您可以以任何方式编辑参考书目。您甚至可以添加带有重音字符的名称。

One alternative to using {curly brackets} is this:-

  1. Check your root folder for .bbl file, where .bbl is your BiBteX database, after you run pdflatex for the first time and then run bibtex on your BiBteX database file.bbl.

  2. Open this *.bbl file in an editor of your choice.

  3. The file would look like this:
     

    \begin{thebibliography}{10}
    
    \expandafter\ifx\csname url\endcsname
    
    \relax
    \def\url#1{\texttt{#1}}
    
    \fi
    \expandafter\ifx\csname urlprefix\endcsname
    
    \relax\def\urlprefix{URL }
    
     \fi
    
    \bibitem{label}.....
    
  4. Edit this *.bbl file to meet your requirements and now run the pdflatex command on your .tex file. This should give you the desired result.

  5. By this method you can edit the bibliography in any manner. You can even add names with accented characters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文