| 1 |
****************************************************************************** |
| 2 |
FILE: 00readme.txt |
| 3 |
****************************************************************************** |
| 4 |
|
| 5 |
|
| 6 |
An 8-bit Implementation of BibTeX 0.99 with a Very Large Capacity |
| 7 |
================================================================= |
| 8 |
|
| 9 |
|
| 10 |
Contents |
| 11 |
-------- |
| 12 |
|
| 13 |
0. Abstract |
| 14 |
|
| 15 |
1. Introduction |
| 16 |
1.1 8-bit Character Set Support |
| 17 |
1.2 Big and Customisable Capacity |
| 18 |
|
| 19 |
2. Distribution Kits and Where to Find Them |
| 20 |
2.1 bt371dos.zip |
| 21 |
2.2 bt371os2.zip |
| 22 |
2.3 bt371src.zip |
| 23 |
2.4 bt371csf.zip |
| 24 |
|
| 25 |
3. Running 8-bit BibTeX |
| 26 |
3.1 Command line options |
| 27 |
3.2 Finding Files |
| 28 |
3.3 Environment variables |
| 29 |
|
| 30 |
4. The Codepage and Sort Order (CS) File |
| 31 |
4.1 CS file syntax |
| 32 |
4.2 Testing a CS file |
| 33 |
4.3 Sharing your CS file |
| 34 |
|
| 35 |
5. Building 8-bit BibTeX from Source Code |
| 36 |
5.1 DOS |
| 37 |
5.2 OS/2 |
| 38 |
5.3 Unix |
| 39 |
5.4 VMS |
| 40 |
|
| 41 |
6. Reporting Bugs and Requesting Improvements |
| 42 |
6.1 Contacting the authors |
| 43 |
6.2 Further enhancements |
| 44 |
|
| 45 |
7. Frequently Asked Questions |
| 46 |
|
| 47 |
8. Acknowledgements |
| 48 |
|
| 49 |
9. BibTeX Use and Copying Conditions |
| 50 |
|
| 51 |
10. Change Log |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
0. Abstract |
| 56 |
----------- |
| 57 |
|
| 58 |
This abstract is in a format suitable for inclusion in BBS description files |
| 59 |
(file_id.diz): |
| 60 |
|
| 61 |
(BibTeX8) "big" BibTeX with full 8-bit support |
| 62 |
|
| 63 |
An enhanced, portable C version of BibTeX. |
| 64 |
Enhanced by conversion to "big" (32-bit) |
| 65 |
capacity, addition of run-time selectable |
| 66 |
capacity and 8-bit support extensions. |
| 67 |
National character set and sorting order |
| 68 |
are controlled by an external configuration |
| 69 |
file. Various examples are included. |
| 70 |
Freeware / GNU Public Licence. |
| 71 |
|
| 72 |
Niel Kempson <[email protected]> |
| 73 |
Alejandro Aguilar-Sierra <[email protected]> |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
1. Introduction |
| 78 |
---------------- |
| 79 |
|
| 80 |
8-bit BibTeX is an enhanced, portable C version of BibTeX 0.99. It has been |
| 81 |
enhanced in these areas: |
| 82 |
|
| 83 |
- conversion to "big" (32-bit) capacity |
| 84 |
- capacity selectable at run time |
| 85 |
- flexible support for non-English languages using 8-bit character sets |
| 86 |
- well matched to LateX2e and its "inputenc" package |
| 87 |
|
| 88 |
Oren Patashnik, the creator of BibTeX, is working on a new BibTeX 1.0 that |
| 89 |
will be a modern implementation supporting large capacities and non-English |
| 90 |
languages (see TUGboat, pages 269--274, volume 15, number 3, September 1994). |
| 91 |
He is content for this version to be released, but hopes that people will |
| 92 |
eventually migrate to BibTeX 1.0 when it is released. Its release date is |
| 93 |
uncertain at the moment. |
| 94 |
|
| 95 |
|
| 96 |
1.1 Big and Customisable Capacity |
| 97 |
--------------------------------- |
| 98 |
|
| 99 |
The original 16-bit code has been rewritten to use 32-bit data types |
| 100 |
wherever possible. The result is a very large potential capacity. To |
| 101 |
increase flexibility and to avoid BibTeX allocating all available memory, |
| 102 |
the capacity of some key arrays can be set on the command line. |
| 103 |
|
| 104 |
For convenience, several standard capacities have been predefined: |
| 105 |
default, big and huge. The key capacities are set as follows: |
| 106 |
|
| 107 |
Parameter Standard --big --huge --wolfgang |
| 108 |
------------------------------------------------------------ |
| 109 |
Hash_Prime 4,253 8,501 16,319 30,011 |
| 110 |
Hash_Size 5,000 10,000 19,000 35,000 |
| 111 |
Max_Cites 750 2,000 5,000 7,500 |
| 112 |
Max_Ent_Ints 3,000 4,000 5,000 7,500 |
| 113 |
Max_Ent_Strs 3,000 6,000 10,000 10,000 |
| 114 |
Max_Fields 17,250 30,000 85,000 125,000 |
| 115 |
Max_Strings 4,000 10,000 19,000 30,000 |
| 116 |
Pool_Size 65,530 130,000 500,000 750,000 |
| 117 |
Wiz_Fn_Space 3,000 6,000 10,000 10,000 |
| 118 |
|
| 119 |
If these parameter names mean nothing to you, don't worry, you've |
| 120 |
probably never exceeded BibTeX's capacity. |
| 121 |
|
| 122 |
|
| 123 |
1.2 8-bit Character Set Support |
| 124 |
------------------------------- |
| 125 |
|
| 126 |
BibTeX now accepts 8-bit characters in its input files and writes 8-bit |
| 127 |
characters to its output files. The character set is defined by an |
| 128 |
external configuration text file - the codepage and sort order ("CS") |
| 129 |
file. |
| 130 |
|
| 131 |
The sort order can be defined for the language and character set. For |
| 132 |
example, in German, the control sequence \"o (o umlaut) should be sorted |
| 133 |
as if it were the letter "o", but after ordinary "o", leading to this |
| 134 |
order: |
| 135 |
|
| 136 |
Trofer, Tr\"ofer, Trufer |
| 137 |
|
| 138 |
However, in Swedish, \"o (o umlaut) is treated as the 29th letter of the |
| 139 |
alphabet and these entries would be sorted as: |
| 140 |
|
| 141 |
Trofer, Trufer, Tr\"ofer |
| 142 |
|
| 143 |
The sorting order is defined by an external configuration text file - |
| 144 |
the codepage and sort order ("CS") file. |
| 145 |
|
| 146 |
This version of BibTeX, coupled with LaTeX2e and its "inputenc" package |
| 147 |
provide a robust means of handling 8-bit character sets. |
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
2. Distribution Kits and Where to Find Them |
| 152 |
-------------------------------------------- |
| 153 |
|
| 154 |
Note by TeX Live team - This section is an old description by the original |
| 155 |
author Niel Kempson. Currently (2022) BibTeX8 is shipped with TL. |
| 156 |
|
| 157 |
8-bit BibTeX is distributed as a set of ZIP files created by the freely |
| 158 |
available implementation of ZIP by the Info-ZIP project. The files have all |
| 159 |
been compressed using the new "deflation" algorithm and can only be |
| 160 |
compressed using the Info-ZIP implementation of UNZIP, or PKUNZIP v2.04 or |
| 161 |
later. Ancient versions of PKUNZIP (e.g. v1.10) will not be able to unZIP |
| 162 |
the files and will complain with a message like: "PKUNZIP: Warning! I don't |
| 163 |
know how to handle: xxxxxxxx.xxx". |
| 164 |
|
| 165 |
The "official" version of 8-bit BibTeX will be available by anonymous FTP |
| 166 |
from the Comprehensive TeX Archive Network (CTAN) sites: |
| 167 |
|
| 168 |
ftp.tex.ac.uk:/tex-archive/biblio/bibtex/8-bit |
| 169 |
ftp.uni-stuttgart.de:/tex-archive/biblio/bibtex/8-bit |
| 170 |
|
| 171 |
There are four main ZIP files in the complete 8-bit BibTeX distribution: |
| 172 |
|
| 173 |
bt###dos.zip bt###os2.zip bt###src.zip bt###csf.zip |
| 174 |
|
| 175 |
where ### is the latest version, currently 371 (for v3.71). Their contents |
| 176 |
and purpose are summarised below. |
| 177 |
|
| 178 |
|
| 179 |
2.1 bt371dos.zip |
| 180 |
---------------- |
| 181 |
|
| 182 |
The binary + documentation kit for MS-DOS users. It contains all you |
| 183 |
need to run 8-bit BibTeX under MS-DOS, but no source code. The |
| 184 |
executable program uses a 32-bit virtual memory extender called EMX to |
| 185 |
run in 32-bit mode. emTeX is probably the most comprehensive and capable |
| 186 |
implementation of TeX for DOS & OS/2 and it too uses EMX. |
| 187 |
|
| 188 |
The kit contains these files: |
| 189 |
|
| 190 |
00readme.txt this file |
| 191 |
COPYING GNU copyright notice |
| 192 |
HISTORY summary of changes made so far |
| 193 |
csfile.txt documentation for codepage and sort order |
| 194 |
("CS") files |
| 195 |
msdos/bibtex.exe the 8-bit BibTeX program |
| 196 |
|
| 197 |
EMX uses the VCPI mechanism to run in 32-bit mode and will therefore not |
| 198 |
run in a DOS session under MS Windows. It will run under native DOS and |
| 199 |
in a DOS session under OS/2. The EMX extender (v0.9b) is bound into |
| 200 |
bibtex.exe, but you can always obtain the latest version of EMX by |
| 201 |
anaonymous FTP from: |
| 202 |
|
| 203 |
ftp.uni-stuttgart.de:/pub/systems/os2/emx-0.9b |
| 204 |
ftp.leo.org:/pub/comp/os/os2/gnu/emx+gcc |
| 205 |
|
| 206 |
If you want to run this version of BibTeX in a DOS session under MS |
| 207 |
Windows, you have two choices: |
| 208 |
|
| 209 |
- get and install the RSX extender. RSX is a DPMI-compliant DOS |
| 210 |
extender which is more or less compatible with emx. It is compatible |
| 211 |
with EMX, DPMI servers and DOS sessions under MS Windows. The |
| 212 |
official site for the latest version of RSX is |
| 213 |
|
| 214 |
ftp.uni-bielefeld.de:/pub/systems/msdos/misc |
| 215 |
|
| 216 |
but you can also get it by anonymous FTP from the same CTAN sites as |
| 217 |
BibTeX: |
| 218 |
|
| 219 |
ftp.tex.ac.uk:/tex-archive/systems/msdos/dpmigcc |
| 220 |
ftp.uni-stuttgart.de:/tex-archive/systems/msdos |
| 221 |
|
| 222 |
The files to look for are dpmigcc5.zip and rsxwin3a.zip |
| 223 |
|
| 224 |
If you use the emTeX implementation of TeX and friends, it may be |
| 225 |
more convenient to get the "emxrsx" package - it's a minimal version |
| 226 |
of RSX to allow emTeX to run in DOS sessions under MS Windows. It is |
| 227 |
available by anonymous FTP from CTAN sites in the emTeX directory: |
| 228 |
|
| 229 |
ftp.tex.ac.uk:/tex-archive/systems/msdos/emtex |
| 230 |
ftp.uni-stuttgart.de:/tex-archive/systems/msdos/emtex |
| 231 |
|
| 232 |
On the other hand, if you're using emTeX under MS Windows, you've |
| 233 |
probably solved the problem already :-) |
| 234 |
|
| 235 |
- get the djgpp GNU C compiler and DOS extender package and build |
| 236 |
BibTeX from the source code. The master site for djgpp is |
| 237 |
ftp.delorie.com. |
| 238 |
|
| 239 |
|
| 240 |
2.2 bt371os2.zip |
| 241 |
---------------- |
| 242 |
|
| 243 |
The binary + documentation kit for OS/2 2.x and 3.x users. It contains |
| 244 |
all you need to run 8-bit BibTeX under OS/2, but no source code. The |
| 245 |
executable program was developed using the EMX development system and has |
| 246 |
its run-time library linked in - there is no need to install EMX just to |
| 247 |
run BibTeX. If you already have EMX installed want a smaller executable, |
| 248 |
you'll need to rebuild from sources. |
| 249 |
|
| 250 |
The kit contains these files: |
| 251 |
|
| 252 |
00readme.txt this file |
| 253 |
COPYING GNU copyright notice |
| 254 |
HISTORY summary of changes made so far |
| 255 |
csfile.txt documentation for codepage and sort order |
| 256 |
("CS") files |
| 257 |
os2/bibtex.exe the 8-bit BibTeX program |
| 258 |
|
| 259 |
|
| 260 |
2.3 bt371src.zip |
| 261 |
---------------- |
| 262 |
|
| 263 |
The complete source code kit to build 8-bit BibTeX on all supported |
| 264 |
systems. The source code is known to build easily under MS-DOS and OS/2 |
| 265 |
if you have the GNU C Compiler installed. The source code is quite |
| 266 |
portable and contains almost no system-specific items - it should very |
| 267 |
easily port to Unix or VMS. If you decide to port 8-bit BibTeX to |
| 268 |
another platform, please let me know so that I can include your efforts |
| 269 |
in the master distribution. |
| 270 |
|
| 271 |
The source kit contains these files: |
| 272 |
|
| 273 |
00readme.txt this file |
| 274 |
COPYING GNU copyright notice |
| 275 |
HISTORY summary of changes made so far |
| 276 |
csfile.txt documentation for codepage and sort order |
| 277 |
("CS") files |
| 278 |
|
| 279 |
bibtex.h definition of global parameters and limits |
| 280 |
datatype.h definition of custom data types |
| 281 |
gblprocs.h forward declaration of all global functions |
| 282 |
gblvars.h declaration of global variables |
| 283 |
sysdep.h determine the compiler and environment |
| 284 |
|
| 285 |
bibtex.c main source including system dependent code |
| 286 |
bibtex-1.c part 1 of the system independent functions |
| 287 |
bibtex-2.c part 2 of the system independent functions |
| 288 |
bibtex-3.c part 3 of the system independent functions |
| 289 |
bibtex-4.c part 4 of the system independent functions |
| 290 |
|
| 291 |
utils.c nearly all of the enhancement code |
| 292 |
utils.h |
| 293 |
|
| 294 |
getopt.c the GNU getopt package for command line parsing |
| 295 |
getopt1.c |
| 296 |
getopt.h |
| 297 |
|
| 298 |
dos-emx.mak makefile for EMX GNU C under MS-DOS |
| 299 |
dos-dj.mak makefile for DJGPP GNU C under MS-DOS |
| 300 |
os2.mak makefile for EMX GNU C under OS/2 |
| 301 |
unix.mak makefile for Unix variants |
| 302 |
|
| 303 |
|
| 304 |
2.4 bt371csf.zip |
| 305 |
---------------- |
| 306 |
|
| 307 |
The character set and sorting order is now defined by an external |
| 308 |
configuration text file - the codepage and sort order ("CS") file. A |
| 309 |
number of example files have been included with the master distribution, |
| 310 |
but I hope that others will be written by 8-bit BibTeX users in due |
| 311 |
course. To avoid the need to reissue to the master ZIP files every time |
| 312 |
a new CS file is created, CS files will also be available as a separate |
| 313 |
kit. |
| 314 |
|
| 315 |
At the time of writing, the kit contains these CS files: |
| 316 |
|
| 317 |
File Name Character Set Sorting Order |
| 318 |
------------------------------------------------------------- |
| 319 |
88591lat.csf ISO 8859-1 Latin |
| 320 |
88591sca.csf ISO 8859-1 Scandinavean |
| 321 |
ascii.csf US ASCII English |
| 322 |
cp437lat.csf IBM codepage 437 Latin |
| 323 |
cp850lat.csf IBM codepage 850 Latin |
| 324 |
cp850sca.csf IBM codepage 850 Scandinavean |
| 325 |
cp866rus.csf IBM codepage 866 Russian |
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
3. Running 8-bit BibTeX |
| 330 |
------------------------ |
| 331 |
|
| 332 |
Running 8-bit BibTeX is superficially the same as running the original |
| 333 |
BibTeX, but there are quite a number of command line options that may be |
| 334 |
specified. |
| 335 |
|
| 336 |
|
| 337 |
3.1 Command line options |
| 338 |
------------------------ |
| 339 |
|
| 340 |
The command line syntax is: |
| 341 |
|
| 342 |
bibtex [options] aux-file |
| 343 |
|
| 344 |
where "aux-file" is the name of the TeX auxilliary output file to be |
| 345 |
processed by BibTeX. The trailing ".aux" may be omitted. |
| 346 |
|
| 347 |
Valid options are: |
| 348 |
|
| 349 |
-? --help |
| 350 |
|
| 351 |
Display some brief help text and then exit. |
| 352 |
|
| 353 |
-7 --traditional |
| 354 |
|
| 355 |
Operate in the original 7-bit mode. A CS file is not read: |
| 356 |
only 7-bit ASCII characters are supported and sorting is |
| 357 |
strictly by ASCII code value. |
| 358 |
|
| 359 |
BibTeX will not allow you to specify --traditional with |
| 360 |
either the --8bit or --csfile option. |
| 361 |
|
| 362 |
-8 --8bit |
| 363 |
|
| 364 |
Force 8-bit mode. A CS file is not read. All 8-bit |
| 365 |
characters (code > 127) are treated as letters and sorting is |
| 366 |
strictly by code page value. |
| 367 |
|
| 368 |
BibTeX will not allow you to specify --8bit with either the |
| 369 |
--csfile or --traditional option. |
| 370 |
|
| 371 |
-c --csfile FILE |
| 372 |
|
| 373 |
Read FILE as the BibTeX codepage and sort definition (CS) |
| 374 |
file. The CS file is used to define the 8-bit character set |
| 375 |
used by BibTeX and the order in which those characters should |
| 376 |
be sorted. |
| 377 |
|
| 378 |
BibTeX will not allow you to specify --csfile with either |
| 379 |
the --8bit or --traditional option. |
| 380 |
|
| 381 |
-d --debug TYPE |
| 382 |
|
| 383 |
Report debugging information to the BibTeX log file and the |
| 384 |
standard error device. The value TYPE controls the type of |
| 385 |
debugging information reported. TYPE can be one or more of: |
| 386 |
|
| 387 |
all - all debugging categories |
| 388 |
csf - CS file processing |
| 389 |
io - file I/O |
| 390 |
mem - memory allocation and capacity |
| 391 |
misc - other debugging information |
| 392 |
search - path searching and file location |
| 393 |
|
| 394 |
It is possible that your version of BibTeX has been compiled |
| 395 |
with debugging support disabled. If this is the case, BibTeX |
| 396 |
will issue a warning message when --debug is specified. |
| 397 |
|
| 398 |
-s --statistics |
| 399 |
|
| 400 |
Report internal statistics to the BibTeX log file. |
| 401 |
|
| 402 |
It is possible that your version of BibTeX has been compiled |
| 403 |
with statistics support disabled. If this is the case, |
| 404 |
BibTeX will issue a warning message when --statistics is |
| 405 |
specified. |
| 406 |
|
| 407 |
-t --trace |
| 408 |
|
| 409 |
Report execution tracing to the BibTeX log file. |
| 410 |
|
| 411 |
It is possible that your version of BibTeX has been compiled |
| 412 |
with tracing support disabled. If this is the case, BibTeX |
| 413 |
will issue a warning message when --trace is specified. |
| 414 |
|
| 415 |
-v --version |
| 416 |
|
| 417 |
Report BibTeX's version and then exit. |
| 418 |
|
| 419 |
-B --big |
| 420 |
|
| 421 |
Set BibTeX's capacity to "big". The size of particular |
| 422 |
parameters will be set as follows (the default sizes are |
| 423 |
shown in brackets): |
| 424 |
|
| 425 |
Hash_Prime 8,501 (4,253) |
| 426 |
Hash_Size 10,000 (5,000) |
| 427 |
Max_Cites 2,000 (750) |
| 428 |
Max_Ent_Ints 4,000 (3,000) |
| 429 |
Max_Ent_Strs 6,000 (3,000) |
| 430 |
Max_Fields 30,000 (17,250) |
| 431 |
Max_Strings 10,000 (4,000) |
| 432 |
Pool_Size 130,000 (65,530) |
| 433 |
Wiz_Fn_Space 6,000 (3,000) |
| 434 |
|
| 435 |
-H --huge |
| 436 |
|
| 437 |
Set BibTeX's capacity to "huge". The size of particular |
| 438 |
parameters will be set as follows (the default sizes are |
| 439 |
shown in brackets): |
| 440 |
|
| 441 |
Hash_Prime 16,319 (4,253) |
| 442 |
Hash_Size 19,000 (5,000) |
| 443 |
Max_Cites 5,000 (750) |
| 444 |
Max_Ent_Ints 5,000 (3,000) |
| 445 |
Max_Ent_Strs 10,000 (3,000) |
| 446 |
Max_Fields 85,000 (17,250) |
| 447 |
Max_Strings 19,000 (4,000) |
| 448 |
Pool_Size 500,000 (65,530) |
| 449 |
Wiz_Fn_Space 10,000 (3,000) |
| 450 |
|
| 451 |
-W --wolfgang |
| 452 |
|
| 453 |
Set BibTeX's capacity to "really huge" - required for |
| 454 |
Wolfgang's PhD thesis. The size of particular parameters |
| 455 |
will be set as follows (the default sizes are shown in |
| 456 |
brackets): |
| 457 |
|
| 458 |
Hash_Prime 30,011 (4,253) |
| 459 |
Hash_Size 35,000 (5,000) |
| 460 |
Max_Cites 7,500 (750) |
| 461 |
Max_Ent_Ints 7,500 (3,000) |
| 462 |
Max_Ent_Strs 10,000 (3,000) |
| 463 |
Max_Fields 125,000 (17,250) |
| 464 |
Max_Strings 30,000 (4,000) |
| 465 |
Pool_Size 750,000 (65,530) |
| 466 |
Wiz_Fn_Space 10,000 (3,000) |
| 467 |
|
| 468 |
-M --min_crossrefs ## |
| 469 |
|
| 470 |
Set min_crossrefs to ##. If an item is cross-referenced at |
| 471 |
least ## times, it will be placed in the list of citations, |
| 472 |
even if it is not explicitly \cited as a reference. The |
| 473 |
default value is 2. |
| 474 |
|
| 475 |
--mcites ## |
| 476 |
|
| 477 |
Allow a maximum of ## distinct \cites in the .aux files. |
| 478 |
This number must be less than the maximum number of strings |
| 479 |
(settable with --mstrings). |
| 480 |
|
| 481 |
--mentints ## |
| 482 |
|
| 483 |
Allow a maximum of ## integer entries in the .bib databases. |
| 484 |
|
| 485 |
--mentstrs ## |
| 486 |
|
| 487 |
Allow a maximum of ## string entries in the .bib databases. |
| 488 |
|
| 489 |
--mfields ## |
| 490 |
|
| 491 |
Allow a maximum of ## fields in the .bib databases. |
| 492 |
|
| 493 |
--mpool ## |
| 494 |
|
| 495 |
Set the string pool to ## bytes. |
| 496 |
|
| 497 |
--mstrings ## |
| 498 |
|
| 499 |
Allow a maximum of ## unique strings. This number must be |
| 500 |
less than the hash size and greater than the maximum number |
| 501 |
of \cites (settable with --mcites). |
| 502 |
|
| 503 |
--mwizfuns ## |
| 504 |
|
| 505 |
Allow a maximum of ## wizard functions. |
| 506 |
|
| 507 |
|
| 508 |
3.2 Finding Files |
| 509 |
----------------- |
| 510 |
|
| 511 |
8-bit BibTeX looks for input files in three different steps as summarised |
| 512 |
below. As soon as 8-bit BibTeX finds a matching file, it stops looking |
| 513 |
(i.e. only the first matching file is used). In order, the three steps |
| 514 |
are: |
| 515 |
|
| 516 |
- look for the file in the current working directory. |
| 517 |
|
| 518 |
- if the appropriate environment variable has been set (e.g. BSTINPUT), |
| 519 |
treat its value as a list of directories to be searched. Look for the |
| 520 |
file in each of the directories in the list. |
| 521 |
|
| 522 |
- if the appropriate environment variable (e.g. BSTINPUT) has not been |
| 523 |
set, use a predefined "fallback" path as a list of directories to be |
| 524 |
searched. |
| 525 |
|
| 526 |
A search list consists of a number of directories separated by a delimiter |
| 527 |
(semicolons for MS-DOS & OS/2, colons for Unix and commas for VMS). |
| 528 |
|
| 529 |
As distributed, the strategy adopted by 8-bit BibTeX for opening specific |
| 530 |
file types is |
| 531 |
|
| 532 |
.aux files |
| 533 |
|
| 534 |
- look in current working directory only |
| 535 |
|
| 536 |
.bib (BibTeX database) files |
| 537 |
|
| 538 |
- look in current working directory |
| 539 |
- search along path defined by environment variable BIBINPUT |
| 540 |
- search along fallback path (empty by default) |
| 541 |
|
| 542 |
.bst (BibTeX style) files |
| 543 |
|
| 544 |
- look in current working directory |
| 545 |
- search along path defined by environment variable BSTINPUT |
| 546 |
- search along fallback path (empty by default) |
| 547 |
|
| 548 |
.csf (CS) files |
| 549 |
|
| 550 |
- look in current working directory |
| 551 |
- search along path defined by environment variable CSFINPUT |
| 552 |
- search along fallback path (empty by default) |
| 553 |
|
| 554 |
The name of the CS file is determined using a number of steps |
| 555 |
|
| 556 |
- use value of --csfile command line option, |
| 557 |
- use value of the BIBTEX_CSFILE environment variable |
| 558 |
- use fallback CS file name (empty by default) |
| 559 |
|
| 560 |
Output files |
| 561 |
|
| 562 |
All of BibTeX's output (.bbl, .blg) files are created in the |
| 563 |
current working directory. |
| 564 |
|
| 565 |
|
| 566 |
The environment variables and fallback paths used by 8-bit BibTeX are |
| 567 |
defined in the Makefile and set at compile time, but you can determine |
| 568 |
what your version of 8-bit BibTeX is using by starting it with the command |
| 569 |
line |
| 570 |
|
| 571 |
bibtex --debug=search non-existent-file-name |
| 572 |
|
| 573 |
The debugging output (written to the standard error device) should look |
| 574 |
something like: |
| 575 |
|
| 576 |
D-SCH: Search strategy for .aux files: |
| 577 |
D-SCH: search path environment variable: <undefined> |
| 578 |
D-SCH: fallback search path: <undefined> |
| 579 |
D-SCH: Search strategy for .bib files: |
| 580 |
D-SCH: search path environment variable: BIBINPUT |
| 581 |
D-SCH: BIBINPUT value: e:\usr\c\bibtex |
| 582 |
D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/bib |
| 583 |
D-SCH: Search strategy for .bst files: |
| 584 |
D-SCH: search path environment variable: BSTINPUT |
| 585 |
D-SCH: BSTINPUT value: <undefined> |
| 586 |
D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/bst |
| 587 |
D-SCH: Search strategy for .csf files: |
| 588 |
D-SCH: search path environment variable: CSFINPUT |
| 589 |
D-SCH: CSFINPUT value: e:\usr\c\bibtex |
| 590 |
D-SCH: fallback search path: e:/usr/latex/bibtex;e:/emtex/bibtex/csf |
| 591 |
D-SCH: Default .csf file: |
| 592 |
D-SCH: file name environment variable: BIBTEX_CSFILE |
| 593 |
D-SCH: BIBTEX_CSFILE value: e:/emtex/texinput/cp437lat.csf |
| 594 |
D-SCH: fallback file name: cp850lat.csf |
| 595 |
|
| 596 |
The current working directory will always be searched, even if the |
| 597 |
environment variable and fallback paths have not been specified (e.g. as |
| 598 |
for .aux files in the above example). |
| 599 |
|
| 600 |
If the default behaviour is not to your liking, you will need to rebuild |
| 601 |
8-bit BibTeX from its source code (see section 5). |
| 602 |
|
| 603 |
|
| 604 |
3.3 Environment variables |
| 605 |
------------------------- |
| 606 |
|
| 607 |
As supplied, 8-bit BibTeX uses a number of environment variables: |
| 608 |
|
| 609 |
BIBINPUT search path for database (.bib) files |
| 610 |
BSTINPUT search path for style (.bst) files |
| 611 |
CSFINPUT search path for CS (.csf) files |
| 612 |
BIBTEX_CSFILE the default CS file |
| 613 |
TMP directory for virtual memory files (DOS only) |
| 614 |
|
| 615 |
The name of the environment variables used may be changed (in the |
| 616 |
Makefile) when BibTeX is built. See the appropriate Makefile for your |
| 617 |
environment and remember that you can use the "--debug=search" command |
| 618 |
line option to reveal the environment variables used by your version of |
| 619 |
8-bit BibTeX (see previous section). |
| 620 |
|
| 621 |
All environment variables used as a search list (BIBINPUT, BSTINPUT & |
| 622 |
CSFINPUT) can be set to a number of separate directories, separated |
| 623 |
by a delimiter (semicolons for MS-DOS & OS/2, colons for Unix and |
| 624 |
commas for VMS). |
| 625 |
|
| 626 |
Examples for MS-DOS and OS/2 are: |
| 627 |
|
| 628 |
SET BIBINPUT=e:\data\tex\bibtex;c:\emtex\bibtex\bib |
| 629 |
SET BSTINPUT=e:\data\tex\bibtex;c:\emtex\bibtex\bst |
| 630 |
SET CSFINPUT=e:\data\tex\bibtex |
| 631 |
SET BIBTEX_CSFILE=c:\data\tex\bibtex\cp850lat.csf |
| 632 |
|
| 633 |
Examples for Unix: |
| 634 |
|
| 635 |
setenv BIBINPUT /u/kempson/bibtex:/usr/local/lib/tex/bib-files |
| 636 |
setenv BSTINPUT /u/kempson/bibtex:/usr/local/lib/tex/bst-files |
| 637 |
setenv CSFINPUT /u/kempson/bibtex:/usr/local/lib/tex/csf-files |
| 638 |
setenv BIBTEX_CSFILE /usr/local/lib/tex/csf-files/88591lat.csf |
| 639 |
|
| 640 |
Examples for VMS: |
| 641 |
|
| 642 |
define BIBINPUT "sys$login:,disk$tex:[bibtex.bib-files]" |
| 643 |
define BSTINPUT "sys$login:,disk$tex:[bibtex.bst-files]" |
| 644 |
define CSFINPUT "sys$login:,disk$tex:[bibtex.csf-files]" |
| 645 |
define BIBTEX_CSFILE disk$tex:[bibtex.csf-files]88951lat.csf |
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
4. The Codepage and Sort Order (CS) File |
| 650 |
----------------------------------------- |
| 651 |
|
| 652 |
The Codepage and Sort definition (CS) file is used to define the 8-bit |
| 653 |
character set used by BibTeX and the order in which those characters should |
| 654 |
be sorted. |
| 655 |
|
| 656 |
Please see the associated csfile.txt for details of CS file syntax and |
| 657 |
guidelines for testing new CS files. NOTE: it contains many 8-bit characters |
| 658 |
and may cause problems if you try to display or print it on 7-bit systems |
| 659 |
(e.g. older versions of Unix). |
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
5. Building 8-bit BibTeX from Source Code |
| 664 |
------------------------------------------ |
| 665 |
|
| 666 |
The 8-bit BibTeX source is fairly standard ANSI C with almost no system |
| 667 |
specific code. It should therefore be relatively straightforward to build it |
| 668 |
in a different environment if you have GNU C or an ANSI C compiler. |
| 669 |
|
| 670 |
A number of Makefiles have been provided to build 8-bit BibTeX from source |
| 671 |
code: |
| 672 |
|
| 673 |
dos-emx.mak makefile for EMX GNU C under MS-DOS |
| 674 |
dos-dj.mak makefile for DJGPP GNU C under MS-DOS |
| 675 |
os2.mak makefile for EMX GNU C under OS/2 |
| 676 |
unix.mak makefile for Unix variants |
| 677 |
|
| 678 |
Whichever Makefile you use, you need to check that the "local definitions" |
| 679 |
are appropriate for your system. There are three small sections to |
| 680 |
customise: |
| 681 |
|
| 682 |
BibTeX File Searching |
| 683 |
|
| 684 |
- specifies the names of environment variables and paths to be used when |
| 685 |
searching for input files |
| 686 |
|
| 687 |
Utility Programs |
| 688 |
|
| 689 |
- specifies the names of programs to be used for simple functions |
| 690 |
|
| 691 |
Compiler/Linker |
| 692 |
|
| 693 |
- specifies compiler/linker command lines |
| 694 |
|
| 695 |
If your system is already supported it should not be necessary to modify any |
| 696 |
part of the Makefile except these three sections. |
| 697 |
|
| 698 |
Brief notes for specific environments follow. |
| 699 |
|
| 700 |
|
| 701 |
5.1 DOS |
| 702 |
------- |
| 703 |
|
| 704 |
8-bit BibTeX has been built and tested using the EMX and DJGPP |
| 705 |
development environments. Both are based on GNU C with their own |
| 706 |
custom 32-bit extenders. |
| 707 |
|
| 708 |
|
| 709 |
5.2 OS/2 |
| 710 |
-------- |
| 711 |
|
| 712 |
The EMX development environment is supported. |
| 713 |
|
| 714 |
|
| 715 |
5.3 Unix |
| 716 |
-------- |
| 717 |
|
| 718 |
Most variants of Unix supporting GNU C should be capable of building |
| 719 |
and running 8-bit BibTeX. |
| 720 |
|
| 721 |
|
| 722 |
5.4 VMS |
| 723 |
------- |
| 724 |
|
| 725 |
The authors have not built or tested this version of 8-bit BibTeX on |
| 726 |
VMS, but see no reason why it shouldn't compile and run successfully |
| 727 |
if GNU C is installed on the system. (The only system-dependent code |
| 728 |
in 8-bit BibTeX concerns file opening and provision has been made for |
| 729 |
VMS file modes.) |
| 730 |
|
| 731 |
If you have GNU C installed, we recommend starting with a copy of the |
| 732 |
unix.mak Makefile and customising it for VMS. If you successfully |
| 733 |
get 8-bit BibTeX running under VMS, *please* let the authors know how |
| 734 |
you did it. |
| 735 |
|
| 736 |
|
| 737 |
|
| 738 |
6. Reporting Bugs and Requesting Improvements |
| 739 |
---------------------------------------------- |
| 740 |
|
| 741 |
Where possible, we will try to fix bugs and will consider requests for |
| 742 |
improvements. If you are reporting a bug, please provide as much information |
| 743 |
as possible (e.g. operating environment, 8-bit BibTeX version and source, |
| 744 |
exact error message and the offending files if possible). |
| 745 |
|
| 746 |
The most common message is of the form "BibTeX doesn't work on XXXX". This |
| 747 |
is generally of no help in debugging a problem so please provide as much |
| 748 |
information as possible. |
| 749 |
|
| 750 |
|
| 751 |
6.1 Contacting the authors |
| 752 |
-------------------------- |
| 753 |
|
| 754 |
The authors are |
| 755 |
|
| 756 |
Niel Kempson |
| 757 |
Snowy Owl Systems Limited, Cheltenham, England |
| 758 |
E-mail: [email protected] |
| 759 |
|
| 760 |
and |
| 761 |
|
| 762 |
Alejandro Aguilar-Sierra |
| 763 |
Centro de Ciencias de la Atm\'osfera, |
| 764 |
Universidad Nacional Aut\'onoma de M\'exico, M\'exico |
| 765 |
E-mail: [email protected] |
| 766 |
|
| 767 |
Niel Kempson did the original manual translation from WEB to C, |
| 768 |
conversion to "big" (32-bit) capacity, addition of run-time selectable |
| 769 |
capacity and part of the 8-bit support extensions. He intermittently |
| 770 |
maintains the master version of the source code. |
| 771 |
|
| 772 |
Alejandro Aguilar-Sierra should take the credit for most of the 8-bit |
| 773 |
function provided by this version of BibTeX. |
| 774 |
|
| 775 |
|
| 776 |
6.2 Further Enhancements |
| 777 |
------------------------ |
| 778 |
|
| 779 |
No program is perfect and this version of BibTeX is no exception to that |
| 780 |
rule. Some known weaknesses are: |
| 781 |
|
| 782 |
- the 8-bit support is currently limited to single 8-bit characters. |
| 783 |
TeX control sequences (e.g. \'{A}) are not interpreted and treated in |
| 784 |
the same way as the equivalent 8-bit character. |
| 785 |
|
| 786 |
- it is not possible to redefine the lower 128 character codes. This |
| 787 |
excludes support for character codes not built on ASCII (e.g. EBCDIC). |
| 788 |
|
| 789 |
Future enhancements will be considered, but it may be time to build a |
| 790 |
"proper" system built from the ground up to handle 8-bit character |
| 791 |
sets. BibTeX 1.0 promises to be this system. |
| 792 |
|
| 793 |
Other items that ought to be on the "to do" list: |
| 794 |
|
| 795 |
- path searching using Karl Berry's kpathsea package |
| 796 |
- TeX format documentation |
| 797 |
- Unix man pages |
| 798 |
- OS/2 .inf format documentation |
| 799 |
- native 32-bit support for MS Windows 95/NT |
| 800 |
|
| 801 |
|
| 802 |
|
| 803 |
7. Frequently Asked Questions |
| 804 |
------------------------------ |
| 805 |
|
| 806 |
When I run the DOS version 8-bit BibTeX in a DOS window under MS Windows 3.x, |
| 807 |
95 or NT, I get the message "DPMI not supported". |
| 808 |
|
| 809 |
8-bit BibTeX has been built using the EMX development environment. It |
| 810 |
uses the VCPI mechanism to run in 32-bit mode and will therefore not run |
| 811 |
in a DOS session under MS Windows. |
| 812 |
|
| 813 |
If you want to run this version of 8-bit BibTeX in a DOS session under |
| 814 |
MS Windows, you have two choices: |
| 815 |
|
| 816 |
- get and install the RSX extender |
| 817 |
- rebuild from sources using a suitable compiler |
| 818 |
|
| 819 |
See section 2.1 for more information. |
| 820 |
|
| 821 |
|
| 822 |
8-bit BibTeX doesn't find my .bib/.bst files. How can I find out where it |
| 823 |
looks for them? |
| 824 |
|
| 825 |
See section 3.2 |
| 826 |
|
| 827 |
|
| 828 |
There isn't a CS file for my character set / language sorting order |
| 829 |
|
| 830 |
Creating a new CS file should be relatively straightforward. If you'd |
| 831 |
like to try, please contact the authors for assistance. If you don't |
| 832 |
need assistance, *please* let us have a copy of your finished CS file so |
| 833 |
we can include it in the distribution. |
| 834 |
|
| 835 |
|
| 836 |
|
| 837 |
8. Acknowledgement |
| 838 |
------------------- |
| 839 |
|
| 840 |
The original BibTeX was written by Oren Patashnik using Donald Knuth's WEB |
| 841 |
system. This format produces a PASCAL program for execution and a TeX |
| 842 |
documented version of the source code. This program started as a (manual) |
| 843 |
translation of the WEB source into C. |
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
9. BibTeX Use and Copying Conditions |
| 848 |
------------------------------------- |
| 849 |
|
| 850 |
The programs currently being distributed that relate to 8-bit BibTeX are |
| 851 |
*free*; this means that everyone may use them and redistribute them freely. |
| 852 |
The 8-bit BibTeX-related programs are not in the public domain; they are |
| 853 |
copyrighted and there are restrictions on their distribution, but these |
| 854 |
restrictions are designed to permit everything that a good cooperating |
| 855 |
citizen would want to do. What is not allowed is to try to prevent others |
| 856 |
from further sharing any version of these programs that they might get from |
| 857 |
you. |
| 858 |
|
| 859 |
Specifically, we want to make sure that you have the right to give away |
| 860 |
copies of the programs that relate to 8-bit BibTeX, that you receive source |
| 861 |
code or else can get it if you want it, that you can change these programs or |
| 862 |
use pieces of them in new free programs, and that you know you can do these |
| 863 |
things. |
| 864 |
|
| 865 |
To make sure that everyone has such rights, we have to forbid you to deprive |
| 866 |
anyone else of these rights. For example, if you distribute copies of the |
| 867 |
8-bit BibTeX related programs, you must give the recipients all the rights |
| 868 |
that you have. You must make sure that they, too, receive or can get the |
| 869 |
source code. And you must tell them their rights. |
| 870 |
|
| 871 |
Also, for our own protection, we must make certain that everyone finds out |
| 872 |
that there is no warranty for the programs that relate to 8-bit BibTeX. If |
| 873 |
these programs are modified by someone else and passed on, we want their |
| 874 |
recipients to know that what they have is not what we distributed, so that |
| 875 |
any problems introduced by others will not reflect on our reputation. |
| 876 |
|
| 877 |
The precise conditions of the licences for the programs currently being |
| 878 |
distributed that relate to 8-bit BibTeX are found in the General Public |
| 879 |
Licences that accompany them. |
| 880 |
|
| 881 |
|
| 882 |
|
| 883 |
10. Change Log |
| 884 |
--------------- |
| 885 |
|
| 886 |
For later changes by TeX Live, please refer to HISTORY. |
| 887 |
|
| 888 |
Revision 3.71 1996/08/18 20:38:55 kempson |
| 889 |
Official release 3.71 (see HISTORY for details). |
| 890 |
|
| 891 |
Revision 3.70 1996/04/29 20:17:53 kempson |
| 892 |
Final documentation & cosmetic changes for official release 3.70. |
| 893 |
|
| 894 |
Revision 1.2 1995/10/21 22:23:01 kempson |
| 895 |
Updated for v3.60 beta. Added description of --wolfgang option. |
| 896 |
Added some more information on running BibTeX in a Windows DOS session. |
| 897 |
Changed the example of CSF debugging output to something that is correct. |
| 898 |
|
| 899 |
Revision 1.1 1995/09/24 20:50:00 kempson |
| 900 |
Updated for the final beta test release. |
| 901 |
|
| 902 |
Revision 1.0 1995/09/24 20:42:30 kempson |
| 903 |
Placed under RCS control |
| 904 |
|
| 905 |
******************************** END OF FILE ******************************* |