预先设置要检索的文献数据库以及文献引用与文献列表的样式,LaTeX 标准选项及其样式共有以下8种: plain ,按字母的顺序排列,比较次序为作者、年度和标题: unsrt ,样式同plain,只是按照引用的先后排序: alpha ,用作者名首字母+年份后两位作标号,以字
plain ,按字母的顺序排列,比较次序为作者、年度和标题: |
|
unsrt ,样式同plain,只是按照引用的先后排序: |
|
alpha ,用作者名首字母+年份后两位作标号,以字母顺序排序: |
|
abbrv ,类似plain,将月份全拼改为缩写,更显紧凑: |
|
ieeetr ,国际电气电子工程师协会期刊样式: |
|
acm ,美国计算机 学会期刊样式: |
|
siam ,美国工业和应用数学学会期刊样式: |
|
apalike ,美国心理学学会期刊样式: |
|
BibTeX 提供了一个外部的 BibTeX 工具程序,源文件经过 LaTeX 编译后,还要使用BibTeX 对数据库文件编译一次,最后再用 LaTeX 连续编译两遍,才能得到正确结果。 可用下图解释这四个编译步骤的作用:
文献数据库可根据要求自行编写,其格式有:文章、书籍、技术报告、会议论文集和博士论文等十几种,每种格式都有一些必填和选填的项目,如作者、标题、出版社、发表年度、...等等,最后存储为 .bib 文件。
如果对生成的参考文献样式仍有不满意之处,还可将编译信息文件*.bbl 中的参考文献列表源程序拷贝到论文尾部,然后进行手工调整。
还有很多刊物、学会和 TUG 等网站提供相关的 BibTeX 文献数据库。
David Young
幻灯简介 Indian TUG FAQ Michael Shell
bibunits
短篇论文都是把正文中引用的参考文献列于结尾处,但对于上百页的长篇论文,这样编排既不利于作者修改也不利于读者阅览。
bibunits 宏包定义了 /bibliographyunit 等一组引用设置命令和环境,可以为不同的文本单元设置单独的参考文献列表。文本单元可以是章、节或是 bibunit 环境,见下例:
![]() |
![]() |
本例是按节设置参考文献,由于两次使用 /putbib 文献设置命令,所以在源文件编译时会自动生成 bu1.aux 和 bu2.aux 两个引用记录文件,因此源文件的完整编译过程应为:
PDFLaTeX、BiBTeX bu1.aux、BiBTeX bu2.aux、PDFLaTeX、PDFLaTeX。
源文件
Thorsten Hansen
custom-bib
BiBTeX 已提供了多种参考文献样式,如果仍没有符合要求的,可以采用该程序套件自定义参考文献样式。首先运行 latex makebst ,调出其提供的问答式编程工具:
在逐一回答所提出的使用说明、输出名称、使用语言、引用式样、排序方式、姓名样式、姓名字体和日期位置等几十个问题后,自行设计的文献样式文件就诞生了,它的扩展名为.bst。如果使用 CTeX 系统,该文件存于 C:/CTeX/WinEdt/Samples/GUI 目录下,将其转存于源文件目录下,就可在源文件中用 /bibliographystyle{文献样式名} 命令调用了。
在回答 makebst 提问过程中,它自动生成一个同名批处理文件,扩展名为.dbj,以供后台处理程序 docstrip 创建.bst 样式文件。
源文件
Patrick W. Daly
footbib
在 LaTeX 文件中,参考文献大都置于正文末尾处。这样布局,页面整洁条理清晰,但读者时常为此前后翻阅查找,多有不便。
该宏包定义了一组命令,其中一条命令:/footcite,其作用类似 LaTeX 中的 /cite 命令,所不同的是前者将引用的参考文献像脚注一样被放置在引用处页面的底部:
![]() |
![]() |
这样,既便于阅读又不与标准的参考文献形式冲突,两者可以在一个文件中同时出现,也就是说仍可使用 /cite 命令创建标准的参考文献条目列表,两者的文献样式选项也可以各自选用BiBTeX 提供的8种类型。
在对源文件第一次编译时,自动生成一个与源文件同名的双扩展名文件*.fb.aux,它是引用记录文件,必须用 BiBTeX 对其编译,再生成*.fb.bbl 文献文件。源文件的完整编译过程为:PDFLaTeX、BiBTeX *.fb.aux、PDFLaTeX、PDFLaTeX。
该宏包还具有多种选项,可影响脚注式参考文献的外观或位置。
源文件
Eric Domenjoud
listbib
经常用 LaTeX 撰写论文的科研人员一般都有自己的参考文献数据库,其内容会随着时间而越来越多。为了便于查阅和引用, 有时需要将数据库的内容全部打印出来。
使用 listbib 宏包可将文献数据库的内容以清单的形式列出:
![]() |
![]() |
: |
: |
listbib 宏包需要数据库样式文件 listbib.bst 的后台支持,该文件有时以 listbib.doc 形式出现,将其扩展名改为.bst 即可。
源文件的编译过程:PDFLaTeX、BiBTeX、PDFLaTeX、PDFLaTeX。
源文件
Volker Kuhlmann
mcite
有些物理学期刊要求稿件在引用几个内容相近的参考文献时将其合并为一个条目,以便读者查阅。
mcite 宏包重新定义了 /cite 命令,可以将关键词前带有*号的条目与它前面的条目合并为一个条目,使用一个序号,见下例:
![]() |
![]() |
这样还有一个好处,就是带*号条目的增加或删减不会打乱参考文献列表的序号,也就不会改变正文中的引用标号。
源文件
Thorsten Ohl
natbib
LaTeX 和 BibTeX 默认的引用样式是按照文献列表序号,很多期刊文献引用样式都是数字序号,但具体样式会有所不同;有些刊物则要求以作者名字加上发表年度 的方式引用,例如《自然科学》杂志。
natbib 宏包重新定义了 /cite 命令,并提供了多个选项,可生成多种风格的序号引用样式,见下表:
选项 | 文献引用样式 |
round (默认) |
![]() |
square |
![]() |
curly |
![]() |
angle |
![]() |
super |
![]() |
colon |
![]() |
comma |
![]() |
sort&compress |
![]() |
numbers |
![]() |
该宏包还定义了一组引用命令,可生成“ 作者名+发表年度” 形式的文献引用样式,如下图所示:
源文件
Patrick W. Daly
示例
===
相关链接:
Latex 使用心得
Latex参考文献技巧(Latex编辑部)
Latex参考文献FAQ
LaTeX 参考文献的处理
文献管理软件 JabRef 入门简介
Latex之Natbib中文说明
latex+bibtex+jabref

Stored procedures are precompiled SQL statements in MySQL for improving performance and simplifying complex operations. 1. Improve performance: After the first compilation, subsequent calls do not need to be recompiled. 2. Improve security: Restrict data table access through permission control. 3. Simplify complex operations: combine multiple SQL statements to simplify application layer logic.

The working principle of MySQL query cache is to store the results of SELECT query, and when the same query is executed again, the cached results are directly returned. 1) Query cache improves database reading performance and finds cached results through hash values. 2) Simple configuration, set query_cache_type and query_cache_size in MySQL configuration file. 3) Use the SQL_NO_CACHE keyword to disable the cache of specific queries. 4) In high-frequency update environments, query cache may cause performance bottlenecks and needs to be optimized for use through monitoring and adjustment of parameters.

The reasons why MySQL is widely used in various projects include: 1. High performance and scalability, supporting multiple storage engines; 2. Easy to use and maintain, simple configuration and rich tools; 3. Rich ecosystem, attracting a large number of community and third-party tool support; 4. Cross-platform support, suitable for multiple operating systems.

The steps for upgrading MySQL database include: 1. Backup the database, 2. Stop the current MySQL service, 3. Install the new version of MySQL, 4. Start the new version of MySQL service, 5. Recover the database. Compatibility issues are required during the upgrade process, and advanced tools such as PerconaToolkit can be used for testing and optimization.

MySQL backup policies include logical backup, physical backup, incremental backup, replication-based backup, and cloud backup. 1. Logical backup uses mysqldump to export database structure and data, which is suitable for small databases and version migrations. 2. Physical backups are fast and comprehensive by copying data files, but require database consistency. 3. Incremental backup uses binary logging to record changes, which is suitable for large databases. 4. Replication-based backup reduces the impact on the production system by backing up from the server. 5. Cloud backups such as AmazonRDS provide automation solutions, but costs and control need to be considered. When selecting a policy, database size, downtime tolerance, recovery time, and recovery point goals should be considered.

MySQLclusteringenhancesdatabaserobustnessandscalabilitybydistributingdataacrossmultiplenodes.ItusestheNDBenginefordatareplicationandfaulttolerance,ensuringhighavailability.Setupinvolvesconfiguringmanagement,data,andSQLnodes,withcarefulmonitoringandpe

Optimizing database schema design in MySQL can improve performance through the following steps: 1. Index optimization: Create indexes on common query columns, balancing the overhead of query and inserting updates. 2. Table structure optimization: Reduce data redundancy through normalization or anti-normalization and improve access efficiency. 3. Data type selection: Use appropriate data types, such as INT instead of VARCHAR, to reduce storage space. 4. Partitioning and sub-table: For large data volumes, use partitioning and sub-table to disperse data to improve query and maintenance efficiency.

TooptimizeMySQLperformance,followthesesteps:1)Implementproperindexingtospeedupqueries,2)UseEXPLAINtoanalyzeandoptimizequeryperformance,3)Adjustserverconfigurationsettingslikeinnodb_buffer_pool_sizeandmax_connections,4)Usepartitioningforlargetablestoi


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
