text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```restructuredtext .. _menuconfig: Interactive Kconfig interfaces ############################## There are two interactive configuration interfaces available for exploring the available Kconfig options and making temporary changes: ``menuconfig`` and ``guiconfig``. ``menuconfig`` is a curses-based interface that runs in the terminal, while ``guiconfig`` is a graphical configuration interface. .. note:: The configuration can also be changed by editing :file:`zephyr/.config` in the application build directory by hand. Using one of the configuration interfaces is often handier, as they correctly handle dependencies between configuration symbols. If you try to enable a symbol with unsatisfied dependencies in :file:`zephyr/.config`, the assignment will be ignored and overwritten when re-configuring. To make a setting permanent, you should set it in a :file:`*.conf` file, as described in :ref:`setting_configuration_values`. .. tip:: Saving a minimal configuration file (with e.g. :kbd:`D` in menuconfig) and inspecting it can be handy when making settings permanent. The minimal configuration file only lists symbols that differ from their default value. To run one of the configuration interfaces, do this: #. Build your application as usual using either ``west`` or ``cmake``: .. zephyr-app-commands:: :tool: all :cd-into: :board: <board> :goals: build :compact: #. To run the terminal-based ``menuconfig`` interface, use either of these commands: .. code-block:: bash west build -t menuconfig .. code-block:: bash ninja menuconfig To run the graphical ``guiconfig``, use either of these commands: .. code-block:: bash west build -t guiconfig .. code-block:: bash ninja guiconfig .. note:: If you get an import error for ``tkinter`` when trying to run ``guiconfig``, you are missing required packages. See :ref:`installation_linux`. The package you need is usually called something like ``python3-tk``/``python3-tkinter``. ``tkinter`` is not included by default in many Python installations, despite being part of the standard library. The two interfaces are shown below: .. figure:: menuconfig.png :alt: menuconfig interface .. figure:: guiconfig.png :alt: guiconfig interface ``guiconfig`` always shows the help text and other information related to the currently selected item in the bottom window pane. In the terminal interface, press :kbd:`?` to view the same information. .. note:: If you prefer to work in the ``guiconfig`` interface, then it's a good idea to check any changes to Kconfig files you make in *single-menu mode*, which is toggled via a checkbox at the top. Unlike full-tree mode, single-menu mode will distinguish between symbols defined with ``config`` and symbols defined with ``menuconfig``, showing you what things would look like in the ``menuconfig`` interface. #. Change configuration values in the ``menuconfig`` interface as follows: * Navigate the menu with the arrow keys. Common `Vim <path_to_url`__ key bindings are supported as well. * Use :kbd:`Space` and :kbd:`Enter` to enter menus and toggle values. Menus appear with ``--->`` next to them. Press :kbd:`ESC` to return to the parent menu. Boolean configuration options are shown with :guilabel:`[ ]` brackets, while numeric and string-valued configuration symbols are shown with :guilabel:`( )` brackets. Symbol values that can't be changed are shown as :guilabel:`- -` or :guilabel:`-*-`. .. note:: You can also press :kbd:`Y` or :kbd:`N` to set a boolean configuration symbol to the corresponding value. * Press :kbd:`?` to display information about the currently selected symbol, including its help text. Press :kbd:`ESC` or :kbd:`Q` to return from the information display to the menu. In the ``guiconfig`` interface, either click on the image next to the symbol to change its value, or double-click on the row with the symbol (this only works if the symbol has no children, as double-clicking a symbol with children open/closes its menu instead). ``guiconfig`` also supports keyboard controls, which are similar to ``menuconfig``. #. Pressing :kbd:`Q` in the ``menuconfig`` interface will bring up the save-and-quit dialog (if there are changes to save): .. figure:: menuconfig-quit.png :alt: Save and Quit Dialog Press :kbd:`Y` to save the kernel configuration options to the default filename (:file:`zephyr/.config`). You will typically save to the default filename unless you are experimenting with different configurations. The ``guiconfig`` interface will also prompt for saving the configuration on exit if it has been modified. .. note:: The configuration file used during the build is always :file:`zephyr/.config`. If you have another saved configuration that you want to build with, copy it to :file:`zephyr/.config`. Make sure to back up your original configuration file. Also note that filenames starting with ``.`` are not listed by ``ls`` by default on Linux and macOS. Use the ``-a`` flag to see them. Finding a symbol in the menu tree and navigating to it can be tedious. To jump directly to a symbol, press the :kbd:`/` key (this also works in ``guiconfig``). This brings up the following dialog, where you can search for symbols by name and jump to them. In ``guiconfig``, you can also change symbol values directly within the dialog. .. figure:: menuconfig-jump-to.png :alt: menuconfig jump-to dialog .. figure:: guiconfig-jump-to.png :alt: guiconfig jump-to dialog If you jump to a symbol that isn't currently visible (e.g., due to having unsatisfied dependencies), then *show-all mode* will be enabled. In show-all mode, all symbols are displayed, including currently invisible symbols. To turn off show-all mode, press :kbd:`A` in ``menuconfig`` or :kbd:`Ctrl-A` in ``guiconfig``. .. note:: Show-all mode can't be turned off if there are no visible items in the current menu. To figure out why a symbol you jumped to isn't visible, inspect its dependencies, either by pressing :kbd:`?` in ``menuconfig`` or in the information pane at the bottom in ``guiconfig``. If you discover that the symbol depends on another symbol that isn't enabled, you can jump to that symbol in turn to see if it can be enabled. .. note:: In ``menuconfig``, you can press :kbd:`Ctrl-F` to view the help of the currently selected item in the jump-to dialog without leaving the dialog. For more information on ``menuconfig`` and ``guiconfig``, see the Python docstrings at the top of :zephyr_file:`menuconfig.py <scripts/kconfig/menuconfig.py>` and :zephyr_file:`guiconfig.py <scripts/kconfig/guiconfig.py>`. ```
/content/code_sandbox/doc/build/kconfig/menuconfig.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,663
```restructuredtext .. _setting_configuration_values: Setting Kconfig configuration values #################################### The :ref:`menuconfig and guiconfig interfaces <menuconfig>` can be used to test out configurations during application development. This page explains how to make settings permanent. All Kconfig options can be searched in the :ref:`Kconfig search page <kconfig-search>`. .. note:: Before making changes to Kconfig files, it's a good idea to also go through the :ref:`kconfig_tips_and_tricks` page. Visible and invisible Kconfig symbols ************************************* When making Kconfig changes, it's important to understand the difference between *visible* and *invisible* symbols. - A visible symbol is a symbol defined with a prompt. Visible symbols show up in the interactive configuration interfaces (hence *visible*), and can be set in configuration files. Here's an example of a visible symbol: .. code-block:: kconfig config FPU bool "Support floating point operations" depends on HAS_FPU The symbol is shown like this in ``menuconfig``, where it can be toggled: .. code-block:: none [ ] Support floating point operations - An *invisible* symbol is a symbol without a prompt. Invisible symbols are not shown in the interactive configuration interfaces, and users have no direct control over their value. They instead get their value from defaults or from other symbols. Here's an example of an invisible symbol: .. code-block:: kconfig config CPU_HAS_FPU bool help This symbol is y if the CPU has a hardware floating point unit. In this case, ``CPU_HAS_FPU`` is enabled through other symbols having ``select CPU_HAS_FPU``. Setting symbols in configuration files ************************************** Visible symbols can be configured by setting them in configuration files. The initial configuration is produced by merging a :file:`*_defconfig` file for the board with application settings, usually from :file:`prj.conf`. See :ref:`initial-conf` below for more details. Assignments in configuration files use this syntax: .. code-block:: cfg CONFIG_<symbol name>=<value> There should be no spaces around the equals sign. ``bool`` symbols can be enabled or disabled by setting them to ``y`` or ``n``, respectively. The ``FPU`` symbol from the example above could be enabled like this: .. code-block:: cfg CONFIG_FPU=y .. note:: A boolean symbol can also be set to ``n`` with a comment formatted like this: .. code-block:: cfg # CONFIG_SOME_OTHER_BOOL is not set This is the format you will see in the merged configuration in :file:`zephyr/.config`. This style is accepted for historical reasons: Kconfig configuration files can be parsed as makefiles (though Zephyr doesn't use this). Having ``n``-valued symbols correspond to unset variables simplifies tests in Make. Other symbol types are assigned like this: .. code-block:: cfg CONFIG_SOME_STRING="cool value" CONFIG_SOME_INT=123 Comments use a #: .. code-block:: cfg # This is a comment Assignments in configuration files are only respected if the dependencies for the symbol are satisfied. A warning is printed otherwise. To figure out what the dependencies of a symbol are, use one of the :ref:`interactive configuration interfaces <menuconfig>` (you can jump directly to a symbol with :kbd:`/`), or look up the symbol in the :ref:`Kconfig search page <kconfig-search>`. .. _initial-conf: The Initial Configuration ************************* The initial configuration for an application comes from merging configuration settings from three sources: 1. A ``BOARD``-specific configuration file stored in :file:`boards/<VENDOR>/<BOARD>/<BOARD>_defconfig` 2. Any CMake cache entries prefix with ``CONFIG_`` 3. The application configuration The application configuration can come from the sources below (each file is known as a Kconfig fragment, which are then merged to get the final configuration used for a particular build). By default, :file:`prj.conf` is used. #. If ``CONF_FILE`` is set, the configuration file(s) specified in it are merged and used as the application configuration. ``CONF_FILE`` can be set in various ways: 1. In :file:`CMakeLists.txt`, before calling ``find_package(Zephyr)`` 2. By passing ``-DCONF_FILE=<conf file(s)>``, either directly or via ``west`` 3. From the CMake variable cache Furthermore if ``CONF_FILE`` is set as single configuration file of the form :file:`prj_<build>.conf` and if file :file:`boards/<BOARD>_<build>.conf` exists in same folder as file :file:`prj_<build>.conf`, the result of merging :file:`prj_<build>.conf` and :file:`boards/<BOARD>_<build>.conf` is used - note that this feature is deprecated, :ref:`application-file-suffixes` should be used instead. #. Otherwise, if :file:`boards/<BOARD>.conf` exists in the application configuration directory, the result of merging it with :file:`prj.conf` is used. #. Otherwise, if board revisions are used and :file:`boards/<BOARD>_<revision>.conf` exists in the application configuration directory, the result of merging it with :file:`prj.conf` and :file:`boards/<BOARD>.conf` is used. #. Otherwise, :file:`prj.conf` is used from the application configuration directory. If it does not exist then a fatal error will be emitted. Furthermore, applications can have SoC overlay configuration that is applied to it, the file :file:`socs/<SOC>_<BOARD_QUALIFIERS>.conf` will be applied if it exists, after the main project configuration has been applied and before any board overlay configuration files have been applied. All configuration files will be taken from the application's configuration directory except for files with an absolute path that are given with the ``CONF_FILE``, ``EXTRA_CONF_FILE``, ``DTC_OVERLAY_FILE``, and ``EXTRA_DTC_OVERLAY_FILE`` arguments. For these, a file in a Zephyr module can be referred by escaping the Zephyr module dir variable like this ``\${ZEPHYR_<module>_MODULE_DIR}/<path-to>/<file>`` when setting any of said variables in the application's :file:`CMakeLists.txt`. See :ref:`Application Configuration Directory <application-configuration-directory>` on how the application configuration directory is defined. If a symbol is assigned both in :file:`<BOARD>_defconfig` and in the application configuration, the value set in the application configuration takes precedence. The merged configuration is saved to :file:`zephyr/.config` in the build directory. As long as :file:`zephyr/.config` exists and is up-to-date (is newer than any ``BOARD`` and application configuration files), it will be used in preference to producing a new merged configuration. :file:`zephyr/.config` is also the configuration that gets modified when making changes in the :ref:`interactive configuration interfaces <menuconfig>`. Tracking Kconfig symbols ************************ It is possible to create Kconfig symbols which takes the default value of another Kconfig symbol. This is valuable when you want a symbol specific to an application or subsystem but do not want to rely directly on the common symbol. For example, you might want to decouple the settings so they can be independently configured, or to ensure you always have a locally named setting, even if the external setting name changes. is later changed. For example, consider the common ``FOO_STRING`` setting where a subsystem wants to have a ``SUB_FOO_STRING`` but still allow for customization. This can be done like this: .. code-block:: kconfig config FOO_STRING string "Foo" default "foo" config SUB_FOO_STRING string "Sub-foo" default FOO_STRING This ensures that the default value of ``SUB_FOO_STRING`` is identical to ``FOO_STRING`` while still allows users to configure both settings independently. It is also possible to make ``SUB_FOO_STRING`` invisible and thereby keep the two symbols in sync, unless the value of the tracking symbol is changed in a :file:`defconfig` file. .. code-block:: kconfig config FOO_STRING string "Foo" default "foo" config SUB_FOO_STRING string default FOO_STRING help Hidden symbol which follows FOO_STRING Can be changed through *.defconfig files. Configuring invisible Kconfig symbols ************************************* When making changes to the default configuration for a board, you might have to configure invisible symbols. This is done in :file:`boards/<VENDOR>/<BOARD>/Kconfig.defconfig`, which is a regular :file:`Kconfig` file. .. note:: Assignments in :file:`.config` files have no effect on invisible symbols, so this scheme is not just an organizational issue. Assigning values in :file:`Kconfig.defconfig` relies on defining a Kconfig symbol in multiple locations. As an example, say we want to set ``FOO_WIDTH`` below to 32: .. code-block:: kconfig config FOO_WIDTH int To do this, we extend the definition of ``FOO_WIDTH`` as follows, in :file:`Kconfig.defconfig`: .. code-block:: kconfig if BOARD_MY_BOARD config FOO_WIDTH default 32 endif .. note:: Since the type of the symbol (``int``) has already been given at the first definition location, it does not need to be repeated here. Only giving the type once at the "base" definition of the symbol is a good idea for reasons explained in :ref:`kconfig_shorthands`. ``default`` values in :file:`Kconfig.defconfig` files have priority over ``default`` values given on the "base" definition of a symbol. Internally, this is implemented by including the :file:`Kconfig.defconfig` files first. Kconfig uses the first ``default`` with a satisfied condition, where an empty condition corresponds to ``if y`` (is always satisfied). Note that conditions from surrounding top-level ``if``\ s are propagated to symbol properties, so the above ``default`` is equivalent to ``default 32 if BOARD_MY_BOARD``. .. _multiple_symbol_definitions: Multiple symbol definitions --------------------------- When a symbol is defined in multiple locations, each definition acts as an independent symbol that happens to share the same name. This means that properties are not appended to previous definitions. If the conditions for **ANY** definition result in the symbol resolving to ``y``, the symbol will be ``y``. It is therefore not possible to make the dependencies of a symbol more restrictive by defining it in multiple locations. For example, the dependencies of the symbol ``FOO`` below are satisfied if either ``DEP1`` **OR** ``DEP2`` are true, it does not require both: .. code-block:: none config FOO ... depends on DEP1 config FOO ... depends on DEP2 .. warning:: Symbols without explicit dependencies still follow the above rule. A symbol without any dependencies will result in the symbol always being assignable. The definition below will result in ``FOO`` always being enabled by default, regardless of the value of ``DEP1``. .. code-block:: kconfig config FOO bool "FOO" depends on DEP1 config FOO default y This dependency weakening can be avoided with the :ref:`configdefault <kconfig_extensions>` extension if the desire is only to add a new default without modifying any other behaviour of the symbol. .. note:: When making changes to :file:`Kconfig.defconfig` files, always check the symbol's direct dependencies in one of the :ref:`interactive configuration interfaces <menuconfig>` afterwards. It is often necessary to repeat dependencies from the base definition of the symbol to avoid weakening a symbol's dependencies. Motivation for Kconfig.defconfig files -------------------------------------- One motivation for this configuration scheme is to avoid making fixed ``BOARD``-specific settings configurable in the interactive configuration interfaces. If all board configuration were done via :file:`<BOARD>_defconfig`, all symbols would have to be visible, as values given in :file:`<BOARD>_defconfig` have no effect on invisible symbols. Having fixed settings be user-configurable would clutter up the configuration interfaces and make them harder to understand, and would make it easier to accidentally create broken configurations. When dealing with fixed board-specific settings, also consider whether they should be handled via :ref:`devicetree <dt-guide>` instead. Configuring choices ------------------- There are two ways to configure a Kconfig ``choice``: 1. By setting one of the choice symbols to ``y`` in a configuration file. Setting one choice symbol to ``y`` automatically gives all other choice symbols the value ``n``. If multiple choice symbols are set to ``y``, only the last one set to ``y`` will be honored (the rest will get the value ``n``). This allows a choice selection from a board :file:`defconfig` file to be overridden from an application :file:`prj.conf` file. 2. By changing the ``default`` of the choice in :file:`Kconfig.defconfig`. As with symbols, changing the default for a choice is done by defining the choice in multiple locations. For this to work, the choice must have a name. As an example, assume that a choice has the following base definition (here, the name of the choice is ``FOO``): .. code-block:: kconfig choice FOO bool "Foo choice" default B config A bool "A" config B bool "B" endchoice To change the default symbol of ``FOO`` to ``A``, you would add the following definition to :file:`Kconfig.defconfig`: .. code-block:: kconfig choice FOO default A endchoice The :file:`Kconfig.defconfig` method should be used when the dependencies of the choice might not be satisfied. In that case, you're setting the default selection whenever the user makes the choice visible. More Kconfig resources ====================== The :ref:`kconfig_tips_and_tricks` page has some tips for writing Kconfig files. The :zephyr_file:`kconfiglib.py <scripts/kconfig/kconfiglib.py>` docstring (at the top of the file) goes over how symbol values are calculated in detail. ```
/content/code_sandbox/doc/build/kconfig/setting.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,289
```unknown .. _boardname_linkname: [Board Name] ############# Overview ******** [A short description about the board, its main features and availability] .. figure:: board_name.png :width: 800px :align: center :alt: Board Name Board Name (Credit: <owner>) Hardware ******** [General Hardware information] Supported Features ================== [List of supported features and level of support in Zephyr] Connections and IOs =================== [Tables describing the board PINs and how they are configured and can be used to connect external components] Programming and Debugging ************************* Flashing ======== [How to use this board with Zephyr and how to flash a Zephyr binary on this device] Debugging ========= [ How to debug this board] References ********** [ Links to external references such as datasheets or additional documentation] ```
/content/code_sandbox/doc/templates/board.tmpl
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
189
```unknown .. zephyr:code-sample:: a_unique_id_for_the_sample :name: A descriptive short name for the sample :relevant-api: space-separated list of Doxygen groups of APIs this sample is a good showcase of Short text description of the sample. It is recommended to word this as if you were completing the sentence "This code sample shows how to ..."). Overview ******** [A longer description about the sample and what it does] Requirements ************ [List of required software and hardware components. Provide pointers to hardware components such as sensors and shields] Wiring ****** [For simple projects, a description of how to wire the board for the demo. For complex projects, provide a graphic with more details, preferably using Fritzing or some other visualisation tools] Building and Running ******************** [ How to build the sample and how to run it. Pointers to where to find the sample in the source tree and how to configure it and run it for a specific target platform] [When showing code-blocks with sample build command instructions, use the ..zephyr-app-commands directive (see the doc guidelines) instead of a hand-written code-block.] References ********** [ Links to external references such as datasheets or additional documentation] ```
/content/code_sandbox/doc/templates/sample.tmpl
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
268
```restructuredtext .. _kconfig_tips_and_tricks: Kconfig - Tips and Best Practices ################################# This page covers some Kconfig best practices and explains some Kconfig behaviors and features that might be cryptic or that are easily overlooked. .. note:: The official Kconfig documentation is `kconfig-language.rst <path_to_url`__ and `kconfig-macro-language.rst <path_to_url`__. .. contents:: :local: :depth: 2 What to turn into Kconfig options ********************************* When deciding whether something belongs in Kconfig, it helps to distinguish between symbols that have prompts and symbols that don't. If a symbol has a prompt (e.g. ``bool "Enable foo"``), then the user can change the symbol's value in the ``menuconfig`` or ``guiconfig`` interface (see :ref:`menuconfig`), or by manually editing configuration files. Conversely, a symbol without a prompt can never be changed directly by the user, not even by manually editing configuration files. Only put a prompt on a symbol if it makes sense for the user to change its value. Symbols without prompts are called *hidden* or *invisible* symbols, because they don't show up in ``menuconfig`` and ``guiconfig``. Symbols that have prompts can also be invisible, when their dependencies are not satisfied. Symbols without prompts can't be configured directly by the user (they derive their value from other symbols), so less restrictions apply to them. If some derived setting is easier to calculate in Kconfig than e.g. during the build, then do it in Kconfig, but keep the distinction between symbols with and without prompts in mind. See the `optional prompts`_ section for a way to deal with settings that are fixed on some machines and configurable on other machines. What not to turn into Kconfig options ************************************* In Zephyr, Kconfig configuration is done after selecting a target board. In general, it does not make sense to use Kconfig for a value that corresponds to a fixed machine-specific setting. Usually, such settings should be handled via :ref:`devicetree <dt-guide>` instead. In particular, avoid adding new Kconfig options of the following types: Options that specify a device in the system by name =================================================== For example, if you are writing an I2C device driver, avoid creating an option named ``MY_DEVICE_I2C_BUS_NAME`` for specifying the bus node your device is controlled by. See :ref:`dt-drivers-that-depend` for alternatives. Similarly, if your application depends on a hardware-specific PWM device to control an RGB LED, avoid creating an option like ``MY_PWM_DEVICE_NAME``. See :ref:`dt-apps-that-depend` for alternatives. Options that specify fixed hardware configuration ================================================= For example, avoid Kconfig options specifying a GPIO pin. An alternative applicable to device drivers is to define a GPIO specifier with type phandle-array in the device binding, and using the :ref:`devicetree-gpio-api` devicetree API from C. Similar advice applies to other cases where devicetree.h provides :ref:`devicetree-hw-api` for referring to other nodes in the system. Search the source code for drivers using these APIs for examples. An application-specific devicetree :ref:`binding <dt-bindings>` to identify board specific properties may be appropriate. See :zephyr_file:`tests/drivers/gpio/gpio_basic_api` for an example. For applications, see :zephyr:code-sample:`blinky` for a devicetree-based alternative. ``select`` statements ********************* The ``select`` statement is used to force one symbol to ``y`` whenever another symbol is ``y``. For example, the following code forces ``CONSOLE`` to ``y`` whenever ``USB_CONSOLE`` is ``y``: .. code-block:: kconfig config CONSOLE bool "Console support" ... config USB_CONSOLE bool "USB console support" select CONSOLE This section covers some pitfalls and good uses for ``select``. ``select`` pitfalls =================== ``select`` might seem like a generally useful feature at first, but can cause configuration issues if overused. For example, say that a new dependency is added to the ``CONSOLE`` symbol above, by a developer who is unaware of the ``USB_CONSOLE`` symbol (or simply forgot about it): .. code-block:: kconfig config CONSOLE bool "Console support" depends on STRING_ROUTINES Enabling ``USB_CONSOLE`` now forces ``CONSOLE`` to ``y``, even if ``STRING_ROUTINES`` is ``n``. To fix the problem, the ``STRING_ROUTINES`` dependency needs to be added to ``USB_CONSOLE`` as well: .. code-block:: kconfig config USB_CONSOLE bool "USB console support" select CONSOLE depends on STRING_ROUTINES ... config STRING_ROUTINES bool "Include string routines" More insidious cases with dependencies inherited from ``if`` and ``menu`` statements are common. An alternative attempt to solve the issue might be to turn the ``depends on`` into another ``select``: .. code-block:: kconfig config CONSOLE bool "Console support" select STRING_ROUTINES ... config USB_CONSOLE bool "USB console support" select CONSOLE In practice, this often amplifies the problem, because any dependencies added to ``STRING_ROUTINES`` now need to be copied to both ``CONSOLE`` and ``USB_CONSOLE``. In general, whenever the dependencies of a symbol are updated, the dependencies of all symbols that (directly or indirectly) select it have to be updated as well. This is very often overlooked in practice, even for the simplest case above. Chains of symbols selecting each other should be avoided in particular, except for simple helper symbols, as covered below in :ref:`good_select_use`. Liberal use of ``select`` also tends to make Kconfig files harder to read, both due to the extra dependencies and due to the non-local nature of ``select``, which hides ways in which a symbol might get enabled. Alternatives to ``select`` ========================== For the example in the previous section, a better solution is usually to turn the ``select`` into a ``depends on``: .. code-block:: kconfig config CONSOLE bool "Console support" ... config USB_CONSOLE bool "USB console support" depends on CONSOLE This makes it impossible to generate an invalid configuration, and means that dependencies only ever have to be updated in a single spot. An objection to using ``depends on`` here might be that configuration files that enable ``USB_CONSOLE`` now also need to enable ``CONSOLE``: .. code-block:: cfg CONFIG_CONSOLE=y CONFIG_USB_CONSOLE=y This comes down to a trade-off, but if enabling ``CONSOLE`` is the norm, then a mitigation is to make ``CONSOLE`` default to ``y``: .. code-block:: kconfig config CONSOLE bool "Console support" default y This gives just a single assignment in configuration files: .. code-block:: cfg CONFIG_USB_CONSOLE=y Note that configuration files that do not want ``CONSOLE`` enabled now have to explicitly disable it: .. code-block:: cfg CONFIG_CONSOLE=n .. _good_select_use: Using ``select`` for helper symbols =================================== A good and safe use of ``select`` is for setting "helper" symbols that capture some condition. Such helper symbols should preferably have no prompt or dependencies. For example, a helper symbol for indicating that a particular CPU/SoC has an FPU could be defined as follows: .. code-block:: kconfig config CPU_HAS_FPU bool help If y, the CPU has an FPU ... config SOC_FOO bool "FOO SoC" select CPU_HAS_FPU ... config SOC_BAR bool "BAR SoC" select CPU_HAS_FPU This makes it possible for other symbols to check for FPU support in a generic way, without having to look for particular architectures: .. code-block:: kconfig config FPU bool "Support floating point operations" depends on CPU_HAS_FPU The alternative would be to have dependencies like the following, possibly duplicated in several spots: .. code-block:: kconfig config FPU bool "Support floating point operations" depends on SOC_FOO || SOC_BAR || ... Invisible helper symbols can also be useful without ``select``. For example, the following code defines a helper symbol that has the value ``y`` if the machine has some arbitrarily-defined "large" amount of memory: .. code-block:: kconfig config LARGE_MEM def_bool MEM_SIZE >= 64 .. note:: This is short for the following: .. code-block:: kconfig config LARGE_MEM bool default MEM_SIZE >= 64 ``select`` recommendations ========================== In summary, here are some recommended practices for ``select``: - Avoid selecting symbols with prompts or dependencies. Prefer ``depends on``. If ``depends on`` causes annoying bloat in configuration files, consider adding a Kconfig default for the most common value. Rare exceptions might include cases where you're sure that the dependencies of the selecting and selected symbol will never drift out of sync, e.g. when dealing with two simple symbols defined close to one another within the same ``if``. Common sense applies, but be aware that ``select`` often causes issues in practice. ``depends on`` is usually a cleaner and safer solution. - Select simple helper symbols without prompts and dependencies however much you like. They're a great tool for simplifying Kconfig files. - An exemption are buses like I2C and SPI, and following the same thought process things like MFD as well. Drivers on these buses should use ``select`` to allow the automatic activation of the necessary bus drivers when devices on the bus are enabled in the devicetree. .. code-block:: kconfig config ADC_FOO bool "external SPI ADC foo driver" select SPI (Lack of) conditional includes ****************************** ``if`` blocks add dependencies to each item within the ``if``, as if ``depends on`` was used. A common misunderstanding related to ``if`` is to think that the following code conditionally includes the file :file:`Kconfig.other`: .. code-block:: kconfig if DEP source "Kconfig.other" endif In reality, there are no conditional includes in Kconfig. ``if`` has no special meaning around a ``source``. .. note:: Conditional includes would be impossible to implement, because ``if`` conditions may contain (either directly or indirectly) forward references to symbols that haven't been defined yet. Say that :file:`Kconfig.other` above contains this definition: .. code-block:: kconfig config FOO bool "Support foo" In this case, ``FOO`` will end up with this definition: .. code-block:: kconfig config FOO bool "Support foo" depends on DEP Note that it is redundant to add ``depends on DEP`` to the definition of ``FOO`` in :file:`Kconfig.other`, because the ``DEP`` dependency has already been added by ``if DEP``. In general, try to avoid adding redundant dependencies. They can make the structure of the Kconfig files harder to understand, and also make changes more error-prone, since it can be hard to spot that the same dependency is added twice. "Stuck" symbols in menuconfig and guiconfig ******************************************* There is a common subtle gotcha related to interdependent configuration symbols with prompts. Consider these symbols: .. code-block:: kconfig config FOO bool "Foo" config STACK_SIZE hex "Stack size" default 0x200 if FOO default 0x100 Assume that the intention here is to use a larger stack whenever ``FOO`` is enabled, and that the configuration initially has ``FOO`` disabled. Also, remember that Zephyr creates an initial configuration in :file:`zephyr/.config` in the build directory by merging configuration files (including e.g. :file:`prj.conf`). This configuration file exists before ``menuconfig`` or ``guiconfig`` is run. When first entering the configuration interface, the value of ``STACK_SIZE`` is 0x100, as expected. After enabling ``FOO``, you might reasonably expect the value of ``STACK_SIZE`` to change to 0x200, but it stays as 0x100. To understand what's going on, remember that ``STACK_SIZE`` has a prompt, meaning it is user-configurable, and consider that all Kconfig has to go on from the initial configuration is this: .. code-block:: cfg CONFIG_STACK_SIZE=0x100 Since Kconfig can't know if the 0x100 value came from a ``default`` or was typed in by the user, it has to assume that it came from the user. Since ``STACK_SIZE`` is user-configurable, the value from the configuration file is respected, and any symbol defaults are ignored. This is why the value of ``STACK_SIZE`` appears to be "frozen" at 0x100 when toggling ``FOO``. The right fix depends on what the intention is. Here's some different scenarios with suggestions: - If ``STACK_SIZE`` can always be derived automatically and does not need to be user-configurable, then just remove the prompt: .. code-block:: kconfig config STACK_SIZE hex default 0x200 if FOO default 0x100 Symbols without prompts ignore any value from the saved configuration. - If ``STACK_SIZE`` should usually be user-configurable, but needs to be set to 0x200 when ``FOO`` is enabled, then disable its prompt when ``FOO`` is enabled, as described in `optional prompts`_: .. code-block:: kconfig config STACK_SIZE hex "Stack size" if !FOO default 0x200 if FOO default 0x100 - If ``STACK_SIZE`` should usually be derived automatically, but needs to be set to a custom value in rare circumstances, then add another option for making ``STACK_SIZE`` user-configurable: .. code-block:: kconfig config CUSTOM_STACK_SIZE bool "Use a custom stack size" help Enable this if you need to use a custom stack size. When disabled, a suitable stack size is calculated automatically. config STACK_SIZE hex "Stack size" if CUSTOM_STACK_SIZE default 0x200 if FOO default 0x100 As long as ``CUSTOM_STACK_SIZE`` is disabled, ``STACK_SIZE`` will ignore the value from the saved configuration. It is a good idea to try out changes in the ``menuconfig`` or ``guiconfig`` interface, to make sure that things behave the way you expect. This is especially true when making moderately complex changes like these. Assignments to promptless symbols in configuration files ******************************************************** Assignments to hidden (promptless, also called *invisible*) symbols in configuration files are always ignored. Hidden symbols get their value indirectly from other symbols, via e.g. ``default`` and ``select``. A common source of confusion is opening the output configuration file (:file:`zephyr/.config`), seeing a bunch of assignments to hidden symbols, and assuming that those assignments must be respected when the configuration is read back in by Kconfig. In reality, all assignments to hidden symbols in :file:`zephyr/.config` are ignored by Kconfig, like for other configuration files. To understand why :file:`zephyr/.config` still includes assignments to hidden symbols, it helps to realize that :file:`zephyr/.config` serves two separate purposes: 1. It holds the saved configuration, and 2. it holds configuration output. :file:`zephyr/.config` is parsed by the CMake files to let them query configuration settings, for example. The assignments to hidden symbols in :file:`zephyr/.config` are just configuration output. Kconfig itself ignores assignments to hidden symbols when calculating symbol values. .. note:: A *minimal configuration*, which can be generated from within the :ref:`menuconfig and guiconfig interfaces <menuconfig>`, could be considered closer to just a saved configuration, without the full configuration output. ``depends on`` and ``string``/``int``/``hex`` symbols ***************************************************** ``depends on`` works not just for ``bool`` symbols, but also for ``string``, ``int``, and ``hex`` symbols (and for choices). The Kconfig definitions below will hide the ``FOO_DEVICE_FREQUENCY`` symbol and disable any configuration output for it when ``FOO_DEVICE`` is disabled. .. code-block:: kconfig config FOO_DEVICE bool "Foo device" config FOO_DEVICE_FREQUENCY int "Foo device frequency" depends on FOO_DEVICE In general, it's a good idea to check that only relevant symbols are ever shown in the ``menuconfig``/``guiconfig`` interface. Having ``FOO_DEVICE_FREQUENCY`` show up when ``FOO_DEVICE`` is disabled (and possibly hidden) makes the relationship between the symbols harder to understand, even if code never looks at ``FOO_DEVICE_FREQUENCY`` when ``FOO_DEVICE`` is disabled. ``menuconfig`` symbols ********************** If the definition of a symbol ``FOO`` is immediately followed by other symbols that depend on ``FOO``, then those symbols become children of ``FOO``. If ``FOO`` is defined with ``config FOO``, then the children are shown indented relative to ``FOO``. Defining ``FOO`` with ``menuconfig FOO`` instead puts the children in a separate menu rooted at ``FOO``. ``menuconfig`` has no effect on evaluation. It's just a display option. ``menuconfig`` can cut down on the number of menus and make the menu structure easier to navigate. For example, say you have the following definitions: .. code-block:: kconfig menu "Foo subsystem" config FOO_SUBSYSTEM bool "Foo subsystem" if FOO_SUBSYSTEM config FOO_FEATURE_1 bool "Foo feature 1" config FOO_FEATURE_2 bool "Foo feature 2" config FOO_FREQUENCY int "Foo frequency" ... lots of other FOO-related symbols endif # FOO_SUBSYSTEM endmenu In this case, it's probably better to get rid of the ``menu`` and turn ``FOO_SUBSYSTEM`` into a ``menuconfig`` symbol: .. code-block:: kconfig menuconfig FOO_SUBSYSTEM bool "Foo subsystem" if FOO_SUBSYSTEM config FOO_FEATURE_1 bool "Foo feature 1" config FOO_FEATURE_2 bool "Foo feature 2" config FOO_FREQUENCY int "Foo frequency" ... lots of other FOO-related symbols endif # FOO_SUBSYSTEM In the ``menuconfig`` interface, this will be displayed as follows: .. code-block:: none [*] Foo subsystem ---> Note that making a symbol without children a ``menuconfig`` is meaningless. It should be avoided, because it looks identical to a symbol with all children invisible: .. code-block:: none [*] I have no children ---- [*] All my children are invisible ---- Commas in macro arguments ************************* Kconfig uses commas to separate macro arguments. This means a construct like this will fail: .. code-block:: kconfig config FOO bool default y if $(dt_chosen_enabled,"zephyr,bar") To solve this problem, create a variable with the text and use this variable as argument, as follows: .. code-block:: kconfig DT_CHOSEN_ZEPHYR_BAR := zephyr,bar config FOO bool default y if $(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_BAR)) Checking changes in menuconfig/guiconfig **************************************** When adding new symbols or making other changes to Kconfig files, it is a good idea to look up the symbols in :ref:`menuconfig or guiconfig <menuconfig>` afterwards. To get to a symbol quickly, use the jump-to feature (press :kbd:`/`). Here are some things to check: * Are the symbols placed in a good spot? Check that they appear in a menu where they make sense, close to related symbols. If one symbol depends on another, then it's often a good idea to place it right after the symbol it depends on. It will then be shown indented relative to the symbol it depends on in the ``menuconfig`` interface, and in a separate menu rooted at the symbol in ``guiconfig``. This also works if several symbols are placed after the symbol they depend on. * Is it easy to guess what the symbols do from their prompts? * If many symbols are added, do all combinations of values they can be set to make sense? For example, if two symbols ``FOO_SUPPORT`` and ``NO_FOO_SUPPORT`` are added, and both can be enabled at the same time, then that makes a nonsensical configuration. In this case, it's probably better to have a single ``FOO_SUPPORT`` symbol. * Are there any duplicated dependencies? This can be checked by selecting a symbol and pressing :kbd:`?` to view the symbol information. If there are duplicated dependencies, then use the ``Included via ...`` path shown in the symbol information to figure out where they come from. Checking changes with :file:`scripts/kconfig/lint.py` ***************************************************** After you make Kconfig changes, you can use the :zephyr_file:`scripts/kconfig/lint.py` script to check for some potential issues, like unused symbols and symbols that are impossible to enable. Use ``--help`` to see available options. Some checks are necessarily a bit heuristic, so a symbol being flagged by a check does not necessarily mean there's a problem. If a check returns a false positive e.g. due to token pasting in C (``CONFIG_FOO_##index##_BAR``), just ignore it. When investigating an unknown symbol ``FOO_BAR``, it is a good idea to run ``git grep FOO_BAR`` to look for references. It is also a good idea to search for some components of the symbol name with e.g. ``git grep FOO`` and ``git grep BAR``, as it can help uncover token pasting. Style recommendations and shorthands ************************************ This section gives some style recommendations and explains some common Kconfig shorthands. Factoring out common dependencies ================================= If a sequence of symbols/choices share a common dependency, the dependency can be factored out with an ``if``. As an example, consider the following code: .. code-block:: kconfig config FOO bool "Foo" depends on DEP config BAR bool "Bar" depends on DEP choice prompt "Choice" depends on DEP config BAZ bool "Baz" config QAZ bool "Qaz" endchoice Here, the ``DEP`` dependency can be factored out like this: .. code-block:: kconfig if DEP config FOO bool "Foo" config BAR bool "Bar" choice prompt "Choice" config BAZ bool "Baz" config QAZ bool "Qaz" endchoice endif # DEP .. note:: Internally, the second version of the code is transformed into the first. If a sequence of symbols/choices with shared dependencies are all in the same menu, the dependency can be put on the menu itself: .. code-block:: kconfig menu "Foo features" depends on FOO_SUPPORT config FOO_FEATURE_1 bool "Foo feature 1" config FOO_FEATURE_2 bool "Foo feature 2" endmenu If ``FOO_SUPPORT`` is ``n``, the entire menu disappears. Redundant defaults ================== ``bool`` symbols implicitly default to ``n``, and ``string`` symbols implicitly default to the empty string. Therefore, ``default n`` and ``default ""`` are (almost) always redundant. The recommended style in Zephyr is to skip redundant defaults for ``bool`` and ``string`` symbols. That also generates clearer documentation: (*Implicitly defaults to n* instead of *n if <dependencies, possibly inherited>*). Defaults *should* always be given for ``int`` and ``hex`` symbols, however, as they implicitly default to the empty string. This is partly for compatibility with the C Kconfig tools, though an implicit 0 default might be less likely to be what was intended compared to other symbol types as well. The one case where ``default n``/``default ""`` is not redundant is when defining a symbol in multiple locations and wanting to override e.g. a ``default y`` on a later definition. Note that a ``default n`` does not override a previously defined ``default y``. That is, FOO will be set to ``n`` in the example below. If the ``default n`` was omitted in the first definition, FOO would have been set to ``y``. .. code-block:: kconfig config FOO bool "foo" default n config FOO bool "foo" default y In the following example FOO will get the value ``y``. .. code-block:: kconfig config FOO bool "foo" default y config FOO bool "foo" default n .. _kconfig_shorthands: Common Kconfig shorthands ========================= Kconfig has two shorthands that deal with prompts and defaults. - ``<type> "prompt"`` is a shorthand for giving a symbol/choice a type and a prompt at the same time. These two definitions are equal: .. code-block:: kconfig config FOO bool "foo" .. code-block:: kconfig config FOO bool prompt "foo" The first style, with the shorthand, is preferred in Zephyr. - ``def_<type> <value>`` is a shorthand for giving a type and a value at the same time. These two definitions are equal: .. code-block:: kconfig config FOO def_bool BAR && BAZ .. code-block:: kconfig config FOO bool default BAR && BAZ Using both the ``<type> "prompt"`` and the ``def_<type> <value>`` shorthand in the same definition is redundant, since it gives the type twice. The ``def_<type> <value>`` shorthand is generally only useful for symbols without prompts, and somewhat obscure. .. note:: For a symbol defined in multiple locations (e.g., in a ``Kconfig.defconfig`` file in Zephyr), it is best to only give the symbol type for the "base" definition of the symbol, and to use ``default`` (instead of ``def_<type> value``) for the remaining definitions. That way, if the base definition of the symbol is removed, the symbol ends up without a type, which generates a warning that points to the other definitions. That makes the extra definitions easier to discover and remove. Prompt strings ============== For a Kconfig symbol that enables a driver/subsystem FOO, consider having just "Foo" as the prompt, instead of "Enable Foo support" or the like. It will usually be clear in the context of an option that can be toggled on/off, and makes things consistent. Header comments and other nits ============================== A few formatting nits, to help keep things consistent: - Use this format for any header comments at the top of ``Kconfig`` files: .. code-block:: none # <Overview of symbols defined in the file, preferably in plain English> (Blank line) (Blank line) (Kconfig definitions) - Format comments as ``# Comment`` rather than ``#Comment`` - Put a blank line before/after each top-level ``if`` and ``endif`` - Use a single tab for each indentation - Indent help text with two extra spaces Lesser-known/used Kconfig features ********************************** This section lists some more obscure Kconfig behaviors and features that might still come in handy. The ``imply`` statement ======================= The ``imply`` statement is similar to ``select``, but respects dependencies and doesn't force a value. For example, the following code could be used to enable USB keyboard support by default on the FOO SoC, while still allowing the user to turn it off: .. code-block:: kconfig config SOC_FOO bool "FOO SoC" imply USB_KEYBOARD ... config USB_KEYBOARD bool "USB keyboard support" ``imply`` acts like a suggestion, whereas ``select`` forces a value. Optional prompts ================ A condition can be put on a symbol's prompt to make it optionally configurable by the user. For example, a value ``MASK`` that's hardcoded to 0xFF on some boards and configurable on others could be expressed as follows: .. code-block:: kconfig config MASK hex "Bitmask" if HAS_CONFIGURABLE_MASK default 0xFF .. note:: This is short for the following: .. code-block:: kconfig config MASK hex prompt "Bitmask" if HAS_CONFIGURABLE_MASK default 0xFF The ``HAS_CONFIGURABLE_MASK`` helper symbol would get selected by boards to indicate that ``MASK`` is configurable. When ``MASK`` is configurable, it will also default to 0xFF. Optional choices ================ Defining a choice with the ``optional`` keyword allows the whole choice to be toggled off to select none of the symbols: .. code-block:: kconfig choice prompt "Use legacy protocol" optional config LEGACY_PROTOCOL_1 bool "Legacy protocol 1" config LEGACY_PROTOCOL_2 bool "Legacy protocol 2" endchoice In the ``menuconfig`` interface, this will be displayed e.g. as ``[*] Use legacy protocol (Legacy protocol 1) --->``, where the choice can be toggled off to enable neither of the symbols. ``visible if`` conditions ========================= Putting a ``visible if`` condition on a menu hides the menu and all the symbols within it, while still allowing symbol default values to kick in. As a motivating example, consider the following code: .. code-block:: kconfig menu "Foo subsystem" depends on HAS_CONFIGURABLE_FOO config FOO_SETTING_1 int "Foo setting 1" default 1 config FOO_SETTING_2 int "Foo setting 2" default 2 endmenu When ``HAS_CONFIGURABLE_FOO`` is ``n``, no configuration output is generated for ``FOO_SETTING_1`` and ``FOO_SETTING_2``, as the code above is logically equivalent to the following code: .. code-block:: kconfig config FOO_SETTING_1 int "Foo setting 1" default 1 depends on HAS_CONFIGURABLE_FOO config FOO_SETTING_2 int "Foo setting 2" default 2 depends on HAS_CONFIGURABLE_FOO If we want the symbols to still get their default values even when ``HAS_CONFIGURABLE_FOO`` is ``n``, but not be configurable by the user, then we can use ``visible if`` instead: .. code-block:: kconfig menu "Foo subsystem" visible if HAS_CONFIGURABLE_FOO config FOO_SETTING_1 int "Foo setting 1" default 1 config FOO_SETTING_2 int "Foo setting 2" default 2 endmenu This is logically equivalent to the following: .. code-block:: kconfig config FOO_SETTING_1 int "Foo setting 1" if HAS_CONFIGURABLE_FOO default 1 config FOO_SETTING_2 int "Foo setting 2" if HAS_CONFIGURABLE_FOO default 2 .. note:: See the `optional prompts`_ section for the meaning of the conditions on the prompts. When ``HAS_CONFIGURABLE_FOO`` is ``n``, we now get the following configuration output for the symbols, instead of no output: .. code-block:: cfg ... CONFIG_FOO_SETTING_1=1 CONFIG_FOO_SETTING_2=2 ... Other resources *************** The *Intro to symbol values* section in the `Kconfiglib docstring <path_to_url`__ goes over how symbols values are calculated in more detail. ```
/content/code_sandbox/doc/build/kconfig/tips.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,345
```restructuredtext .. _hardening: Hardening Tool ############## Before launching a product, it's crucial to ensure that your software is as secure as possible. This process, known as "hardening", involves strengthening the security of a system to protect it from potential threats and vulnerabilities. At a high-level, hardening a Zephyr application can be seen as a two-fold process: #. Disabling features and compilation flags that might lead to security vulnerabilities (ex. making sure that no "experimental" features are being used, disabling features typically used for debugging purposes such as assertions, shell, etc.). #. Enabling optional features that can lead to improve security (ex. stack sentinel, hardware stack protection, etc.). Some of these features might be hardware-dependent. To simplify this process, Zephyr offers a **hardening tool** designed to analyze an application's configuration against a set of hardening preferences defined by the **Security Working Group**. The tool looks at the KConfig options in the build target and provides tailored suggestions and recommendations to adjust security-related options. Usage ***** .. zephyr-app-commands:: :tool: all :app: samples/hello_world :board: reel_board :goals: hardenconfig The output should be similar to the table below. For each configuration option set to a value that could lead to a security vulnerability, the table will propose a recommended value that should be used instead. .. code-block:: console name | current | recommended || check result ================================================================================================ CONFIG_BOOT_BANNER | y | n || FAIL CONFIG_BUILD_OUTPUT_STRIPPED | n | y || FAIL CONFIG_FAULT_DUMP | 2 | 0 || FAIL CONFIG_HW_STACK_PROTECTION | n | y || FAIL CONFIG_MPU_STACK_GUARD | n | y || FAIL CONFIG_OVERRIDE_FRAME_POINTER_DEFAULT | n | y || FAIL CONFIG_STACK_SENTINEL | n | y || FAIL CONFIG_EARLY_CONSOLE | y | n || FAIL CONFIG_PRINTK | y | n || FAIL ```
/content/code_sandbox/doc/security/hardening-tool.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
504
```restructuredtext :orphan: .. _security-citations: Security Document Citations ########################### .. [SALT75] J. H. Saltzer and M. D. Schroeder, "The protection of information in computer systems," Proceedings of the IEEE, vol. 63, no. 9, pp. 1278-1308, Sep 1975. [Online]. Available: path_to_url .. [PAUL09] M. Paul, "The Ten Best Practices for Secure Software Development," International Information Systems Security Certification Consortium, Inc. [(ISC)2 |reg|], Palm Harbor, FL, USA, 2009. .. [MS12] Microsoft Corporation, Security Development Lifecycle - SDL Process Guidance Version 5.2,2012. .. [CCITSE12] Common Criteria for Information Technology Security Evaluation ver. 3.1 rev. 4, 2012. .. [MICR16] Micrium, "Certification Kits," 2016. [Online]. Available: path_to_url .. [NIST02] National Institute of Standards and Technology, FIPS PUB 140-2: Security Requirements for COMPANY PUBLIC Application note Cryptographic Modules, Gaithersburg, 2002. .. [GHS10] Green Hills Software, "INTEGRITY-178B Separation Kernel Security Target v4.2," 2010. .. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. [Online]. Available: path_to_url .. [STRIDE09] Microsoft Corporation, "The STRIDE Threat Model, 2009". [Online]. Available: path_to_url .. [CVSS] Forum of Incident Response and Security Teams, "Common Vulnerability Scoring System v3.0: Specification Document". [Online]. Available: path_to_url .. [OWASP] Open Web Application Security Project, "Application Threat Modeling". [Online]. Available: path_to_url .. [CIIBPB] Core Infrastructure Initiative Best Practices Badge. [Online]. Available: path_to_url ```
/content/code_sandbox/doc/security/security-citations.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
484
```restructuredtext .. _sensor-threat: Sensor Device Threat Model ########################## This document describes a threat model for an IoT sensor device. Spelling out a threat model helps direct development effort, and can be used to help prioritize these efforts as well. This device contains a sensor of some type (for example temperature, or a pressure in a pipe), which sends this data to an SoC running a microcontroller. This microcontroller connects to a cloud service, and relays this sensor data to this service. The cloud service is also able to send configuration data to the device, as well as software update images. A general diagram can be seen in Figure 1: .. figure:: media/sensor-model.svg Figure 1. Sensor General Diagram In this sensor device, the sensor connects with the SoC via an SPI bus, and the SoC has a network interface that it uses to communicate with the cloud service. The particulars of these interfaces can impact the threat model in unexpected ways, and variants on this will need to be considered (for example, using a separate network interface SoC connected via some type of bus). This model also focuses on communicating via the MQTT-over-TLS protocol, as this seems to be in wide use [1]_. Assets ====== One aspect of the threat model to consider are assets involved in the operation of the device. The following list enumerates the assets included in this model: 1. **The bootloader**. This is a small code/data image contained in on-device flash that is the first code to run. In order to establish a root of trust, this image must be immutable. This model assumes that the SoC provides a mechanism to protect a region of the flash from future writes, and that this will be done after this image is programmed into the device, early in production [th-imboot]_. 2. **The application firmware image**. This asset consists of the remainder of the firmware run by the microcontroller. The distinction is made because this part of the image will need to be updated periodically as security vulnerabilities are discovered. Requirements for updates to this image are: a. The image shall only be replaced with an authorized image [th-authrepl]_. b. When an authorized replacement image is available, the update shall be done in a timely manner [th-timely-update]_. c. The image update shall be seen as atomic, meaning that when the image is run, the flash shall contain either the update image in its entirety, or the old image in its entirety [th-atomic-update]_. 3. **Root certificate list**. In order to authenticate the cloud service (server), the IoT device must have a list of root certificates that are allowed to sign the certificate on the server. For cloud-provider based services, this list will generally be provided by the service provider. Because the root certificates can expire, and possibly be revoked, this list will need to be periodically updated [th-root-certs]_, [th-root-check]_. 4. **Client secrets**. To authenticate the client to the service, the client must possess some kind of secret. This is generally a private key, usually either an RSA key or an EC private key. When establishing communication with the server, the device will use this secret either as part of the TLS establishment, or to sign a message used in the communication. This secret is generally generated by the service provider, or by software running elsewhere, and must be securely installed on the device. Policy may dictate that this secret be replaced periodically, which will require a way to update the client secret. Typically, the service will allow two or three active keys to allow this update to proceed while the old key is used. These secrets must be protected from read, and the smallest amount of code necessary shall have access to them. [th-secret-storage]_ 5. **Current date/time**. TLS certificate verification requires knowledge of the current date and time in order to determine if the current time falls within the certificate's current validity time. Also, token based client authentication will generally require the client to sign a message containing a time window that the token is valid. Certificate validation requires the device's notion of date and time to be accurate within a day or so. Token generation generally requires the time to be accurate within 5-10 minutes. It may be possible to approximate secure time by querying an external time server. Secure NTP is possibly beyond the capabilities of an IoT device. The main risks of having incorrect time are denial of service (the device rejects valid certificates), and the generation of tokens with invalid times. It could be possible to trick the device into generating tokens that are valid in the future, but the attacker would also have to spoof the server's certificate to be able to intercept this. [th-time]_ 6. **Sensor data**. The data received from the sensor itself, and delivered to the service shall be delivered without modification or tampering. 7. **Device configuration**. Various configuration data, such as the hostname of the service to connect to, the address of a time server, frequency and parameters of when sensor data is sent to the service, and other need to be kept by the device. This configuration data will need to be updated periodically as the configuration changes. Updates should be allowed only from authorized parties. [th-conf]_ 8. **Logs**. In order to assist with analysis of security issues, the device shall log information about security-pertinent events. IoT devices generally have limited storage, and as such, these logs need to be carefully selected. It may also be possible to send these log events to the cloud service where they can be stored in a more resource-available environment. Types of events that should be logged include: a. **Firmware image updates**. The system should log the download of new images, and when an image is successfully updated. b. **Client secret changes**. Changes and new client secrets should be logged. c. **Changes to the device configuration**. [th-logs]_ Communication ============= In addition to assets, the threat model also considers the locations where data or assets are communicated between entities of the system. 1. **Flash contents**. The flash device contains several regions. The contents of flash can be modified programmatically by the SoC's CPU. a. **The bootloader**. As described in the Assets section, the bootloader is a small section of the flash device containing the code initially run. This section shall be written early in the lifecycle of the device, and the flash device then configured to permanently disallow modification of this section. This configuration should also prevent modification via external interfaces, such as JTAG or SWD debuggers. The bootloader is responsible for verifying the signature of the application image as well as updating the application image from the update image when an update is needed. The bootloader shall verify the signature of the update image before installing it. The bootloader shall only accept an update image with a newer version number than the current image. b. **The application image**. The application image contains the code executed during normal operation of the device. Before running this image, the bootloader shall verify a digital signature of the image, to avoid running an image that has been tampered with. The flash/system shall be configured such that after the bootloader has completed, the CPU will be unable to write to the application image. c. **The update image**. This is an area of flash that holds a new version of the application image. This image will be downloaded and stored by the application during normal operation. When this has completed, the application can trigger a reboot, and the bootloader can install the new image. d. **Secret storage**. An area of the flash will be used to store client secrets. This area is written and read by a subset of the application image. The application shall be configured to protect this area from both reads and writes by code that does not need to have access to it, giving consideration to possible exploits found within a majority of the application code. Revealing the contents of the secrets would allow the attacker to spoof this device. Initial secrets shall be placed in the device during a provisioning activity, distinct from normal operation of the device. Later updates can be made under the direction of communication received over a secured channel to the service. e. **Configuration storage**. There shall be an area to store other configuration information. On resource-constrained devices, it is allowed for this to be stored in the same region as the secret storage, however, this adds additional code that has access to the secret storage area, and as such, more code that must be scrutinized. f. **Log storage**. The device may have an area of flash where log events can be written. 2. **Sensor/Actuator interface**. In this design, the sensor or actuator communicates with the SoC via a bus, such as SPI. The hardware design shall be made to make intercepting this bus difficult for an attack. Required techniques depend on the sensitivity and use of the sensor data, and can range from having the sensor mounted on the same PCB as the MCU to epoxy potting the entire device. 3. **Communication with cloud service**. Communication between the device, and the cloud service will be done over the general internet. As such, it shall be assumed that an attacker can arbitrarily intercept this channel and, for example, return spoofed DNS results or attempt man-in-the-middle attacks against communication with cloud services. The device shall use TLS for all communication with the cloud service [th-all-tls]_. The TLS stack shall be configured to use only cipher suites that are generally considered secure [2]_, including forward secrecy. The communication shall be secured by the following: a. **Cipher suite selection**. The device shall only allow communication with generally agreed secure cipher suites [th-tls-ciphers]_. b. **Server certificate verification**. The server presented by the server shall be verified [th-root-check]_. i. **Naming**. The certificate shall name the host and service the cloud service server is providing. `RFC6125 <path_to_url`__ describes best practices for this. It is permissible for the device to require the certificate to be more restrictive than as described in this RFC, provided the service can use a certificate that can comply. ii. **Path validation**. The device shall verify that the certificate chain has a valid signature path from a root certificate contained within the device, to the certificate presented by the service. `RFC4158 <path_to_url`__ describes this is general. The device is permitted to require a more restricted path, provided the server certificate used complies with this restriction. iii. **Validity period**. The validity period of all presented certificates shall be checked against the device's best notion of the current time. c. **Client authentication**. The client shall authenticate itself to the service using a secret known only to that particular device. There are several options, and the technique used is generally mandated by the particular service provider being used [th-tls-client-auth]_. i. **TLS client certificates**. The TLS protocol allows the client to present a certificate, and assert its knowledge of the secret described by that certificate. Generally, these certificates will be stored within the service provider. These certificates can be self-signed, or signed by a CA. Since the service provider maintains a list of valid certificates (mapping them to a device identity), having these certificates signed by a CA does not add any additional security, but may be useful in the management of these certificates. ii. **Token-based authentication**. It is also possible for the client to authenticate itself using the *password* field of the MQTT CONNECT packet. However, the secret itself must not be transmitted in this packet. Instead, a token-based protocol, such as `RFC7519 <path_to_url`__\ 's JSON Web Token (JWT) can be used. These tokens will generally have a small validity period (e.g. 1 hour), to prevent them from being reused if they are intercepted. The token shall not be sent until the device has verified the identity of the server. d. **Random/Entropy source**. Cryptographic communication requires the generation of secure pseudorandom numbers. The device shall use a modern, accepted cryptographic random-bit generator to generate these random numbers. It shall use either a Non-Deterministic Random Bit Generator (True RBG) implemented in hardware within the SoC, or a Deterministic Random Bit Generator (Pseudo RBG) seeded by an entropy source within the SoC. Please see NIST SP 800-90A for information on approved RBGs and NIST SP 800-90B for information on testing a device's entropy source [th-entropy]_. 4. **Communication with the time service**. Ideally, the device shall contain hardware that maintains a secure time. However, most SoCs in use do not have support for this, and it will be necessary to consult an external time service. `RFC4330 <path_to_url`__ and referenced RFCs describe the Simple Network Time Protocol that can be used to query the current time from a network time server. 5. **Device lifecycle**. An IoT device will have a lifecycle from production to destruction and disposal of the device. Aspects of this lifecycle that impact security include initial provisioning, normal operation, re-provisioning, and destruction. a. **Initial provisioning**. During the initial provisioning stage, it is necessary to program the bootloader, an initial application image, a device secret, and initial configuration data [th-initial-provision]_. In addition, the bootloader flash protection shall be installed. Of this information, only the device secret needs to differ per device. This secret shall be securely maintained, and destroyed in all locations outside of the device once it has been programmed [th-initial-secret]_. b. **Normal operation**. Normal operation includes the behavior described by the rest of this document. c. **Re-provisioning**. Sometimes it is necessary to re-provision a device, such as for a different application. One way to do this is to keep the same device secret, and replace the configuration data, as well as the cloud service data associated with the device. It is also possible to program a new device secret, but if this is done it shall be done securely, and the new secret destroyed externally once programmed into the device [th-reprovision]_. d. **Destruction**. To prevent the device secret from being used to spoof the device, upon decommissioning, the secret for a particular device shall be rendered ineffective [th-destruction]_. Possibilities include: i. Hardware destruction of the device. ii. Securely wiping the flash area containing the secret [3]_. iii. Removing the device identity and certificate from the service. Other Considerations ==================== In addition to the above, network connected devices generally will need a way to configure them to connect to the network environment they are placed in. There are numerous ways of doing this, and it is important for these configuration methods to not circumvent the security requirements described above. Threats ======= .. [th-imboot] Must boot with an immutable bootloader. .. [th-authrepl] Application image shall only be replaced with an authorized image. .. [th-timely-update] Application updates shall be done in a timely manner. .. [th-atomic-update] Application updates shall be atomic. .. [th-root-certs] TLS must have a list of trusted root certificates. .. [th-root-check] TLS must verify root certificate from server is valid. .. [th-secret-storage] There must be a mechanism to securely store client secrets. The least amount of code necessary shall have access to these secrets. .. [th-time] System must have moderately accurate notion of the current date/time. .. [th-conf] The system must receive, and keep configuration data. .. [th-logs] The system must log security-related events, and either store them locally, or send to a service. .. [th-all-tls] All communications with the cloud service shall use TLS. .. [th-tls-ciphers] TLS shall be configured to allow only generally agreed cipher suites (including forward secrecy). .. [th-tls-client-auth] The device shall authenticate itself with the cloud provider using one of the methods described. .. [th-entropy] The TLS layer shall use a modern, accepted cryptographic random-bit generator seeded by an entropy source within the SoC. .. [th-initial-provision] The device shall have a per-device secret loaded before deployment. .. [th-initial-secret] The initial secret shall be securely maintained, and destroyed in any external location as soon as the device is provisioned. .. [th-reprovision] Reprovisioning a device shall be done securely. .. [th-destruction] Upon decommissioning, the device secret shall be rendered ineffective. Notes ===== .. [1] See path_to_url As of this writing, the three major cloud IoT service providers, AWS IoT, Google Cloud IoT, and Microsoft Azure IoT all provide MQTT over TLS. Some feedback has suggested that some find difficulty with UDP protocols and routing issues on various networks. .. [2] As new exploits are discovered, what is considered secure can change. Organizations such as path_to_url provide information on current ideas of how TLS must be configured to be secure. .. [3] Note that merely erasing this flash area is unlikely to be sufficient. ```
/content/code_sandbox/doc/security/sensor-threat.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,056
```restructuredtext .. _security_section: Security ######## These documents describe the requirements, processes, and developer guidelines for ensuring security is addressed within the Zephyr project. .. toctree:: :maxdepth: 1 :glob: security-overview.rst reporting.rst secure-coding.rst sensor-threat.rst hardening-tool.rst vulnerabilities.rst standards/index.rst ```
/content/code_sandbox/doc/security/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
94
```restructuredtext .. _secure code: Secure Coding ############# Traditionally, microcontroller-based systems have not placed much emphasis on security. They have usually been thought of as isolated, disconnected from the world, and not very vulnerable, just because of the difficulty in accessing them. The Internet of Things has changed this. Now, code running on small microcontrollers often has access to the internet, or at least to other devices (that may themselves have vulnerabilities). Given the volume they are often deployed at, uncontrolled access can be devastating [#attackf]_. This document describes the requirements and process for ensuring security is addressed within the Zephyr project. All code submitted should comply with these principles. Much of this document comes from [CIIBPB]_. Introduction and Scope ********************** This document covers guidelines for the `Zephyr Project`_, from a security perspective. Many of the ideas contained herein are captured from other open source efforts. .. todo: Reference main document here .. _Zephyr Project: path_to_url We begin with an overview of secure design as it relates to Zephyr. This is followed by a section on `Secure development knowledge`_, which gives basic requirements that a developer working on the project will need to have. This section gives references to other security documents, and full details of how to write secure software are beyond the scope of this document. This section also describes vulnerability knowledge that at least one of the primary developers should have. This knowledge will be necessary for the review process described below this. Following this is a description of the review process used to incorporate changes into the Zephyr codebase. This is followed by documentation about how security-sensitive issues are handled by the project. Finally, the document covers how changes are to be made to this document. Secure Coding ************* Designing an open software system such as Zephyr to be secure requires adhering to a defined set of design standards. In [SALT75]_, the following, widely accepted principles for protection mechanisms are defined to help prevent security violations and limit their impact: - **Open design** as a design guideline incorporates the maxim that protection mechanisms cannot be kept secret on any system in widespread use. Instead of relying on secret, custom-tailored security measures, publicly accepted cryptographic algorithms and well established cryptographic libraries shall be used. - **Economy of mechanism** specifies that the underlying design of a system shall be kept as simple and small as possible. In the context of the Zephyr project, this can be realized, e.g., by modular code [PAUL09]_ and abstracted APIs. - **Complete mediation** requires that each access to every object and process needs to be authenticated first. Mechanisms to store access conditions shall be avoided if possible. - **Fail-safe defaults** defines that access is restricted by default and permitted only in specific conditions defined by the system protection scheme, e.g., after successful authentication. Furthermore, default settings for services shall be chosen in a way to provide maximum security. This corresponds to the "Secure by Default" paradigm [MS12]_. - **Separation of privilege** is the principle that two conditions or more need to be satisfied before access is granted. In the context of the Zephyr project, this could encompass split keys [PAUL09]_. - **Least privilege** describes an access model in which each user, program, and thread, shall have the smallest possible subset of permissions in the system required to perform their task. This positive security model aims to minimize the attack surface of the system. - **Least common mechanism** specifies that mechanisms common to more than one user or process shall not be shared if not strictly required. The example given in [SALT75]_ is a function that should be implemented as a shared library executed by each user and not as a supervisor procedure shared by all users. - **Psychological acceptability** requires that security features are easy to use by the developers in order to ensure their usage and the correctness of its application. In addition to these general principles, the following points are specific to the development of a secure RTOS: - **Complementary Security/Defense in Depth**: do not rely on a single threat mitigation approach. In case of the complementary security approach, parts of the threat mitigation are performed by the underlying platform. In case such mechanisms are not provided by the platform, or are not trusted, a defense in depth [MS12]_ paradigm shall be used. - **Less commonly used services off by default**: to reduce the exposure of the system to potential attacks, features or services shall not be enabled by default if they are only rarely used (a threshold of 80% is given in [MS12]_). For the Zephyr project, this can be realized using the configuration management. Each functionality and module shall be represented as a configuration option and needs to be explicitly enabled. Then, all features, protocols, and drivers not required for a particular use case can be disabled. The user shall be notified if low-level options and APIs are enabled but not used by the application. - **Change management**: to guarantee a traceability of changes to the system, each change shall follow a specified process including a change request, impact analysis, ratification, implementation, and validation phase. In each stage, appropriate documentation shall be provided. All commits shall be related to a bug report or change request in the issue tracker. Commits without a valid reference shall be denied. Secure development knowledge **************************** Secure designer =============== The Zephyr project must have at least one primary developer who knows how to design secure software. This requires understanding the following design principles, including the 8 principles from [SALT75]_: - economy of mechanism (keep the design as simple and small as practical, e.g., by adopting sweeping simplifications) - fail-safe defaults (access decisions shall deny by default, and projects' installation shall be secure by default) - complete mediation (every access that might be limited must be checked for authority and be non-bypassable) .. todo: Explain better the constraints of embedded devices, and that we typically do edge detection, not at each function. Perhaps relate this to input validation below. - open design (security mechanisms should not depend on attacker ignorance of its design, but instead on more easily protected and changed information like keys and passwords) - separation of privilege (ideally, access to important objects should depend on more than one condition, so that defeating one protection system won't enable complete access. For example, multi-factor authentication, such as requiring both a password and a hardware token, is stronger than single-factor authentication) - least privilege (processes should operate with the least privilege necessary) - least common mechanism (the design should minimize the mechanisms common to more than one user and depended on by all users, e.g., directories for temporary files) - psychological acceptability (the human interface must be designed for ease of use - designing for "least astonishment" can help) - limited attack surface (the set of the different points where an attacker can try to enter or extract data) - input validation with whitelists (inputs should typically be checked to determine if they are valid before they are accepted; this validation should use whitelists (which only accept known-good values), not blacklists (which attempt to list known-bad values)). Vulnerability Knowledge ======================= A "primary developer" in a project is anyone who is familiar with the project's code base, is comfortable making changes to it, and is acknowledged as such by most other participants in the project. A primary developer would typically make a number of contributions over the past year (via code, documentation, or answering questions). Developers would typically be considered primary developers if they initiated the project (and have not left the project more than three years ago), have the option of receiving information on a private vulnerability reporting channel (if there is one), can accept commits on behalf of the project, or perform final releases of the project software. If there is only one developer, that individual is the primary developer. At least one of the primary developers **must** know of common kinds of errors that lead to vulnerabilities in this kind of software, as well as at least one method to counter or mitigate each of them. Examples (depending on the type of software) include SQL injection, OS injection, classic buffer overflow, cross-site scripting, missing authentication, and missing authorization. See the `CWE/SANS top 25`_ or `OWASP Top 10`_ for commonly used lists. A free class from the nonprofit OpenSecurityTraining2 for C/C++ developers is available at `OST2_1001`_. It teaches how to prevent, detect, and mitigate linear stack/heap buffer overflows, non-linear out of bound writes, integer overflows, and other integer issues. The follow-on class, `OST2_1002`_, covers uninitialized data access, race conditions, use-after-free, type confusion, and information disclosure vulnerabilities. .. Turn this into something specific. Can we find examples of mistakes. Perhaps an example of things static analysis tool has sent us. .. _CWE/SANS top 25: path_to_url .. _OWASP Top 10: path_to_url .. _OST2_1001: path_to_url .. _OST2_1002: path_to_url Zephyr Security Subcommittee ============================ There shall be a "Zephyr Security Subcommittee", responsible for enforcing this guideline, monitoring reviews, and improving these guidelines. This team will be established according to the Zephyr Project charter. Code Review *********** The Zephyr project shall use a code review system that all changes are required to go through. Each change shall be reviewed by at least one primary developer that is not the author of the change. This developer shall determine if this change affects the security of the system (based on their general understanding of security), and if so, shall request the developer with vulnerability knowledge, or the secure designer to also review the code. Any of these individuals shall have the ability to block the change from being merged into the mainline code until the security issues have been addressed. Issues and Bug Tracking *********************** The Zephyr project shall have an issue tracking system (such as GitHub_) that can be used to record and track defects that are found in the system. .. _GitHub: path_to_url Because security issues are often sensitive, this issue tracking system shall have a field to indicate a security issue. Setting this field shall result in the issue only being visible to the Zephyr Security Subcommittee. In addition, there shall be a field to allow the Zephyr Security Subcommittee to add additional users that will have visibility to a given issue. This embargo, or limited visibility, shall only be for a fixed duration, with a default being a project-decided value. However, because security considerations are often external to the Zephyr project itself, it may be necessary to increase this embargo time. The time necessary shall be clearly annotated in the issue itself. The list of issues shall be reviewed at least once a month by the Zephyr Security Subcommittee. This review should focus on tracking the fixes, determining if any external parties need to be notified or involved, and determining when to lift the embargo on the issue. The embargo should **not** be lifted via an automated means, but the review team should avoid unnecessary delay in lifting issues that have been resolved. Modifications to This Document ****************************** Changes to this document shall be reviewed by the Zephyr Security Subcommittee, and approved by consensus. .. [#attackf] An attack_ resulted in a significant portion of DNS infrastructure being taken down. .. _attack: path_to_url ```
/content/code_sandbox/doc/security/secure-coding.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,634
```restructuredtext .. _security-overview: Zephyr Security Overview ######################## Introduction ************ This document outlines the steps of the Zephyr Security Subcommittee towards a defined security process that helps developers build more secure software while addressing security compliance requirements. It presents the key ideas of the security process and outlines which documents need to be created. After the process is implemented and all supporting documents are created, this document is a top-level overview and entry point. Overview and Scope ================== We begin with an overview of the Zephyr development process, which mainly focuses on security functionality. In subsequent sections, the individual parts of the process are treated in detail. As depicted in Figure 1, these main steps are: 1. **Secure Development:** Defines the system architecture and development process that ensures adherence to relevant coding principles and quality assurance procedures. 2. **Secure Design:** Defines security procedures and implement measures to enforce them. A security architecture of the system and relevant sub-modules is created, threats are identified, and countermeasures designed. Their correct implementation and the validity of the threat models are checked by code reviews. Finally, a process shall be defined for reporting, classifying, and mitigating security issues. 3. **Security Certification:** Defines the certifiable part of the Zephyr RTOS. This includes an evaluation target, its assets, and how these assets are protected. Certification claims shall be determined and backed with appropriate evidence. .. figure:: media/security-process-steps.png Figure 1. Security Process Steps Intended Audience ================= This document is a guideline for the development of a security process by the Zephyr Security Subcommittee and the Zephyr Technical Steering Committee. It provides an overview of the Zephyr security process for (security) engineers and architects. Nomenclature ============ In this document, the keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in [RFC2119]_. These words are used to define absolute requirements (or prohibitions), highly recommended requirements, and truly optional requirements. As noted in RFC-2119, "These terms are frequently used to specify behavior with security implications. The effects on security of not implementing a MUST or SHOULD, or doing something the specification says MUST NOT or SHOULD NOT be done may be very subtle. Document authors should take the time to elaborate the security implications of not following recommendations or requirements as most implementors will not have had the benefit of the experience and discussion that produced the specification." Security Document Update ======================== This document is a living document. As new requirements, features, and changes are identified, they will be added to this document through the following process: 1. Changes will be submitted from the interested party(ies) via pull requests to the Zephyr documentation repository. 2. The Zephyr Security Subcommittee will review these changes and provide feedback or acceptance of the changes. 3. Once accepted, these changes will become part of the document. Current Security Definition *************************** This section recapitulates the current status of secure development within the Zephyr RTOS. Currently, focus is put on functional security and code quality assurance, although additional security features are scoped. The three major security measures currently implemented are: - **Security** **Functionality** with a focus on cryptographic algorithms and protocols. Support for cryptographic hardware is scoped for future releases. The Zephyr runtime architecture is a monolithic binary and removes the need for dynamic loaders, thereby reducing the exposed attack surface. - **Quality Assurance** is driven by using a development process that requires all code to be reviewed before being committed to the common repository. Furthermore, the reuse of proven building blocks such as network stacks increases the overall quality level and guarantees stable APIs. Static code analyses provide additional quality checks. - **Execution Protection** including thread separation, stack and memory protection is currently available in the upstream Zephyr RTOS starting with version 1.9.0 (stack protection). Memory protection and thread separation were added in version 1.10.0 for X86 and in version 1.11.0 for ARM and ARC. These topics are discussed in more detail in the following subsections. Security Functionality ====================== The security functionality in Zephyr hinges mainly on the inclusion of cryptographic algorithms, and on its monolithic system design. The cryptographic features are provided through PSA Crypto, with mbedTLS as the underlying implementation. Applications leverage PSA Crypto APIs, ensuring a standardized and secure approach to cryptographic operations. mbedTLS, as the implementation of PSA Crypto, supports a wide range of cryptographic algorithms, making it suitable for various application requirements. APIs for vendor specific cryptographic IPs in both hardware and software are planned, including secure key storage in the form of secure access modules (SAMs), Trusted Platform Modules (TPMs), and Trusted Execution Environments (TEEs). The security architecture is based on a monolithic design where the Zephyr kernel and all applications are compiled into a single static binary. System calls are implemented as function calls without requiring context switches. Static linking eliminates the potential for dynamically loading malicious code. Additional protection features are available in later releases. Stack protection mechanisms are provided to protect against stack overruns. In addition, applications can take advantage of thread separation features to split the system into privileged and unprivileged execution environments. Memory protection features provide the capability to partition system resources (memory, peripheral address space, etc.) and assign resources to individual threads or groups of threads. Stack, thread execution level, and memory protection constraints are enforced at the time of context switch. Quality Assurance ================= The Zephyr project uses an automated quality assurance process. The goal is to have a process including mandatory code reviews, feature and issue management/tracking, and static code analyses. Code reviews are documented and enforced using a voting system before getting checked into the repository by the responsible subsystem's maintainer. The main goals of the code review are: - Verifying correct functionality of the implementation - Increasing the readability and maintainability of the contributed source code - Ensuring appropriate usage of string and memory functions - Validation of the user input - Reviewing the security relevant code for potential issues The current coding principles focus mostly on coding styles and conventions. Functional correctness is ensured by the build system and the experience of the reviewer. Especially for security relevant code, concrete and detailed guidelines need to be developed and aligned with the developers (see: :ref:`secure code`). Static code analyses are run on the Zephyr code tree on a regular basis, see :ref:`static_analysis`. Bug and issue tracking and management is performed using Github. The term "survivability" was coined to cover pro-active security tasks such as security issue categorization and management. A problem identified as vulnerability is managed within Github security advisories. Issues determined by static analyses should have more stringent reviews before they are closed as non-issues (at least another person educated in security processes need to agree on non-issue before closing). A security subcommittee has been formed to develop a security process in more detail; this document is part of that process. Execution Protection ==================== Execution protection is supported and can be categorized into the following tasks: - **Memory separation:** Memory will be partitioned into regions and assigned attributes based on the owner of that region of memory. Threads will only have access to regions they control. - **Stack protection:** Stack guards would provide mechanisms for detecting and trapping stack overruns. Individual threads should only have access to their own stacks. - **Thread separation:** Individual threads should only have access to their own memory resources. As threads are scheduled, only memory resources owned by that thread will be accessible. Topics such as program flow protection and other measures for tamper resistance are currently not in scope. System Level Security (Ecosystem, ...) ====================================== System level security encompasses a wide variety of categories. Some examples of these would be: - Secure/trusted boot - Over the air (OTA) updates - External Communication - Device authentication - Access control of onboard resources - Flash updating - Secure storage - Peripherals - Root of trust - Reduction of attack surface Some of these categories are interconnected and rely on multiple pieces to be in place to produce a full solution for the application. Secure Development Process ************************** The development of secure code shall adhere to certain criteria. These include coding guidelines and development processes that can be roughly separated into two categories related to software quality and related to software security. Furthermore, a system architecture document shall be created and kept up-to-date with future development. System Architecture =================== .. figure:: media/security-zephyr-system-architecture.png Figure 2: Zephyr System Architecture A high-level schematic of the Zephyr system architecture is given in Figure 2. It separates the architecture into an OS part (*kernel + OS Services*) and a user-specific part (*Application Services*). The OS part itself contains low-level, platform specific drivers and the generic implementation of I/O APIs, file systems, kernel-specific functions, and the cryptographic library. A document describing the system architecture and design choices shall be created and kept up to date with future development. This document shall include the base architecture of the Zephyr OS and an overview of important submodules. For each of the modules, a dedicated architecture document shall be created and evaluated against the implementation. These documents shall serve as an entry point to new developers and as a basis for the security architecture. Please refer to the :ref:`Zephyr subsystem documentation <os_services>` for detailed information. Secure Coding ============= Designing an open software system such as Zephyr to be secure requires adhering to a defined set of design standards. These standards are included in the Zephyr Project documentation, specifically in its :ref:`secure code` section. In [SALT75]_, the following, widely accepted principles for protection mechanisms are defined to prevent security violations and limit their impact: - **Open design** as a design principle incorporates the maxim that protection mechanisms cannot be kept secret on any system in widespread use. Instead of relying on secret, custom-tailored security measures, publicly accepted cryptographic algorithms and well established cryptographic libraries shall be used. - **Economy of mechanism** specifies that the underlying design of a system shall be kept as simple and small as possible. In the context of the Zephyr project, this can be realized, e.g., by modular code [PAUL09]_ and abstracted APIs. - **Complete mediation** requires that each access to every object and process needs to be authenticated first. Mechanisms to store access conditions shall be avoided if possible. - **Fail-safe defaults** defines that access is restricted by default and permitted only in specific conditions defined by the system protection scheme, e.g., after successful authentication. Furthermore, default settings for services shall be chosen in a way to provide maximum security. This corresponds to the "Secure by Default" paradigm [MS12]_. - **Separation of privilege** is the principle that two conditions or more need to be satisfied before access is granted. In the context of the Zephyr project, this could encompass split keys [PAUL09]_. - **Least privilege** describes an access model in which each user, program and thread shall have the smallest possible subset of permissions in the system required to perform their task. This positive security model aims to minimize the attack surface of the system. - **Least common mechanism** specifies that mechanisms common to more than one user or process shall not be shared if not strictly required. The example given in [SALT75]_ is a function that should be implemented as a shared library executed by each user and not as a supervisor procedure shared by all users. - **Psychological acceptability** requires that security features are easy to use by the developers in order to ensure its usage and the correctness of its application. In addition to these general principles, the following points are specific to the development of a secure RTOS: - **Complementary Security/Defense in Depth:** do not rely on a single threat mitigation approach. In case of the complementary security approach, parts of the threat mitigation are performed by the underlying platform. In case such mechanisms are not provided by the platform, or are not trusted, a defense in depth [MS12]_ paradigm shall be used. - **Less commonly used services off by default**: to reduce the exposure of the system to potential attacks, features or services shall not be enabled by default if they are only rarely used (a threshold of 80% is given in [MS12]_). For the Zephyr project, this can be realized using the configuration management. Each functionality and module shall be represented as a configuration option and needs to be explicitly enabled. Then, all features, protocols, and drivers not required for a particular use case can be disabled. The user shall be notified if low-level options and APIs are enabled but not used by the application. - **Change management:** to guarantee a traceability of changes to the system, each change shall follow a specified process including a change request, impact analysis, ratification, implementation, and validation phase. In each stage, appropriate documentation shall be provided. All commits shall be related to a bug report or change request in the issue tracker. Commits without a valid reference shall be denied. Based on these design principles and commonly accepted best practices, a secure development guide shall be developed, published, and implemented into the Zephyr development process. Further details on this are given in the `Secure Design`_ section. Quality Assurance ================= The quality assurance part encompasses the following criteria: - **Adherence to the Coding Conventions** with respect to coding style, naming schemes of modules, functions, variables, and so forth. This increases the readability of the Zephyr code base and eases the code review. These coding conventions are enforced by automated scripts prior to check-in. - **Adherence to Deployment Guidelines** is required to ensure consistent releases with a well-documented feature set and a trackable list of security issues. - **Code Reviews** ensure the functional correctness of the code base and shall be performed on each proposed code change prior to check-in. Code reviews shall be performed by at least one independent reviewer other than the author(s) of the code change. These reviews shall be performed by the subsystem maintainers and developers on a functional level and are to be distinguished from security reviews as laid out in the `Secure Design`_ section. Refer to the :ref:`development_model` documentation for more information. - **Static Code Analysis** tools efficiently detect common coding mistakes in large code bases. All code shall be analyzed using an appropriate tool prior to merges into the main repository. This is not per individual commit, but is to be run on some interval on specific branches. It is mandatory to remove all findings or waive potential false-positives before each release. Waivers shall be documented centrally and in the form of a comment inside the source code itself. The documentation shall include the employed tool and its version, the date of the analysis, the branch and parent revision number, the reason for the waiver, the author of the respective code, and the approver(s) of the waiver. This shall as a minimum run on the main release branch and on the security branch. It shall be ensured that each release has zero issues with regard to static code analysis (including waivers). Refer to the :ref:`development_model` documentation for more information. - **Complexity Analyses** shall be performed as part of the development process and metrics such as cyclomatic complexity shall be evaluated. The main goal is to keep the code as simple as possible. - **Automation:** the review process and checks for coding rule adherence are a mandatory part of the precommit checks. To ensure consistent application, they shall be automated as part of the precommit procedure. Prior to merging large pieces of code in from subsystems, in addition to review process and coding rule adherence, all static code analysis must have been run and issues resolved. Release and Lifecycle Management ================================ Lifecycle management contains several aspects: - **Device management** encompasses the possibility to update the operating system and/or security related sub-systems of Zephyr enabled devices in the field. - **Lifecycle management:** system stages shall be defined and documented along with the transactions between the stages in a system state diagram. For security reasons, this shall include locking of the device in case an attack has been detected, and a termination if the end of life is reached. - **Release management** describes the process of defining the release cycle, documenting releases, and maintaining a record of known vulnerabilities and mitigations. Especially for certification purposes the integrity of the release needs to be ensured in a way that later manipulation (e.g., inserting of backdoors, etc.) can be easily detected. - **Rights management and NDAs:** if required by the chosen certification, the confidentiality and integrity of the system needs to be ensured by an appropriate rights management (e.g., separate source code repository) and non-disclosure agreements between the relevant parties. In case of a repository shared between several parties, measures shall be taken that no malicious code is checked in. These points shall be evaluated with respect to their impact on the development process employed for the Zephyr project. Secure Design ************* In order to obtain a certifiable system or product, the security process needs to be clearly defined and its application needs to be monitored and driven. This process includes the development of security related modules in all of its stages and the management of reported security issues. Furthermore, threat models need to be created for currently known and future attack vectors, and their impact on the system needs to be investigated and mitigated. Please refer to the :ref:`secure code` outlined in the Zephyr project documentation for detailed information. The software security process includes: - **Adherence to the Secure Development Coding** is mandatory to avoid that individual components breach the system security and to minimize the vulnerability of individual modules. While this can be partially achieved by automated tests, it is inevitable to investigate the correct implementation of security features such as countermeasures manually in security-critical modules. - **Security Reviews** shall be performed by a security architect in preparation of each security-targeted release and each time a security-related module of the Zephyr project is changed. This process includes the validation of the effectiveness of implemented security measures, the adherence to the global security strategy and architecture, and the preparation of audits towards a security certification if required. - **Security Issue Management** encompasses the evaluation of potential system vulnerabilities and their mitigation as described in :ref:`Security Issue Management <reporting>`. These criteria and tasks need to be integrated into the development process for secure software and shall be automated wherever possible. On system level, and for each security related module of the secure branch of Zephyr, a directly responsible security architect shall be defined to guide the secure development process. Security Architecture ===================== The general guidelines above shall be accompanied by an architectural security design on system- and module-level. The high level considerations include - The identification of **security and compliance requirements** - **Functional security** such as the use of cryptographic functions whenever applicable - Design of **countermeasures** against known attack vectors - Recording of security relevant **auditable events** - Support for **Trusted Platform Modules (TPM)** and **Trusted Execution Environments (TEE)** - Mechanisms to allow for **in-the-field** **updates** of devices using Zephyr - Task scheduler and separation The security architecture development is based on assets derived from the structural overview of the overall system architecture. Based on this, the individual steps include: 1. **Identification of assets** such as user data, authentication and encryption keys, key generation data (obtained from RNG), security relevant status information. 2. **Identification of threats** against the assets such as breaches of confidentiality, manipulation of user data, etc. 3. **Definition of requirements** regarding security and protection of the assets, e.g., countermeasures or memory protection schemes. The security architecture shall be harmonized with the existing system architecture and implementation to determine potential deviations and mitigate existing weaknesses. Newly developed sub-modules that are integrated into the secure branch of the Zephyr project shall provide individual documents describing their security architecture. Additionally, their impact on the system level security shall be considered and documented. Security Vulnerability Reporting ================================ Please see :ref:`reporting` for information on reporting security vulnerabilities. Threat Modeling and Mitigation ============================== The modeling of security threats against the Zephyr RTOS is required for the development of an accurate security architecture and for most certification schemes. The first step of this process is the definition of assets to be protected by the system. The next step then models how these assets are protected by the system and which threats against them are present. After a threat has been identified, a corresponding threat model is created. This model contains the asset and system vulnerabilities, as well as the description of the potential exploits of these vulnerabilities. Additionally, the impact on the asset, the module it resides in, and the overall system is to be estimated. This threat model is then considered in the module and system security architecture and appropriate countermeasures are defined to mitigate the threat or limit the impact of exploits. In short, the threat modeling process can be separated into these steps (adapted from [OWASP]_): 1. Definition of assets 2. Application decomposition and creation of appropriate data flow diagrams (DFDs) 3. Threat identification and categorization using the [STRIDE09]_ and [CVSS]_ approaches 4. Determination of countermeasures and other mitigation approaches This procedure shall be carried out during the design phase of modules and before major changes of the module or system architecture. Additionally, new models shall be created, or existing ones shall be updated whenever new vulnerabilities or exploits are discovered. During security reviews, the threat models and the mitigation techniques shall be evaluated by the responsible security architect. From these threat models and mitigation techniques tests shall be derived that prove the effectiveness of the countermeasures. These tests shall be integrated into the continuous integration workflow to ensure that the security is not impaired by regressions. Vulnerability Analyses ====================== In order to find weak spots in the software implementation, vulnerability analyses (VA) shall be performed. Of special interest are investigations on cryptographic algorithms, critical OS tasks, and connectivity protocols. On a pure software level, this encompasses - **Penetration testing** of the RTOS on a particular hardware platform, which involves testing the respective Zephyr OS configuration and hardware as one system. - **Side channel attacks** (timing invariance, power invariance, etc.) should be considered. For instance, ensuring **timing invariance** of the cryptographic algorithms and modules is required to reduce the attack surface. This applies to both the software implementations and when using cryptographic hardware. - **Fuzzing tests** shall be performed on both exposed APIs and protocols. The list given above serves primarily illustration purposes. For each module and for the complete Zephyr system (in general on a particular hardware platform), a suitable VA plan shall be created and executed. The findings of these analyses shall be considered in the security issue management process, and learnings shall be formulated as guidelines and incorporated into the secure coding guide. If possible (as in case of fuzzing analyses), these tests shall be integrated into the continuous integration process. Security Certification ********************** One goal of creating a secure branch of the Zephyr RTOS is to create a certifiable system or certifiable submodules thereof. The certification scope and scheme are yet to be decided. However, many certifications such as Common Criteria [CCITSE12]_ require evidence that the evaluation claims are indeed fulfilled, so a general certification process is outlined in the following. Based on the final choices for the certification scheme and evaluation level, this process needs to be refined. Generic Certification Process ============================= In general, the steps towards a certification or precertification (compare [MICR16]_) are: 1. The **definition of assets** to be protected within the Zephyr RTOS. Potential candidates are confidential information such as cryptographic keys, user data such as communication logs, and potentially IP of the vendor or manufacturer. 2. Developing a **threat model** and **security architecture** to protect the assets against exploits of vulnerabilities of the system. As a complete threat model includes the overall product including the hardware platform, this might be realized by a split model containing a precertified secure branch of Zephyr which the vendor could use to certify their Zephyr-enabled product. 3. Formulating an **evaluation target** that includes the **certification claims** on the security of the assets to be evaluated and certified, as well as assumptions on the operating conditions. 4. Providing **proof** that the claims are fulfilled. This includes consistent documentation of the security development process, etc. These steps are partially covered in previous sections as well. In contrast to these sections, the certification process only requires to consider those components that shall be covered by the certification. The security architecture, for example, considers assets on system level and might include items not relevant for the certification. Certification Options ===================== For the security certification as such, the following options can be pursued: 1. **Abstract precertification of Zephyr as a pure software system:** this option requires assumptions on the underlying hardware platform and the final application running on top of Zephyr. If these assumptions are met by the hardware and the application, a full certification can be more easily achieved. This option is the most flexible approach but puts the largest burden on the product vendor. 2. **Certification of Zephyr on specific hardware platform without a specific application in mind:** this scenario describes the enablement of a secure platform running the Zephyr RTOS. The hardware manufacturer certifies the platform under defined assumptions on the application. If these are met, the final product can be certified with little effort. 3. **Certification of an actual product:** in this case, a full product including a specific hardware, the Zephyr RTOS, and an application is certified. In all three cases, the certification scheme (e.g., FIPS 140-2 [NIST02]_ or Common Criteria [CCITSE12]_), the scope of the certification (main-stream Zephyr, security branch, or certain modules), and the certification/assurance level need to be determined. In case of partial certifications (options 1 and 2), assumptions on hardware and/or software are required for certifications. These can include [GHS10]_ - **Appropriate physical security** of the hardware platform and its environment. - **Sufficient protection of storage and timing channels** on the hardware platform itself and all connected devices. (No mentioning of remote connections.) - Only **trusted/assured applications** running on the device - The device and its software stack is configured and operated by **properly trained and trusted individuals** with no malicious intent. These assumptions shall be part of the security claim and evaluation target documents. ```
/content/code_sandbox/doc/security/security-overview.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,213
```restructuredtext .. _reporting: Security Vulnerability Reporting ################################ Introduction ============ Vulnerabilities to the Zephyr project may be reported via email to the vulnerabilities@zephyrproject.org mailing list. These reports will be acknowledged and analyzed by the security response team within 1 week. Each vulnerability will be entered into the Zephyr Project security advisory GitHub_. The original submitter will be granted permission to view the issues that they have reported. .. _GitHub: path_to_url Security Issue Management ========================= Issues within this bug tracking system will transition through a number of states according to this diagram: .. graphviz:: digraph { node [style = rounded]; init [shape = point]; New [shape = box]; Triage [shape = box]; { rank = same; rankdir = LR; Assigned [shape = box]; Rejected [shape = box]; } Review [shape = box]; Accepted [shape = box]; Public [shape = box]; init -> New; New -> Triage; Triage -> Rejected [dir = both]; Triage -> Assigned; Assigned -> Review [dir = both]; Review -> Accepted; Review -> Rejected; Accepted -> Public; } - New: This state represents new reports that have been entered directly by a reporter. When entered by the response team in response to an email, the issue shall be transitioned directly to Triage. - Triage: This issue is awaiting Triage by the response team. The response team will analyze the issue, determine a responsible entity, assign it to that individual, and move the issue to the Assigned state. Part of triage will be to set the issue's priority. - Assigned: The issue has been assigned, and is awaiting a fix by the assignee. - Review: Once there is a Zephyr pull request for the issue, the PR link will be added to a comment in the issue, and the issue moved to the Review state. - Accepted: Indicates that this issue has been merged into the appropriate branch within Zephyr. - Public: The embargo period has ended. The issue will be made publicly visible, the associated CVE updated, and the vulnerabilities page in the docs updated to include the detailed information. The security advisories created are kept private, due to the sensitive nature of security reports. The issues are only visible to certain parties: - Members of the PSIRT mailing list - the reporter - others, as proposed and ratified by the Zephyr Security Subcommittee. In the general case, this will include: - The code owner responsible for the fix. - The Zephyr release owners for the relevant releases affected by this vulnerability. The Zephyr Security Subcommittee shall review the reported vulnerabilities during any meeting with more than three people in attendance. During this review, they shall determine if new issues need to be embargoed. The guideline for embargo will be based on: 1. Severity of the issue, and 2. Exploitability of the issue. Issues that the subcommittee decides do not need an embargo will be reproduced in the regular Zephyr project bug tracking system. .. _vulnerability_timeline: Security sensitive vulnerabilities shall be made public after an embargo period of at most 90 days. The intent is to allow 30 days within the Zephyr project to fix the issues, and 60 days for external parties building products using Zephyr to be able to apply and distribute these fixes. .. _vulnerability_fix_recommendations: Fixes to the code shall be made through pull requests PR in the Zephyr project github. Developers shall make an attempt to not reveal the sensitive nature of what is being fixed, and shall not refer to CVE numbers that have been assigned to the issue. The developer instead should merely describe what has been fixed. The security subcommittee will maintain information mapping embargoed CVEs to these PRs (this information is within the Github security advisories), and produce regular reports of the state of security issues. Each issue that is considered a security vulnerability shall be assigned a CVE number. As fixes are created, it may be necessary to allocate additional CVE numbers, or to retire numbers that were assigned. Vulnerability Notification ========================== Each Zephyr release shall contain a report of CVEs that were fixed in that release. Because of the sensitive nature of these vulnerabilities, the release shall merely include a list of CVEs that have been fixed. After the embargo period, the vulnerabilities page shall be updated to include additional details of these vulnerabilities. The vulnerability page shall give credit to the reporter(s) unless a reporter specifically requests anonymity. The Zephyr project shall maintain a vulnerability-alerts mailing list. This list will be seeded initially with a contact from each project member. Additional parties can request to join this list by filling out the form at the `Vulnerability Registry`_. These parties will be vetted by the project director to determine that they have a legitimate interest in knowing about security vulnerabilities during the embargo period. .. _Vulnerability Registry: path_to_url Periodically, the security subcommittee will send information to this mailing list describing known embargoed issues, and their backport status within the project. This information is intended to allow them to determine if they need to backport these changes to any internal trees. When issues have been triaged, this list will be informed of: - The Zephyr Project security advisory link (GitHub). - The CVE number assigned. - The subsystem involved. - The severity of the issue. After acceptance of a PR fixing the issue (merged), in addition to the above, the list will be informed of: - The association between the CVE number and the PR fixing it. - Backport plans within the Zephyr project. Backporting of Security Vulnerabilities ======================================= Each security issue fixed within zephyr shall be backported to the following releases: - The current Long Term Stable (LTS) release. - The most recent two releases. The developer of the fix shall be responsible for any necessary backports, and apply them to any of the above listed release branches, unless the fix does not apply (the vulnerability was introduced after this release was made). All recommendations for :ref:`vulnerability fixes <vulnerability_fix_recommendations>` apply for backport pull requests (and associated issues). Additionally, it is recommended that the developer privately informs the responsible release manager that the backport pull request and issue are addressing a vulnerability. Backports will be tracked on the security advisory. Need to Know ============ Due to the sensitive nature of security vulnerabilities, it is important to share details and fixes only with those parties that have a need to know. The following parties will need to know details about security vulnerabilities before the embargo period ends: - Maintainers will have access to all information within their domain area only. - The current release manager, and the release manager for historical releases affected by the vulnerability (see backporting above). - The Project Security Incident Response (PSIRT) team will have full access to information. The PSIRT is made up of representatives from platinum members, and volunteers who do work on triage from other members. - As needed, release managers and maintainers may be invited to attend additional security meetings to discuss vulnerabilities. ```
/content/code_sandbox/doc/security/reporting.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,644
```restructuredtext .. _security_standards: Security standards and Zephyr ############################# For a long period organizations were, more or less, left responsible to deal with cyber security on their own. This included how to assess the scale and impact of the problem and who to properly respond it. Now, governments started looking how to regulate it and several regulations and enforcements are rapidly emerging, and consequently, security standards. These standards provide guidelines and outline requirements that products have to follow to achieve compliance. This section aims to identify and assess which Zephyr project components are impacted by security standards requirements and provide the right information to enable organizations developing certifiable products using Zephyr project. .. toctree:: :maxdepth: 1 etsi-303645.rst ```
/content/code_sandbox/doc/security/standards/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```restructuredtext .. _vulnerabilities: Vulnerabilities ############### This page collects all of the vulnerabilities that are discovered and fixed in each release. It will also often have more details than is available in the releases. Some vulnerabilities are deemed to be sensitive, and will not be publicly discussed until there is sufficient time to fix them. Because the release notes are locked to a version, the information here can be updated after the embargo is lifted. CVE-2017 ======== CVE-2017-14199 -------------- Buffer overflow in :code:`getaddrinfo()`. - `CVE-2017-14199 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-12 <path_to_url`_ - `PR6158 fix for 1.11.0 <path_to_url`_ CVE-2017-14201 -------------- The shell DNS command can cause unpredictable results due to misuse of stack variables. Use After Free vulnerability in the Zephyr shell allows a serial or telnet connected user to cause denial of service, and possibly remote code execution. This has been fixed in release v1.14.0. - `CVE-2017-14201 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-17 <path_to_url`_ - `PR13260 fix for v1.14.0 <path_to_url`_ CVE-2017-14202 -------------- The shell implementation does not protect against buffer overruns resulting in unpredictable behavior. Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the shell component of Zephyr allows a serial or telnet connected user to cause a crash, possibly with arbitrary code execution. This has been fixed in release v1.14.0. - `CVE-2017-14202 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-18 <path_to_url`_ - `PR13048 fix for v1.14.0 <path_to_url`_ CVE-2019 ======== CVE-2019-9506 ------------- The Bluetooth BR/EDR specification up to and including version 5.1 permits sufficiently low encryption key length and does not prevent an attacker from influencing the key length negotiation. This allows practical brute-force attacks (aka "KNOB") that can decrypt traffic and inject arbitrary ciphertext without the victim noticing. - `CVE-2019-9506 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-20 <path_to_url`_ - `PR18702 fix for v1.14.0 <path_to_url`_ - `PR18659 fix for v2.0.0 <path_to_url`_ CVE-2020 ======== CVE-2020-10019 -------------- Buffer Overflow vulnerability in USB DFU of zephyr allows a USB connected host to cause possible remote code execution. This has been fixed in releases v1.14.2, v2.2.0, and v2.1.1. - `CVE-2020-10019 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-25 <path_to_url`_ - `PR23460 fix for 1.14.x <path_to_url`_ - `PR23457 fix for 2.1.x <path_to_url`_ - `PR23190 fix in 2.2.0 <path_to_url`_ CVE-2020-10021 -------------- Out-of-bounds write in USB Mass Storage with unaligned sizes Out-of-bounds Write in the USB Mass Storage memoryWrite handler with unaligned Sizes. See NCC-ZEP-024, NCC-ZEP-025, NCC-ZEP-026 This has been fixed in releases v1.14.2, and v2.2.0. - `CVE-2020-10021 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-26 <path_to_url`_ - `PR23455 fix for v1.14.2 <path_to_url`_ - `PR23456 fix for the v2.1 branch <path_to_url`_ - `PR23240 fix for v2.2.0 <path_to_url`_ CVE-2020-10022 -------------- UpdateHub Module Copies a Variable-Size Hash String Into a Fixed-Size Array A malformed JSON payload that is received from an UpdateHub server may trigger memory corruption in the Zephyr OS. This could result in a denial of service in the best case, or code execution in the worst case. See NCC-ZEP-016 This has been fixed in the below pull requests for main, branch from v2.1.0, and branch from v2.2.0. - `CVE-2020-10022 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-28 <path_to_url`_ - `PR24154 fix for main <path_to_url`_ - `PR24065 fix for branch from v2.1.0 <path_to_url`_ - `PR24066 fix for branch from v2.2.0 <path_to_url`_ CVE-2020-10023 -------------- Shell Subsystem Contains a Buffer Overflow Vulnerability In shell_spaces_trim The shell subsystem contains a buffer overflow, whereby an adversary with physical access to the device is able to cause a memory corruption, resulting in denial of service or possibly code execution within the Zephyr kernel. See NCC-ZEP-019 This has been fixed in releases v1.14.2, v2.2.0, and in a branch from v2.1.0, - `CVE-2020-10023 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-29 <path_to_url`_ - `PR23646 fix for v1.14.2 <path_to_url`_ - `PR23649 fix for branch from v2.1.0 <path_to_url`_ - `PR23304 fix for v2.2.0 <path_to_url`_ CVE-2020-10024 -------------- ARM Platform Uses Signed Integer Comparison When Validating Syscall Numbers The arm platform-specific code uses a signed integer comparison when validating system call numbers. An attacker who has obtained code execution within a user thread is able to elevate privileges to that of the kernel. See NCC-ZEP-001 This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0, - `CVE-2020-10024 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-30 <path_to_url`_ - `PR23535 fix for v1.14.2 <path_to_url`_ - `PR23498 fix for branch from v2.1.0 <path_to_url`_ - `PR23323 fix for v2.2.0 <path_to_url`_ CVE-2020-10027 -------------- ARC Platform Uses Signed Integer Comparison When Validating Syscall Numbers An attacker who has obtained code execution within a user thread is able to elevate privileges to that of the kernel. See NCC-ZEP-001 This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0. - `CVE-2020-10027 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-35 <path_to_url`_ - `PR23500 fix for v1.14.2 <path_to_url`_ - `PR23499 fix for branch from v2.1.0 <path_to_url`_ - `PR23328 fix for v2.2.0 <path_to_url`_ CVE-2020-10028 -------------- Multiple Syscalls In GPIO Subsystem Performs No Argument Validation Multiple syscalls with insufficient argument validation See NCC-ZEP-006 This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0. - `CVE-2020-10028 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-32 <path_to_url`_ - `PR23733 fix for v1.14.2 <path_to_url`_ - `PR23737 fix for branch from v2.1.0 <path_to_url`_ - `PR23308 fix for v2.2.0 (gpio patch) <path_to_url`_ CVE-2020-10058 -------------- Multiple Syscalls In kscan Subsystem Performs No Argument Validation Multiple syscalls in the Kscan subsystem perform insufficient argument validation, allowing code executing in userspace to potentially gain elevated privileges. See NCC-ZEP-006 This has been fixed in a branch from v2.1.0, and release v2.2.0. - `CVE-2020-10058 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-34 <path_to_url`_ - `PR23748 fix for branch from v2.1.0 <path_to_url`_ - `PR23308 fix for v2.2.0 (kscan patch) <path_to_url`_ CVE-2020-10059 -------------- UpdateHub Module Explicitly Disables TLS Verification The UpdateHub module disables DTLS peer checking, which allows for a man in the middle attack. This is mitigated by firmware images requiring valid signatures. However, there is no benefit to using DTLS without the peer checking. See NCC-ZEP-018 This has been fixed in a PR against Zephyr main. - `CVE-2020-10059 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-36 <path_to_url`_ - `PR24954 fix on main (to be fixed in v2.3.0) <path_to_url`_ - `PR24954 fix v2.1.0 <path_to_url`_ - `PR24954 fix v2.2.0 <path_to_url`_ CVE-2020-10060 -------------- UpdateHub Might Dereference An Uninitialized Pointer In updatehub_probe, right after JSON parsing is complete, objects\[1] is accessed from the output structure in two different places. If the JSON contained less than two elements, this access would reference uninitialized stack memory. This could result in a crash, denial of service, or possibly an information leak. Recommend disabling updatehub until such a time as a fix can be made available. See NCC-ZEP-030 This has been fixed in a PR against Zephyr main. - `CVE-2020-10060 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-37 <path_to_url`_ - `PR27865 fix on main (to be fixed in v2.4.0) <path_to_url`_ - `PR27865 fix for v2.3.0 <path_to_url`_ - `PR27865 fix for v2.2.0 <path_to_url`_ - `PR27865 fix for v2.1.0 <path_to_url`_ CVE-2020-10061 -------------- Error handling invalid packet sequence Improper handling of the full-buffer case in the Zephyr Bluetooth implementation can result in memory corruption. This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0. - `CVE-2020-10061 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-75 <path_to_url`_ - `PR23516 fix for v2.3 (split driver) <path_to_url`_ - `PR23517 fix for v2.3 (legacy driver) <path_to_url`_ - `PR23091 fix for branch from v1.14.0 <path_to_url`_ - `PR23547 fix for branch from v2.2.0 <path_to_url`_ CVE-2020-10062 -------------- Packet length decoding error in MQTT CVE: An off-by-one error in the Zephyr project MQTT packet length decoder can result in memory corruption and possible remote code execution. NCC-ZEP-031 The MQTT packet header length can be 1 to 4 bytes. An off-by-one error in the code can result in this being interpreted as 5 bytes, which can cause an integer overflow, resulting in memory corruption. This has been fixed in main for v2.3. - `CVE-2020-10062 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-84 <path_to_url`_ - `commit 11b7a37d for v2.3 <path_to_url`_ - `NCC-ZEP report`_ (NCC-ZEP-031) .. _NCC-ZEP report: path_to_url CVE-2020-10063 -------------- Remote Denial of Service in CoAP Option Parsing Due To Integer Overflow A remote adversary with the ability to send arbitrary CoAP packets to be parsed by Zephyr is able to cause a denial of service. This has been fixed in main for v2.3. - `CVE-2020-10063 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-55 <path_to_url`_ - `PR24435 fix in main for v2.3 <path_to_url`_ - `PR24531 fix for branch from v2.2 <path_to_url`_ - `PR24535 fix for branch from v2.1 <path_to_url`_ - `PR24530 fix for branch from v1.14 <path_to_url`_ - `NCC-ZEP report`_ (NCC-ZEP-032) CVE-2020-10064 -------------- Improper Input Frame Validation in ieee802154 Processing - `CVE-2020-10064 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-65 <path_to_url`_ - `PR24971 fix for v2.4 <path_to_url`_ - `PR33451 fix for v1.4 <path_to_url`_ CVE-2020-10065 -------------- OOB Write after not validating user-supplied length (<= 0xffff) and copying to fixed-size buffer (default: 77 bytes) for HCI_ACL packets in bluetooth HCI over SPI driver. - `CVE-2020-10065 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-66 <path_to_url`_ - This issue has not been fixed. CVE-2020-10066 -------------- Incorrect Error Handling in Bluetooth HCI core In hci_cmd_done, the buf argument being passed as null causes nullpointer dereference. - `CVE-2020-10066 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-67 <path_to_url`_ - `PR24902 fix for v2.4 <path_to_url`_ - `PR25089 fix for v1.4 <path_to_url`_ CVE-2020-10067 -------------- Integer Overflow In is_in_region Allows User Thread To Access Kernel Memory A malicious userspace application can cause a integer overflow and bypass security checks performed by system call handlers. The impact would depend on the underlying system call and can range from denial of service to information leak to memory corruption resulting in code execution within the kernel. See NCC-ZEP-005 This has been fixed in releases v1.14.2, and v2.2.0. - `CVE-2020-10067 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-27 <path_to_url`_ - `PR23653 fix for v1.14.2 <path_to_url`_ - `PR23654 fix for the v2.1 branch <path_to_url`_ - `PR23239 fix for v2.2.0 <path_to_url`_ CVE-2020-10068 -------------- Zephyr Bluetooth DLE duplicate requests vulnerability In the Zephyr project Bluetooth subsystem, certain duplicate and back-to-back packets can cause incorrect behavior, resulting in a denial of service. This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0. - `CVE-2020-10068 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-78 <path_to_url`_ - `PR23707 fix for v2.3 (split driver) <path_to_url`_ - `PR23708 fix for v2.3 (legacy driver) <path_to_url`_ - `PR23091 fix for branch from v1.14.0 <path_to_url`_ - `PR23964 fix for v2.2.0 <path_to_url`_ CVE-2020-10069 -------------- Zephyr Bluetooth unchecked packet data results in denial of service An unchecked parameter in bluetooth data can result in an assertion failure, or division by zero, resulting in a denial of service attack. This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0. - `CVE-2020-10069 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-81 <path_to_url`_ - `PR23705 fix for v2.3 (split driver) <path_to_url`_ - `PR23706 fix for v2.3 (legacy driver) <path_to_url`_ - `PR23091 fix for branch from v1.14.0 <path_to_url`_ - `PR23963 fix for branch from v2.2.0 <path_to_url`_ CVE-2020-10070 -------------- MQTT buffer overflow on receive buffer In the Zephyr Project MQTT code, improper bounds checking can result in memory corruption and possibly remote code execution. NCC-ZEP-031 When calculating the packet length, arithmetic overflow can result in accepting a receive buffer larger than the available buffer space, resulting in user data being written beyond this buffer. This has been fixed in main for v2.3. - `CVE-2020-10070 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-85 <path_to_url`_ - `commit 0b39cbf3 for v2.3 <path_to_url`_ - `NCC-ZEP report`_ (NCC-ZEP-031) CVE-2020-10071 -------------- Insufficient publish message length validation in MQTT The Zephyr MQTT parsing code performs insufficient checking of the length field on publish messages, allowing a buffer overflow and potentially remote code execution. NCC-ZEP-031 This has been fixed in main for v2.3. - `CVE-2020-10071 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-86 <path_to_url`_ - `commit 989c4713 fix for v2.3 <path_to_url`_ - `NCC-ZEP report`_ (NCC-ZEP-031) CVE-2020-10072 -------------- All threads can access all socket file descriptors There is no management of permissions to network socket API file descriptors. Any thread running on the system may read/write a socket file descriptor knowing only the numerical value of the file descriptor. - `CVE-2020-10072 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-87 <path_to_url`_ - `PR25804 fix for v2.4 <path_to_url`_ - `PR27176 fix for v1.4 <path_to_url`_ CVE-2020-10136 ------------------- IP-in-IP protocol routes arbitrary traffic by default zephyrproject - `CVE-2020-10136 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-64 <path_to_url`_ CVE-2020-13598 -------------- FS: Buffer Overflow when enabling Long File Names in FAT_FS and calling fs_stat Performing fs_stat on a file with a filename longer than 12 characters long will cause a buffer overflow. - `CVE-2020-13598 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-88 <path_to_url`_ - `PR25852 fix for v2.4 <path_to_url`_ - `PR28782 fix for v2.3 <path_to_url`_ - `PR33577 fix for v1.4 <path_to_url`_ CVE-2020-13599 -------------- Security problem with settings and littlefs When settings is used in combination with littlefs all security related information can be extracted from the device using MCUmgr and this could be used e.g in bt-mesh to get the device key, network key, app keys from the device. - `CVE-2020-13599 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-57 <path_to_url`_ - `PR26083 fix for v2.4 <path_to_url`_ CVE-2020-13600 ------------------- Malformed SPI in response for eswifi can corrupt kernel memory - `CVE-2020-13600 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-91 <path_to_url`_ - `PR26712 fix for v2.4 <path_to_url`_ CVE-2020-13601 -------------- Possible read out of bounds in dns read - `CVE-2020-13601 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-92 <path_to_url`_ - `PR27774 fix for v2.4 <path_to_url`_ - `PR30503 fix for v1.4 <path_to_url`_ CVE-2020-13602 -------------- Remote Denial of Service in LwM2M do_write_op_tlv In the Zephyr LwM2M implementation, malformed input can result in an infinite loop, resulting in a denial of service attack. - `CVE-2020-13602 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-56 <path_to_url`_ - `PR26571 fix for v2.4 <path_to_url`_ - `PR33578 fix for v1.4 <path_to_url`_ CVE-2020-13603 -------------- Possible overflow in mempool * Zephyr offers pre-built 'malloc' wrapper function instead. * The 'malloc' function is wrapper for the 'sys_mem_pool_alloc' function * sys_mem_pool_alloc allocates 'size + WB_UP(sizeof(struct sys_mem_pool_block))' in an unsafe manner. * Asking for very large size values leads to internal integer wrap-around. * Integer wrap-around leads to successful allocation of very small memory. * For example: calling malloc(0xffffffff) leads to successful allocation of 7 bytes. * That leads to heap overflow. - `CVE-2020-13603 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-111 <path_to_url`_ - `PR31796 fix for v2.4 <path_to_url`_ - `PR32808 fix for v1.4 <path_to_url`_ CVE-2021 ======== CVE-2021-3319 ------------- DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses Improper processing of omitted source and destination addresses in ieee802154 frame validation (ieee802154_validate_frame) This has been fixed in main for v2.5.0 - `CVE-2020-3319 <path_to_url`_ - `Zephyr project bug tracker GHSA-94jg-2p6q-5364 <path_to_url`_ - `PR31908 fix for main <path_to_url`_ CVE-2021-3320 ------------------- Mismatch between validation and handling of 802154 ACK frames, where ACK frames are considered during validation, but not during actual processing, leading to a type confusion. - `CVE-2020-3320 <path_to_url`_ - `PR31908 fix for main <path_to_url`_ CVE-2021-3321 ------------- Incomplete check of minimum IEEE 802154 fragment size leading to an integer underflow. - `CVE-2020-3321 <path_to_url`_ - `Zephyr project bug tracker ZEPSEC-114 <path_to_url`_ - `PR33453 fix for v2.4 <path_to_url`_ CVE-2021-3323 ------------- Integer Underflow in 6LoWPAN IPHC Header Uncompression This has been fixed in main for v2.5.0 - `CVE-2020-3323 <path_to_url`_ - `Zephyr project bug tracker GHSA-89j6-qpxf-pfpc <path_to_url`_ - `PR 31971 fix for main <path_to_url`_ CVE-2021-3430 ------------- Assertion reachable with repeated LL_CONNECTION_PARAM_REQ. This has been fixed in main for v2.6.0 - `CVE-2021-3430 <path_to_url`_ - `Zephyr project bug tracker GHSA-46h3-hjcq-2jjr <path_to_url`_ - `PR 33272 fix for main <path_to_url`_ - `PR 33369 fix for 2.5 <path_to_url`_ - `PR 33759 fix for 1.14.2 <path_to_url`_ CVE-2021-3431 ------------- BT: Assertion failure on repeated LL_FEATURE_REQ This has been fixed in main for v2.6.0 - `CVE-2021-3431 <path_to_url`_ - `Zephyr project bug tracker GHSA-7548-5m6f-mqv9 <path_to_url`_ - `PR 33340 fix for main <path_to_url`_ - `PR 33369 fix for 2.5 <path_to_url`_ CVE-2021-3432 ------------- Invalid interval in CONNECT_IND leads to Division by Zero This has been fixed in main for v2.6.0 - `CVE-2021-3432 <path_to_url`_ - `Zephyr project bug tracker GHSA-7364-p4wc-8mj4 <path_to_url`_ - `PR 33278 fix for main <path_to_url`_ - `PR 33369 fix for 2.5 <path_to_url`_ CVE-2021-3433 ------------- BT: Invalid channel map in CONNECT_IND results to Deadlock This has been fixed in main for v2.6.0 - `CVE-2021-3433 <path_to_url`_ - `Zephyr project bug tracker GHSA-3c2f-w4v6-qxrp <path_to_url`_ - `PR 33278 fix for main <path_to_url`_ - `PR 33369 fix for 2.5 <path_to_url`_ CVE-2021-3434 ------------- L2CAP: Stack based buffer overflow in le_ecred_conn_req() This has been fixed in main for v2.6.0 - `CVE-2021-3434 <path_to_url`_ - `Zephyr project bug tracker GHSA-8w87-6rfp-cfrm <path_to_url`_ - `PR 33305 fix for main <path_to_url`_ - `PR 33419 fix for 2.5 <path_to_url`_ - `PR 33418 fix for 1.14.2 <path_to_url`_ CVE-2021-3435 ------------- L2CAP: Information leakage in le_ecred_conn_req() This has been fixed in main for v2.6.0 - `CVE-2021-3435 <path_to_url`_ - `Zephyr project bug tracker GHSA-xhg3-gvj6-4rqh <path_to_url`_ - `PR 33305 fix for main <path_to_url`_ - `PR 33419 fix for 2.5 <path_to_url`_ - `PR 33418 fix for 1.14.2 <path_to_url`_ CVE-2021-3436 ------------- Bluetooth: Possible to overwrite an existing bond during keys distribution phase when the identity address of the bond is known During the distribution of the identity address information we dont check for an existing bond with the same identity address.This means that a duplicate entry will be created in RAM while the newest entry will overwrite the existing one in persistent storage. This has been fixed in main for v2.6.0 - `CVE-2021-3436 <path_to_url`_ - `Zephyr project bug tracker GHSA-j76f-35mc-4h63 <path_to_url`_ - `PR 33266 fix for main <path_to_url`_ - `PR 33432 fix for 2.5 <path_to_url`_ - `PR 33433 fix for 2.4 <path_to_url`_ - `PR 33718 fix for 1.14.2 <path_to_url`_ CVE-2021-3454 ------------- Truncated L2CAP K-frame causes assertion failure For example, sending L2CAP K-frame where SDU length field is truncated to only one byte, causes assertion failure in previous releases of Zephyr. This has been fixed in master by commit 0ba9437 but has not yet been backported to older release branches. This has been fixed in main for v2.6.0 - `CVE-2021-3454 <path_to_url`_ - `Zephyr project bug tracker GHSA-fx88-6c29-vrp3 <path_to_url`_ - `PR 32588 fix for main <path_to_url`_ - `PR 33513 fix for 2.5 <path_to_url`_ - `PR 33514 fix for 2.4 <path_to_url`_ CVE-2021-3455 ------------- Disconnecting L2CAP channel right after invalid ATT request leads freeze When Central device connects to peripheral and creates L2CAP connection for Enhanced ATT, sending some invalid ATT request and disconnecting immediately causes freeze. This has been fixed in main for v2.6.0 - `CVE-2021-3455 <path_to_url`_ - `Zephyr project bug tracker GHSA-7g38-3x9v-v7vp <path_to_url`_ - `PR 35597 fix for main <path_to_url`_ - `PR 36104 fix for 2.5 <path_to_url`_ - `PR 36105 fix for 2.4 <path_to_url`_ CVE-2021-3510 ------------- Zephyr JSON decoder incorrectly decodes array of array When using JSON_OBJ_DESCR_ARRAY_ARRAY, the subarray is has the token type JSON_TOK_LIST_START, but then assigns to the object part of the union. arr_parse then takes the offset of the array-object (which has nothing todo with the list) treats it as relative to the parent object, and stores the length of the subarray in there. This has been fixed in main for v2.7.0 - `CVE-2021-3510 <path_to_url`_ - `Zephyr project bug tracker GHSA-289f-7mw3-2qf4 <path_to_url`_ - `PR 36340 fix for main <path_to_url`_ - `PR 37816 fix for 2.6 <path_to_url`_ CVE-2021-3581 ------------- HCI data not properly checked leads to memory overflow in the Bluetooth stack In the process of setting SCAN_RSP through the HCI command, the Zephyr Bluetooth protocol stack did not effectively check the length of the incoming HCI data. Causes memory overflow, and then the data in the memory is overwritten, and may even cause arbitrary code execution. This has been fixed in main for v2.6.0 - `CVE-2021-3581 <path_to_url`_ - `Zephyr project bug tracker GHSA-8q65-5gqf-fmw5 <path_to_url`_ - `PR 35935 fix for main <path_to_url`_ - `PR 35984 fix for 2.5 <path_to_url`_ - `PR 35985 fix for 2.4 <path_to_url`_ - `PR 35985 fix for 1.14 <path_to_url`_ CVE-2021-3625 ------------- Buffer overflow in Zephyr USB DFU DNLOAD This has been fixed in main for v2.6.0 - `CVE-2021-3625 <path_to_url`_ - `Zephyr project bug tracker GHSA-c3gr-hgvr-f363 <path_to_url`_ - `PR 36694 fix for main <path_to_url`_ CVE-2021-3835 ------------- Buffer overflow in Zephyr USB device class This has been fixed in main for v3.0.0 - `CVE-2021-3835 <path_to_url`_ - `Zephyr project bug tracker GHSA-fm6v-8625-99jf <path_to_url`_ - `PR 42093 fix for main <path_to_url`_ - `PR 42167 fix for 2.7 <path_to_url`_ CVE-2021-3861 ------------- Buffer overflow in the RNDIS USB device class This has been fixed in main for v3.0.0 - `CVE-2021-3861 <path_to_url`_ - `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj <path_to_url`_ - `PR 39725 fix for main <path_to_url`_ CVE-2021-3966 ------------- Usb bluetooth device ACL read cb buffer overflow This has been fixed in main for v3.0.0 - `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m <path_to_url`_ - `PR 42093 fix for main <path_to_url`_ - `PR 42167 fix for v2.7.0 <path_to_url`_ CVE-2022 ======== CVE-2022-0553 ------------- Possible to retrieve unencrypted firmware image This has been fixed in main for v3.0.0 - `Zephyr project bug tracker GHSA-wrj2-9vj9-rrcp <path_to_url`_ - `PR 42424 fix for main <path_to_url`_ CVE-2022-1041 -------------- Out-of-bound write vulnerability in the Bluetooth Mesh core stack can be triggered during provisioning This has been fixed in main for v3.1.0 - `Zephyr project bug tracker GHSA-p449-9hv9-pj38 <path_to_url`_ - `PR 45136 fix for main <path_to_url`_ - `PR 45188 fix for v3.0.0 <path_to_url`_ - `PR 45187 fix for v2.7.0 <path_to_url`_ CVE-2022-1042 -------------- Out-of-bound write vulnerability in the Bluetooth Mesh core stack can be triggered during provisioning This has been fixed in main for v3.1.0 - `Zephyr project bug tracker GHSA-j7v7-w73r-mm5x <path_to_url`_ - `PR 45066 fix for main <path_to_url`_ - `PR 45135 fix for v3.0.0 <path_to_url`_ - `PR 45134 fix for v2.7.0 <path_to_url`_ CVE-2022-1841 -------------- Out-of-Bound Write in tcp_flags This has been fixed in main for v3.1.0 - `Zephyr project bug tracker GHSA-5c3j-p8cr-2pgh <path_to_url`_ - `PR 45796 fix for main <path_to_url`_ CVE-2022-2741 -------------- can: denial-of-service can be triggered by a crafted CAN frame This has been fixed in main for v3.2.0 - `Zephyr project bug tracker GHSA-hx5v-j59q-c3j8 <path_to_url`_ - `PR 47903 fix for main <path_to_url`_ - `PR 47957 fix for v3.1.0 <path_to_url`_ - `PR 47958 fix for v3.0.0 <path_to_url`_ - `PR 47959 fix for v2.7.0 <path_to_url`_ CVE-2022-2993 -------------- bt: host: Wrong key validation check This has been fixed in main for v3.2.0 - `Zephyr project bug tracker GHSA-3286-jgjx-8cvr <path_to_url`_ - `PR 48733 fix for main <path_to_url`_ CVE-2022-3806 ------------- DoS: Invalid Initialization in le_read_buffer_size_complete() - `Zephyr project bug tracker GHSA-w525-fm68-ppq3 <path_to_url`_ CVE-2023 ======== CVE-2023-0396 ------------- Buffer Overreads in Bluetooth HCI - `Zephyr project bug tracker GHSA-8rpp-6vxq-pqg3 <path_to_url`_ CVE-2023-0397 ------------- DoS: Invalid Initialization in le_read_buffer_size_complete() - `Zephyr project bug tracker GHSA-wc2h-h868-q7hj <path_to_url`_ This has been fixed in main for v3.3.0 - `PR 54905 fix for main <path_to_url`_ - `PR 47957 fix for v3.2.0 <path_to_url`_ - `PR 47958 fix for v3.1.0 <path_to_url`_ - `PR 47959 fix for v2.7.4 <path_to_url`_ CVE-2023-0779 ------------- net: shell: Improper input validation - `Zephyr project bug tracker GHSA-9xj8-6989-r549 <path_to_url`_ This has been fixed in main for v3.3.0 - `PR 54371 fix for main <path_to_url`_ - `PR 54380 fix for v3.2.0 <path_to_url`_ - `PR 54381 fix for v2.7.4 <path_to_url`_ CVE-2023-1901 ------------- HCI send_sync Dangling Semaphore Reference Re-use - `Zephyr project bug tracker GHSA-xvvm-8mcm-9cq3 <path_to_url`_ This has been fixed in main for v3.4.0 - `PR 56709 fix for main <path_to_url`_ CVE-2023-1902 ------------- HCI Connection Creation Dangling State Reference Re-use - `Zephyr project bug tracker GHSA-fx9g-8fr2-q899 <path_to_url`_ This has been fixed in main for v3.4.0 - `PR 56709 fix for main <path_to_url`_ CVE-2023-3725 ------------- Potential buffer overflow vulnerability in the Zephyr CANbus subsystem. - `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 61502 fix for main <path_to_url`_ - `PR 61518 fix for 3.4 <path_to_url`_ - `PR 61517 fix for 3.3 <path_to_url`_ - `PR 61516 fix for 2.7 <path_to_url`_ CVE-2023-4257 ------------- Unchecked user input length in the Zephyr WiFi shell module can cause buffer overflows. - `Zephyr project bug tracker GHSA-853q-q69w-gf5j <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 605377 fix for main <path_to_url`_ - `PR 61383 fix for 3.4 <path_to_url`_ CVE-2023-4258 ------------- bt: mesh: vulnerability in provisioning protocol implementation on provisionee side - `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 59467 fix for main <path_to_url`_ - `PR 60078 fix for 3.4 <path_to_url`_ - `PR 60079 fix for 3.3 <path_to_url`_ CVE-2023-4259 ------------- Buffer overflow vulnerabilities in the Zephyr eS-WiFi driver - `Zephyr project bug tracker GHSA-gghm-c696-f4j4 <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 63074 fix for main <path_to_url`_ - `PR 63750 fix for main <path_to_url`_ CVE-2023-4260 ------------- Off-by-one buffer overflow vulnerability in the Zephyr FS subsystem - `Zephyr project bug tracker GHSA-gj27-862r-55wh <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 63079 fix for main <path_to_url`_ CVE-2023-4262 ------------- - This issue has been determined to be a false positive after further analysis. CVE-2023-4263 ------------- Potential buffer overflow vulnerability in the Zephyr IEEE 802.15.4 nRF 15.4 driver. - `Zephyr project bug tracker GHSA-rf6q-rhhp-pqhf <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 60528 fix for main <path_to_url`_ - `PR 61384 fix for 3.4 <path_to_url`_ - `PR 61216 fix for 2.7 <path_to_url`_ CVE-2023-4264 ------------- Potential buffer overflow vulnerabilities in the Zephyr Bluetooth subsystem - `Zephyr project bug tracker GHSA-rgx6-3w4j-gf5j <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 58834 fix for main <path_to_url`_ - `PR 60465 fix for main <path_to_url`_ - `PR 61845 fix for main <path_to_url`_ - `PR 61385 fix for 3.4 <path_to_url`_ CVE-2023-4265 ------------- Two potential buffer overflow vulnerabilities in Zephyr USB code - `Zephyr project bug tracker GHSA-4vgv-5r6q-r6xh <path_to_url`_ This has been fixed in main for v3.4.0 - `PR 59157 fix for main <path_to_url`_ - `PR 59018 fix for main <path_to_url`_ CVE-2023-4424 ------------- bt: hci: DoS and possible RCE - `Zephyr project bug tracker GHSA-j4qm-xgpf-qjw3 <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 61651 fix for main <path_to_url`_ - `PR 61696 fix for 3.4 <path_to_url`_ - `PR 61695 fix for 3.3 <path_to_url`_ - `PR 61694 fix for 2.7 <path_to_url`_ CVE-2023-5055 ------------- L2CAP: Possible Stack based buffer overflow in le_ecred_reconf_req() - `Zephyr project bug tracker GHSA-wr8r-7f8x-24jj <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 62381 fix for main <path_to_url`_ CVE-2023-5139 ------------- Potential buffer overflow vulnerability in the Zephyr STM32 Crypto driver. - `Zephyr project bug tracker GHSA-rhrc-pcxp-4453 <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 61839 fix for main <path_to_url`_ CVE-2023-5184 ------------- Potential signed to unsigned conversion errors and buffer overflow vulnerabilities in the Zephyr IPM driver - `Zephyr project bug tracker GHSA-8x3p-q3r5-xh9g <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 63069 fix for main <path_to_url`_ CVE-2023-5563 ------------- The SJA1000 CAN controller driver backend automatically attempts to recover from a bus-off event when built with CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y. This results in calling k_sleep() in IRQ context, causing a fatal exception. - `Zephyr project bug tracker GHSA-98mc-rj7w-7rpv <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 63713 fix for main <path_to_url`_ - `PR 63718 fix for 3.4 <path_to_url`_ - `PR 63717 fix for 3.3 <path_to_url`_ CVE-2023-5753 ------------- Potential buffer overflow vulnerabilities in the Zephyr Bluetooth subsystem source code when asserts are disabled. - `Zephyr project bug tracker GHSA-hmpr-px56-rvww <path_to_url`_ This has been fixed in main for v3.5.0 - `PR 63605 fix for main <path_to_url`_ CVE-2023-5779 ------------- Out of bounds issue in remove_rx_filter in multiple can drivers. - `Zephyr project bug tracker GHSA-7cmj-963q-jj47 <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 64399 fix for main <path_to_url`_ - `PR 64416 fix for 3.5 <path_to_url`_ - `PR 64415 fix for 3.4 <path_to_url`_ - `PR 64427 fix for 3.3 <path_to_url`_ - `PR 64431 fix for 2.7 <path_to_url`_ CVE-2023-6249 ------------- Signed to unsigned conversion problem in esp32_ipm_send may lead to buffer overflow - `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 65546 fix for main <path_to_url`_ CVE-2023-6749 ------------- Potential buffer overflow due unchecked data coming from user input in settings shell. - `Zephyr project bug tracker GHSA-757h-rw37-66hw <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 66451 fix for main <path_to_url`_ - `PR 66584 fix for 3.5 <path_to_url`_ CVE-2023-6881 ------------- Potential buffer overflow vulnerability in Zephyr fuse file system. - `Zephyr project bug tracker GHSA-mh67-4h3q-p437 <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 66592 fix for main <path_to_url`_ CVE-2023-7060 ------------- Missing Security Control in Zephyr OS IP Packet Handling - `Zephyr project bug tracker GHSA-fjc8-223c-qgqr <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 66645 fix for main <path_to_url`_ - `PR 66739 fix for 3.5 <path_to_url`_ - `PR 66738 fix for 3.4 <path_to_url`_ - `PR 66887 fix for 2.7 <path_to_url`_ CVE-2024 ======== CVE-2024-1638 ------------- Bluetooth characteristic LESC security requirement not enforced without additional flags - `Zephyr project bug tracker GHSA-p6f3-f63q-5mc2 <path_to_url`_ This has been fixed in main for v3.6.0 - `PR 69170 fix for main <path_to_url`_ CVE-2024-3077 ------------- Bluetooth: Integer underflow in gatt_find_info_rsp. A malicious BLE device can crash BLE victim device by sending malformed gatt packet. - `Zephyr project bug tracker GHSA-gmfv-4vfh-2mh8 <path_to_url`_ This has been fixed in main for v3.7.0 - `PR 69396 fix for main <path_to_url`_ CVE-2024-3332 ------------- Bluetooth: DoS caused by null pointer dereference. A malicious BLE device can send a specific order of packet sequence to cause a DoS attack on the victim BLE device. - `Zephyr project bug tracker GHSA-jmr9-xw2v-5vf4 <path_to_url`_ This has been fixed in main for v3.7.0 - `PR 71030 fix for main <path_to_url`_ CVE-2024-4785 ------------- Under embargo until 2024-08-07 CVE-2024-5754 ------------- Under embargo until 2024-09-04 CVE-2024-5931 ------------- Under embargo until 2024-09-10 CVE-2024-6135 ------------- Under embargo until 2024-09-11 CVE-2024-6137 ------------- Under embargo until 2024-09-11 CVE-2024-6258 ------------- Under embargo until 2024-09-05 CVE-2024-6259 ------------- Under embargo until 2024-09-12 CVE-2024-6442 ------------- Under embargo until 2024-09-22 CVE-2024-6443 ------------- Under embargo until 2024-09-22 CVE-2024-6444 ------------- Under embargo until 2024-09-22 ```
/content/code_sandbox/doc/security/vulnerabilities.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,814
```restructuredtext .. _contribute_to_zephyr: Contributing to Zephyr ###################### Contributions from the community are the backbone of the project. Whether it is by submitting code, improving documentation, or proposing new features, your efforts are highly appreciated. This page lists useful resources and guidelines to help you in your contribution journey. General Guidelines ================== .. toctree:: :maxdepth: 1 :hidden: guidelines.rst coding_guidelines/index.rst proposals_and_rfcs.rst contributor_expectations.rst :ref:`contribute_guidelines` Learn about the overall process and guidelines for contributing to the Zephyr project. This page is a mandatory read for first-time contributors as it contains important information on how to ensure your contribution can be considered for inclusion in the project and potentially merged. :ref:`contributor-expectations` This document is another mandatory read that describes the expected behavior of `all` contributors to the project. :ref:`coding_guidelines` Code contributions are expected to follow a set of coding guidelines to ensure consistency and readability across the code base. This page describes these guidelines and introduces important considerations regarding the use of :ref:`inclusive language <coding_guideline_inclusive_language>`. :ref:`rfcs` Learn when and how to submit RFCs (Request for Comments) for new features and changes to the project. Documentation ============= The Zephyr project thrives on good documentation. Whether it is as part of a code contribution or as a standalone effort, contributing documentation is particularly valuable to the project. .. toctree:: :maxdepth: 1 :hidden: documentation/guidelines.rst documentation/generation.rst :ref:`doc_guidelines` This page provides some simple guidelines for writing documentation using the reSTructuredText (reST) markup language and Sphinx documentation generator. :ref:`zephyr_doc` As you write documentation, it can be helpful to see how it will look when rendered. This page describes how to build the Zephyr documentation locally. Dealing with external components ================================ .. toctree:: :maxdepth: 1 :hidden: external.rst bin_blobs.rst :ref:`external-contributions` Basic functionality or features that would make useful addition to Zephyr might be readily available in other open source projects, and it is recommended and encouraged to reuse such code. This page describes in more details when and how to import external source code into Zephyr. :ref:`external-tooling` Similarly, external tooling used during compilation, code analysis, testing or simulation, can be beneficial and is covered in this section. :ref:`bin-blobs` As some functionality might only be made available with the help of executable code distributed in binary form, this page describes the process and guidelines for :ref:`contributing binary blobs <blobs-process>` to the project. Zephyr Contributor Badge ======================== When your first contribution to the Zephyr project gets merged, you'll become eligible to claim your Zephyr Contributor Badge. This digital badge can be displayed on your website, blog, social media profile, etc. It will allow you to showcase your involvement in the Zephyr project and help raise its awareness. You may apply for your Contributor Badge by filling out the `Zephyr Contributor Badge form`_. Need help along the way? ======================== If you have questions related to the contribution process, the Zephyr community is here to help. You may join our Discord_ channel or use the `Developer Mailing List`_. .. _Discord: path_to_url .. _Developer Mailing List: path_to_url .. _Zephyr Contributor Badge form: path_to_url ```
/content/code_sandbox/doc/contribute/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
828
```restructuredtext .. _external-contributions: Contributing External Components ################################ In some cases it is desirable to leverage existing, external source code in order to avoid re-implementing basic functionality or features that are readily available in other open source projects. This section describes the circumstances under which external source code can be imported into Zephyr, and the process that governs the inclusion. There are three main factors that will be considered during the inclusion process in order to determine whether it will be accepted. These will be described in the following sections. Note that most of this page deals with external components that end up being compiled and linked into the final image, and programmed into the target hardware. For external tooling that is only used during compilation, code analysis, testing or simulation please refer to the :ref:`external-tooling` section at the end of the page. **************** .. note:: External source code licensed under the Apache-2.0 license is not subject to this section. Integrating code into the Zephyr Project from other projects that use a license other than the Apache 2.0 license needs to be fully understood in context and approved by the `Zephyr governing board`_, as described in the `Zephyr project charter`_. The board will automatically reject licenses that have not been approved by the `Open Source Initiative (OSI)`_. See the :ref:`external-src-process` section for more details. .. _Zephyr governing board: path_to_url .. _Zephyr project charter: path_to_url .. _Open Source Initiative (OSI): path_to_url By carefully reviewing potential contributions and also enforcing a :ref:`DCO` for contributed code, we ensure that the Zephyr community can develop products with the Zephyr Project without concerns over patent or copyright issues. Merit ***** Just like with any other regular contribution, one that contains external code needs to be evaluated for merit. However, in the particular case of code that comes from an existing project, there are additional questions that must be answered in order to accept the contribution. More specifically, the following will be considered by the Technical Steering Committee and evaluated carefully before the external source code is accepted into the project: - Is this the most optimal way to introduce the functionality to the project? Both the cost of implementing this internally and the one incurred in maintaining an externally developed codebase need to be evaluated. - Is the external project being actively maintained? This is particularly important for source code that deals with security or cryptography. - Have alternatives to the particular implementation proposed been considered? Are there other open source project that implement the same functionality? Mode of integration ******************* There are two ways of integrating external source code into the Zephyr Project, and careful consideration must be taken to choose the appropriate one for each particular case. Integration in the main tree ============================ The first way to integrate external source code into the project is to simply import the source code files into the main ``zephyr`` repository. This automatically implies that the imported source code becomes part of the "mainline" codebase, which in turn requires that: - The code is formatted according to the Zephyr :ref:`coding_style` - The code adheres to the project's :ref:`coding_guidelines` - The code is subject to the same checks and verification requirements as the rest of the code in the main tree, including static analysis - All files contain an SPDX tag if not already present - If the source is not Apache 2.0 licensed, an entry is added to the :ref:`licensing page <zephyr_licensing>`. This mode of integration can be applicable to both small and large external codebases, but it is typically used more commonly with the former. Integration as a module ======================= The second way of integrating external source code into the project is to import the whole or parts of the third-party open source project into a separate repository, and then include it under the form of a :ref:`module <modules>`. With this approach the code is considered as being developed externally, and thus it is not automatically subject to the requirements of the previous section. Integration in main manifest file (west.yaml) --------------------------------------------- Integrating external code into the main :file:`west.yml` manifest file is limited to code that is used by a Zephyr subsystem (libraries), by a platform, drivers (HAL) or tooling needed to test or build Zephyr components. The integration of modules in this group is validated by the Zephyr project CI, and verified to be working with each Zephyr release. Integrated modules will not be removed from the tree without a detailed migration plan. Integration as optional modules ------------------------------- Standalone or loose integration of modules/projects without any incoming dependencies shall be made optional and shall be kept standalone. Optional projects that provide value to users directly and through a Zephyr subsystem or platform shall be added to an optional manifest file that is filtered by default. (:file:`submanifests/optional.yml`). Such optional projects might include samples and tests in their own repositories. There shall not be any direct dependency added in the Zephyr code tree (Git repository) and all sample or test code shall be maintained as part of the module. .. note:: This is valid for all new optional modules. Existing optional modules with samples and test code in the Zephyr Git repository will be transitioned out over time. Integration as external modules ------------------------------- Similar to optional modules, but added to the Zephyr project as an entry in the documentation using a pre-defined template. This type of modules exists outside the Zephyr project manifest with documentation instructing users and developers how to integrate the functionality. Ongoing maintenance ******************* Regardless of the mode of integration, external source code that is integrated in Zephyr requires regular ongoing maintenance. The submitter of the proposal to integrate external source code must therefore commit to maintain the integration of such code for the foreseeable future. This may require adding an entry in the :file:`MAINTAINERS.yml` as part of the process. .. _external-src-process: Submission and review process ***************************** Before external source code can be included in the project, it must be reviewed and accepted by the Technical Steering Committee (TSC) and, in some cases, by the Zephyr governing board. A request for external source code integration must be made by creating a new issue in the Zephyr project issue tracking system on GitHub with details about the source code and how it integrates into the project. Follow the steps below to begin the submission process: #. Make sure to read through the :ref:`external-contributions` section in detail, so that you are informed of the criteria used by the TSC and board in order to approve or reject a request #. Use the :github:`New External Source Code Issue <new?assignees=&labels=RFC&template=007_ext-source.md&title=>` to open an issue #. Fill out all required sections, making sure you provide enough detail for the TSC to assess the merit of the request. Optionally you can also create a Pull Request that demonstrates the integration of the external source code and link to it from the issue #. Wait for feedback from the TSC, respond to any additional questions added as GitHub issue comments If, after consideration by the TSC, the conclusion is that integrating external source code is the best solution, and the external source code is licensed under the Apache-2.0 license, the submission process is complete and the external source code can be integrated. If, however, the external source code uses a license other than Apache-2.0, then these additional steps must be followed: #. The TSC chair will forward the link to the GitHub issue created during the early submission process to the Zephyr governing board for further review #. The Zephyr governing board has two weeks to review and ask questions: - If there are no objections, the matter is closed. Approval can be accelerated by unanimous approval of the board before the two weeks are up - If a governing board member raises an objection that cannot be resolved via email, the board will meet to discuss whether to override the TSC approval or identify other approaches that can resolve the objections #. On approval of the Zephyr TSC and governing board the submission process is complete The flowchart below shows an overview of the process: .. figure:: media/ext-src-flowchart.svg :align: center Submission process .. _external-tooling: Contributing External Tooling ***************************** This section deals exclusively with the inclusion of external tooling in the Zephyr project, where tooling is defined as software that assists the compilation, testing or simulation processes but in no case ends up being part of the code compiled and linked into the final image. "Inclusion" in this context means becoming part of the Zephyr default distribution either in the main tree directly under the :file:`scripts/` folder or indirectly as a west project in the main :file:`west.yml` manifest. Therefore, this section does not apply to 3rd-party tooling such as toolchains, simulators or others, which may still be referenced by the Zephyr build system or docs without being included in Zephyr. Tooling components must be released under a license approved by the `Open Source Initiative (OSI)`_. Just like with regular external components, tooling that is imported from another project can be integrated either in the main tree or as a :ref:`west project <west-workspace>`. Note that in this case the corresponding west project will not be a :ref:`module <modules>`, because tooling does not make use of the Zephyr build system and does not need to be processed by it. Please see :ref:`modules-vs-projects` for additional information on the differences. If the tool is integrated in the main tree it should be placed under the :file:`scripts/` folder. If the tool is integrated as a west project, then the project repository can be hosted outside the zephyrproject-rtos GitHub organization, provided that the project is made optional via the ``group-filter:`` field in the main :file:`west.yml` manifest. More info on optional projects can be found in :ref:`this section <west-manifest-groups>`. The TSC must approve every Pull Request that introduces a new external tooling component. This will be done on a case-by-case, individual analysis of the proposed addition by the TSC representatives. Additional considerations about the main manifest ************************************************* In general, any additions or removals whatsoever to the ``projects:`` section of the `main manifest file`_ requires TSC approval. This includes, but is not limited to: - Adding and removing groups and group filters - Adding and removing projects - Adding and removing ``import`` statements .. _main manifest file: path_to_url ```
/content/code_sandbox/doc/contribute/external.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,376
```restructuredtext .. _etsi_303645: ETSI 303-645 ############ `ETSI EN 303 645`, also known as "Cyber Security for Consumer Internet of Things: Baseline Requirements," is a standard developed by the European Telecommunications Standards Institute (ETSI). The standard includes provisions for secure software updates, data protection, secure communication, and the minimization of exposed attack surfaces, among other things. It is part of a broader effort to address the challenges and risks associated with IoT devices. Full version of the standard can be found `here <path_to_url`_. Terminology *********** .. list-table:: ETSI 303645 terminology :widths: 17 43 * - administrator - user who has the highest-privilege level possible for a user of the device, which can mean they are able to change any configuration related to the intended functionality. * - associated services - digital services that, together with the device, are part of the overall consumer IoT product and that are typically required to provide the product's intended functionality. * - authentication mechanism - method used to prove the authenticity of an entity. * - authentication value - individual value of an attribute used by an authentication mechanism. * - best practice cryptography - cryptography that is suitable for the corresponding use case and has no indications of a feasible attack with current readily available techniques. * - constrained device - device which has physical limitations in either the ability to process data, the ability to communicate data, the ability to store data or the ability to interact with the user, due to restrictions that arise from its intended use. * - consumer - natural person who is acting for purposes that are outside her/his trade, business, craft or profession. * - consumer IoT device - network-connected (and network-connectable) device that has relationships to associated services and are used by the consumer typically in the home or as electronic wearables. * - critical security parameter - security-related secret information whose disclosure or modification can compromise the security of a security module. * - debug interface - physical interface used by the manufacturer to communicate with the device during development or to perform triage of issues with the device and that is not used as part of the consumer-facing functionality * - defined support period - minimum length of time, expressed as a period or by an end-date, for which a manufacturer will provide security updates. * - device manufacturer - entity that creates an assembled final consumer IoT product, which is likely to contain the products and components of many other suppliers. * - factory default - state of the device after factory reset or after final production/assembly. * - initialization - process that activates the network connectivity of the device for operation and optionally sets authentication features for a user or for network access. * - initialized state - state of the device after initialization. * - IoT product - consumer IoT device and its associated services. * - isolable - able to be removed from the network it is connected to, where any functionality loss caused is related only to that connectivity and not to its main function; alternatively, able to be placed in a self-contained environment with other devices if and only if the integrity of devices within that environment can be ensured * - logical interface - software implementation that utilizes a network interface to communicate over the network via channels or ports. * - manufacturer - relevant economic operator in the supply chain (including the device manufacturer). * - network interface - physical interface that can be used to access the functionality of consumer IoT via a network. * - owner - user who owns or who purchased the device. * - personal data - Any information relating to an identified or identifiable natural person. * - physical interface - physical port or air interface (such as radio, audio or optical) used to communicate with the device at the physical layer. * - public security parameter - security related public information whose modification can compromise the security of a security module. * - remotely accessible - intended to be accessible from outside the local network. * - security module - set of hardware, software, and/or firmware that implements security functions. * - security update - software update that addresses security vulnerabilities either discovered by or reported to the manufacturer. * - sensitive security parameters - critical security parameters and public security parameters. * - software service - software component of a device that is used to support functionality. * - telemetry - data from a device that can provide information to help the manufacturer identify issues or information related to device usage. * - unique per device - unique for each individual device of a given product class or type. * - user - natural person or organization. Provisions Assessment ********************* The following table is a self-assessment using Table B.1 from ETSI EN 303 645, specifically focusing on the Zephyr RTOS as a component within IoT products. According with ETSI 303 645, table B.1 provides a mechanism to give information about the implementation of the provisions presented in the standard. Zephyr has adopted the following notations used in the standard: .. list-table:: ETSI 303645 Table B.1 notations :widths: 17 43 * - M - the provision is a mandatory requirement * - R - the provision is a recommendation * - M C - the provision is a mandatory requirement and conditional * - R C - the provision is a recommendation and conditional * - Y - The provision is supported by Zephyr * - N - The provision is not supported by Zephyr * - N/A - The provision is not applicable to Zephyr or it is product makers responsibility .. raw:: latex \begin{landscape} .. list-table:: ETSI 303645 provisions assessment using table B.1 :header-rows: 1 :widths: 25 80 15 15 60 * - Provision - Description - Status - Support - Detail .. _ETSI_Provision_5_1_1: * - Provision 5.1-1 - Where passwords are used and in any state other than the factory default, all consumer IoT device passwords shall be unique per device or defined by the user. - M C - N/A - .. _ETSI_Provision_5_1_2: * - Provision 5.1-2 - Where pre-installed unique per device passwords are used, these shall be generated with a mechanism that reduces the risk of automated attacks against a class or type of device. - M C - N/A - .. _ETSI_Provision_5_1_3: * - Provision 5.1-3 - Authentication mechanisms used to authenticate users against a device shall use best practice cryptography, appropriate to the properties of the technology, risk and usage. - M - N/A - .. _ETSI_Provision_5_1_4: * - Provision 5.1-4 - Where a user can authenticate against a device, the device shall provide to the user or an administrator a simple mechanism to change the authentication value used. - M C - N/A - .. _ETSI_Provision_5_1_5: * - Provision 5.1-5 - When the device is not a constrained device, it shall have a mechanism available which makes brute-force attacks on authentication mechanisms via network interfaces impracticable. - M C - N - **TODO** .. _ETSI_Provision_5_2_1: * - Provision 5.2-1 - The manufacture shall make a vulnerability disclosure policy publicly available. - M - Y - :ref:`Vulnerability Management <reporting>` .. _ETSI_Provision_5_2_2: * - Provision 5.2-2 - Disclosed vulnerabilities should be acted on in a timely manner. - R - Y - :ref:`Vulnerability Timeline <vulnerability_timeline>` .. _ETSI_Provision_5_2_3: * - Provision 5.2-3 - Manufacturers should continually monitor for, identify and rectify security vulnerabilities within products and services they sell, produce, have produced and services they operate during the defined support period. - R - Y - `Modules <path_to_url`_ are covered .. _ETSI_Provision_5_3_1: * - Provision 5.3-1 - All software components in consumer IoT devices should be securely updatable. - R - Y - :ref:`Device firwmware upgrade <dfu>` .. _ETSI_Provision_5_3_2: * - Provision 5.3-2 - When the device is not a constrained device, it shall have an update mechanism for the secure installation of updates. - M C - Y - :ref:`Device firwmware upgrade <dfu>` .. _ETSI_Provision_5_3_3: * - Provision 5.3-3 - An update shall be simple for the user to apply. - M C - N/A - .. _ETSI_Provision_5_3_4: * - Provision 5.3-4 - Automatic mechanisms should be used for software updates. - R C - N/A - .. _ETSI_Provision_5_3_5: * - Provision 5.3-5 - The device should check after initialization, and then periodically, whether security updates are available. - R C - N/A - .. _ETSI_Provision_5_3_6: * - Provision 5.3-6 - If the device supports automatic updates and/or update notifications, these should be enabled in the initialized state and configurable so that the user can enable, disable, or postpone installation of security updates and/or update notifications. - R C - N/A - .. _ETSI_Provision_5_3_7: * - Provision 5.3-7 - The device shall use best practice cryptography to facilitate secure update mechanisms. - M C - Y - :ref:`West Sign <west-sign>` .. _ETSI_Provision_5_3_8: * - Provision 5.3-8 - Security updates shall be timely. - M C - N/A - .. _ETSI_Provision_5_3_9: * - Provision 5.3-9 - The device should verify the authenticity and integrity of software updates. - R C - Y - Functionality provided by `MCUboot <path_to_url`. Also see :ref:`Device Firwmware Upgrade <dfu>` .. _ETSI_Provision_5_3_10: * - Provision 5.3-10 - Where updates are delivered over a network interface, the device shall verify the authenticity and integrity of each update via a trust relationship. - M - N/A - .. _ETSI_Provision_5_3_11: * - Provision 5.3-11 - The manufacturer should inform the user in a recognizable and apparent manner that a security update is required together with information on the risks mitigated by that update. - R C - N/A - .. _ETSI_Provision_5_3_12: * - Provision 5.3-12 - The device should notify the user when the application of a software update will disrupt the basic functioning of the device. - R C - N/A - Zephyr provides this information for its updates. Anyone using Zephyr in their products must check if they are affected .. _ETSI_Provision_5_3_13: * - Provision 5.3-13 - The manufacturer shall publish, in an accessible way that is clear and transparent to the user, the defined support period. - M - Y - :ref:`Release Life Cycle and Maintenance <zephyr_release_cycle>` .. _ETSI_Provision_5_3_14: * - Provision 5.3-14 - For constrained devices that cannot have their software updated, the rationale for the absence of software updates, the period and method of hardware replacement support and a defined support period should be published by the manufacturer in an accessible way that is clear and transparent to the user. - R C - N/A - .. _ETSI_Provision_5_3_15: * - Provision 5.3-15 - For constrained devices that cannot have their software updated, the product should be isolable and the hardware replaceable. - R C - N/A - .. _ETSI_Provision_5_3_16: * - Provision 5.3-16 - The model designation of the consumer IoT device shall be clearly recognizable, either by labelling on the device or via a physical interface. - M - N/A - .. _ETSI_Provision_5_4_1: * - Provision 5.4-1 - Sensitive security parameters in persistent storage shall be stored securely by the device. - M - N - There is not secure storage within Zephyr .. _ETSI_Provision_5_4_2: * - Provision 5.4-2 - Where a hard-coded unique per device identity is used in a device for security purposes, it shall be implemented in such a way that it resists tampering by means such as physical, electrical or software. - M C - N/A - .. _ETSI_Provision_5_4_3: * - Provision 5.4-3 - Hard-coded critical security parameters in device software source code shall not be used. - M - Y - :ref:`Hardening Tool <hardening>` .. _ETSI_Provision_5_4_4: * - Provision 5.4-4 - Any critical security parameters used for integrity and authenticity checks of software updates and for protection of communication with associated services in device software shall be unique per device and shall be produced with a mechanism that reduces the risk of automated attacks against classes of devices. - M - N/A - .. _ETSI_Provision_5_5_1: * - Provision 5.5-1 - The consumer IoT device shall use best practice cryptography to communicate securely. - M - Y - .. _ETSI_Provision_5_5_2: * - Provision 5.5-2 - The consumer IoT device should use reviewed or evaluated implementations to deliver network and security functionalities, particularly in the field of cryptography. - R - Y - .. _ETSI_Provision_5_5_3: * - Provision 5.5-3 - Cryptographic algorithms and primitives should be updatable. - R - N - The whole image must be updated .. _ETSI_Provision_5_5_4: * - Provision 5.5-4 - Access to device functionality via a network interface in the initialized state should only be possible after authentication on that interface. - R - N/A - .. _ETSI_Provision_5_5_5: * - Provision 5.5-5 - Device functionality that allows security-relevant changes in configuration via a network interface shall only be accessible after authentication. The exception is for network service protocols that are relied upon by the device and where the manufacturer cannot guarantee what configuration will be required for the device to operate. - M - N/A - .. _ETSI_Provision_5_5_6: * - Provision 5.5-6 - Critical security parameters should be encrypted in transit, with such encryption appropriate to the properties of the technology, risk and usage. - R - Y - .. _ETSI_Provision_5_5_7: * - Provision 5.5-7 - The consumer IoT device shall protect the confidentiality of critical security parameters that are communicated via remotely accessible network interfaces. - M - Y - .. _ETSI_Provision_5_5_8: * - Provision 5.5-8 - The manufacturer shall follow secure management processes for critical security parameters that relate to the device. - M - N/A - .. _ETSI_Provision_5_6_1: * - Provision 5.6-1 - All unused network and logical interfaces shall be disabled. - M - Y - :ref:`Kconfig <kconfig>` .. _ETSI_Provision_5_6_2: * - Provision 5.6-2 - In the initialized state, the network interfaces of the device shall minimize the unauthenticated disclosure of security-relevant information. - M - Y - .. _ETSI_Provision_5_6_3: * - Provision 5.6-3 - Device hardware should not unnecessarily expose physical interfaces to attack. - R - Y - :ref:`Kconfig <kconfig>` and :ref:`Hardening Tool <hardening>` .. _ETSI_Provision_5_6_4: * - Provision 5.6-4 - Where a debug interface is physically accessible, it shall be disabled in software. - M C - Y - :ref:`Hardening Tool <hardening>` .. _ETSI_Provision_5_6_5: * - Provision 5.6-5 - The manufacturer should only enable software services that are used or required for the intended use or operation of the device. - R - Y - :ref:`Kconfig <kconfig>` and :ref:`Hardening Tool <hardening>` .. _ETSI_Provision_5_6_6: * - Provision 5.6-6 - Code should be minimized to the functionality necessary for the service/device to operate. - R - Y - :ref:`Kconfig <kconfig>` .. _ETSI_Provision_5_6_7: * - Provision 5.6-7 - Software should run with least necessary privileges, taking account of both security and functionality. - R - Y - :ref:`Security Overview <security-overview>` .. _ETSI_Provision_5_6_8: * - Provision 5.6-8 - The device should include a hardware-level access control mechanism for memory. - R - Y - :ref:`Memory protection <memory_domain>` .. _ETSI_Provision_5_6_9: * - Provision 5.6-9 - The manufacturer should follow secure development processes for software deployed on the device. - R - Y - :ref:`Security Overview <security-overview>` and :ref:`Coding guidelines <coding_guidelines>` .. _ETSI_Provision_5_7_1: * - Provision 5.7-1 - The consumer IoT device should verify its software using secure boot mechanisms. - R - Y - Functionality provided by `MCUboot <path_to_url`. Also see :ref:`Security Overview <west-sign>` .. _ETSI_Provision_5_7_2: * - Provision 5.7-2 - If an unauthorized change is detected to the software, the device should alert the user and/or administrator to the issue and should not connect to wider networks than those necessary to perform the alerting function. - R - N - Zephyr does not provide runtime detection / notification. .. _ETSI_Provision_5_8_1: * - Provision 5.8-1 - The confidentiality of personal data transiting between a device and a service, especially associated services, should be protected, with best practice cryptography. - R - Y - .. _ETSI_Provision_5_8_2: * - Provision 5.8-2 - The confidentiality of sensitive personal data communicated between the device and associated services shall be protected, with cryptography appropriate to the properties of the technology and usage. - M - Y - .. _ETSI_Provision_5_8_3: * - Provision 5.8-3 - All external sensing capabilities of the device shall be documented in an accessible way that is clear and transparent for the user. - M - Y - :ref:`sensing` .. _ETSI_Provision_5_9_1: * - Provision 5.9-1 - Resilience should be built in to consumer IoT devices and services, taking into account the possibility of outages of data networks and power. - R - Y - .. _ETSI_Provision_5_9_2: * - Provision 5.9-2 - Consumer IoT devices should remain operating and locally functional in the case of a loss of network access and should recover cleanly in the case of restoration of a loss of power. - R - Y - .. _ETSI_Provision_5_9_3: * - Provision 5.9-3 - The consumer IoT device should connect to networks in an expected, operational and stable state and in an orderly fashion, taking the capability of the infrastructure into consideration. - R - Y - .. _ETSI_Provision_5_10_1: * - Provision 5.10-1 - If telemetry data is collected from consumer IoT devices and services, such as usage and measurement data, it should be examined for security anomalies. - R C - N/A - .. _ETSI_Provision_5_11_1: * - Provision 5.11-1 - The user shall be provided with functionality such that user data can be erased from the device in a simple manner. - M - N/A - .. _ETSI_Provision_5_11_2: * - Provision 5.11-2 - The consumer should be provided with functionality on the device such that personal data can be removed from associated services in a simple manner. - R - N/A - .. _ETSI_Provision_5_11_3: * - Provision 5.11-3 - Users should be given clear instructions on how to delete their personal data. - R - N/A - .. _ETSI_Provision_5_11_4: * - Provision 5.11-4 - Users should be provided with clear confirmation that personal data has been deleted from services, devices and applications. - R - N/A - .. _ETSI_Provision_5_12_1: * - Provision 5.12-1 - Installation and maintenance of consumer IoT should involve minimal decisions by the user and should follow security best practice on usability. - R - N/A - .. _ETSI_Provision_5_12_2: * - Provision 5.12-2 - The manufacturer should provide users with guidance on how to securely set up their device. - R - N/A - .. _ETSI_Provision_5_12_3: * - Provision 5.12-3 - The manufacturer should provide users with guidance on how to check whether their device is securely set up. - R - N/A - .. _ETSI_Provision_5_13_1: * - Provision 5.13-1 - The consumer IoT device software shall validate data input via user interfaces or transferred via Application Programming Interfaces (APIs) or between networks in services and devices. - M - Y - :ref:`Syscall verification <syscall_verification>` and :ref:`Coding guidelines <coding_guidelines>` .. _ETSI_Provision_6_1_1: * - Provision 6.1-1 - The manufacturer shall provide consumers with clear and transparent information about what personal data is processed, how it is being used, by whom, and for what purposes, for each device and service. This also applies to third parties that can be involved, including advertisers. - M - N/A - .. _ETSI_Provision_6_1_2: * - Provision 6.1-2 - Where personal data is processed on the basis of consumers' consent, this consent shall be obtained in a valid way. - M C - N/A - .. _ETSI_Provision_6_1_3: * - Provision 6.1-3 - Consumers who gave consent for the processing of their personal data shall have the capability to withdraw it at any time. - M - N/A - .. _ETSI_Provision_6_1_4: * - Provision 6.1-4 - If telemetry data is collected from consumer IoT devices and services, the processing of personal data should be kept to the minimum necessary for the intended functionality. - R C - N/A - .. _ETSI_Provision_6_1_5: * - Provision 6.1-5 - If telemetry data is collected from consumer IoT devices and services, consumers shall be provided with information on what telemetry data is collected, how it is being used, by whom, and for what purposes. - M C - N/A - .. raw:: latex \end{landscape} ```
/content/code_sandbox/doc/security/standards/etsi-303645.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,008
```restructuredtext .. _rfcs: Proposals and RFCs ################## Many changes, including bug fixes and documentation improvements can be implemented and reviewed via the normal GitHub pull request workflow. Many changes however are "substantial" and need to go through a design process and produce a consensus among the project stakeholders. The "RFC" (request for comments) process is intended to provide a consistent and controlled path for new features to enter the project. Contributors and project stakeholders should consider using this process if they intend to make "substantial" changes to Zephyr or its documentation. Some examples that would benefit from an RFC are: - A new feature that creates new API surface area, and would require a feature flag if introduced. - The modification of an existing stable API. - The removal of features that already shipped as part of Zephyr. - The introduction of new idiomatic usage or conventions, even if they do not include code changes to Zephyr itself. The RFC process is a great opportunity to get more eyeballs on proposals coming from contributors before it becomes a part of Zephyr. Quite often, even proposals that seem "obvious" can be significantly improved once a wider group of interested people have a chance to weigh in. The RFC process can also be helpful to encourage discussions about a proposed feature as it is being designed, and incorporate important constraints into the design while it's easier to change, before the design has been fully implemented. Some changes do not require an RFC: - Rephrasing, reorganizing or refactoring - Addition or removal of warnings - Addition of new boards, SoCs or drivers to existing subsystems - ... The process in itself consists in creating a GitHub issue with the :ref:`RFC label <gh_labels>` that documents the proposal thoroughly. There is an `RFC template`_ included in the main Zephyr GitHub repository that serves as a guideline to write a new RFC. As with Pull Requests, RFCs might require discussion in the context of one of the `Zephyr meetings`_ in order to move it forward in cases where there is either disagreement or not enough voiced opinions in order to proceed. Make sure to either label it appropriately or include it in the corresponding GitHub project in order for it to be examined during the next meeting. .. _`RFC template`: path_to_url .. _`Zephyr meetings`: path_to_url ```
/content/code_sandbox/doc/contribute/proposals_and_rfcs.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
513
```restructuredtext .. _bin-blobs: Binary Blobs ############ In the context of an operating system that supports multiple architectures and many different IC families, some functionality may be unavailable without the help of executable code distributed in binary form. Binary blobs (or blobs for short) are files containing proprietary machine code or data in a binary format, e.g. without corresponding source code released under an OSI approved license. Zephyr supports downloading and using third-party binary blobs via its built-in mechanisms, with some important caveats, described in the following sections. It is important to note that all the information in this section applies only to `upstream (vanilla) Zephyr <path_to_url`_. There are no limitations whatsoever (except perhaps license compatibility) in the support for binary blobs in forks or third-party distributions of Zephyr. In fact, Zephyrs build system supports arbitrary use cases related to blobs. This includes linking against libraries, flashing images to targets, etc. Users are therefore free to create Zephyr-based downstream software which uses binary blobs if they cannot meet the requirements described in this page. Software license **************** Most binary blobs are distributed under proprietary licenses which vary significantly in nature and conditions. It is up to the vendor to specify the license as part of the blob submission process. Blob vendors may impose a click-through or other EULA-like workflow when users fetch and install blobs. Hosting ******* Blobs must be hosted on the Internet and managed by third-party infrastructure. Two potential examples are Git repositories and web servers managed by individual hardware vendors. The Zephyr Project does not host binary blobs in its Git repositories or anywhere else. Fetching blobs ************** Blobs are fetched from official third-party sources by the :ref:`west blobs <west-blobs>` command. The blobs themselves must be specified in the :ref:`module.yml <modules-bin-blobs>` files included in separate Zephyr :ref:`module repositories <modules>` maintained by their respective vendors. This means that in order to include a reference to a binary blob to the upstream Zephyr distribution, a module repository must exist first or be created as part of the submission process. Each blob which may be fetched must be individually identified in the corresponding :file:`module.yml` file. A specification for a blob must contain: - An abstract description of the blob itself - Version information - A reference to vendor-provided documentation - The blobs :ref:`type <bin-blobs-types>`, which must be one of the allowed types - A checksum for the blob, which ``west blobs`` checks after downloading. This is required for reproducibility and to allow bisecting issues as blobs change using Git and west format See the :ref:`corresponding section <modules-bin-blobs>` for a more formal definition of the fields. The :ref:`west blobs <west-blobs>` command can be used to list metadata of available blobs and to fetch blobs from user-selected modules. The ``west blobs`` command only fetches and stores the binary blobs themselves. Any accompanying code, including interface header files for the blobs, must be present in the corresponding module repository. Tainting ******** Inclusion of binary blobs will taint the Zephyr build. The definition of tainting originates in the `Linux kernel <path_to_url`_ and, in the context of Zephyr, a tainted image will be one that includes binary blobs in it. Tainting will be communicated to the user in the following manners: - One or more Kconfig options ``TAINT_BLOBS_*`` will be set to ``y`` - The Zephyr build system, during its configuration phase, will issue a warning. It will be possible to disable the warning using Kconfig - The ``west spdx`` command will include the tainted status in its output - The kernel's default fatal error handler will also explicitly print out the kernel's tainted status .. _bin-blobs-types: Allowed types ************* The following binary blob types are acceptable in Zephyr: * Precompiled libraries: Hardware enablement libraries, distributed in precompiled binary form, typically for SoC peripherals. An example could be an enablement library for a wireless peripheral * Firmware images: An image containing the executable code for a secondary processor or CPU. This can be full or partial (typically delta or patch data) and is generally copied into RAM or flash memory by the main CPU. An example could be the firmware for the core running a Bluetooth LE Controller * Miscellaneous binary data files. An example could be pre-trained neural network model data Hardware agnostic features provided via a proprietary library are not acceptable. For example, a proprietary and hardware agnostic TCP/IP stack distributed as a static archive would be rejected. Note that just because a blob has an acceptable type does not imply that it will be unconditionally accepted by the project; any blob may be rejected for other reasons on a case by case basis (see library-specific requirements below). In case of disagreement, the TSC is the arbiter of whether a particular blob fits in one of the above types. Precompiled library-specific requirements ***************************************** This section contains additional requirements specific to precompiled library blobs. Any person who wishes to submit a precompiled library must represent that it meets these requirements. The project may remove a blob from the upstream distribution if it is discovered that the blob fails to meet these requirements later on. Interface header files ====================== The precompiled library must be accompanied by one or more header files, distributed under a non-copyleft OSI approved license, that define the interface to the library. Allowed dependencies ==================== This section defines requirements related to external symbols that a library blob requires the build system to provide. * The blob must not depend on Zephyr APIs directly. In other words, it must have been possible to build the binary without any Zephyr source code present at all. This is required for loose coupling and maintainability, since Zephyr APIs may change and such blobs cannot be modified by all project maintainers * Instead, if the code in the precompiled library requires functionality provided by Zephyr (or an RTOS in general), an implementation of an OS abstraction layer (aka porting layer) can be provided alongside the library. The implementation of this OS abstraction layer must be in source code form, released under an OSI approved license and documented using Doxygen Toolchain requirements ====================== Precompiled library blobs must be in a data format which is compatible with and can be linked by a toolchain supported by the Zephyr Project. This is required for maintainability and usability. Use of such libraries may require special compiler and/or linker flags, however. For example, a porting layer may require special flags, or a static archive may require use of specific linker flags. Limited scope ============= Allowing arbitrary library blobs carries a risk of degrading the degree to which the upstream Zephyr software distribution is open source. As an extreme example, a target with a zephyr kernel clock driver that is just a porting layer around a library blob would not be bootable with open source software. To mitigate this risk, the scope of upstream library blobs is limited. The project maintainers define an open source test suite that an upstream target must be able to pass using only open source software included in the mainline distribution and its modules. The open source test suite currently consists of: - :file:`samples/philosophers` - :file:`tests/kernel` The scope of this test suite may grow over time. The goal is to specify tests for a minimal feature set which must be supported via open source software for any target with upstream Zephyr support. At the discretion of the release team, the project may remove support for a hardware target if it cannot pass this test suite. Support and maintenance *********************** The Zephyr Project is not expected to be responsible for the maintenance and support of contributed binary blobs. As a consequence, at the discretion of the Zephyr Project release team, and on a case-by-case basis: - GitHub issues reported on the zephyr repository tracker that require use of blobs to reproduce may not be treated as bugs - Such issues may be closed as out of scope of the Zephyr project This does not imply that issues which require blobs to reproduce will be closed without investigation. For example, the issue may be exposing a bug in a Zephyr code path that is difficult or impossible to trigger without a blob. Project maintainers may accept and attempt to resolve such issues. However, some flexibility is required because project maintainers may not be able to determine if a given issue is due to a bug in Zephyr or the blob itself, may be unable to reproduce the bug due to lack of hardware, etc. Blobs must have designated maintainers that must be responsive to issue reports from users and provide updates to the blobs to address issues. At the discretion of the Zephyr Project release team, module revisions referencing blobs may be removed from :file:`zephyr/west.yml` at any time due to lack of responsiveness or support from their maintainers. This is required to maintain project control over bit-rot, security issues, etc. The submitter of the proposal to integrate a binary blob must commit to maintain the integration of such blob for the foreseeable future. Regarding Continuous Integration, binary blobs will **not** be fetched in the project's CI infrastructure that builds and optionally executes tests and samples to prevent regressions and issues from entering the codebase. This includes both CI ran when a new GitHub Pull Request is opened as well as any other regularly scheduled execution of the CI infrastructure. .. _blobs-process: Submission and review process ***************************** For references to binary blobs to be included in the project, they must be reviewed and accepted by the Technical Steering Committee (TSC). This process is only required for new binary blobs, updates to binary blobs follow the :ref:`module update procedure <modules_changes>`. A request for integration with binary blobs must be made by creating a new issue in the Zephyr project issue tracking system on GitHub with details about the blobs and the functionality they provide to the project. Follow the steps below to begin the submission process: #. Make sure to read through the :ref:`bin-blobs` section in detail, so that you are informed of the criteria used by the TSC in order to approve or reject a request #. Use the :github:`New Binary Blobs Issue <new?assignees=&labels=RFC&template=008_bin-blobs.md&title=>` to open an issue #. Fill out all required sections, making sure you provide enough detail for the TSC to assess the merit of the request. Additionally you must also create a Pull Request that demonstrates the integration of the binary blobs and then link to it from the issue #. Wait for feedback from the TSC, respond to any additional questions added as GitHub issue comments If, after consideration by the TSC, the submission of the binary blob(s) is approved, the submission process is complete and the binary blob(s) can be integrated. ```
/content/code_sandbox/doc/contribute/bin_blobs.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,421
```restructuredtext .. _contributor-expectations: Contributor Expectations ######################## The Zephyr project encourages :ref:`contributors <contributor>` to submit changes as smaller pull requests. Smaller pull requests (PRs) have the following benefits: - Reviewed more quickly and reviewed more thoroughly. It's easier for reviewers to set aside a few minutes to review smaller changes several times than it is to allocate large blocks of time to review a large PR. - Less wasted work if reviewers or maintainers reject the direction of the change. - Easier to rebase and merge. Smaller PRs are less likely to conflict with other changes in the tree. - Easier to revert if the PR breaks functionality. .. note:: This page does not apply to draft PRs which can have any size, any number of commits and any combination of smaller PRs for testing and preview purposes. Draft PRs have no review expectation and PRs created as drafts from the start do not notify anyone by default. Defining Smaller PRs ******************** - Smaller PRs should encompass one self-contained logical change. - When adding a new large feature or API, the PR should address only one part of the feature. In this case create an :ref:`RFC proposal <rfcs>` to describe the additional parts of the feature for reviewers. - PRs should include tests or samples under the following conditions: - Adding new features or functionality. - Modifying a feature, especially for API behavior contract changes. - Fixing a hardware agnostic bug. The test should fail without the bug fixed and pass with the fix applied. - PRs must update any documentation affected by a functional code change. - If introducing a new API, the PR must include an example usage of the API. This provides context to the reviewer and prevents submitting PRs with unused APIs. Multiple Commits on a Single PR ******************************* Contributors are further encouraged to break up PRs into multiple commits. Keep in mind each commit in the PR must still build cleanly and pass all the CI tests. For example, when introducing an extension to an API, contributors can break up the PR into multiple commits targeting these specific changes: #. Introduce the new APIs, including shared devicetree bindings #. Update driver implementation X, with driver specific devicetree bindings #. Update driver implementation Y #. Add tests for the new API #. Add a sample using the API #. Update the documentation Large Changes ************* Large changes to the Zephyr project must submit an :ref:`RFC proposal <rfcs>` describing the full scope of change and future work. The RFC proposal provides the required context to reviewers, but allows for smaller, incremental, PRs to get reviewed and merged into the project. The RFC should also define the minimum viable implementation. Changes which require an RFC proposal include: - Submitting a new feature. - Submitting a new API. - :ref:`treewide-changes`. - Other large changes that can benefit from the RFC proposal process. Maintainers have the discretion to request that contributors create an RFC for PRs that are too large or complicated. PR Requirements *************** - Each commit in the PR must provide a commit message following the :ref:`commit-guidelines`. - The PR description must include a summary of the changes and their rationales. - All files in the PR must comply with :ref:`Licensing Requirements<licensing_requirements>`. - Follow the Zephyr :ref:`coding_style` and :ref:`coding_guidelines`. - PRs must pass all CI checks. This is a requirement to merge the PR. Contributors may mark a PR as draft and explicitly request reviewers to provide early feedback, even with failing CI checks. - When breaking a PR into multiple commits, each commit must build cleanly. The CI system does not enforce this policy, so it is the PR author's responsibility to verify. - When major new functionality is added, tests for the new functionality shall be added to the automated test suite. All API functions should have test cases and there should be tests for the behavior contracts of the API. Maintainers and reviewers have the discretion to determine if the provided tests are sufficient. The examples below demonstrate best practices on how to test APIs effectively. - :zephyr_file:`Kernel timer tests <tests/kernel/timer/timer_behavior>` provide around 85% test coverage for the :zephyr_file:`kernel timer <kernel/timer.c>`, measured by lines of code. - Emulators for off-chip peripherals are an effective way to test driver APIs. The :zephyr_file:`fuel gauge tests <tests/drivers/fuel_gauge/sbs_gauge>` use the :zephyr_file:`smart battery emulator <drivers/fuel_gauge/sbs_gauge/emul_sbs_gauge.c>`, providing test coverage for the :zephyr_file:`fuel gauge API <include/zephyr/drivers/fuel_gauge.h>` and the :zephyr_file:`smart battery driver <drivers/fuel_gauge/sbs_gauge/sbs_gauge.c>`. - Code coverage reports for the Zephyr project are available on `Codecov`_. - Incompatible changes to APIs must also update the release notes for the next release detailing the change. APIs marked as experimental are excluded from this requirement. - Changes to APIs must increment the API version number according to the API version rules. - PRs must also satisfy all :ref:`merge_criteria` before a member of the release engineering team merges the PR into the zephyr tree. Maintainers may request that contributors break up a PR into smaller PRs and may request that they create an :ref:`RFC proposal <rfcs>`. .. _`Codecov`: path_to_url Workflow Suggestions That Help Reviewers ======================================== - Unless they applied the reviewer's recommendation exactly, authors must not resolve and hide comments, they must let the initial reviewer do it. The Zephyr project does not require all comments to be resolved before merge. Leaving some completed discussions open can sometimes be useful to understand the greater picture. - Respond to comments using the "Start Review" and "Add Review" green buttons in the "Files changed" view. This allows responding to multiple comments and publishing the responses in bulk. This reduces the number of emails sent to reviewers. - As GitHub does not implement |git range-diff|_, try to minimize rebases in the middle of a review. If a rebase is required, push this as a separate update with no other changes since the last push of the PR. When pushing a rebase only, add a comment to the PR indicating which commit is the rebase. .. |git range-diff| replace:: ``git range-diff`` .. _`git range-diff`: path_to_url PR Review Escalation ==================== The Zephyr community is a diverse group of individuals, with different levels of commitment and priorities. As such, reviewers and maintainers may not get to a PR right away. The `Zephyr Dev Meeting`_ performs a triage of PRs missing reviewer approval, following this process: #. Identify and update PRs missing an Assignee. #. Identify PRs without any comments or reviews, ping the PR Assignee to start a review or assign to a different maintainer. #. For PRs that have otherwise stalled, the Zephyr Dev Meeting pings the Assignee and any reviewers that have left comments on the PR. Contributors may escalate PRs outside of the Zephyr Dev Meeting triage process as follows: - After 1 week of inactivity, ping the Assignee or reviewers on the PR by adding a comment to the PR. - After 2 weeks of inactivity, post a message on the `#pr-help`_ channel on Discord linking to the PR. - After 2 weeks of inactivity, add the `dev-review`_ label to the PR. This explicitly adds the PR to the agenda for the next `Zephyr Dev Meeting`_ independent of the triage process. Not all contributors have the required privileges to add labels to PRs, in this case the contributor should request help on Discord or send an email to the `Zephyr devel mailing list`_. Note that for new PRs, contributors should generally wait for at least one Zephyr Dev Meeting before escalating the PR themselves. .. _Zephyr devel mailing list: path_to_url .. _pr_technical_escalation: PR Technical Escalation ======================= In cases where a contributor objects to change requests from reviewers, Zephyr defines the following escalation process for resolving technical disagreements. Before escalation of technical disagreements, follow the steps below: - Resolve in the PR among assignee, maintainers and reviewer. - Assignee to act as moderator if applicable. - Optionally resolve in the next `Zephyr Dev Meeting`_ meeting with more Maintainers and project stakeholders. - The involved parties and the Assignee to be present when the issue is discussed. - If no progress is made, the assignee (maintainer) has the right to dismiss stale, unrelated or irrelevant change requests by reviewers giving the reviewers a minimum of 1 business day to respond and revisit their initial change requests or start the escalation process. The assignee has the responsibility to document the reasoning for dismissing any reviews in the PR and should notify the reviewer about their review being dismissed. To give the reviewers time to respond and escalate, the assignee is expected to block the PR from being merged either by not approving the PR or by setting the *DNM* label. Escalation can be triggered by any party participating in the review process (assignee, reviewers or the original author of the change) following the steps below: - Escalate to the `Architecture Working Group`_ by adding the `Architecture Review` label on the PR. Beside the weekly meeting where such escalations are processed, the `Architecture Working Group`_ shall facilitate an offline review of the escalation if requested, especially if any of the parties can't attend the meeting. - If all avenues of resolution and escalation have failed, assignees can escalate to the TSC and get a binding resolution in the TSC by adding the *TSC* label on the PR. - The Assignee is expected to ensure the resolution of the escalation and the outcome is documented in the related pull request or issues on Github. .. _#pr-help: path_to_url .. _dev-review: path_to_url .. _Zephyr Dev Meeting: path_to_url#zephyr-dev-meeting .. _Architecture Project: path_to_url .. _Architecture Working Group: path_to_url .. _reviewer-expectations: Reviewer Expectations ********************* - Be respectful when commenting on PRs. Refer to the Zephyr `Code of Conduct`_ for more details. - The Zephyr Project recognizes that reviewers and maintainers have limited bandwidth. As a reviewer, prioritize review requests in the following order: #. PRs related to items in the `Zephyr Release Plan`_ or those targeting the next release during the stabilization period (after RC1). #. PRs where the reviewer has requested blocking changes. #. PRs assigned to the reviewer as the area maintainer. #. All other PRs. - Reviewers shall strive to advance the PR to a mergeable state with their feedback and engagement with the PR author. - Try to provide feedback on the entire PR in one shot. This provides the contributor an opportunity to address all comments in the next PR update. - Partial reviews are permitted, but the reviewer must add a comment indicating what portion of the PR they reviewed. Examples of useful partial reviews include: - Domain specific reviews (e.g. Devicetree). - Code style changes that impact the readability of the PR. - Reviewing commits separately when the requested changes cascade into the later commits. - Avoid increasing scope of the PR by requesting new features, especially when there is a corresponding :ref:`RFC <rfcs>` associated with the PR. Instead, reviewers should add suggestions as a comment to the :ref:`RFC <rfcs>`. This also encourages more collaboration as it is easier for multiple contributors to work on a feature once the minimum implementation has merged. - When using the "Request Changes" option, mark trivial, non-functional, requests as "Non-blocking" in the comment. Reviewers should approve PRs once only non-blocking changes remain. The PR author has discretion as to whether they address all non-blocking comments. PR authors should acknowledge every review comment in some way, even if it's just with an emoticon. - Reviewers shall be *clear* and *concise* what changes they are requesting when the "Request Changes" option is used. Requested changes shall be in the scope of the PR in question and following the contribution and style guidelines of the project. - Reviewers shall not close a PR due to technical or structural disagreement. If requested changes cannot be resolved within the review process, the :ref:`pr_technical_escalation` path shall be used for any potential resolution path, which may include closing the PR. .. _Code of Conduct: path_to_url .. _Zephyr Release Plan: path_to_url ```
/content/code_sandbox/doc/contribute/contributor_expectations.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,935
```restructuredtext .. _contribute_guidelines: Contribution Guidelines ####################### As an open-source project, we welcome and encourage the community to submit patches directly to the project. In our collaborative open source environment, standards and methods for submitting changes help reduce the chaos that can result from an active development community. This document explains how to participate in project conversations, log bugs and enhancement requests, and submit patches to the project so your patch will be accepted quickly in the codebase. .. _licensing_requirements: Licensing ********* Licensing is very important to open source projects. It helps ensure the software continues to be available under the terms that the author desired. .. _Apache 2.0 license: path_to_url .. _GitHub repo: path_to_url Zephyr uses the `Apache 2.0 license`_ (as found in the LICENSE file in the project's `GitHub repo`_) to strike a balance between open contribution and allowing you to use the software however you would like to. The Apache 2.0 license is a permissive open source license that allows you to freely use, modify, distribute and sell your own products that include Apache 2.0 licensed software. (For more information about this, check out articles such as `Why choose Apache 2.0 licensing`_ and .. _Why choose Apache 2.0 licensing: path_to_url#1571346989065-9216c551-f523 path_to_url A license tells you what rights you have as a developer, as provided by the copyright holder. It is important that the contributor fully understands the licensing rights and agrees to them. Sometimes the copyright holder isn't the contributor, such as when the contributor is doing work on behalf of a company. =============================== There are some imported or reused components of the Zephyr project that use other licensing, as described in :ref:`Zephyr_Licensing`. Importing code into the Zephyr OS from other projects that use a license other than the Apache 2.0 license needs to be fully understood in context and approved by the Zephyr governing board. By carefully reviewing potential contributions and also enforcing a :ref:`DCO` for contributed code, we can ensure that the Zephyr community can develop products with the Zephyr Project without concerns over patent or copyright issues. See :ref:`external-contributions` for more information about this contributing and review process for imported components. .. only:: latex .. toctree:: :maxdepth: 1 ../LICENSING.rst .. _copyrights: ******************* Linux Foundation. .. _Community Best Practice: path_to_url .. _DCO: Developer Certification of Origin (DCO) *************************************** To make a good faith effort to ensure licensing criteria are met, the Zephyr project requires the Developer Certificate of Origin (DCO) process to be followed. The DCO is an attestation attached to every contribution made by every developer. In the commit message of the contribution, (described more fully later in this document), the developer simply adds a ``Signed-off-by`` statement and thereby agrees to the DCO. When a developer submits a patch, it is a commitment that the contributor has the right to submit the patch per the license. The DCO agreement is shown below and at path_to_url .. code-block:: none Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as Indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. DCO Sign-Off ============ The "sign-off" in the DCO is a "Signed-off-by:" line in each commit's log message. The Signed-off-by: line must be in the following format:: Signed-off-by: Your Name <your.email@example.com> For your commits, replace: - ``Your Name`` with your legal name (pseudonyms, hacker handles, and the names of groups are not allowed) - ``your.email@example.com`` with the same email address you are using to author the commit (CI will fail if there is no match) You can automatically add the Signed-off-by: line to your commit body using ``git commit -s``. Use other commits in the zephyr git history as examples. See :ref:`git_setup` for instructions on configuring user and email settings in Git. Additional requirements: - If you are altering an existing commit created by someone else, you must add your Signed-off-by: line without removing the existing one. - If you forget to add the Signed-off-by: line, you can add it to your previous commit by running ``git commit --amend -s``. - If you've pushed your changes to GitHub already you'll need to force push your branch after this with ``git push -f``. Notes ===== Any contributions made as part of submitted pull requests are considered free for the Project to use. Developers are permitted to cherry-pick patches that are included in pull requests submitted by other contributors. It is expected that * the content of the patches will not be substantially modified, * the cherry-picked commits or portions of a commit shall preserve the original sign-off messages and the author identity. :ref:`modifying_contributions` describes additional recommended policies around working with contributions submitted by other developers. Prerequisites ************* .. _Zephyr Project website: path_to_url As a contributor, you'll want to be familiar with the Zephyr project, how to configure, install, and use it as explained in the `Zephyr Project website`_ and how to set up your development environment as introduced in the Zephyr :ref:`getting_started`. You should be familiar with common developer tools such as Git and CMake, and platforms such as GitHub. If you haven't already done so, you'll need to create a (free) GitHub account on path_to_url and have Git tools available on your development system. .. note:: The Zephyr development workflow supports all 3 major operating systems (Linux, macOS, and Windows) but some of the tools used in the sections below are only available on Linux and macOS. On Windows, instead of running these tools yourself, you will need to rely on the Continuous Integration (CI) service using Github Actions, which runs automatically on GitHub when you submit your Pull Request (PR). You can see any failure results in the workflow details link near the end of the PR conversation list. See `Continuous Integration`_ for more information .. _source_tree_v2: Source Tree Structure ********************* To clone the main Zephyr Project repository use the instructions in :ref:`get_the_code`. This section describes the main repository's source tree. In addition to the Zephyr kernel itself, you'll also find the sources for technical documentation, sample code, supported board configurations, and a collection of subsystem tests. All of these are available for developers to contribute to and enhance. Understanding the Zephyr source tree can help locate the code associated with a particular Zephyr feature. At the top of the tree, several files are of importance: :file:`CMakeLists.txt` The top-level file for the CMake build system, containing a lot of the logic required to build Zephyr. :file:`Kconfig` The top-level Kconfig file, which refers to the file :file:`Kconfig.zephyr` also found in the top-level directory. See :ref:`the Kconfig section of the manual <kconfig>` for detailed Kconfig documentation. :file:`west.yml` The :ref:`west` manifest, listing the external repositories managed by the west command-line tool. The Zephyr source tree also contains the following top-level directories, each of which may have one or more additional levels of subdirectories not described here. :file:`arch` Architecture-specific kernel and system-on-chip (SoC) code. Each supported architecture (for example, x86 and ARM) has its own subdirectory, which contains additional subdirectories for the following areas: * architecture-specific kernel source files * architecture-specific kernel include files for private APIs :file:`soc` SoC related code and configuration files. :file:`boards` Board related code and configuration files. :file:`doc` Zephyr technical documentation source files and tools used to generate the path_to_url web content. :file:`drivers` Device driver code. :file:`dts` :ref:`devicetree <dt-guide>` source files used to describe non-discoverable board-specific hardware details. :file:`include` Include files for all public APIs, except those defined under :file:`lib`. :file:`kernel` Architecture-independent kernel code. :file:`lib` Library code, including the minimal standard C library. :file:`misc` Miscellaneous code that doesn't belong to any of the other top-level directories. :file:`samples` Sample applications that demonstrate the use of Zephyr features. :file:`scripts` Various programs and other files used to build and test Zephyr applications. :file:`cmake` Additional build scripts needed to build Zephyr. :file:`subsys` Subsystems of Zephyr, including: * USB device stack code * Networking code, including the Bluetooth stack and networking stacks * File system code * Bluetooth host and controller :file:`tests` Test code and benchmarks for Zephyr features. :file:`share` Additional architecture independent data. It currently contains Zephyr's CMake package. Pull Requests and Issues ************************ .. _Zephyr Project Issues: path_to_url .. _open pull requests: path_to_url .. _Zephyr devel mailing list: path_to_url .. _Zephyr Discord Server: path_to_url Before starting on a patch, first check in our issues `Zephyr Project Issues`_ system to see what's been reported on the issue you'd like to address. Have a conversation on the `Zephyr devel mailing list`_ (or the `Zephyr Discord Server`_) to see what others think of your issue (and proposed solution). You may find others that have encountered the issue you're finding, or that have similar ideas for changes or additions. Send a message to the `Zephyr devel mailing list`_ to introduce and discuss your idea with the development community. It's always a good practice to search for existing or related issues before submitting your own. When you submit an issue (bug or feature request), the triage team will review and comment on the submission, typically within a few business days. You can find all `open pull requests`_ on GitHub and open `Zephyr Project Issues`_ in Github issues. .. _git_setup: Git Setup ********* We need to know who you are, and how to contact you. To add this information to your Git installation, set the Git configuration variables ``user.name`` to your full name, and ``user.email`` to your email address. For example, if your name is ``Zephyr Developer`` and your email address is ``z.developer@example.com``: .. code-block:: console git config --global user.name "Zephyr Developer" git config --global user.email "z.developer@example.com" Pull Request Guidelines *********************** When opening a new Pull Request, adhere to the following guidelines to ensure compliance with Zephyr standards and facilitate the review process. If in doubt, it's advisible to explore existing Pull Requests within the Zephyr repository. Use the search filters and labels to locate PRs related to changes similar to the ones you are proposing. .. _commit-guidelines: Commit Message Guidelines ========================= Changes are submitted as Git commits. Each commit has a *commit message* describing the change. Acceptable commit messages look like this: .. code-block:: none [area]: [summary of change] [Commit message body (must be non-empty)] Signed-off-by: [Your Full Name] <[your.email@address]> You need to change text in square brackets (``[like this]``) above to fit your commit. Examples and more details follow. Example ------- Here is an example of a good commit message. .. code-block:: none drivers: sensor: abcd1234: fix bus I/O error handling The abcd1234 sensor driver is failing to check the flags field in the response packet from the device which signals that an error occurred. This can lead to reading invalid data from the response buffer. Fix it by checking the flag and adding an error path. Signed-off-by: Zephyr Developer <z.developer@example.com> [area]: [summary of change] --------------------------- This line is called the commit's *title*. Titles must be: * one line * less than 72 characters long * followed by a completely blank line [area] The ``[area]`` prefix usually identifies the area of code being changed. It can also identify the change's wider context if multiple areas are affected. Here are some examples: * ``doc: ...`` for documentation changes * ``drivers: foo:`` for ``foo`` driver changes * ``Bluetooth: Shell:`` for changes to the Bluetooth shell * ``net: ethernet:`` for Ethernet-related networking changes * ``dts:`` for treewide devicetree changes * ``style:`` for code style changes If you're not sure what to use, try running ``git log FILE``, where ``FILE`` is a file you are changing, and using previous commits that changed the same file as inspiration. [summary of change] The ``[summary of change]`` part should be a quick description of what you've done. Here are some examples: * ``doc: update wiki references to new site`` * ``drivers: sensor: sensor_shell: fix channel name collision`` Commit Message Body ------------------- .. warning:: An empty commit message body is not permitted. Even for trivial changes, please include a descriptive commit message body. Your pull request will fail CI checks if you do not. This part of the commit should explain what your change does, and why it's needed. Be specific. A body that says ``"Fixes stuff"`` will be rejected. Be sure to include the following as relevant: * **what** the change does, * **why** you chose that approach, * **what** assumptions were made, and * **how** you know it works -- for example, which tests you ran. Each line in your commit message should usually be 75 characters or less. Use newlines to wrap longer lines. Exceptions include lines with long URLs, email addresses, etc. For examples of accepted commit messages, you can refer to the Zephyr GitHub `changelog <path_to_url`__. Signed-off-by: ... ------------------ .. tip:: You should have set your :ref:`git_setup` already. Create your commit with ``git commit -s`` to add the Signed-off-by: line automatically using this information. For open source licensing reasons, your commit must include a Signed-off-by: line that looks like this: .. code-block:: none Signed-off-by: [Your Full Name] <[your.email@address]> For example, if your full name is ``Zephyr Developer`` and your email address is ``z.developer@example.com``: .. code-block:: none Signed-off-by: Zephyr Developer <z.developer@example.com> This means that you have personally made sure your change complies with the :ref:`DCO`. For this reason, you must use your legal name. Pseudonyms or "hacker aliases" are not permitted. Your name and the email address you use must match the name and email in the Git commit's ``Author:`` field. See the :ref:`contributor-expectations` for a more complete discussion of contributor and reviewer expectations. Adding links ------------ .. _GitHub references: path_to_url Do not include `GitHub references`_ in the commit message directly, as it can lose meaning in case the repository is forked, for example. Instead, if the change addresses a specific GitHub issue, include in the Pull Request message a line of the form: .. code-block:: none Fixes #[issue number] Where ``[issue number]`` is the relevant GitHub issue's number. For example: .. code-block:: none Fixes: #1234 You can point to other relevant information that can be found on the web using :code:`Link:` tags. This includes, for example: GitHub issues, datasheets, reference manuals, etc. .. code-block:: none Link: path_to_url number> .. _coding_style: Coding Style ============ .. _Linux kernel coding style: path_to_url In general, follow the `Linux kernel coding style`_, with the following exceptions: * The line length is 100 columns or fewer. In the documentation, longer lines for URL references are an allowed exception. * Add braces to every ``if``, ``else``, ``do``, ``while``, ``for`` and ``switch`` body, even for single-line code blocks. Use the ``--ignore BRACES`` flag to make *checkpatch* stop complaining. * Use spaces instead of tabs to align comments after declarations, as needed. * Use C89-style single line comments, ``/* */``. The C99-style single line comment, ``//``, is not allowed. * Use ``/** */`` for doxygen comments that need to appear in the documentation. * Avoid using binary literals (constants starting with ``0b``). * Avoid using non-ASCII symbols in code, unless it significantly improves clarity, avoid emojis in any case. Use these coding guidelines to ensure that your development complies with the project's style and naming conventions. The Linux kernel GPL-licensed tool ``checkpatch`` is used to check coding style conformity. .. note:: checkpatch does not currently run on Windows. Checkpatch is available in the scripts directory. To invoke it when committing code, make the file *$ZEPHYR_BASE/.git/hooks/pre-commit* executable and edit it to contain: .. code-block:: bash #!/bin/sh set -e exec exec git diff --cached | ${ZEPHYR_BASE}/scripts/checkpatch.pl - Instead of running checkpatch at each commit, you may prefer to run it only before pushing on zephyr repo. To do this, make the file *$ZEPHYR_BASE/.git/hooks/pre-push* executable and edit it to contain: .. code-block:: bash #!/bin/sh remote="$1" url="$2" z40=0000000000000000000000000000000000000000 echo "Run push hook" while read local_ref local_sha remote_ref remote_sha do args="$remote $url $local_ref $local_sha $remote_ref $remote_sha" exec ${ZEPHYR_BASE}/scripts/series-push-hook.sh $args done exit 0 If you want to override checkpatch verdict and push you branch despite reported issues, you can add option --no-verify to the git push command. A more complete alternative to this is using :ref:`check_compliance_py` script. clang-format ------------ The `clang-format tool <path_to_url`_ can be helpful to quickly reformat large amounts of new source code to our `Coding Style`_ standards together with the ``.clang-format`` configuration file provided in the repository. ``clang-format`` is well integrated into most editors, but you can also run it manually like this: .. code-block:: bash clang-format -i my_source_file.c ``clang-format`` is part of LLVM, which can be downloaded from the project `releases page <path_to_url`_. Note that if you are a Linux user, ``clang-format`` will likely be available as a package in your distribution repositories. When there are differences between the `Coding Style`_ guidelines and the formatting generated by code formatting tools, the `Coding Style`_ guidelines take precedence. If there is ambiguity between formatting tools and the guidelines, maintainers may decide which style should be adopted. .. _Continuous Integration: Continuous Integration (CI) =========================== The Zephyr Project operates a Continuous Integration (CI) system that runs on every Pull Request (PR) in order to verify several aspects of the PR: * Git commit formatting * Coding Style * Twister builds for multiple architectures and boards * Documentation build to verify any doc changes CI is run on Github Actions and it uses the same tools described in the `CI Tests`_ section. The CI results must be green indicating "All checks have passed" before the Pull Request can be merged. CI is run when the PR is created, and again every time the PR is modified with a commit. The current status of the CI run can always be found at the bottom of the GitHub PR page, below the review status. Depending on the success or failure of the run you will see: * "All checks have passed" * "All checks have failed" In case of failure you can click on the "Details" link presented below the failure message in order to navigate to ``Github Actions`` and inspect the results. Once you click on the link you will be taken to the ``Github actions`` summary results page where a table with all the different builds will be shown. To see what build or test failed click on the row that contains the failed (i.e. non-green) build. .. _CI Tests: Running CI Tests Locally ======================== .. _check_compliance_py: check_compliance.py ------------------- The ``check_compliance.py`` script serves as a valuable tool for assessing code compliance with Zephyr's established guidelines and best practices. The script acts as wrapper for a suite of tools that performs various checks, including linters and formatters. Developers are encouraged to run the script locally to validate their changes before opening a new Pull Request: .. code-block:: bash ./scripts/ci/check_compliance.py -c upstream/main.. twister ------- .. note:: twister is only fully supported on Linux; on Windows and MacOS the execution of tests is not supported, only building. If you think your change may break some test, you can submit your PR as a draft and let the project CI automatically run the :ref:`twister_script` for you. If a test fails, you can check from the CI run logs how to rerun it locally, for example: .. code-block:: bash west twister -p native_sim -s tests/drivers/build_all/sensor/sensors.generic_test .. _static_analysis: Static Code Analysis ******************** Coverity Scan is a free service for static code analysis of Open Source projects. It is based on Coverity's commercial product and is able to analyze C, C++ and Java code. Coverity's static code analysis doesn't run the code. Instead of that it uses abstract interpretation to gain information about the code's control flow and data flow. It's able to follow all possible code paths that a program may take. For example the analyzer understands that malloc() returns a memory that must be freed with free() later. It follows all branches and function calls to see if all possible combinations free the memory. The analyzer is able to detect all sorts of issues like resource leaks (memory, file descriptors), NULL dereferencing, use after free, unchecked return values, dead code, buffer overflows, integer overflows, uninitialized variables, and many more. The results are available on the `Coverity Scan <path_to_url`_ website. In order to access the results you have to create an account yourself. From the Zephyr project page, you may select "Add me to project" to be added to the project. New members must be approved by an admin. Static analysis of the Zephyr codebase is conducted on a bi-weekly basis. GitHub issues are automatically created for any issues detected by static analysis tools. These issues will have the same (or equivalent) priority initially defined by the tool. To ensure accountability and efficient issue resolution, they are assigned to the respective maintainer who is responsible for the affected code. A dedicated team comprising members with expertise in static analysis, code quality, and software security ensures the effectiveness of the static analysis process and verifies that identified issues are properly triaged and resolved in a timely manner. Workflow ======== If after analyzing the Coverity report it is concluded that it is a false positive please set the classification to either "False positive" or "Intentional", the action to "Ignore", owner to your own account and add a comment why the issue is considered false positive or intentional. Update the related Github issue in the zephyr project with the details, and only close it after completing the steps above on scan service website. Any issues closed without a fix or without ignoring the entry in the scan service will be automatically reopened if the issue continues to be present in the code. .. _Contribution workflow: Contribution Workflow ********************* One general practice we encourage, is to make small, controlled changes. This practice simplifies review, makes merging and rebasing easier, and keeps the change history clear and clean. When contributing to the Zephyr Project, it is also important you provide as much information as you can about your change, update appropriate documentation, and test your changes thoroughly before submitting. The general GitHub workflow used by Zephyr developers uses a combination of command line Git commands and browser interaction with GitHub. As it is with Git, there are multiple ways of getting a task done. We'll describe a typical workflow here: .. _Create a Fork of Zephyr: path_to_url#fork-destination-box #. `Create a Fork of Zephyr`_ to your personal account on GitHub. (Click on the fork button in the top right corner of the Zephyr project repo page in GitHub.) #. On your development computer, change into the :file:`zephyr` folder that was created when you :ref:`obtained the code <get_the_code>`:: cd zephyrproject/zephyr Rename the default remote pointing to the `upstream repository <path_to_url`_ from ``origin`` to ``upstream``:: git remote rename origin upstream Let Git know about the fork you just created, naming it ``origin``:: git remote add origin path_to_url github id>/zephyr and verify the remote repos:: git remote -v The output should look similar to:: origin path_to_url github id>/zephyr (fetch) origin path_to_url github id>/zephyr (push) upstream path_to_url (fetch) upstream path_to_url (push) #. Create a topic branch (off of ``main``) for your work (if you're addressing an issue, we suggest including the issue number in the branch name):: git checkout main git checkout -b fix_comment_typo Some Zephyr subsystems do development work on a separate branch from ``main`` so you may need to indicate this in your checkout:: git checkout -b fix_out_of_date_patch origin/net #. Make changes, test locally, change, test, test again, ... (Check out the prior chapter on `twister`_ as well). #. When things look good, start the pull request process by adding your changed files:: git add [file(s) that changed, add -p if you want to be more specific] You can see files that are not yet staged using:: git status #. Verify changes to be committed look as you expected:: git diff --cached #. Commit your changes to your local repo:: git commit -s The ``-s`` option automatically adds your ``Signed-off-by:`` to your commit message. Your commit will be rejected without this line that indicates your agreement with the :ref:`DCO`. See the :ref:`commit-guidelines` section for specific guidelines for writing your commit messages. #. Push your topic branch with your changes to your fork in your personal GitHub account:: git push origin fix_comment_typo #. In your web browser, go to your forked repo and click on the ``Compare & pull request`` button for the branch you just worked on and you want to open a pull request with. #. Review the pull request changes, and verify that you are opening a pull request for the ``main`` branch. The title and message from your commit message should appear as well. #. A bot will assign one or more suggested reviewers (based on the MAINTAINERS file in the repo). If you are a project member, you can select additional reviewers now too. #. Click on the submit button and your pull request is sent and awaits review. Email will be sent as review comments are made, or you can check on your pull request at path_to_url .. note:: As more commits are merged upstream, the GitHub PR page will show a ``This branch is out-of-date with the base branch`` message and a ``Update branch`` button on the PR page. That message should be ignored, as the commits will be rebased as part of merging anyway, and triggering a branch update from the GitHub UI will cause the PR approvals to be dropped. #. While you're waiting for your pull request to be accepted and merged, you can create another branch to work on another issue. (Be sure to make your new branch off of ``main`` and not the previous branch.):: git checkout main git checkout -b fix_another_issue and use the same process described above to work on this new topic branch. #. If reviewers do request changes to your patch, you can interactively rebase commit(s) to fix review issues. In your development repo:: git rebase -i <offending-commit-id>^ In the interactive rebase editor, replace ``pick`` with ``edit`` to select a specific commit (if there's more than one in your pull request), or remove the line to delete a commit entirely. Then edit files to fix the issues in the review. As before, inspect and test your changes. When ready, continue the patch submission:: git add [file(s)] git rebase --continue Update commit comment if needed, and continue:: git push --force origin fix_comment_typo By force pushing your update, your original pull request will be updated with your changes so you won't need to resubmit the pull request. #. After pushing the requested change, check on the PR page if there is a merge conflict. If so, rebase your local branch:: git fetch --all git rebase --ignore-whitespace upstream/main The ``--ignore-whitespace`` option stops ``git apply`` (called by rebase) from changing any whitespace. Resolve the conflicts and push again:: git push --force origin fix_comment_typo .. note:: While amending commits and force pushing is a common review model outside GitHub, and the one recommended by Zephyr, it's not the main model supported by GitHub. Forced pushes can cause unexpected behavior, such as not being able to use "View Changes" buttons except for the last one - GitHub complains it can't find older commits. You're also not always able to compare the latest reviewed version with the latest submitted version. When rewriting history GitHub only guarantees access to the latest version. #. If the CI run fails, you will need to make changes to your code in order to fix the issues and amend your commits by rebasing as described above. Additional information about the CI system can be found in `Continuous Integration`_. .. _contribution_tips: Contribution Tips ================= The following is a list of tips to improve and accelerate the review process of Pull Requests. If you follow them, chances are your pull request will get the attention needed and it will be ready for merge sooner than later: .. _git-rebase: path_to_url#Documentation/git-rebase.txt---keep-base #. When pushing follow-up changes, use the ``--keep-base`` option of `git-rebase`_ #. On the PR page, check if the change can still be merged with no merge conflicts #. Make sure title of PR explains what is being fixed or added #. Make sure your PR has a body with more details about the content of your submission #. Make sure you reference the issue you are fixing in the body of the PR #. Watch early CI results immediately after submissions and fix issues as they are discovered #. Revisit PR after 1-2 hours to see the status of all CI checks, make sure all is green #. If you get request for changes and submit a change to address them, make sure you click the "Re-request review" button on the GitHub UI to notify those who asked for the changes Submitting Proposals ==================== You can request a new feature or submit a proposal by submitting an issue to our GitHub Repository. If you would like to implement a new feature, please submit an issue with a proposal (RFC) for your work first, to be sure that we can use it. Please consider what kind of change it is: * For a Major Feature, first open an issue and outline your proposal so that it can be discussed. This will also allow us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project. Providing the following information will increase the chances of your issue being dealt with quickly: * Overview of the Proposal * Motivation for or Use Case * Design Details * Alternatives * Test Strategy * Small Features can be crafted and directly submitted as a Pull Request. Identifying Contribution Origin =============================== When adding a new file to the tree, it is important to detail the source of origin on the file, provide attributions, and detail the intended usage. In cases where the file is an original to Zephyr, the commit message should include the following ("Original" is the assumption if no Origin tag is present):: Origin: Original In cases where the file is :ref:`imported from an external project <external-contributions>`, the commit message shall contain details regarding the original project, the location of the project, the SHA-id of the origin commit for the file and the intended purpose. For example, a copy of a locally maintained import:: Origin: Contiki OS URL: path_to_url commit: 853207acfdc6549b10eb3e44504b1a75ae1ad63a Purpose: Introduction of networking stack. For example, a copy of an externally maintained import in a module repository:: Origin: Tiny Crypt URL: path_to_url commit: 08ded7f21529c39e5133688ffb93a9d0c94e5c6e Purpose: Introduction of TinyCrypt Contributions to External Modules ********************************** Follow the guidelines in the :ref:`modules` section for contributing :ref:`new modules <submitting_new_modules>` and submitting changes to :ref:`existing modules <changes_to_existing_module>`. .. _treewide-changes: Treewide Changes **************** This section describes contributions that are treewide changes and some additional associated requirements that apply to them. These requirements exist to try to give such changes increased review and user visibility due to their large impact. Definition and Decision Making ============================== A *treewide change* is defined as any change to Zephyr APIs, coding practices, or other development requirements that either implies required changes throughout the zephyr source code repository or can reasonably be expected to do so for a wide class of external Zephyr-based source code. This definition is informal by necessity. This is because the decision on whether any particular change is treewide can be subjective and may depend on additional context. Project maintainers should use good judgement and prioritize the Zephyr developer experience when deciding when a proposed change is treewide. Protracted disagreements can be resolved by the Zephyr Project's Technical Steering Committee (TSC), but please avoid premature escalation to the TSC. Requirements for Treewide Changes ================================= - The zephyr repository must apply the 'treewide' GitHub label to any issues or pull requests that are treewide changes - The person proposing a treewide change must create an `RFC issue <path_to_url`_ describing the change, its rationale and impact, etc. before any pull requests related to the change can be merged - The project's `Architecture Working Group (WG) <path_to_url`_ must include the issue on the agenda and discuss whether the project will accept or reject the change before any pull requests related to the change can be merged (with escalation to the TSC if consensus is not reached at the WG) - The Architecture WG must specify the procedure for merging any PRs associated with each individual treewide change, including any required approvals for pull requests affecting specific subsystems or extra review time requirements - The person proposing a treewide change must email devel@lists.zephyrproject.org about the RFC if it is accepted by the Architecture WG before any pull requests related to the change can be merged Examples ======== Some example past treewide changes are: - the deprecation of version 1 of the :ref:`Logging API <logging_api>` in favor of version 2 (see commit `262cc55609 <path_to_url`_) - the removal of support for a legacy :ref:`dt-bindings` syntax (`6bf761fc0a <path_to_url`_) Note that adding a new version of a widely used API while maintaining support for the old one is not a treewide change. Deprecation and removal of such APIs, however, are treewide changes. Specialized driver requirements ******************************* Drivers for standalone devices should use the Zephyr bus APIs (SPI, I2C...) whenever possible so that the device can be used with any SoC from any vendor implementing a compatible bus. If it is not technically possible to achieve full performance using the Zephyr APIs due to specialized accelerators in a particular SoC family, one could extend the support for an external device by providing a specialized path for that SoC family. However, the driver must still provide a regular path (via Zephyr APIs) for all other SoCs. Every exception must be approved by the Architecture WG in order to be validated and potentially to be learned/improved from. ```
/content/code_sandbox/doc/contribute/guidelines.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,727
```restructuredtext .. _doc_guidelines: Documentation Guidelines ######################## .. highlight:: rst .. note:: For instructions on building the documentation, see :ref:`zephyr_doc`. Zephyr Project content is written using the `reStructuredText`_ markup language (.rst file extension) with Sphinx extensions, and processed using Sphinx to create a formatted standalone website. Developers can view this content either in its raw form as .rst markup files, or (with Sphinx installed) they can :ref:`build the documentation <zephyr_doc>` locally to generate the documentation in HTML or PDF format. The HTML content can then be viewed using a web browser. This same .rst content is served by the `Zephyr documentation`_ website. You can read details about `reStructuredText`_ and about `Sphinx extensions`_ from their respective websites. .. _Sphinx extensions: path_to_url .. _reStructuredText: path_to_url .. _Sphinx Inline Markup: path_to_url#inline-markup .. _Zephyr documentation: path_to_url This document provides a quick reference for commonly used reST and Sphinx-defined directives and roles used to create the documentation you're reading. Headings ******** While reST allows use of both and overline and matching underline to indicate a heading, we only use an underline indicator for headings. * Document title (h1) use "#" for the underline character * First section heading level (h2) use "*" * Second section heading level (h3) use "=" * Third section heading level (h4) use "-" The heading underline must be at least as long as the title it's under. For example:: This is a title heading ####################### some content goes here First section heading ********************* Content Highlighting ******************** Some common reST inline markup samples: * one asterisk: ``*text*`` for emphasis (*italics*), * two asterisks: ``**text**`` for strong emphasis (**boldface**), and * two backquotes: ````text```` for ``inline code`` samples. If asterisks or backquotes appear in running text and could be confused with inline markup delimiters, you can eliminate the confusion by adding a backslash (``\``) before it. Lists ***** For bullet lists, place an asterisk (``*``) or hyphen (``-``) at the start of a paragraph and indent continuation lines with two spaces. The first item in a list (or sublist) must have a blank line before it and should be indented at the same level as the preceding paragraph (and not indented itself). For numbered lists start with a 1. or a. for example, and continue with autonumbering by using a ``#`` sign. Indent continuation lines with three spaces:: * This is a bulleted list. * It has two items, the second item and has more than one line of reST text. Additional lines are indented to the first character of the text of the bullet list. 1. This is a new numbered list. If the wasn't a blank line before it, it would be a continuation of the previous list (or paragraph). #. It has two items too. a. This is a numbered list using alphabetic list headings #. It has three items (and uses autonumbering for the rest of the list) #. Here's the third item #. This is an autonumbered list (default is to use numbers starting with 1). #. This is a second-level list under the first item (also autonumbered). Notice the indenting. #. And a second item in the nested list. #. And a second item back in the containing list. No blank line needed, but it wouldn't hurt for readability. Definition lists (with a term and its definition) are a convenient way to document a word or phrase with an explanation. For example this reST content:: The Makefile has targets that include: html Build the HTML output for the project clean Remove all generated output, restoring the folders to a clean state. Would be rendered as: The Makefile has targets that include: html Build the HTML output for the project clean Remove all generated output, restoring the folders to a clean state. Multi-column lists ****************** If you have a long bullet list of items, where each item is short, you can indicate the list items should be rendered in multiple columns with a special ``.. rst-class:: rst-columns`` directive. The directive will apply to the next non-comment element (e.g., paragraph), or to content indented under the directive. For example, this unordered list:: .. rst-class:: rst-columns * A list of * short items * that should be * displayed * horizontally * so it doesn't * use up so much * space on * the page would be rendered as: .. rst-class:: rst-columns * A list of * short items * that should be * displayed * horizontally * so it doesn't * use up so much * space on * the page A maximum of three columns will be displayed, and change based on the available width of the display window, reducing to one column on narrow (phone) screens if necessary. We've deprecated use of the ``hlist`` directive because it misbehaves on smaller screens. Tables ****** There are a few ways to create tables, each with their limitations or quirks. `Grid tables <path_to_url#grid-tables>`_ offer the most capability for defining merged rows and columns, but are hard to maintain:: +------------------------+------------+----------+----------+ | Header row, column 1 | Header 2 | Header 3 | Header 4 | | (header rows optional) | | | | +========================+============+==========+==========+ | body row 1, column 1 | column 2 | column 3 | column 4 | +------------------------+------------+----------+----------+ | body row 2 | ... | ... | you can | +------------------------+------------+----------+ easily + | body row 3 with a two column span | ... | span | +------------------------+------------+----------+ rows + | body row 4 | ... | ... | too | +------------------------+------------+----------+----------+ This example would render as: +------------------------+------------+----------+----------+ | Header row, column 1 | Header 2 | Header 3 | Header 4 | | (header rows optional) | | | | +========================+============+==========+==========+ | body row 1, column 1 | column 2 | column 3 | column 4 | +------------------------+------------+----------+----------+ | body row 2 | ... | ... | you can | +------------------------+------------+----------+ easily + | body row 3 with a two column span | ... | span | +------------------------+------------+----------+ rows + | body row 4 | ... | ... | too | +------------------------+------------+----------+----------+ `List tables <path_to_url#list-table>`_ are much easier to maintain, but don't support row or column spans:: .. list-table:: Table title :widths: 15 20 40 :header-rows: 1 * - Heading 1 - Heading 2 - Heading 3 * - body row 1, column 1 - body row 1, column 2 - body row 1, column 3 * - body row 2, column 1 - body row 2, column 2 - body row 2, column 3 This example would render as: .. list-table:: Table title :widths: 15 20 40 :header-rows: 1 * - Heading 1 - Heading 2 - Heading 3 * - body row 1, column 1 - body row 1, column 2 - body row 1, column 3 * - body row 2, column 1 - body row 2, column 2 - body row 2, column 3 The ``:widths:`` parameter lets you define relative column widths. The default is equal column widths. If you have a three-column table and you want the first column to be half as wide as the other two equal-width columns, you can specify ``:widths: 1 2 2``. If you'd like the browser to set the column widths automatically based on the column contents, you can use ``:widths: auto``. File names and Commands *********************** Sphinx extends reST by supporting additional inline markup elements (called "roles") used to tag text with special meanings and allow style output formatting. (You can refer to the `Sphinx Inline Markup`_ documentation for the full list). For example, there are roles for marking :file:`filenames` (``:file:`name```) and command names such as :command:`make` (``:command:`make```). You can also use the \`\`inline code\`\` markup (double backticks) to indicate a ``filename``. For references to files that are in the Zephyr GitHub tree, a special role can be used that creates a hyperlink to that file. For example a reference to the reST file used to create this document can be generated using ``:zephyr_file:`doc/contribute/documentation/guidelines.rst``` that will show up as :zephyr_file:`doc/contribute/documentation/guidelines.rst`, a link to the "blob" file in the github repo. There's also a ``:zephyr_raw:`doc/contribute/documentation/guidelines.rst``` role that will link to the "raw" content, :zephyr_raw:`doc/contribute/documentation/guidelines.rst`. (You can click on these links to see the difference.) .. _internal-linking: Internal Cross-Reference Linking ******************************** Traditional ReST links are only supported within the current file using the notation:: Refer to the `internal-linking`_ page which renders as, Refer to the `internal-linking`_ page Note the use of a trailing underscore to indicate an outbound link. In this example, the label was added immediately before a heading, so the text that's displayed is the heading text itself. You can change the text that's displayed as the link writing this as:: Refer to the `show this text instead <internal-linking_>`_ page which renders as, Refer to the `show this text instead <internal-linking_>`_ page External Cross-Reference Linking ******************************** With Sphinx's help, we can create link-references to any tagged text within the Zephyr Project documentation. Target locations in a document are defined with a label directive:: .. _my label name: Heading ======= Note the leading underscore indicating an inbound link. The content immediately following this label must be a heading, and is the target for a ``:ref:`my label name``` reference from anywhere within the Zephyr documentation. The heading text is shown when referencing this label. You can also change the text that's displayed for this link, such as:: :ref:`some other text <my label name>` To enable easy cross-page linking within the site, each file should have a reference label before its title so it can be referenced from another file. These reference labels must be unique across the whole site, so generic names such as "samples" should be avoided. For example the top of this document's .rst file is:: .. _doc_guidelines: Documentation Guidelines for the Zephyr Project ############################################### Other .rst documents can link to this document using the ``:ref:`doc_guidelines``` tag and it will show up as :ref:`doc_guidelines`. This type of internal cross reference works across multiple files, and the link text is obtained from the document source so if the title changes, the link text will update as well. You can also define links to any URL and then reference it in your document. For example, with this label definition in the document:: .. _Zephyr Wikipedia Page: path_to_url you can reference it with:: Read the `Zephyr Wikipedia Page`_ for more information about the project. \`any\` links ************* Within the Zephyr project, we've defined the default role to be "any", meaning if you just write a phrase in back-ticks, e.g., ```doc_guidelines```, Sphinx will search through all domains looking for something called doc_guidelines to link to. In this case it will find the label at the top of this document, and link to `doc_guidelines`. This can be useful for linking to doxygen-generated links for function names and such, but will cause a warning such as:: WARNING: 'any' reference target not found: doc_giudelines if you misspelled ```doc_guidelines``` as ```doc_giudelines```. Non-ASCII Characters ******************** You can insert non-ASCII characters such as a Trademark symbol (|trade|), by using the notation ``|trade|``. Available replacement names are defined in an include file used during the Sphinx processing of the reST files. The names of these replacement characters are the same as used in HTML entities used to insert characters in HTML, e.g., \&trade; and are defined in the file ``sphinx_build/substitutions.txt`` as listed here: .. literalinclude:: ../../substitutions.txt :language: rst We've kept the substitutions list small but others can be added as needed by submitting a change to the ``substitutions.txt`` file. Code and Command Examples ************************* Use the reST ``code-block`` directive to create a highlighted block of fixed-width text, typically used for showing formatted code or console commands and output. Smart syntax highlighting is also supported (using the Pygments package). You can also directly specify the highlighting language. For example:: .. code-block:: c struct k_object { char *name; uint8_t perms[CONFIG_MAX_THREAD_BYTES]; uint8_t type; uint8_t flags; uint32_t data; } __packed; Note the blank line between the ``code-block`` directive and the first line of the code-block body, and the body content is indented three spaces (to the first non-white space of the directive name). This would be rendered as: .. code-block:: c struct k_object { char *name; uint8_t perms[CONFIG_MAX_THREAD_BYTES]; uint8_t type; uint8_t flags; uint32_t data; } __packed; Other languages are of course supported (see `languages supported by Pygments`_), and in particular, you are encouraged to make use of the following when appropriate: .. _`languages supported by Pygments`: path_to_url * ``c`` for C code * ``cpp`` for C++ code * ``python`` for Python code * ``console`` for console output, i.e. interactive shell sessions where commands are prefixed by a prompt (ex. ``$`` for Linux, or ``uart:~$`` for Zephyr's shell), and where the output is also shown. The commands will be highlighted, and the output will not. What's more, copying code block using the "copy" button will automatically copy just the commands, excluding the prompt and the outputs of the commands. * ``shell`` or ``bash`` for shell commands. Both languages get highlighted the same but you may use ``bash`` for conveying that the commands are bash-specific, and ``shell`` for generic shell commands. .. note:: Do not use ``bash`` or ``shell`` if your code block includes a prompt, use ``console`` instead. Reciprocally, do not use ``console`` if your code block does not include a prompt and is not showcasing an interactive session with command(s) and their output. .. list-table:: When to use ``bash``/``shell`` vs. ``console`` :class: wrap-normal :header-rows: 1 :widths: 20,40,40 * - Use case - ``code-block`` snippet - Expected output * - One or several commands, no output - .. code-block:: rst .. code-block:: shell echo "Hello World!" - .. code-block:: shell echo "Hello World!" * - An interactive shell session with command(s) and their output - .. code-block:: rst .. code-block:: console $ echo "Hello World!" Hello World! - .. code-block:: console $ echo "Hello World!" Hello World! * - An interactive Zephyr shell session, with commands and their outputs - .. code-block:: rst .. code-block:: console uart:~$ version Zephyr version 3.5.99 uart:~$ kernel uptime Uptime: 20970 ms - .. code-block:: console uart:~$ version Zephyr version 3.5.99 uart:~$ kernel uptime Uptime: 20970 ms * ``bat`` for Windows batch files * ``cfg`` for config files with "KEY=value" entries (ex. Kconfig ``.conf`` files) * ``cmake`` for CMake * ``devicetree`` for Devicetree * ``kconfig`` for Kconfig * ``yaml`` for YAML * ``rst`` for reStructuredText When no language is specified, the language is set to ``none`` and the code block is not highlighted. You may also use ``none`` explicitly to achieve the same result; for example:: .. code-block:: none This would be a block of text styled with a background and box, but with no syntax highlighting. Would display as: .. code-block:: none This would be a block of text styled with a background and box, but with no syntax highlighting. There's a shorthand for writing code blocks too: end the introductory paragraph with a double colon (``::``) and indent the code block content that follows it by three spaces. On output, only one colon will be shown. The code block will have no highlighting (i.e. ``none``). You may however use the ``.. highlight::`` directive to customize the default language used in your document (see for example how this is done at the beginning of this very document). Images ****** Images are included in documentation by using an image directive:: .. image:: ../../images/doc-gen-flow.png :align: center :alt: alt text for the image or if you'd like to add an image caption, use:: .. figure:: ../../images/doc-gen-flow.png :alt: image description Caption for the figure The file name specified is relative to the document source file, and we recommend putting images into an ``images`` folder where the document source is found. The usual image formats handled by a web browser are supported: JPEG, PNG, GIF, and SVG. Keep the image size only as large as needed, generally at least 500 px wide but no more than 1000 px, and no more than 250 KB unless a particularly large image is needed for clarity. Tabs, spaces, and indenting *************************** Indenting is significant in reST file content, and using spaces is preferred. Extra indenting can (unintentionally) change the way content is rendered too. For lists and directives, indent the content text to the first non-white space in the preceding line. For example:: * List item that spans multiple lines of text showing where to indent the continuation line. 1. And for numbered list items, the continuation line should align with the text of the line above. .. code-block:: The text within a directive block should align with the first character of the directive name. Refer to the Zephyr :ref:`coding_style` for additional requirements. zephyr-app-commands Directive ***************************** .. include:: ../../_extensions/zephyr/application.py :start-line: 10 :start-after: ''' :end-before: ''' For example, the ``.. zephyr-app-commands`` listed above would render like this in the generated HTML output: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: qemu_x86 :goals: build Alternative Tabbed Content ************************** As introduced in the :ref:`getting_started`, you can provide alternative content to the reader via a tabbed interface. When the reader clicks on a tab, the content for that tab is displayed, for example:: .. tabs:: .. tab:: Apples Apples are green, or sometimes red. .. tab:: Pears Pears are green. .. tab:: Oranges Oranges are orange. will display as: .. tabs:: .. tab:: Apples Apples are green, or sometimes red. .. tab:: Pears Pears are green. .. tab:: Oranges Oranges are orange. Tabs can also be grouped, so that changing the current tab in one area changes all tabs with the same name throughout the page. For example: .. tabs:: .. group-tab:: Linux Linux Line 1 .. group-tab:: macOS macOS Line 1 .. group-tab:: Windows Windows Line 1 .. tabs:: .. group-tab:: Linux Linux Line 2 .. group-tab:: macOS macOS Line 2 .. group-tab:: Windows Windows Line 2 In this latter case, we're using ``.. group-tab::`` instead of simply ``.. tab::``. Under the hood, we're using the `sphinx-tabs <path_to_url`_ extension that's included in the Zephyr setup. Within a tab, you can have most any content *other than a heading* (code-blocks, ordered and unordered lists, pictures, paragraphs, and such). You can read more about sphinx-tabs from the link above. ```
/content/code_sandbox/doc/contribute/documentation/guidelines.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,020
```restructuredtext .. _zephyr_doc: Documentation Generation ######################## These instructions will walk you through generating the Zephyr Project's documentation on your local system using the same documentation sources as we use to create the online documentation found at path_to_url .. _documentation-overview: Documentation overview ********************** Zephyr Project content is written using the reStructuredText markup language (.rst file extension) with Sphinx extensions, and processed using Sphinx to create a formatted stand-alone website. Developers can view this content either in its raw form as .rst markup files, or you can generate the HTML content and view it with a web browser directly on your workstation. This same .rst content is also fed into the Zephyr Project's public website documentation area (with a different theme applied). You can read details about `reStructuredText`_, and `Sphinx`_ from their respective websites. The project's documentation contains the following items: * ReStructuredText source files used to generate documentation found at the path_to_url website. Most of the reStructuredText sources are found in the ``/doc`` directory, but others are stored within the code source tree near their specific component (such as ``/samples`` and ``/boards``) * Doxygen-generated material used to create all API-specific documents also found at path_to_url * Script-generated material for kernel configuration options based on Kconfig files found in the source code tree .. graphviz:: :caption: Schematic of the documentation build process digraph { rankdir=LR images [shape="rectangle" label=".png, .jpg\nimages"] rst [shape="rectangle" label="restructuredText\nfiles"] conf [shape="rectangle" label="conf.py\nconfiguration"] rtd [shape="rectangle" label="read-the-docs\ntheme"] header [shape="rectangle" label="c header\ncomments"] xml [shape="rectangle" label="XML"] html [shape="rectangle" label="HTML\nweb site"] sphinx[shape="ellipse" label="sphinx +\nbreathe,\ndocutils"] images -> sphinx rst -> sphinx conf -> sphinx header -> doxygen doxygen -> xml xml-> sphinx rtd -> sphinx sphinx -> html } The reStructuredText files are processed by the Sphinx documentation system, and make use of the breathe extension for including the doxygen-generated API material. Additional tools are required to generate the documentation locally, as described in the following sections. .. _documentation-processors: Installing the documentation processors *************************************** Our documentation processing has been tested to run with: * Doxygen version 1.8.13 * Graphviz 2.43 * Latexmk version 4.56 * All Python dependencies listed in the repository file ``doc/requirements.txt`` In order to install the documentation tools, first install Zephyr as described in :ref:`getting_started`. Then install additional tools that are only required to generate the documentation, as described below: .. doc_processors_installation_start .. tabs:: .. group-tab:: Linux Common to all Linux installations, install the Python dependencies required to build the documentation: .. code-block:: console pip install -U -r ~/zephyrproject/zephyr/doc/requirements.txt On Ubuntu Linux: .. code-block:: console sudo apt-get install --no-install-recommends doxygen graphviz librsvg2-bin \ texlive-latex-base texlive-latex-extra latexmk texlive-fonts-recommended imagemagick On Fedora Linux: .. code-block:: console sudo dnf install doxygen graphviz texlive-latex latexmk \ texlive-collection-fontsrecommended librsvg2-tools ImageMagick On Clear Linux: .. code-block:: console sudo swupd bundle-add texlive graphviz ImageMagick On Arch Linux: .. code-block:: console sudo pacman -S graphviz doxygen librsvg texlive-core texlive-bin \ texlive-latexextra texlive-fontsextra imagemagick .. group-tab:: macOS Install the Python dependencies required to build the documentation: .. code-block:: console pip install -U -r ~/zephyrproject/zephyr/doc/requirements.txt Use ``brew`` and ``tlmgr`` to install the tools: .. code-block:: console brew install doxygen graphviz mactex librsvg imagemagick tlmgr install latexmk tlmgr install collection-fontsrecommended .. group-tab:: Windows Install the Python dependencies required to build the documentation: .. code-block:: console pip install -U -r %HOMEPATH$\zephyrproject\zephyr\doc\requirements.txt Open a ``cmd.exe`` window as **Administrator** and run the following command: .. code-block:: console choco install doxygen.install graphviz strawberryperl miktex rsvg-convert imagemagick .. note:: On Windows, the Sphinx executable ``sphinx-build.exe`` is placed in the ``Scripts`` folder of your Python installation path. Depending on how you have installed Python, you might need to add this folder to your ``PATH`` environment variable. Follow the instructions in `Windows Python Path`_ to add those if needed. .. doc_processors_installation_end Documentation presentation theme ******************************** Sphinx supports easy customization of the generated documentation appearance through the use of themes. Replace the theme files and do another ``make html`` and the output layout and style is changed. The ``read-the-docs`` theme is installed as part of the :ref:`install_py_requirements` step you took in the getting started guide. Running the documentation processors ************************************ The ``/doc`` directory in your cloned copy of the Zephyr project git repo has all the .rst source files, extra tools, and Makefile for generating a local copy of the Zephyr project's technical documentation. Assuming the local Zephyr project copy is in a folder ``zephyr`` in your home folder, here are the commands to generate the html content locally: .. code-block:: console # On Linux/macOS cd ~/zephyr/doc # On Windows cd %userprofile%\zephyr\doc # Use cmake to configure a Ninja-based build system: cmake -GNinja -B_build . # Enter the build directory cd _build # To generate HTML output, run ninja on the generated build system: ninja html # If you modify or add .rst files, run ninja again: ninja html # To generate PDF output, run ninja on the generated build system: ninja pdf .. warning:: The documentation build system creates copies in the build directory of every .rst file used to generate the documentation, along with dependencies referenced by those .rst files. This means that Sphinx warnings and errors refer to the **copies**, and **not the version-controlled original files in Zephyr**. Be careful to make sure you don't accidentally edit the copy of the file in an error message, as these changes will not be saved. Depending on your development system, it will take up to 15 minutes to collect and generate the HTML content. When done, you can view the HTML output with your browser started at ``doc/_build/html/index.html`` and if generated, the PDF file is available at ``doc/_build/latex/zephyr.pdf``. If you want to build the documentation from scratch just delete the contents of the build folder and run ``cmake`` and then ``ninja`` again. .. note:: If you add or remove a file from the documentation, you need to re-run CMake. On Unix platforms a convenience :zephyr_file:`doc/Makefile` can be used to build the documentation directly from there: .. code-block:: console cd ~/zephyr/doc # To generate HTML output make html # To generate PDF output make pdf Filtering expected warnings *************************** There are some known issues with Sphinx/Breathe that generate Sphinx warnings even though the input is valid C code. While these issues are being considered for fixing we have created a Sphinx extension that allows to filter them out based on a set of regular expressions. The extension is named ``zephyr.warnings_filter`` and it is located at ``doc/_extensions/zephyr/warnings_filter.py``. The warnings to be filtered out can be added to the ``doc/known-warnings.txt`` file. The most common warning reported by Sphinx/Breathe is related to duplicate C declarations. This warning may be caused by different Sphinx/Breathe issues: - Multiple declarations of the same object are not supported - Different objects (e.g. a struct and a function) can not share the same name - Nested elements (e.g. in a struct or union) can not share the same name Developer-mode Document Building ******************************** When making and testing major changes to the documentation, we provide an option to temporarily stub-out the auto-generated Devicetree bindings documentation so the doc build process runs faster. To enable this mode, set the following option when invoking cmake:: -DDT_TURBO_MODE=1 or invoke make with the following target:: cd ~/zephyr # To generate HTML output without detailed Kconfig make html-fast Viewing generated documentation locally *************************************** The generated HTML documentation can be hosted locally with python for viewing with a web browser: .. code-block:: console $ python3 -m http.server -d _build/html .. note:: WSL2 users may need to explicitly bind the address to ``127.0.0.1`` in order to be accessible from the host machine: .. code-block:: console $ python3 -m http.server -d _build/html --bind 127.0.0.1 Linking external Doxygen projects against Zephyr ************************************************ External projects that build upon Zephyr functionality and wish to refer to Zephyr documentation in Doxygen (through the use of @ref), can utilize the tag file exported at `zephyr.tag </doxygen/html/zephyr.tag>`_ Once downloaded, the tag file can be used in a custom ``doxyfile.in`` as follows:: TAGFILES = "/path/to/zephyr.tag=path_to_url" For additional information refer to `Doxygen External Documentation`_. .. _reStructuredText: path_to_url .. _Sphinx: path_to_url .. _Windows Python Path: path_to_url#finding-the-python-executable .. _Doxygen External Documentation: path_to_url ```
/content/code_sandbox/doc/contribute/documentation/generation.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,349
```restructuredtext .. _coding_guidelines: Coding Guidelines ################# The project TSC and the Safety Committee of the project agreed to implement a staged and incremental approach for complying with a set of coding rules (AKA Coding Guidelines) to improve quality and consistency of the code base. Below are the agreed upon stages: Stage I (COMPLETED) Coding guideline rules are available to be followed and referenced, but not enforced. Rules are not yet enforced in CI and pull-requests cannot be blocked by reviewers/approvers due to violations. Stage II Begin enforcement on a limited scope of the code base. Initially, this would be the safety certification scope. For rules easily applied across codebase, we should not limit compliance to initial scope. This step requires tooling, CI setup and an enforcement strategy. Stage III Revisit the coding guideline rules and based on experience from previous stages, refine/iterate on selected rules. Stage IV Expand enforcement to the wider codebase. Exceptions may be granted on some areas of the codebase with a proper justification. Exception would require TSC approval. .. note:: Coding guideline rules may be removed/changed at any time by filing a GH issue/RFC. .. important:: **Current stage:** The prerequisites for entering **Stage II** are currently being looked at: The tooling is in evaluation, CI setup and `enforcement strategy <path_to_url`__ is being worked on. Main rules ********** The coding guideline rules are based on MISRA-C 2012 and are a subset of MISRA-C. The subset is listed in the table below with a summary of the rules, its severity and the equivalent rules from other standards for reference. .. note:: For existing Zephyr maintainers and collaborators, if you are unable to obtain a copy through your employer, a limited number of copies will be made available through the project. If you need a copy of MISRA-C 2012, please send email to safety@lists.zephyrproject.org and provide details on reason why you can't obtain one through other options and expected contributions once you have one. The safety committee will review all requests. .. list-table:: Main rules :header-rows: 1 :widths: 17 14 43 12 14 * - MISRA C 2012 - Severity - Description - CERT C - Example .. _MisraC_Dir_1_1: * - Dir 1.1 - Required - Any implementation-defined behaviour on which the output of the program depends shall be documented and understood - `MSC09-C <path_to_url`_ - `Dir 1.1 <path_to_url`_ .. _MisraC_Dir_2_1: * - Dir 2.1 - Required - All source files shall compile without any compilation errors - N/A - `Dir 2.1 <path_to_url`_ .. _MisraC_Dir_3_1: * - Dir 3.1 - Required - All code shall be traceable to documented requirements - N/A - `Dir 3.1 <path_to_url`_ .. _MisraC_Dir_4_1: * - Dir 4.1 - Required - Run-time failures shall be minimized - N/A - `Dir 4.1 <path_to_url`_ .. _MisraC_Dir_4_2: * - Dir 4.2 - Advisory - All usage of assembly language should be documented - N/A - `Dir 4.2 <path_to_url`_ .. _MisraC_Dir_4_4: * - Dir 4.4 - Advisory - Sections of code should not be commented out - `MSC04-C <path_to_url`_ - `Dir 4.4 <path_to_url`_ .. _MisraC_Dir_4_5: * - Dir 4.5 - Advisory - Identifiers in the same name space with overlapping visibility should be typographically unambiguous - `DCL02-C <path_to_url`_ - `Dir 4.5 <path_to_url`_ .. _MisraC_Dir_4_6: * - Dir 4.6 - Advisory - typedefs that indicate size and signedness should be used in place of the basic numerical types - N/A - `Dir 4.6 <path_to_url`_ .. _MisraC_Dir_4_7: * - Dir 4.7 - Required - If a function returns error information, then that error information shall be tested - N/A - `Dir 4.7 <path_to_url`_ .. _MisraC_Dir_4_8: * - Dir 4.8 - Advisory - If a pointer to a structure or union is never dereferenced within a translation unit, then the implementation of the object should be hidden - `DCL12-C <path_to_url`_ - | `Dir 4.8 example 1 <path_to_url`_ | `Dir 4.8 example 2 <path_to_url`_ .. _MisraC_Dir_4_9: * - Dir 4.9 - Advisory - A function should be used in preference to a function-like macro where they are interchangeable - `PRE00-C <path_to_url`_ - `Dir 4.9 <path_to_url`_ .. _MisraC_Dir_4_10: * - Dir 4.10 - Required - Precautions shall be taken in order to prevent the contents of a header file being included more than once - `PRE06-C <path_to_url`_ - `Dir 4.10 <path_to_url`_ .. _MisraC_Dir_4_11: * - Dir 4.11 - Required - The validity of values passed to library functions shall be checked - N/A - `Dir 4.11 <path_to_url`_ .. _MisraC_Dir_4_12: * - Dir 4.12 - Required - Dynamic memory allocation shall not be used - `STR01-C <path_to_url`_ - `Dir 4.12 <path_to_url`_ .. _MisraC_Dir_4_13: * - Dir 4.13 - Advisory - Functions which are designed to provide operations on a resource should be called in an appropriate sequence - N/A - `Dir 4.13 <path_to_url`_ .. _MisraC_Dir_4_14: * - Dir 4.14 - Required - The validity of values received from external sources shall be checked - N/A - `Dir 4.14 <path_to_url`_ .. _MisraC_Rule_1_2: * - Rule 1.2 - Advisory - Language extensions should not be used - `MSC04-C <path_to_url`_ - `Rule 1.2 <path_to_url`_ .. _MisraC_Rule_1_3: * - Rule 1.3 - Required - There shall be no occurrence of undefined or critical unspecified behaviour - N/A - `Rule 1.3 <path_to_url`_ .. _MisraC_Rule_2_1: * - Rule 2.1 - Required - A project shall not contain unreachable code - `MSC07-C <path_to_url`_ - | `Rule 2.1 example 1 <path_to_url`_ | `Rule 2.1 example 2 <path_to_url`_ .. _MisraC_Rule_2_2: * - Rule 2.2 - Required - There shall be no dead code - `MSC12-C <path_to_url`_ - `Rule 2.2 <path_to_url`_ .. _MisraC_Rule_2_3: * - Rule 2.3 - Advisory - A project should not contain unused type declarations - N/A - `Rule 2.3 <path_to_url`_ .. _MisraC_Rule_2_6: * - Rule 2.6 - Advisory - A function should not contain unused label declarations - N/A - `Rule 2.6 <path_to_url`_ .. _MisraC_Rule_2_7: * - Rule 2.7 - Advisory - There should be no unused parameters in functions - N/A - `Rule 2.7 <path_to_url`_ .. _MisraC_Rule_3_1: * - Rule 3.1 - Required - The character sequences /* and // shall not be used within a comment - `MSC04-C <path_to_url`_ - `Rule 3.1 <path_to_url`_ .. _MisraC_Rule_3_2: * - Rule 3.2 - Required - Line-splicing shall not be used in // comments - N/A - `Rule 3.2 <path_to_url`_ .. _MisraC_Rule_4_1: * - Rule 4.1 - Required - Octal and hexadecimal escape sequences shall be terminated - `MSC09-C <path_to_url`_ - `Rule 4.1 <path_to_url`_ .. _MisraC_Rule_4_2: * - Rule 4.2 - Advisory - Trigraphs should not be used - `PRE07-C <path_to_url`_ - `Rule 4.2 <path_to_url`_ .. _MisraC_Rule_5_1: * - Rule 5.1 - Required - External identifiers shall be distinct - `DCL23-C <path_to_url`_ - | `Rule 5.1 example 1 <path_to_url`_ | `Rule 5.1 example 2 <path_to_url`_ .. _MisraC_Rule_5_2: * - Rule 5.2 - Required - Identifiers declared in the same scope and name space shall be distinct - `DCL23-C <path_to_url`_ - `Rule 5.2 <path_to_url`_ .. _MisraC_Rule_5_3: * - Rule 5.3 - Required - An identifier declared in an inner scope shall not hide an identifier declared in an outer scope - `DCL23-C <path_to_url`_ - `Rule 5.3 <path_to_url`_ .. _MisraC_Rule_5_4: * - Rule 5.4 - Required - Macro identifiers shall be distinct - `DCL23-C <path_to_url`_ - `Rule 5.4 <path_to_url`_ .. _MisraC_Rule_5_5: * - Rule 5.5 - Required - Identifiers shall be distinct from macro names - `DCL23-C <path_to_url`_ - `Rule 5.5 <path_to_url`_ .. _MisraC_Rule_5_6: * - Rule 5.6 - Required - A typedef name shall be a unique identifier - N/A - `Rule 5.6 <path_to_url`_ .. _MisraC_Rule_5_7: * - Rule 5.7 - Required - A tag name shall be a unique identifier - N/A - `Rule 5.7 <path_to_url`_ .. _MisraC_Rule_5_8: * - Rule 5.8 - Required - Identifiers that define objects or functions with external linkage shall be unique - N/A - | `Rule 5.8 example 1 <path_to_url`_ | `Rule 5.8 example 2 <path_to_url`_ .. _MisraC_Rule_5_9: * - Rule 5.9 - Advisory - Identifiers that define objects or functions with internal linkage should be unique - N/A - | `Rule 5.9 example 1 <path_to_url`_ | `Rule 5.9 example 2 <path_to_url`_ .. _MisraC_Rule_6_1: * - Rule 6.1 - Required - Bit-fields shall only be declared with an appropriate type - `INT14-C <path_to_url`_ - `Rule 6.1 <path_to_url`_ .. _MisraC_Rule_6_2: * - Rule 6.2 - Required - Single-bit named bit fields shall not be of a signed type - `INT14-C <path_to_url`_ - `Rule 6.2 <path_to_url`_ .. _MisraC_Rule_7_1: * - Rule 7.1 - Required - Octal constants shall not be used - `DCL18-C <path_to_url`_ - `Rule 7.1 <path_to_url`_ .. _MisraC_Rule_7_2: * - Rule 7.2 - Required - A u or U suffix shall be applied to all integer constants that are represented in an unsigned type - N/A - `Rule 7.2 <path_to_url`_ .. _MisraC_Rule_7_3: * - Rule 7.3 - Required - The lowercase character l shall not be used in a literal suffix - `DCL16-C <path_to_url`_ - `Rule 7.3 <path_to_url`_ .. _MisraC_Rule_7_4: * - Rule 7.4 - Required - A string literal shall not be assigned to an object unless the objects type is pointer to const-qualified char - N/A - `Rule 7.4 <path_to_url`_ .. _MisraC_Rule_8_1: * - Rule 8.1 - Required - Types shall be explicitly specified - N/A - `Rule 8.1 <path_to_url`_ .. _MisraC_Rule_8_2: * - Rule 8.2 - Required - Function types shall be in prototype form with named parameters - `DCL20-C <path_to_url`_ - `Rule 8.2 <path_to_url`_ .. _MisraC_Rule_8_3: * - Rule 8.3 - Required - All declarations of an object or function shall use the same names and type qualifiers - N/A - `Rule 8.3 <path_to_url`_ .. _MisraC_Rule_8_4: * - Rule 8.4 - Required - A compatible declaration shall be visible when an object or function with external linkage is defined - N/A - `Rule 8.4 <path_to_url`_ .. _MisraC_Rule_8_5: * - Rule 8.5 - Required - An external object or function shall be declared once in one and only one file - N/A - | `Rule 8.5 example 1 <path_to_url`_ | `Rule 8.5 example 2 <path_to_url`_ .. _MisraC_Rule_8_6: * - Rule 8.6 - Required - An identifier with external linkage shall have exactly one external definition - N/A - | `Rule 8.6 example 1 <path_to_url`_ | `Rule 8.6 example 2 <path_to_url`_ .. _MisraC_Rule_8_8: * - Rule 8.8 - Required - The static storage class specifier shall be used in all declarations of objects and functions that have internal linkage - `DCL15-C <path_to_url`_ - `Rule 8.8 <path_to_url`_ .. _MisraC_Rule_8_9: * - Rule 8.9 - Advisory - An object should be defined at block scope if its identifier only appears in a single function - `DCL19-C <path_to_url`_ - `Rule 8.9 <path_to_url`_ .. _MisraC_Rule_8_10: * - Rule 8.10 - Required - An inline function shall be declared with the static storage class - N/A - `Rule 8.10 <path_to_url`_ .. _MisraC_Rule_8_12: * - Rule 8.12 - Required - Within an enumerator list, the value of an implicitly-specified enumeration constant shall be unique - `INT09-C <path_to_url`_ - `Rule 8.12 <path_to_url`_ .. _MisraC_Rule_8_14: * - Rule 8.14 - Required - The restrict type qualifier shall not be used - N/A - `Rule 8.14 <path_to_url`_ .. _MisraC_Rule_9_1: * - Rule 9.1 - Mandatory - The value of an object with automatic storage duration shall not be read before it has been set - N/A - `Rule 9.1 <path_to_url`_ .. _MisraC_Rule_9_2: * - Rule 9.2 - Required - The initializer for an aggregate or union shall be enclosed in braces - N/A - `Rule 9.2 <path_to_url`_ .. _MisraC_Rule_9_3: * - Rule 9.3 - Required - Arrays shall not be partially initialized - N/A - `Rule 9.3 <path_to_url`_ .. _MisraC_Rule_9_4: * - Rule 9.4 - Required - An element of an object shall not be initialized more than once - N/A - `Rule 9.4 <path_to_url`_ .. _MisraC_Rule_9_5: * - Rule 9.5 - Required - Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly - N/A - `Rule 9.5 <path_to_url`_ .. _MisraC_Rule_10_1: * - Rule 10.1 - Required - Operands shall not be of an inappropriate essential type - `STR04-C <path_to_url`_ - `Rule 10.1 <path_to_url`_ .. _MisraC_Rule_10_2: * - Rule 10.2 - Required - Expressions of essentially character type shall not be used inappropriately in addition and subtraction operations - `STR04-C <path_to_url`_ - `Rule 10.2 <path_to_url`_ .. _MisraC_Rule_10_3: * - Rule 10.3 - Required - The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category - `STR04-C <path_to_url`_ - `Rule 10.3 <path_to_url`_ .. _MisraC_Rule_10_4: * - Rule 10.4 - Required - Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category - `STR04-C <path_to_url`_ - `Rule 10.4 <path_to_url`_ .. _MisraC_Rule_10_5: * - Rule 10.5 - Advisory - The value of an expression should not be cast to an inappropriate essential type - N/A - `Rule 10.5 <path_to_url`_ .. _MisraC_Rule_10_6: * - Rule 10.6 - Required - The value of a composite expression shall not be assigned to an object with wider essential type - `INT02-C <path_to_url`_ - `Rule 10.6 <path_to_url`_ .. _MisraC_Rule_10_7: * - Rule 10.7 - Required - If a composite expression is used as one operand of an operator in which the usual arithmetic conversions are performed then the other operand shall not have wider essential type - `INT02-C <path_to_url`_ - `Rule 10.7 <path_to_url`_ .. _MisraC_Rule_10_8: * - Rule 10.8 - Required - The value of a composite expression shall not be cast to a different essential type category or a wider essential type - `INT02-C <path_to_url`_ - `Rule 10.8 <path_to_url`_ .. _MisraC_Rule_11_2: * - Rule 11.2 - Required - Conversions shall not be performed between a pointer to an incomplete type and any other type - N/A - `Rule 11.2 <path_to_url`_ .. _MisraC_Rule_11_6: * - Rule 11.6 - Required - A cast shall not be performed between pointer to void and an arithmetic type - N/A - `Rule 11.6 <path_to_url`_ .. _MisraC_Rule_11_7: * - Rule 11.7 - Required - A cast shall not be performed between pointer to object and a noninteger arithmetic type - N/A - `Rule 11.7 <path_to_url`_ .. _MisraC_Rule_11_8: * - Rule 11.8 - Required - A cast shall not remove any const or volatile qualification from the type pointed to by a pointer - `EXP05-C <path_to_url`_ - `Rule 11.8 <path_to_url`_ .. _MisraC_Rule_11_9: * - Rule 11.9 - Required - The macro NULL shall be the only permitted form of integer null pointer constant - N/A - `Rule 11.9 <path_to_url`_ .. _MisraC_Rule_12_1: * - Rule 12.1 - Advisory - The precedence of operators within expressions should be made explicit - `EXP00-C <path_to_url`_ - `Rule 12.1 <path_to_url`_ .. _MisraC_Rule_12_2: * - Rule 12.2 - Required - The right hand operand of a shift operator shall lie in the range zero to one less than the width in bits of the essential type of the left hand operand - N/A - `Rule 12.2 <path_to_url`_ .. _MisraC_Rule_12_4: * - Rule 12.4 - Advisory - Evaluation of constant expressions should not lead to unsigned integer wrap-around - N/A - `Rule 12.4 <path_to_url`_ .. _MisraC_Rule_12_5: * - Rule 12.5 - Mandatory - The sizeof operator shall not have an operand which is a function parameter declared as array of type - N/A - `Rule 12.5 <path_to_url`_ .. _MisraC_Rule_13_1: * - Rule 13.1 - Required - Initializer lists shall not contain persistent side effects - N/A - | `Rule 13.1 example 1 <path_to_url`_ | `Rule 13.1 example 2 <path_to_url`_ .. _MisraC_Rule_13_2: * - Rule 13.2 - Required - The value of an expression and its persistent side effects shall be the same under all permitted evaluation orders - N/A - `Rule 13.2 <path_to_url`_ .. _MisraC_Rule_13_3: * - Rule 13.3 - Advisory - A full expression containing an increment (++) or decrement (--) operator should have no other potential side effects other than that caused by the increment or decrement operator - N/A - `Rule 13.3 <path_to_url`_ .. _MisraC_Rule_13_4: * - Rule 13.4 - Advisory - The result of an assignment operator should not be used - N/A - `Rule 13.4 <path_to_url`_ .. _MisraC_Rule_13_5: * - Rule 13.5 - Required - The right hand operand of a logical && or || operator shall not contain persistent side effects - `EXP10-C <path_to_url`_ - | `Rule 13.5 example 1 <path_to_url`_ | `Rule 13.5 example 2 <path_to_url`_ .. _MisraC_Rule_13_6: * - Rule 13.6 - Mandatory - The operand of the sizeof operator shall not contain any expression which has potential side effects - N/A - `Rule 13.6 <path_to_url`_ .. _MisraC_Rule_14_1: * - Rule 14.1 - Required - A loop counter shall not have essentially floating type - N/A - `Rule 14.1 <path_to_url`_ .. _MisraC_Rule_14_2: * - Rule 14.2 - Required - A for loop shall be well-formed - N/A - `Rule 14.2 <path_to_url`_ .. _MisraC_Rule_14_3: * - Rule 14.3 - Required - Controlling expressions shall not be invariant - N/A - `Rule 14.3 <path_to_url`_ .. _MisraC_Rule_14_4: * - Rule 14.4 - Required - The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type - N/A - `Rule 14.4 <path_to_url`_ .. _MisraC_Rule_15_2: * - Rule 15.2 - Required - The goto statement shall jump to a label declared later in the same function - N/A - `Rule 15.2 <path_to_url`_ .. _MisraC_Rule_15_3: * - Rule 15.3 - Required - Any label referenced by a goto statement shall be declared in the same block, or in any block enclosing the goto statement - N/A - `Rule 15.3 <path_to_url`_ .. _MisraC_Rule_15_6: * - Rule 15.6 - Required - The body of an iteration-statement or a selection-statement shall be a compound-statement - `EXP19-C <path_to_url`_ - `Rule 15.6 <path_to_url`_ .. _MisraC_Rule_15_7: * - Rule 15.7 - Required - All if else if constructs shall be terminated with an else statement - N/A - `Rule 15.7 <path_to_url`_ .. _MisraC_Rule_16_1: * - Rule 16.1 - Required - All switch statements shall be well-formed - N/A - `Rule 16.1 <path_to_url`_ .. _MisraC_Rule_16_2: * - Rule 16.2 - Required - A switch label shall only be used when the most closely-enclosing compound statement is the body of a switch statement - `MSC20-C <path_to_url`_ - `Rule 16.2 <path_to_url`_ .. _MisraC_Rule_16_3: * - Rule 16.3 - Required - An unconditional break statement shall terminate every switch-clause - N/A - `Rule 16.3 <path_to_url`_ .. _MisraC_Rule_16_4: * - Rule 16.4 - Required - Every switch statement shall have a default label - N/A - `Rule 16.4 <path_to_url`_ .. _MisraC_Rule_16_5: * - Rule 16.5 - Required - A default label shall appear as either the first or the last switch label of a switch statement - N/A - `Rule 16.5 <path_to_url`_ .. _MisraC_Rule_16_6: * - Rule 16.6 - Required - Every switch statement shall have at least two switch-clauses - N/A - `Rule 16.6 <path_to_url`_ .. _MisraC_Rule_16_7: * - Rule 16.7 - Required - A switch-expression shall not have essentially Boolean type - N/A - `Rule 16.7 <path_to_url`_ .. _MisraC_Rule_17_1: * - Rule 17.1 - Required - The features of <stdarg.h> shall not be used - `ERR00-C <path_to_url`_ - `Rule 17.1 <path_to_url`_ .. _MisraC_Rule_17_2: * - Rule 17.2 - Required - Functions shall not call themselves, either directly or indirectly - `MEM05-C <path_to_url`_ - `Rule 17.2 <path_to_url`_ .. _MisraC_Rule_17_3: * - Rule 17.3 - Mandatory - A function shall not be declared implicitly - N/A - `Rule 17.3 <path_to_url`_ .. _MisraC_Rule_17_4: * - Rule 17.4 - Mandatory - All exit paths from a function with non-void return type shall have an explicit return statement with an expression - N/A - `Rule 17.4 <path_to_url`_ .. _MisraC_Rule_17_5: * - Rule 17.5 - Advisory - The function argument corresponding to a parameter declared to have an array type shall have an appropriate number of elements - N/A - `Rule 17.5 <path_to_url`_ .. _MisraC_Rule_17_6: * - Rule 17.6 - Mandatory - The declaration of an array parameter shall not contain the static keyword between the [ ] - N/A - `Rule 17.6 <path_to_url`_ .. _MisraC_Rule_17_7: * - Rule 17.7 - Required - The value returned by a function having non-void return type shall be used - N/A - `Rule 17.7 <path_to_url`_ .. _MisraC_Rule_18_1: * - Rule 18.1 - Required - A pointer resulting from arithmetic on a pointer operand shall address an element of the same array as that pointer operand - `EXP08-C <path_to_url`_ - `Rule 18.1 <path_to_url`_ .. _MisraC_Rule_18_2: * - Rule 18.2 - Required - Subtraction between pointers shall only be applied to pointers that address elements of the same array - `EXP08-C <path_to_url`_ - `Rule 18.2 <path_to_url`_ .. _MisraC_Rule_18_3: * - Rule 18.3 - Required - The relational operators >, >=, < and <= shall not be applied to objects of pointer type except where they point into the same object - `EXP08-C <path_to_url`_ - `Rule 18.3 <path_to_url`_ .. _MisraC_Rule_18_5: * - Rule 18.5 - Advisory - Declarations should contain no more than two levels of pointer nesting - N/A - `Rule 18.5 <path_to_url`_ .. _MisraC_Rule_18_6: * - Rule 18.6 - Required - The address of an object with automatic storage shall not be copied to another object that persists after the first object has ceased to exist - N/A - | `Rule 18.6 example 1 <path_to_url`_ | `Rule 18.6 example 2 <path_to_url`_ .. _MisraC_Rule_18_8: * - Rule 18.8 - Required - Variable-length array types shall not be used - N/A - `Rule 18.8 <path_to_url`_ .. _MisraC_Rule_19_1: * - Rule 19.1 - Mandatory - An object shall not be assigned or copied to an overlapping object - N/A - `Rule 19.1 <path_to_url`_ .. _MisraC_Rule_20_2: * - Rule 20.2 - Required - The ', or \ characters and the /* or // character sequences shall not occur in a header file name" - N/A - `Rule 20.2 <path_to_url`_ .. _MisraC_Rule_20_3: * - Rule 20.3 - Required - The #include directive shall be followed by either a <filename> or "filename" sequence - N/A - `Rule 20.3 <path_to_url`_ .. _MisraC_Rule_20_4: * - Rule 20.4 - Required - A macro shall not be defined with the same name as a keyword - N/A - `Rule 20.4 <path_to_url`_ .. _MisraC_Rule_20_7: * - Rule 20.7 - Required - Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses - `PRE01-C <path_to_url`_ - `Rule 20.7 <path_to_url`_ .. _MisraC_Rule_20_8: * - Rule 20.8 - Required - The controlling expression of a #if or #elif preprocessing directive shall evaluate to 0 or 1 - N/A - `Rule 20.8 <path_to_url`_ .. _MisraC_Rule_20_9: * - Rule 20.9 - Required - All identifiers used in the controlling expression of #if or #elif preprocessing directives shall be #defined before evaluation - N/A - `Rule 20.9 <path_to_url`_ .. _MisraC_Rule_20_11: * - Rule 20.11 - Required - A macro parameter immediately following a # operator shall not immediately be followed by a ## operator - N/A - `Rule 20.11 <path_to_url`_ .. _MisraC_Rule_20_12: * - Rule 20.12 - Required - A macro parameter used as an operand to the # or ## operators, which is itself subject to further macro replacement, shall only be used as an operand to these operators - N/A - `Rule 20.12 <path_to_url`_ .. _MisraC_Rule_20_13: * - Rule 20.13 - Required - A line whose first token is # shall be a valid preprocessing directive - N/A - `Rule 20.13 <path_to_url`_ .. _MisraC_Rule_20_14: * - Rule 20.14 - Required - All #else, #elif and #endif preprocessor directives shall reside in the same file as the #if, #ifdef or #ifndef directive to which they are related - N/A - `Rule 20.14 <path_to_url`_ .. _MisraC_Rule_21_1: * - Rule 21.1 - Required - #define and #undef shall not be used on a reserved identifier or reserved macro name - N/A - `Rule 21.1 <path_to_url`_ .. _MisraC_Rule_21_2: * - Rule 21.2 - Required - A reserved identifier or macro name shall not be declared - N/A - `Rule 21.2 <path_to_url`_ .. _MisraC_Rule_21_3: * - Rule 21.3 - Required - The memory allocation and deallocation functions of <stdlib.h> shall not be used - `MSC24-C <path_to_url`_ - `Rule 21.3 <path_to_url`_ .. _MisraC_Rule_21_4: * - Rule 21.4 - Required - The standard header file <setjmp.h> shall not be used - N/A - `Rule 21.4 <path_to_url`_ .. _MisraC_Rule_21_6: * - Rule 21.6 - Required - The Standard Library input/output functions shall not be used - N/A - `Rule 21.6 <path_to_url`_ .. _MisraC_Rule_21_7: * - Rule 21.7 - Required - The atof, atoi, atol and atoll functions of <stdlib.h> shall not be used - N/A - `Rule 21.7 <path_to_url`_ .. _MisraC_Rule_21_9: * - Rule 21.9 - Required - The library functions bsearch and qsort of <stdlib.h> shall not be used - N/A - `Rule 21.9 <path_to_url`_ .. _MisraC_Rule_21_11: * - Rule 21.11 - Required - The standard header file <tgmath.h> shall not be used - N/A - `Rule 21.11 <path_to_url`_ .. _MisraC_Rule_21_12: * - Rule 21.12 - Advisory - The exception handling features of <fenv.h> should not be used - N/A - `Rule 21.12 <path_to_url`_ .. _MisraC_Rule_21_13: * - Rule 21.13 - Mandatory - Any value passed to a function in <ctype.h> shall be representable as an unsigned char or be the value EO - N/A - `Rule 21.13 <path_to_url`_ .. _MisraC_Rule_21_14: * - Rule 21.14 - Required - The Standard Library function memcmp shall not be used to compare null terminated strings - N/A - `Rule 21.14 <path_to_url`_ .. _MisraC_Rule_21_15: * - Rule 21.15 - Required - The pointer arguments to the Standard Library functions memcpy, memmove and memcmp shall be pointers to qualified or unqualified versions of compatible types - N/A - `Rule 21.15 <path_to_url`_ .. _MisraC_Rule_21_16: * - Rule 21.16 - Required - The pointer arguments to the Standard Library function memcmp shall point to either a pointer type, an essentially signed type, an essentially unsigned type, an essentially Boolean type or an essentially enum type - N/A - `Rule 21.16 <path_to_url`_ .. _MisraC_Rule_21_17: * - Rule 21.17 - Mandatory - Use of the string handling functions from <string.h> shall not result in accesses beyond the bounds of the objects referenced by their pointer parameters - N/A - `Rule 21.17 <path_to_url`_ .. _MisraC_Rule_21_18: * - Rule 21.18 - Mandatory - The size_t argument passed to any function in <string.h> shall have an appropriate value - N/A - `Rule 21.18 <path_to_url`_ .. _MisraC_Rule_21_19: * - Rule 21.19 - Mandatory - The pointers returned by the Standard Library functions localeconv, getenv, setlocale or, strerror shall only be used as if they have pointer to const-qualified type - N/A - `Rule 21.19 <path_to_url`_ .. _MisraC_Rule_21_20: * - Rule 21.20 - Mandatory - The pointer returned by the Standard Library functions asctime, ctime, gmtime, localtime, localeconv, getenv, setlocale or strerror shall not be used following a subsequent call to the same function - N/A - `Rule 21.20 <path_to_url`_ .. _MisraC_Rule_22_1: * - Rule 22.1 - Required - All resources obtained dynamically by means of Standard Library functions shall be explicitly released - N/A - `Rule 22.1 <path_to_url`_ .. _MisraC_Rule_22_2: * - Rule 22.2 - Mandatory - A block of memory shall only be freed if it was allocated by means of a Standard Library function - N/A - `Rule 22.2 <path_to_url`_ .. _MisraC_Rule_22_3: * - Rule 22.3 - Required - The same file shall not be open for read and write access at the same time on different streams - N/A - `Rule 22.3 <path_to_url`_ .. _MisraC_Rule_22_4: * - Rule 22.4 - Mandatory - There shall be no attempt to write to a stream which has been opened as read-only - N/A - `Rule 22.4 <path_to_url`_ .. _MisraC_Rule_22_5: * - Rule 22.5 - Mandatory - A pointer to a FILE object shall not be dereferenced - N/A - `Rule 22.5 <path_to_url`_ .. _MisraC_Rule_22_6: * - Rule 22.6 - Mandatory - The value of a pointer to a FILE shall not be used after the associated stream has been closed - N/A - `Rule 22.6 <path_to_url`_ .. _MisraC_Rule_22_7: * - Rule 22.7 - Required - The macro EOF shall only be compared with the unmodified return value from any Standard Library function capable of returning EOF - N/A - `Rule 22.7 <path_to_url`_ .. _MisraC_Rule_22_8: * - Rule 22.8 - Required - The value of errno shall be set to zero prior to a call to an errno-setting-function - N/A - `Rule 22.8 <path_to_url`_ .. _MisraC_Rule_22_9: * - Rule 22.9 - Required - The value of errno shall be tested against zero after calling an errno-setting-function - N/A - `Rule 22.9 <path_to_url`_ .. _MisraC_Rule_22_10: * - Rule 22.10 - Required - The value of errno shall only be tested when the last function to be called was an errno-setting-function - N/A - `Rule 22.10 <path_to_url`_ Additional rules **************** Rule A.1: Conditional Compilation ================================= Severity -------- Required Description ----------- Do not conditionally compile function declarations in header files. Do not conditionally compile structure declarations in header files. You may conditionally exclude fields within structure definitions to avoid wasting memory when the feature they support is not enabled. Rationale --------- Excluding declarations from the header based on compile-time options may prevent their documentation from being generated. Their absence also prevents use of ``if (IS_ENABLED(CONFIG_FOO)) {}`` as an alternative to preprocessor conditionals when the code path should change based on the selected options. .. _coding_guideline_inclusive_language: Rule A.2: Inclusive Language ============================ Severity -------- Required Description ----------- Do not introduce new usage of offensive terms listed below. This rule applies but is not limited to source code, comments, documentation, and branch names. Replacement terms may vary by area or subsystem, but should aim to follow updated industry standards when possible. Exceptions are allowed for maintaining existing implementations or adding new implementations of industry standard specifications governed externally to the Zephyr Project. Existing usage is recommended to change as soon as updated industry standard specifications become available or new terms are publicly announced by the governing body, or immediately if no specifications apply. .. list-table:: :header-rows: 1 * - Offensive Terms - Recommended Replacements * - ``{master,leader} / slave`` - - ``{primary,main} / {secondary,replica}`` - ``{initiator,requester} / {target,responder}`` - ``{controller,host} / {device,worker,proxy,target}`` - ``director / performer`` - ``central / peripheral`` * - ``blacklist / whitelist`` - * ``denylist / allowlist`` * ``blocklist / allowlist`` * ``rejectlist / acceptlist`` * - ``grandfather policy`` - * ``legacy`` * - ``sanity`` - * ``coherence`` * ``confidence`` Rationale --------- Offensive terms do not create an inclusive community environment and therefore violate the Zephyr Project `Code of Conduct`_. This coding rule was inspired by a similar rule in `Linux`_. .. _Code of Conduct: path_to_url .. _Linux: path_to_url Status ------ Related GitHub Issues and Pull Requests are tagged with the `Inclusive Language Label`_. .. list-table:: :header-rows: 1 * - Area - Selected Replacements - Status * - :ref:`bluetooth_api` - See `Bluetooth Appropriate Language Mapping Tables`_ - * - CAN - This `CAN in Automation Inclusive Language news post`_ has a list of general recommendations. See `CAN in Automation Inclusive Language`_ for terms to be used in specification document updates. - * - eSPI - * ``master / slave`` => ``controller / target`` - Refer to `eSPI Specification`_ for new terminology * - gPTP - * ``master / slave`` => TBD - * - :ref:`i2c_api` - * ``master / slave`` => TBD - NXP publishes the `I2C Specification`_ and has selected ``controller / target`` as replacement terms, but the timing to publish an announcement or new specification is TBD. Zephyr will update I2C when replacement terminology is confirmed by a public announcement or updated specification. See :github:`Zephyr issue 27033 <27033>`. * - :ref:`i2s_api` - * ``master / slave`` => TBD - * - SMP/AMP - * ``master / slave`` => TBD - * - :ref:`spi_api` - * ``master / slave`` => ``controller / peripheral`` * ``MOSI / MISO / SS`` => ``SDO / SDI / CS`` - The Open Source Hardware Association has selected these replacement terms. See `OSHWA Resolution to Redefine SPI Signal Names`_ * - :ref:`twister_script` - * ``platform_whitelist`` => ``platform_allow`` * ``sanitycheck`` => ``twister`` - .. _Inclusive Language Label: path_to_url .. _I2C Specification: path_to_url .. _Bluetooth Appropriate Language Mapping Tables: path_to_url .. _OSHWA Resolution to Redefine SPI Signal Names: path_to_url .. _CAN in Automation Inclusive Language news post: path_to_url .. _CAN in Automation Inclusive Language: path_to_url .. _eSPI Specification: path_to_url Rule A.3: Macro name collisions =============================== Severity -------- Required Description ----------- Macros with commonly used names such as ``MIN``, ``MAX``, ``ARRAY_SIZE``, must not be modified or protected to avoid name collisions with other implementations. In particular, they must not be prefixed to place them in a Zephyr-specific namespace, re-defined using ``#undef``, or conditionally excluded from compilation using ``#ifndef``. Instead, if a conflict arises with an existing definition originating from a :ref:`module <modules>`, the module's code itself needs to be modified (ideally upstream, alternatively via a change in Zephyr's own fork). This rule applies to Zephyr as a project in general, regardless of the time of introduction of the macro or its current name in the tree. If a macro name is commonly used in several other well-known open source projects then the implementation in Zephyr should use that name. While there is a subjective and non-measurable component to what "commonly used" means, the ultimate goal is to offer users familiar macros. Finally, this rule applies to inter-module name collisions as well: in that case both modules, prior to their inclusion, should be modified to use module-specific versions of the macro name that collides. Rationale --------- Zephyr is an RTOS that comes with additional functionality and dependencies in the form of modules. Those modules are typically independent projects that may use macro names that can conflict with other modules or with Zephyr itself. Since, in the context of this documentation, Zephyr is considered the central or main project, it should implement the non-namespaced versions of the macros. Given that Zephyr uses a fork of the corresponding upstream for each module, it is always possible to patch the macro implementation in each module to avoid collisions. .. _coding_guideline_libc_usage_restrictions_in_zephyr_kernel: Rule A.4: C Standard Library Usage Restrictions in Zephyr Kernel ================================================================ Severity -------- Required Description ----------- The use of the C standard library functions and macros in the Zephyr kernel shall be limited to the following functions and macros from the ISO/IEC 9899:2011 standard, also known as C11, and their extensions: .. csv-table:: List of allowed libc functions and macros in the Zephyr kernel :header: Function,Source :widths: auto abort(),ISO/IEC 9899:2011 abs(),ISO/IEC 9899:2011 aligned_alloc(),ISO/IEC 9899:2011 assert(),ISO/IEC 9899:2011 atoi(),ISO/IEC 9899:2011 bsearch(),ISO/IEC 9899:2011 calloc(),ISO/IEC 9899:2011 exit(),ISO/IEC 9899:2011 fprintf(),ISO/IEC 9899:2011 fputc(),ISO/IEC 9899:2011 fputs(),ISO/IEC 9899:2011 free(),ISO/IEC 9899:2011 fwrite(),ISO/IEC 9899:2011 gmtime(),ISO/IEC 9899:2011 isalnum(),ISO/IEC 9899:2011 isalpha(),ISO/IEC 9899:2011 iscntrl(),ISO/IEC 9899:2011 isdigit(),ISO/IEC 9899:2011 isgraph(),ISO/IEC 9899:2011 isprint(),ISO/IEC 9899:2011 isspace(),ISO/IEC 9899:2011 isupper(),ISO/IEC 9899:2011 isxdigit(),ISO/IEC 9899:2011 labs(),ISO/IEC 9899:2011 llabs(),ISO/IEC 9899:2011 malloc(),ISO/IEC 9899:2011 memchr(),ISO/IEC 9899:2011 memcmp(),ISO/IEC 9899:2011 memcpy(),ISO/IEC 9899:2011 memmove(),ISO/IEC 9899:2011 memset(),ISO/IEC 9899:2011 perror(),ISO/IEC 9899:2011 printf(),ISO/IEC 9899:2011 putc(),ISO/IEC 9899:2011 putchar(),ISO/IEC 9899:2011 puts(),ISO/IEC 9899:2011 qsort(),ISO/IEC 9899:2011 rand(),ISO/IEC 9899:2011 realloc(),ISO/IEC 9899:2011 snprintf(),ISO/IEC 9899:2011 sprintf(),ISO/IEC 9899:2011 sqrt(),ISO/IEC 9899:2011 sqrtf(),ISO/IEC 9899:2011 srand(),ISO/IEC 9899:2011 strcat(),ISO/IEC 9899:2011 strchr(),ISO/IEC 9899:2011 strcmp(),ISO/IEC 9899:2011 strcpy(),ISO/IEC 9899:2011 strcspn(),ISO/IEC 9899:2011 strerror(),ISO/IEC 9899:2011 strlen(),ISO/IEC 9899:2011 strncat(),ISO/IEC 9899:2011 strncmp(),ISO/IEC 9899:2011 strncpy(),ISO/IEC 9899:2011 `strnlen()`_,POSIX.1-2008 strrchr(),ISO/IEC 9899:2011 strspn(),ISO/IEC 9899:2011 strstr(),ISO/IEC 9899:2011 strtol(),ISO/IEC 9899:2011 strtoll(),ISO/IEC 9899:2011 strtoul(),ISO/IEC 9899:2011 strtoull(),ISO/IEC 9899:2011 time(),ISO/IEC 9899:2011 tolower(),ISO/IEC 9899:2011 toupper(),ISO/IEC 9899:2011 vfprintf(),ISO/IEC 9899:2011 vprintf(),ISO/IEC 9899:2011 vsnprintf(),ISO/IEC 9899:2011 vsprintf(),ISO/IEC 9899:2011 All of the functions listed above must be implemented by the :ref:`minimal libc <c_library_minimal>` to ensure that the Zephyr kernel can build with the minimal libc. In addition, any functions from the above list that are not part of the ISO/IEC 9899:2011 standard must be implemented by the :ref:`common libc <c_library_common>` to ensure their availability across multiple C standard libraries. Introducing new C standard library functions to the Zephyr kernel is allowed with justification given that the above requirements are satisfied. Note that the use of the functions listed above are subject to secure and safe coding practices and it should not be assumed that their use in the Zephyr kernel is unconditionally permitted by being listed in this rule. The "Zephyr kernel" in this context consists of the following components: * Kernel (:file:`kernel`) * OS Library (:file:`lib/os`) * Architecture Port (:file:`arch`) * Logging Subsystem (:file:`subsys/logging`) Rationale --------- Zephyr kernel must be able to build with the :ref:`minimal libc <c_library_minimal>`, a limited C standard library implementation that is part of the Zephyr RTOS and maintained by the Zephyr Project, to allow self-contained testing and verification of the kernel and core OS services. In order to ensure that the Zephyr kernel can build with the minimal libc, it is necessary to restrict the use of the C standard library functions and macros in the Zephyr kernel to the functions and macros that are available as part of the minimal libc. Rule A.5: C Standard Library Usage Restrictions in Zephyr Codebase ================================================================== Severity -------- Required Description ----------- The use of the C standard library functions and macros in the Zephyr codebase shall be limited to the functions, excluding the Annex K "Bounds-checking interfaces", from the ISO/IEC 9899:2011 standard, also known as C11, unless exempted by this rule. The "Zephyr codebase" in this context refers to all embedded source code files committed to the `main Zephyr repository`_, except the Zephyr kernel as defined by the :ref:`coding_guideline_libc_usage_restrictions_in_zephyr_kernel`. With embedded source code we refer to code which is meant to be executed in embedded targets, and therefore excludes host tooling, and code specific for the :ref:`native <boards_posix>` test targets. The following non-ISO 9899:2011, hereinafter referred to as non-standard, functions and macros are exempt from this rule and allowed to be used in the Zephyr codebase: .. csv-table:: List of allowed non-standard libc functions :header: Function,Source :widths: auto `gmtime_r()`_,POSIX.1-2001 `strnlen()`_,POSIX.1-2008 `strtok_r()`_,POSIX.1-2001 All non-standard functions and macros listed above must be implemented by the :ref:`common libc <c_library_common>` in order to make sure that these functions can be made available when using a C standard library that does not implement these functions. Adding a new non-standard function from common C standard libraries to the above list is allowed with justification, given that the above requirement is satisfied. However, when there exists a standard function that is functionally equivalent, the standard function shall be used. Rationale --------- Some C standard libraries, such as Newlib and Picolibc, include additional functions and macros that are defined by the standards and de-facto standards that extend the ISO C standard (e.g. POSIX, Linux). The ISO/IEC 9899:2011 standard does not require C compiler toolchains to include the support for these non-standard functions, and therefore using these functions can lead to compatibility issues with the third-party toolchains that come with their own C standard libraries. .. _main Zephyr repository: path_to_url .. _gmtime_r(): path_to_url .. _strnlen(): path_to_url .. _strtok_r(): path_to_url ```
/content/code_sandbox/doc/contribute/coding_guidelines/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14,593
```unknown %% %% This is file `gbt7714-2005-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2005,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #1 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #0 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\ " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "Z" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "M" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/gbt7714-2005-author-year.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,593
```unknown %% %% This is file `gbt7714-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/gbt7714-numerical.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,561
```tex %% %% This is file `gbt7714.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `package') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{gbt7714} [2024/03/08 v2.1.6 GB/T 7714 BibTeX Style] \newif\ifgbt@legacy@interface \newif\ifgbt@mmxv \newif\ifgbt@numerical \newif\ifgbt@super \newcommand\gbt@obsolete@option[1]{% \PackageWarning{gbt7714}{The option "#1" is obsolete}% } \DeclareOption{2015}{% \gbt@obsolete@option{2015}% \gbt@legacy@interfacetrue \gbt@mmxvtrue } \DeclareOption{2005}{% \gbt@obsolete@option{2005}% \gbt@legacy@interfacetrue \gbt@mmxvfalse } \DeclareOption{super}{% \gbt@obsolete@option{super}% \gbt@legacy@interfacetrue \gbt@numericaltrue \gbt@supertrue } \DeclareOption{numbers}{% \gbt@obsolete@option{numbers}% \gbt@legacy@interfacetrue \gbt@numericaltrue \gbt@superfalse } \DeclareOption{authoryear}{% \gbt@obsolete@option{authoryear}% \gbt@legacy@interfacetrue \gbt@numericalfalse } \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{natbib}} \ProcessOptions\relax \RequirePackage{natbib} \RequirePackage{url} \def\NAT@cmprs{\@ne} \renewcommand\newblock{\space} \newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}} \newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}} \newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}} \newcommand\bibstyle@inline{\bibstyle@numbers} \@namedef{bibstyle@gbt7714-numerical}{\bibstyle@super} \@namedef{bibstyle@gbt7714-author-year}{\bibstyle@authoryear} \@namedef{bibstyle@gbt7714-2005-numerical}{\bibstyle@super} \@namedef{bibstyle@gbt7714-2005-author-year}{\bibstyle@authoryear} \renewcommand\NAT@citesuper[3]{% \ifNAT@swa \if*#2*\else #2\NAT@spacechar \fi % \unskip\kern\p@\textsuperscript{\NAT@@open#1\NAT@@close}% % \if*#3*\else\NAT@spacechar#3\fi\else #1\fi\endgroup} \unskip\kern\p@ \textsuperscript{% \NAT@@open #1% \NAT@@close \if*#3*\else #3% \fi }% \kern\p@ \else #1% \fi \endgroup } \renewcommand\NAT@citenum[3]{% \ifNAT@swa \NAT@@open \if*#2*\else #2\NAT@spacechar \fi % #1\if*#3*\else\NAT@cmt#3\fi\NAT@@close\else#1\fi\endgroup} #1\NAT@@close \if*#3*\else \textsuperscript{#3}% \fi \else #1% \fi \endgroup } \def\NAT@citexnum[#1][#2]#3{% \NAT@reset@parser \NAT@sort@cites{#3}% \NAT@reset@citea \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty \@for\@citeb:=\NAT@cite@list\do {\@safe@activestrue \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% \@safe@activesfalse \@ifundefined{b@\@citeb\@extra@b@citeb}{% {\reset@font\bfseries?} \NAT@citeundefined\PackageWarning{natbib}% {Citation `\@citeb' on page \thepage \space undefined}}% {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm \NAT@parse{\@citeb}% \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% \let\NAT@name=\NAT@all@names \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% \fi \ifNAT@full\let\NAT@nm\NAT@all@names\else \let\NAT@nm\NAT@name\fi \ifNAT@swa \@ifnum{\NAT@ctype>\@ne}{% \@citea \NAT@hyper@{\@ifnum{\NAT@ctype=\tw@}{\NAT@test{\NAT@ctype}}{\NAT@alias}}% }{% \@ifnum{\NAT@cmprs>\z@}{% \NAT@ifcat@num\NAT@num {\let\NAT@nm=\NAT@num}% {\def\NAT@nm{-2}}% \NAT@ifcat@num\NAT@last@num {\@tempcnta=\NAT@last@num\relax}% {\@tempcnta\m@ne}% \@ifnum{\NAT@nm=\@tempcnta}{% \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}% }{% \advance\@tempcnta by\@ne \@ifnum{\NAT@nm=\@tempcnta}{% % \ifx\NAT@last@yr\relax % \def@NAT@last@yr{\@citea}% % \else % \def@NAT@last@yr{--\NAT@penalty}% % \fi \def@NAT@last@yr{-\NAT@penalty}% }{% \NAT@last@yr@mbox }% }% }{% \@tempswatrue \@ifnum{\NAT@merge>\@ne}{\@ifnum{\NAT@last@num=\NAT@num\relax}{\@tempswafalse}{}}{}% \if@tempswa\NAT@citea@mbox\fi }% }% \NAT@def@citea \else \ifcase\NAT@ctype \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\NAT@penalty\NAT@space\else \@citea \NAT@test{\@ne}\NAT@spacechar\NAT@mbox{\NAT@super@kern\NAT@@open}% \fi \if*#1*\else#1\NAT@spacechar\fi \NAT@mbox{\NAT@hyper@{{\citenumfont{\NAT@num}}}}% \NAT@def@citea@box \or \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% \or \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% \or \NAT@hyper@citea@space\NAT@alias \fi \fi }% }% \@ifnum{\NAT@cmprs>\z@}{\NAT@last@yr}{}% \ifNAT@swa\else % \@ifnum{\NAT@ctype=\z@}{% % \if*#2*\else\NAT@cmt#2\fi % }{}% \NAT@mbox{\NAT@@close}% \@ifnum{\NAT@ctype=\z@}{% \if*#2*\else \textsuperscript{#2}% \fi }{}% \NAT@super@kern \fi }{#1}{#2}% }% \renewcommand\NAT@cite% [3]{\ifNAT@swa\NAT@@open\if*#2*\else#2\NAT@spacechar\fi #1\NAT@@close\if*#3*\else\textsuperscript{#3}\fi\else#1\fi\endgroup} \def\NAT@citex% [#1][#2]#3{% \NAT@reset@parser \NAT@sort@cites{#3}% \NAT@reset@citea \@cite{\let\NAT@nm\@empty\let\NAT@year\@empty \@for\@citeb:=\NAT@cite@list\do {\@safe@activestrue \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% \@safe@activesfalse \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea% {\reset@font\bfseries ?}\NAT@citeundefined \PackageWarning{natbib}% {Citation `\@citeb' on page \thepage \space undefined}\def\NAT@date{}}% {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year \NAT@parse{\@citeb}% \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% \let\NAT@name=\NAT@all@names \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% \fi \ifNAT@full\let\NAT@nm\NAT@all@names\else \let\NAT@nm\NAT@name\fi \ifNAT@swa\ifcase\NAT@ctype \if\relax\NAT@date\relax \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@date}% \else \ifx\NAT@last@nm\NAT@nm\NAT@yrsep \ifx\NAT@last@yr\NAT@year \def\NAT@temp{{?}}% \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% {Multiple citation on page \thepage: same authors and year\MessageBreak without distinguishing extra letter,\MessageBreak appears as question mark}\fi \NAT@hyper@{\NAT@exlab}% \else\unskip\NAT@spacechar \NAT@hyper@{\NAT@date}% \fi \else \@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{% \NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb }% \NAT@date }% \fi \fi \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \or\@citea\NAT@hyper@{\NAT@date}% \or\@citea\NAT@hyper@{\NAT@alias}% \fi \NAT@def@citea \else \ifcase\NAT@ctype \if\relax\NAT@date\relax \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \else \ifx\NAT@last@nm\NAT@nm\NAT@yrsep \ifx\NAT@last@yr\NAT@year \def\NAT@temp{{?}}% \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% {Multiple citation on page \thepage: same authors and year\MessageBreak without distinguishing extra letter,\MessageBreak appears as question mark}\fi \NAT@hyper@{\NAT@exlab}% \else \unskip\NAT@spacechar \NAT@hyper@{\NAT@date}% \fi \else \@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{\NAT@spacechar\NAT@@open\if*#1*\else#1\NAT@spacechar\fi}% {\@citeb\@extra@b@citeb}% \NAT@date }% \fi \fi \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \or\@citea\NAT@hyper@{\NAT@date}% \or\@citea\NAT@hyper@{\NAT@alias}% \fi \if\relax\NAT@date\relax \NAT@def@citea \else \NAT@def@citea@close \fi \fi }}\ifNAT@swa\else % \if*#2*\else\NAT@cmt#2\fi \if\relax\NAT@date\relax\else\NAT@@close\fi \if*#2*\else\textsuperscript{#2}\fi \fi}{#1}{#2}} \renewcommand\@biblabel[1]{[#1]\hfill} \let\NAT@bare@aux\NAT@bare \def\NAT@bare#1(#2){% \begingroup\edef\x{\endgroup \unexpanded{\NAT@bare@aux#1}(\@firstofone#2)}\x} \g@addto@macro\UrlBreaks{% \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9% \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M \do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m \do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z } \Urlmuskip=0mu plus 0.1mu \newif\ifgbt@bib@style@written \@ifpackageloaded{chapterbib}{}{% \def\bibliography#1{% \ifgbt@bib@style@written\else \bibliographystyle{gbt7714-numerical}% \fi \if@filesw \immediate\write\@auxout{\string\bibdata{\zap@space#1 \@empty}}% \fi \@input@{\jobname.bbl}} \def\bibliographystyle#1{% \gbt@bib@style@writtentrue \ifx\@begindocumenthook\@undefined\else \expandafter\AtBeginDocument \fi {\if@filesw \immediate\write\@auxout{\string\bibstyle{#1}}% \fi}% }% } \ifgbt@legacy@interface \ifgbt@numerical \ifgbt@super\else \citestyle{numbers} \fi \bibliographystyle{gbt7714-numerical} \else \bibliographystyle{gbt7714-author-year} \fi \fi ```
/content/code_sandbox/gbt7714.sty
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
4,274
```unknown %% %% This is file `gbt7714-2005-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2005,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #0 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\ " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "Z" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "M" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/gbt7714-2005-numerical.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,563
```lua #!/usr/bin/env texlua module = "gbt7714" testfiledir = "./test/testfiles" testsuppdir = testfiledir .. "/support" -- sourcefiles = {"*.dtx", "*.sty"} installfiles = {"*.sty", "*.bst"} tagfiles = {"*.dtx", "*.ins", "CHANGELOG.md", "variants/*.ins"} checkengines = {"xetex"} stdengine = "xetex" checkconfigs = { "build", "test/config-chapterbib", "test/config-bibunits", } typesetexe = "xelatex" unpackexe = "xetex" checkruns = 3 checkopts = "-file-line-error -halt-on-error -interaction=nonstopmode" typesetopts = "-file-line-error -halt-on-error -interaction=nonstopmode" local f = assert(io.open("CHANGELOG.md", "r")) local change_log_content = f:read("*all") f:close() local pkg_version = string.match(change_log_content, "## %[v([%d%.]+)%] - ") print(string.format("Package version: %s", pkg_version)) uploadconfig = { version = pkg_version, author = "Zeping Lee", license = "lppl1.3c", uploader = "Zeping Lee", email = "zepinglee@gmail.com", summary = "BibTeX implementation of Chinas bibliography style standard GB/T 77142015", description = [[The package provides a BibTeX implementation for the Chinese national bibliography style standard GB/T 77142015. It consists of two bst files for numerical and author-year styles as well as a LaTeX package which provides the citation style defined in the standard. The package is compatible with natbib and supports language detection (Chinese and English) for each biblilography entry.]], note = "Uploaded automatically by l3build...", ctanPath = "/biblio/bibtex/contrib/gbt7714", repository = "path_to_url", bugtracker = "path_to_url", topic = {"bibtex-sty", "chinese", "std-conform"}, announcement_file = "ctan.ann", update = true, } lvtext = ".tex" function runtest_tasks(name, run) return "bibtex -terse " .. name end function update_tag(file, content, tagname, tagdate) tagname = string.gsub(tagname, "^v", "") if string.match(file,"CHANGELOG.md") then local pattern = "[%d%.]+" local url = "path_to_url" local previous = string.match(content, "compare/v(" .. pattern .. ")%.%.%.HEAD") if tagname == previous then return content end content = string.gsub(content, "## %[Unreleased%]", "## [Unreleased]\n\n## [v" .. tagname .."] - " .. tagdate) return string.gsub(content, "v" .. pattern .. "%.%.%.HEAD", "v" .. tagname .. "...HEAD\n[v" .. tagname .. "]: " .. url .. "/compare/v" .. previous .. "...v" .. tagname) else local date = string.gsub(tagdate, "%-", "/") return string.gsub(content, "%d%d%d%d/%d%d/%d%d v[%d.]+", date .. " v" .. tagname) end return content end ```
/content/code_sandbox/build.lua
lua
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
763
```unknown .PHONY : test testall save all bst doc clean cleanall install ctan FORCE_MAKE NAME = gbt7714 PKGFILES = $(NAME).sty BSTFILES = $(NAME)-numerical.bst $(NAME)-author-year.bst TEXOPTS = -file-line-error -halt-on-error -interaction=nonstopmode LATEXMK = latexmk -xelatex $(TEXOPTS) testbst : bst bash test/test.sh test: testbst l3build check savebst: bash test/test.sh save : savebst l3build save --quiet super l3build save --quiet numbers l3build save --quiet author-year l3build save --config test/config-chapterbib package-chapterbib l3build save --config test/config-bibunits package-bibunits all : test doc bst : $(PKGFILES) $(BSTFILES) doc : $(NAME).pdf %.sty %-numerical.bst %-author-year.bst : %.ins %.dtx xetex $(TEXOPTS) $< xetex $(TEXOPTS) variants/gbt7714-variants.ins $(NAME).pdf : $(NAME).dtx FORCE_MAKE $(LATEXMK) $< clean : $(LATEXMK) -c $(NAME).dtx l3build clean cleanall : $(LATEXMK) -C $(NAME).dtx l3build clean install : l3build install ctan : test doc ln -sf . $(NAME) zip -r ../$(NAME).zip $(NAME)/{$(NAME)-*.bst,$(NAME).sty,$(NAME).pdf,README.md,\ CHANGELOG.md} rm $(NAME) ```
/content/code_sandbox/Makefile
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
380
```tex % !TeX encoding = UTF-8 % !TeX program = xetex \input docstrip.tex \keepsilent \askforoverwritefalse \preamble your_sha256_hash--- GB/T 7714 BibTeX Style path_to_url Version: 2024/03/08 v2.1.6 your_sha256_hash--- your_sha256_hash--- This file may be distributed and/or modified under the of this license or (at your option) any later version. The latest version of this license is in path_to_url and version 1.3c or later is part of all distributions of LaTeX version 2008 or later. your_sha256_hash--- \endpreamble \nopostamble \generate{ \file{gbt7714.sty}{\from{gbt7714.dtx}{package}} \file{gbt7714-numerical.bst}{\from{gbt7714.dtx}{2015,numerical}} \file{gbt7714-author-year.bst}{\from{gbt7714.dtx}{2015,author-year}} \file{gbt7714-2005-numerical.bst}{\from{gbt7714.dtx}{2005,numerical}} \file{gbt7714-2005-author-year.bst}{\from{gbt7714.dtx}{2005,author-year}} } \endbatchfile ```
/content/code_sandbox/gbt7714.ins
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
317
```unknown %% %% This is file `gbt7714-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #1 'year.after.author := #0 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/gbt7714-author-year.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,591
```tex \input docstrip.tex \keepsilent \askforoverwritefalse \preamble your_sha256_hash--- GB/T 7714 BibTeX Style path_to_url Version: 2024/03/08 v2.1.6 your_sha256_hash--- your_sha256_hash--- This file may be distributed and/or modified under the of this license or (at your option) any later version. The latest version of this license is in path_to_url and version 1.3c or later is part of all distributions of LaTeX version 2008 or later. your_sha256_hash--- \endpreamble \nopostamble \generate{ \file{variants/thu/thuthesis-numeric.bst}{ \from{gbt7714.dtx}{2015,thu,numerical} } \file{variants/thu/thuthesis-author-year.bst}{ \from{gbt7714.dtx}{2015,thu,author-year} } \file{variants/thu/thuthesis-bachelor.bst}{ \from{gbt7714.dtx}{2015,numerical} } \file{variants/ustc/ustcthesis-numerical.bst}{ \from{gbt7714.dtx}{2015,ustc,numerical} } \file{variants/ustc/ustcthesis-authoryear.bst}{ \from{gbt7714.dtx}{2015,ustc,author-year} } \file{variants/ustc/ustcthesis-bachelor.bst}{ \from{gbt7714.dtx}{2015,numerical,italic-journal,no-url,no-doi} } \file{variants/ucas/ucasthesis-numerical.bst}{ \from{gbt7714.dtx}{2015,ucas,numerical} } \file{variants/ucas/ucasthesis-author-year.bst}{ \from{gbt7714.dtx}{2015,ucas,author-year} } } \endbatchfile ```
/content/code_sandbox/variants/gbt7714-variants.ins
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
462
```tex % \iffalse meta-comment % GB/T 7714 BibTeX Style % path_to_url % % % This file may be distributed and/or modified under the % of this license or (at your option) any later version. % The latest version of this license is in % path_to_url % and version 1.3c or later is part of all distributions of LaTeX % version 2008 or later. % % \fi % % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{gbt7714} %<package> [2024/03/08 v2.1.6 GB/T 7714 BibTeX Style] % %<*driver> \documentclass[a4paper]{l3doc} \usepackage{hypdoc} \usepackage[UTF8]{ctex} \usepackage{fontspec} \usepackage{caption} \usepackage{booktabs} \usepackage{gbt7714} \usepackage{hologo} \usepackage{listings} \makeatletter \hypersetup{allcolors=blue} \IfFileExists{/System/Library/Fonts/Palatino.ttc}{ \setmainfont{Palatino} \setsansfont[Scale=MatchLowercase]{Helvetica} \setmonofont[Scale=MatchLowercase]{Menlo} }{} \citestyle{super} \lstnewenvironment{latex}{% \lstset{ basicstyle = \ttfamily\small, language = [LaTeX]TeX, gobble = 4, frame = single, }% }{} \lstnewenvironment{pseudocode}{% \lstset{ basicstyle=\ttfamily\small, language=bash, gobble=2, frame=single, }% }{} \DeclareRobustCommand\file{\nolinkurl} \DeclareRobustCommand\env{\texttt} \DeclareRobustCommand\pkg{\textsf} \DeclareRobustCommand\cls{\textsf} \DeclareRobustCommand\opt{\texttt} \setlength\partopsep{\z@} \def\@listi{\leftmargin\leftmargini \parsep \z@ \topsep 5\p@ \@plus2\p@ \@minus3\p@ \itemsep\z@} \let\@listI\@listi \@listi \makeatother \EnableCrossrefs \CodelineIndex % \OnlyDescription \begin{document} \DocInput{\jobname.dtx} \end{document} %</driver> % \fi % % % % \GetFileInfo{gbt7714.sty} % % \title{GB/T 7714 \hologo{BibTeX} style} % \author{Zeping Lee\thanks{zepinglee AT gmail.com}} % \date{\filedate\qquad\fileversion} % \maketitle % % % % \begin{abstract} % The \pkg{gbt7714} package provides a \BibTeX{} implementation for the China's % national bibliography style standard GB/T 7714. % It consists of \file{.bst} files for numeric and author-date styles as well as a % \LaTeX{} package which provides the citation style defined in the standard. % It is compatible with \pkg{natbib} and supports language detection (Chinese % and English) for each biblilography entry. % \end{abstract} % % \section{} % % GB/T 77142015 \quad \cite{gbt7714-2015} % % % \BibTeX{}\cite{bibtex} % \begin{itemize} % \item \pkg{natbib} \cite{natbib} % \item - % \item % \item % \item 2005 \file{.bst} % \end{itemize} % \url{path_to_url} % % % \section{ v2.0 } % % v2.0 2020-03-04 \cs{biblilographystyle} % \opt{gbt7714-numerical} \opt{gbt7714-author-year} % \opt{numbers} \opt{super} % \pkg{gbt7714} % \cs{bibliographystyle} % LaTeX % % % \section{} % % \pkg{gbt7714} % \begin{latex} % \documentclass{ctexart} % \usepackage{gbt7714} % \bibliographystyle{gbt7714-numerical} % \begin{document} % \cite{...} % ... % \bibliography{bibfile} % \end{document} % \end{latex} % % % - % \pkg{gbt7714} \cs{bibliographystyle} % % \begin{latex} % \bibliographystyle{gbt7714-numerical} % % \end{latex} % % \begin{latex} % \bibliographystyle{gbt7714-author-year} % - % \end{latex} % 2005 \file{gbt7714-2005-numerical} % \file{gbt7714-2005-author-year} % % v2.0 % \cs{bibliographystyle} % \file{bst} % % \begin{function}{\citestyle} % \begin{syntax} % |\citestyle|\Arg{citation style} % \end{syntax} % \opt{super}, \opt{numbers}, \opt{author-year} % \cs{bibliography} % \opt{super} % \textsuperscript{[2]} % [3] % \cs{citestyle} \opt{numbers} % \begin{latex} % \citestyle{numbers} % \end{latex} % - % \end{function} % % \DescribeOption{sort\&compress} % key \cs{cite} % % \pkg{natbib} \opt{compress} % \pkg{gbt7714} % \opt{sort\&compress} % \pkg{natbib} % \begin{latex} % \usepackage[sort&compress]{gbt7714} % \end{latex} % 2 \pkg{natbib} 3 % % % \cs{cite} % |\cite[42]{knuth84}| % \pkg{natbib} \cite{natbib} % % % \begin{itemize} % \item \file{.bib} UTF-8 % \item -\emph{} % key % ~\ref{sec:sort}~ % \end{itemize} % % % \section{} % % 16 % ~\ref{tab:entry-types} \file{bib} % \BibTeX{} \pkg{biblatex} * % % \begin{table}[htb] % \centering\small % \caption{} % \label{tab:entry-types} % \begin{tabular}{lcl} % \toprule % & & Entry Type \\ % \midrule % & M & book \\ % & M & incollection \\ % & C & proceedings \\ % & C & inproceedings conference \\ % & G & collection* \\ % & N & newspaper* \\ % & J & article \\ % & D & mastersthesis phdthesis \\ % & R & techreport \\ % & S & standard* \\ % & P & patent* \\ % & DB & database* \\ % & CP & software* \\ % & EB & online* \\ % & A & archive* \\ % & CM & map* \\ % & DS & dataset* \\ % & Z & misc \\ % \bottomrule % \end{tabular} % \end{table} % % % \section{} % % \BibTeX{} % * % BibLaTeX date urldate % % \begin{description} % \item[author] % \item[title] % \item[mark*] % \item[medium*] % \item[translator*] % \item[editor] % \item[organization] % \item[booktitle] % \item[series] % \item[journal] % \item[edition] % \item[address] % \item[publisher] % \item[school] \texttt{@phdthesis} % \item[institution] \texttt{@techreport} % \item[year] % \item[volume] % \item[number] % \item[pages] % \item[date*] % \item[urldate*] % \item[url] % \item[doi] % \item[langid*] % \item[key] % \end{description} % \BibTeX{} annote, chapter, crossref, month, type % % % % \begin{latex} % @misc{citekey, % langid = {japanese}, % mark = {Z}, % medium = {DK}, % ... % } % \end{latex} % english, chinese, japanese, russian % % % \section{} % \label{sec:sort} % % - % % % \BibTeX{} % \emph{} bib key % \begin{latex} % @book{capital, % author = { and }, % key = {ma3 ke4 si1 & en1 ge2 si1}, % ... % } % \end{latex} % % - \pkg{biblatex} % \file{biber} % % % \section{} % % \BibTeX{} % \file{bst} % % % \file{bst} |load.config| % ~\ref{tab:config} % |#1| |#0| % % % \begin{table}[htb] % \centering\small % \caption{} % \label{tab:config} % \begin{tabular}{lcl} % \toprule % & & \\ % \midrule % uppercase.name & |#1| & \\ % max.num.authors & |#3| & \\ % year.after.author & |#0| & \\ % period.after.author & |#0| & \\ % italic.book.title & |#0| & \\ % sentence.case.title & |#1| & sentence case \\ % link.title & |#0| & url \\ % title.in.journal & |#1| & \\ % show.patent.country & |#0| & \\ % space.before.mark & |#0| & \\ % show.mark & |#1| & \\ % show.medium.type & |#1| & \\ % component.part.label & |"slash"| & |"in"|, |"none"| \\ % italic.journal & |#0| & \\ % link.journal & |#0| & url \\ % show.missing.address.publisher & |#0| & \\ % space.before.pages & |#1| & \\ % only.start.page & |#0| & \\ % wave.dash.in.pages & |#0| & \\ % show.urldate & |#1| & urldate \\ % show.url & |#1| & url \\ % show.doi & |#1| & DOI \\ % show.preprint & |#1| & \\ % show.note & |#0| & note \\ % end.with.period & |#1| & \\ % \bottomrule % \end{tabular} % \end{table} % % \file{bst} % \cite{btxhak,ttb,tlc2} % % % \section{} % % TeX GB/T 7714 % 2005 \cite{wk2006} GB/T 77142005 \BibTeX{} % % \cite{lqz2013} GB/T 77142005 BibLaTeX % \cite{hhx2013} \BibTeX{} % bst java % \cite{sz2016} \pkg{biblatex-caspervector}\cite{vector2012} % % GB/T 77142015 BibLaTeX \cite{hzz2016} % % % % \begin{thebibliography}{12} % \providecommand{\natexlab}[1]{#1} % \providecommand{\url}[1]{#1} % \expandafter\ifx\csname urlstyle\endcsname\relax\relax\else % \urlstyle{same}\fi % \providecommand{\href}[2]{\url{#2}} % \providecommand{\doi}[1]{\href{path_to_url#1}{#1}} % % \bibitem[{}(2015)]{gbt7714-2015} % {}. % \newblock \quad : GB/T % 77142015[S]. % \newblock : , 2015. % % \bibitem[Patashnik(1988{\natexlab{a}})]{bibtex} % PATASHNIK~O. % \newblock {\BibTeX}ing[M/OL]. % \newblock 1988{\natexlab{a}}. % \newblock \url{path_to_url}. % % \bibitem[Daly(1999)]{natbib} % DALY~P~W. % \newblock Natural sciences citations and references[M/OL]. % \newblock 1999. % \newblock \url{path_to_url}. % % \bibitem[Patashnik(1988{\natexlab{b}})]{btxhak} % PATASHNIK~O. % \newblock Designing {\BibTeX} styles[M/OL]. % \newblock 1988{\natexlab{b}}. % \newblock \url{path_to_url}. % % \bibitem[Markey(2003)]{ttb} % MARKEY~N. % \newblock Tame the beast[M/OL]. % \newblock 2003. % \newblock \url{path_to_url}. % % \bibitem[Mittelbach et~al.(2004)Mittelbach, Goossens, Braams, Carlisle, and % Rowley]{tlc2} % MITTELBACH~F, GOOSSENS~M, BRAAMS~J, et~al. % \newblock The {\LaTeX} companion[M]. % \newblock 2nd ed. % \newblock Reading, MA, USA: Addison-Wesley, 2004. % % \bibitem[(2006)]{wk2006} % . % \newblock GBT7714-2005.bst version1 Beta[EB/OL]. % \newblock 2006. % \newblock CTeX . % % \bibitem[(2013)]{lqz2013} % . % \newblock % biblatexGBT77142005[EB/OL]. % \newblock 2013. % \newblock CTeX . % % \bibitem[(2013)]{hhx2013} % . % \newblock A GB/T 77142005 national standard compliant BibTeX % style[EB/OL]. % \newblock 2013. % \newblock \url{path_to_url}. % % \bibitem[(2016)]{sz2016} % . % \newblock caspervectorGB/T % 77142005[EB/OL]. % \newblock 2016. % \newblock \url{path_to_url}. % % \bibitem[Vector(2012)]{vector2012} % VECTOR~C~T. % \newblock biblatex : caspervector[M/OL]. % \newblock 2012. % \newblock % \url{path_to_url}. % % \bibitem[(2016)]{hzz2016} % . % \newblock GB/T 77142015 biblatex % [M/OL]. % \newblock 2016. % \newblock % \url{path_to_url}. % % \end{thebibliography} % % % % % \clearpage % \appendix % \StopEventually{} % % \section{} % % % \begin{macrocode} %<*package> \newif\ifgbt@legacy@interface \newif\ifgbt@mmxv \newif\ifgbt@numerical \newif\ifgbt@super \newcommand\gbt@obsolete@option[1]{% \PackageWarning{gbt7714}{The option "#1" is obsolete}% } \DeclareOption{2015}{% \gbt@obsolete@option{2015}% \gbt@legacy@interfacetrue \gbt@mmxvtrue } \DeclareOption{2005}{% \gbt@obsolete@option{2005}% \gbt@legacy@interfacetrue \gbt@mmxvfalse } \DeclareOption{super}{% \gbt@obsolete@option{super}% \gbt@legacy@interfacetrue \gbt@numericaltrue \gbt@supertrue } \DeclareOption{numbers}{% \gbt@obsolete@option{numbers}% \gbt@legacy@interfacetrue \gbt@numericaltrue \gbt@superfalse } \DeclareOption{authoryear}{% \gbt@obsolete@option{authoryear}% \gbt@legacy@interfacetrue \gbt@numericalfalse } % \end{macrocode} % % \pkg{natbib} % \begin{macrocode} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{natbib}} \ProcessOptions\relax % \end{macrocode} % % \opt{compress} \opt{sort} % \begin{macrocode} \RequirePackage{natbib} \RequirePackage{url} % \end{macrocode} % % \opt{compress} \pkg{natbib} option clash % % \begin{macrocode} \def\NAT@cmprs{\@ne} % \end{macrocode} % % \begin{macro}{\citestyle} % \cs{citestyle} \opt{numerical} % \opt{authoryear} \pkg{natbib} % \begin{macrocode} \renewcommand\newblock{\space} \newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}} \newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}} \newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}} \newcommand\bibstyle@inline{\bibstyle@numbers} % \end{macrocode} % \end{macro} % % \cs{bibliographystyle} % \begin{macrocode} \@namedef{bibstyle@gbt7714-numerical}{\bibstyle@super} \@namedef{bibstyle@gbt7714-author-year}{\bibstyle@authoryear} \@namedef{bibstyle@gbt7714-2005-numerical}{\bibstyle@super} \@namedef{bibstyle@gbt7714-2005-author-year}{\bibstyle@authoryear} % \end{macrocode} % % \begin{macro}{\cite} % \pkg{natbib} % \pkg{etoolbox} \cs{patchcmd} % % Super \cs{citep} % |\kern\p@| % \href{path_to_url}{tuna/thuthesis\#624} % \begin{macrocode} \renewcommand\NAT@citesuper[3]{% \ifNAT@swa \if*#2*\else #2\NAT@spacechar \fi % \unskip\kern\p@\textsuperscript{\NAT@@open#1\NAT@@close}% % \if*#3*\else\NAT@spacechar#3\fi\else #1\fi\endgroup} \unskip\kern\p@ \textsuperscript{% \NAT@@open #1% \NAT@@close \if*#3*\else #3% \fi }% \kern\p@ \else #1% \fi \endgroup } % \end{macrocode} % % numbers \cs{citep} % \begin{macrocode} \renewcommand\NAT@citenum[3]{% \ifNAT@swa \NAT@@open \if*#2*\else #2\NAT@spacechar \fi % #1\if*#3*\else\NAT@cmt#3\fi\NAT@@close\else#1\fi\endgroup} #1\NAT@@close \if*#3*\else \textsuperscript{#3}% \fi \else #1% \fi \endgroup } % \end{macrocode} % % Numerical \cs{citet} % \begin{macrocode} \def\NAT@citexnum[#1][#2]#3{% \NAT@reset@parser \NAT@sort@cites{#3}% \NAT@reset@citea \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty \@for\@citeb:=\NAT@cite@list\do {\@safe@activestrue \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% \@safe@activesfalse \@ifundefined{b@\@citeb\@extra@b@citeb}{% {\reset@font\bfseries?} \NAT@citeundefined\PackageWarning{natbib}% {Citation `\@citeb' on page \thepage \space undefined}}% {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm \NAT@parse{\@citeb}% \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% \let\NAT@name=\NAT@all@names \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% \fi \ifNAT@full\let\NAT@nm\NAT@all@names\else \let\NAT@nm\NAT@name\fi \ifNAT@swa \@ifnum{\NAT@ctype>\@ne}{% \@citea \NAT@hyper@{\@ifnum{\NAT@ctype=\tw@}{\NAT@test{\NAT@ctype}}{\NAT@alias}}% }{% \@ifnum{\NAT@cmprs>\z@}{% \NAT@ifcat@num\NAT@num {\let\NAT@nm=\NAT@num}% {\def\NAT@nm{-2}}% \NAT@ifcat@num\NAT@last@num {\@tempcnta=\NAT@last@num\relax}% {\@tempcnta\m@ne}% \@ifnum{\NAT@nm=\@tempcnta}{% \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}% }{% \advance\@tempcnta by\@ne \@ifnum{\NAT@nm=\@tempcnta}{% % \end{macrocode} % % \pkg{natbib} % % \begin{macrocode} % \ifx\NAT@last@yr\relax % \def@NAT@last@yr{\@citea}% % \else % \def@NAT@last@yr{--\NAT@penalty}% % \fi \def@NAT@last@yr{-\NAT@penalty}% }{% \NAT@last@yr@mbox }% }% }{% \@tempswatrue \@ifnum{\NAT@merge>\@ne}{\@ifnum{\NAT@last@num=\NAT@num\relax}{\@tempswafalse}{}}{}% \if@tempswa\NAT@citea@mbox\fi }% }% \NAT@def@citea \else \ifcase\NAT@ctype \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\NAT@penalty\NAT@space\else \@citea \NAT@test{\@ne}\NAT@spacechar\NAT@mbox{\NAT@super@kern\NAT@@open}% \fi \if*#1*\else#1\NAT@spacechar\fi \NAT@mbox{\NAT@hyper@{{\citenumfont{\NAT@num}}}}% \NAT@def@citea@box \or \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% \or \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}% \or \NAT@hyper@citea@space\NAT@alias \fi \fi }% }% \@ifnum{\NAT@cmprs>\z@}{\NAT@last@yr}{}% \ifNAT@swa\else % \end{macrocode} % % % \begin{macrocode} % \@ifnum{\NAT@ctype=\z@}{% % \if*#2*\else\NAT@cmt#2\fi % }{}% \NAT@mbox{\NAT@@close}% \@ifnum{\NAT@ctype=\z@}{% \if*#2*\else \textsuperscript{#2}% \fi }{}% \NAT@super@kern \fi }{#1}{#2}% }% % \end{macrocode} % % Author-year \cs{citep} % \begin{macrocode} \renewcommand\NAT@cite% [3]{\ifNAT@swa\NAT@@open\if*#2*\else#2\NAT@spacechar\fi #1\NAT@@close\if*#3*\else\textsuperscript{#3}\fi\else#1\fi\endgroup} % \end{macrocode} % \end{macro} % % Author-year \cs{citet} % \begin{macrocode} \def\NAT@citex% [#1][#2]#3{% \NAT@reset@parser \NAT@sort@cites{#3}% \NAT@reset@citea \@cite{\let\NAT@nm\@empty\let\NAT@year\@empty \@for\@citeb:=\NAT@cite@list\do {\@safe@activestrue \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% \@safe@activesfalse \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea% {\reset@font\bfseries ?}\NAT@citeundefined \PackageWarning{natbib}% {Citation `\@citeb' on page \thepage \space undefined}\def\NAT@date{}}% {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year \NAT@parse{\@citeb}% \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% \let\NAT@name=\NAT@all@names \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% \fi \ifNAT@full\let\NAT@nm\NAT@all@names\else \let\NAT@nm\NAT@name\fi \ifNAT@swa\ifcase\NAT@ctype \if\relax\NAT@date\relax \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@date}% \else \ifx\NAT@last@nm\NAT@nm\NAT@yrsep \ifx\NAT@last@yr\NAT@year \def\NAT@temp{{?}}% \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% {Multiple citation on page \thepage: same authors and year\MessageBreak without distinguishing extra letter,\MessageBreak appears as question mark}\fi \NAT@hyper@{\NAT@exlab}% \else\unskip\NAT@spacechar \NAT@hyper@{\NAT@date}% \fi \else \@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{% \NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb }% \NAT@date }% \fi \fi \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \or\@citea\NAT@hyper@{\NAT@date}% \or\@citea\NAT@hyper@{\NAT@alias}% \fi \NAT@def@citea \else \ifcase\NAT@ctype \if\relax\NAT@date\relax \@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \else \ifx\NAT@last@nm\NAT@nm\NAT@yrsep \ifx\NAT@last@yr\NAT@year \def\NAT@temp{{?}}% \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}% {Multiple citation on page \thepage: same authors and year\MessageBreak without distinguishing extra letter,\MessageBreak appears as question mark}\fi \NAT@hyper@{\NAT@exlab}% \else \unskip\NAT@spacechar \NAT@hyper@{\NAT@date}% \fi \else \@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{\NAT@spacechar\NAT@@open\if*#1*\else#1\NAT@spacechar\fi}% {\@citeb\@extra@b@citeb}% \NAT@date }% \fi \fi \or\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}}% \or\@citea\NAT@hyper@{\NAT@date}% \or\@citea\NAT@hyper@{\NAT@alias}% \fi \if\relax\NAT@date\relax \NAT@def@citea \else \NAT@def@citea@close \fi \fi }}\ifNAT@swa\else % \end{macrocode} % % % \begin{macrocode} % \if*#2*\else\NAT@cmt#2\fi \if\relax\NAT@date\relax\else\NAT@@close\fi \if*#2*\else\textsuperscript{#2}\fi \fi}{#1}{#2}} % \end{macrocode} % % \begin{environment}{thebibliography} % % \begin{macrocode} \renewcommand\@biblabel[1]{[#1]\hfill} % \end{macrocode} % \end{environment} % % Patch \pkg{natbib} \cs{noopsort} % \url{path_to_url} % \begin{macrocode} \let\NAT@bare@aux\NAT@bare \def\NAT@bare#1(#2){% \begingroup\edef\x{\endgroup \unexpanded{\NAT@bare@aux#1}(\@firstofone#2)}\x} % \end{macrocode} % % \begin{macro}{\url} % \pkg{xurl} URL % \begin{macrocode} \g@addto@macro\UrlBreaks{% \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9% \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M \do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m \do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z } \Urlmuskip=0mu plus 0.1mu % \end{macrocode} % \end{macro} % % v2.0 % \begin{macrocode} \newif\ifgbt@bib@style@written \@ifpackageloaded{chapterbib}{}{% \def\bibliography#1{% \ifgbt@bib@style@written\else \bibliographystyle{gbt7714-numerical}% \fi \if@filesw \immediate\write\@auxout{\string\bibdata{\zap@space#1 \@empty}}% \fi \@input@{\jobname.bbl}} \def\bibliographystyle#1{% \gbt@bib@style@writtentrue \ifx\@begindocumenthook\@undefined\else \expandafter\AtBeginDocument \fi {\if@filesw \immediate\write\@auxout{\string\bibstyle{#1}}% \fi}% }% } \ifgbt@legacy@interface \ifgbt@numerical \ifgbt@super\else \citestyle{numbers} \fi \bibliographystyle{gbt7714-numerical} \else \bibliographystyle{gbt7714-author-year} \fi \fi %</package> % \end{macrocode} % % % % \section{BibTeX } % \label{bst-implementation} % \linespread{1} % % \subsection{} % \label{sec:options} % % \begin{environment}{bst} % % |load.config| % \begin{macrocode} %<*author-year|numerical> INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period %<*author-year> lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order %</author-year> } STRINGS { component.part.label } % \end{macrocode} % % |#1| |#0| % % \begin{macrocode} FUNCTION {load.config} { % \end{macrocode} % % |et.al.min| |et.al.use.first| % et al. % \begin{macrocode} %<*!ucas> #2 'citation.et.al.min := #1 'citation.et.al.use.first := %</!ucas> %<*ucas> #3 'citation.et.al.min := #1 'citation.et.al.use.first := %</ucas> #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := % \end{macrocode} % % % \begin{macrocode} %<*!(no-uppercase|thu)> #1 'uppercase.name := %</!(no-uppercase|thu)> %<*no-uppercase|thu> #0 'uppercase.name := %</no-uppercase|thu> % \end{macrocode} % % TeX % \begin{macrocode} %<*!(macro|ucas)> #0 'terms.in.macro := %</!(macro|ucas)> %<*macro|ucas> #1 'terms.in.macro := %</macro|ucas> % \end{macrocode} % % - % \begin{macrocode} %<*numerical|ucas> #0 'year.after.author := %</numerical|ucas> %<*author-year&!ucas> #1 'year.after.author := %</author-year&!ucas> % \end{macrocode} % % - % \begin{macrocode} %<*numerical> #1 'period.after.author := %</numerical> %<*author-year> %<*2015&!(period|ustc)> #0 'period.after.author := %</2015&!(period|ustc)> %<*period|2005|ustc> #1 'period.after.author := %</period|2005|ustc> %</author-year> % \end{macrocode} % % % \begin{macrocode} %<*!italic-book-title> #0 'italic.book.title := %</!italic-book-title> %<*italic-book-title> #1 'italic.book.title := %</italic-book-title> % \end{macrocode} % % sentence case % \begin{macrocode} %<*!no-sentence-case> #1 'sentence.case.title := %</!no-sentence-case> %<*no-sentence-case> #0 'sentence.case.title := %</no-sentence-case> % \end{macrocode} % % % \begin{macrocode} %<*!link-title> #0 'link.title := %</!link-title> %<*link-title> #1 'link.title := %</link-title> % \end{macrocode} % % % \begin{macrocode} %<*!no-title-in-journal> #1 'title.in.journal := %</!no-title-in-journal> %<*no-title-in-journal> #0 'title.in.journal := %</no-title-in-journal> % \end{macrocode} % % % \begin{macrocode} %<*!(show-patent-country|2005|ustc|thu)> #0 'show.patent.country := %</!(show-patent-country|2005|ustc|thu)> %<*(show-patent-country|2005|ustc|thu)> #1 'show.patent.country := %</(show-patent-country|2005|ustc|thu)> % \end{macrocode} % % [M/OL] % \begin{macrocode} %<*!no-mark> #1 'show.mark := %</!no-mark> %<*no-mark> #0 'show.mark := %</no-mark> % \end{macrocode} % % % \begin{macrocode} %<*!space-before-mark> #0 'space.before.mark := %</!space-before-mark> %<*space-before-mark> #1 'space.before.mark := %</space-before-mark> % \end{macrocode} % % /OL % \begin{macrocode} %<*!no-medium-type> #1 'show.medium.type := %</!no-medium-type> %<*no-medium-type> #0 'show.medium.type := %</no-medium-type> % \end{macrocode} % % // % \begin{macrocode} %<*!(in-collection|no-slash)> "slash" 'component.part.label := %</!(in-collection|no-slash)> %<*in-collection> "in" 'component.part.label := %</in-collection> %<*no-slash> "none" 'component.part.label := %</no-slash> % \end{macrocode} % % % \begin{macrocode} %<*!short-journal> #0 'short.journal := %</!short-journal> %<*short-journal> #1 'short.journal := %</short-journal> % \end{macrocode} % % % \begin{macrocode} %<*!italic-journal> #0 'italic.journal := %</!italic-journal> %<*italic-journal> #1 'italic.journal := %</italic-journal> % \end{macrocode} % % % \begin{macrocode} %<*!link-journal> #0 'link.journal := %</!link-journal> %<*link-journal> #1 'link.journal := %</link-journal> % \end{macrocode} % % % \begin{macrocode} #0 'bold.journal.volume := % \end{macrocode} % % S.l. s.n. % \begin{macrocode} %<*!sl-sn> #0 'show.missing.address.publisher := %</!sl-sn> %<*sl-sn> #1 'show.missing.address.publisher := %</sl-sn> % \end{macrocode} % % % \begin{macrocode} %<*!no-space-before-pages> #1 'space.before.pages := %</!no-space-before-pages> %<*no-space-before-pages> #0 'space.before.pages := %</no-space-before-pages> % \end{macrocode} % % % \begin{macrocode} %<*!only-start-page> #0 'only.start.page := %</!only-start-page> %<*only-start-page> #1 'only.start.page := %</only-start-page> % \end{macrocode} % % % \begin{macrocode} %<*!wave-dash-in-pages> #0 'wave.dash.in.pages := %</!wave-dash-in-pages> %<*wave-dash-in-pages> #1 'wave.dash.in.pages := %</wave-dash-in-pages> % \end{macrocode} % % % \begin{macrocode} %<*!no-urldate> #1 'show.urldate := %</!no-urldate> %<*no-urldate> #0 'show.urldate := %</no-urldate> % \end{macrocode} % % URL % \begin{macrocode} %<*!no-url> #1 'show.url := %</!no-url> %<*no-url> #0 'show.url := %</no-url> % \end{macrocode} % % DOI % \begin{macrocode} %<*!(no-doi|2005)> #1 'show.doi := %</!(no-doi|2005)> %<*no-doi|2005> #0 'show.doi := %</no-doi|2005> % \end{macrocode} % % e-print % \begin{macrocode} %<*!preprint> #1 'show.preprint := %</!preprint> %<*preprint> #0 'show.preprint := %</preprint> % \end{macrocode} % % note % \begin{macrocode} #0 'show.note := % \end{macrocode} % % % \begin{macrocode} %<*!show-english-translation> #0 'show.english.translation := %</!show-english-translation> %<*show-english-translation> #1 'show.english.translation := %</show-english-translation> % \end{macrocode} % % % \begin{macrocode} %<*!no-period-at-end> #1 'end.with.period := %</!no-period-at-end> %<*no-period-at-end> #0 'end.with.period := %</no-period-at-end> % \end{macrocode} % % - % \begin{macrocode} %<*author-year> #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := %</author-year> } % \end{macrocode} % % % \subsection{The ENTRY declaration} % % Like Scribe's (according to pages 231-2 of the April '84 edition), % but no fullauthor or editors fields because BibTeX does name handling. % The annote field is commented out here because this family doesn't % include an annotated bibliography style. And in addition to the fields % listed here, BibTeX has a built-in crossref field, explained later. % \begin{macrocode} ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } % \end{macrocode} % % These string entry variables are used to form the citation label. % In a storage pinch, sort.label can be easily computed on the fly. % \begin{macrocode} { label extra.label sort.label short.label short.list entry.mark entry.url } % \end{macrocode} % % % \subsection{Entry functions} % % Each entry function starts by calling output.bibitem, to write the % |\bibitem| and its arguments to the .BBL file. Then the various fields % are formatted and printed by output or output.check. Those functions % handle the writing of separators (commas, periods, |\newblock|'s), % taking care not to do so when they are passed a null string. % Finally, fin.entry is called to add the final period and finish the % entry. % % A bibliographic reference is formatted into a number of `blocks': % in the open format, a block begins on a new line and subsequent % lines of the block are indented. A block may contain more than % one sentence (well, not a grammatical sentence, but something to % be ended with a sentence ending period). The entry functions should % call new.block whenever a block other than the first is about to be % started. They should call new.sentence whenever a new sentence is % to be started. The output functions will ensure that if two % new.sentence's occur without any non-null string being output between % them then there won't be two periods output. Similarly for two % successive new.block's. % % The output routines don't write their argument immediately. % Instead, by convention, that argument is saved on the stack to be % output next time (when we'll know what separator needs to come % after it). Meanwhile, the output routine has to pop the pending % output off the stack, append any needed separator, and write it. % % To tell which separator is needed, we maintain an output.state. % It will be one of these values: % before.all just after the |\bibitem| % mid.sentence in the middle of a sentence: comma needed % if more sentence is output % after.sentence just after a sentence: period needed % after.block just after a block (and sentence): % period and |\newblock| needed. % Note: These styles don't use after.sentence % % VAR: output.state : INTEGER -- state variable for output % % The output.nonnull function saves its argument (assumed to be nonnull) % on the stack, and writes the old saved value followed by any needed % separator. The ordering of the tests is decreasing frequency of % occurrence. % % // after.slash % output.after % % \begin{pseudocode} % output.nonnull(s) == % BEGIN % s := argument on stack % if output.state = mid.sentence then % write$(pop() * ", ") % -- "pop" isn't a function: just use stack top % else % if output.state = after.block then % write$(add.period$(pop())) % newline$ % write$("\newblock ") % else % if output.state = before.all then % write$(pop()) % else -- output.state should be after.sentence % write$(add.period$(pop()) * " ") % fi % fi % output.state := mid.sentence % fi % push s on stack % END % \end{pseudocode} % % The output function calls output.nonnull if its argument is non-empty; % its argument may be a missing field (thus, not necessarily a string) % % \begin{pseudocode} % output(s) == % BEGIN % if not empty$(s) then output.nonnull(s) % fi % END % \end{pseudocode} % % The output.check function is the same as the output function except that, if % necessary, output.check warns the user that the t field shouldn't be empty % (this is because it probably won't be a good reference without the field; % the entry functions try to make the formatting look reasonable even when % such fields are empty). % % \begin{pseudocode} % output.check(s,t) == % BEGIN % if empty$(s) then % warning$("empty " * t * " in " * cite$) % else output.nonnull(s) % fi % END % \end{pseudocode} % % The output.bibitem function writes the |\bibitem| for the current entry % (the label should already have been set up), and sets up the separator % state for the output functions. And, it leaves a string on the stack % as per the output convention. % % \begin{pseudocode} % output.bibitem == % BEGIN % newline$ % write$("\bibitem[") % for alphabetic labels, % write$(label) % these three lines % write$("]{") % are used % write$("\bibitem{") % this line for numeric labels % write$(cite$) % write$("}") % push "" on stack % output.state := before.all % END % \end{pseudocode} % % The fin.entry function finishes off an entry by adding a period to the % string remaining on the stack. If the state is still before.all % then nothing was produced for this entry, so the result will look bad, % but the user deserves it. (We don't omit the whole entry because the % entry was cited, and a bibitem is needed to define the citation label.) % % \begin{pseudocode} % fin.entry == % BEGIN % write$(add.period$(pop())) % newline$ % END % \end{pseudocode} % % The new.block function prepares for a new block to be output, and % new.sentence prepares for a new sentence. % % \begin{pseudocode} % new.block == % BEGIN % if output.state <> before.all then % output.state := after.block % fi % END % \end{pseudocode} % % \begin{pseudocode} % new.sentence == % BEGIN % if output.state <> after.block then % if output.state <> before.all then % output.state := after.sentence % fi % fi % END % \end{pseudocode} % \begin{macrocode} INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } % \end{macrocode} % % % \begin{macrocode} FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } %<*!2005> FUNCTION {bbl.wide.space} { "\quad " } %</!2005> %<*2005> FUNCTION {bbl.wide.space} { "\ " } %</2005> FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } % \end{macrocode} % % These three functions pop one or two (integer) arguments from the stack % and push a single one, either 0 or 1. % The |'skip$| in the `and' and `or' functions are used because % the corresponding |if$| would be idempotent % \begin{macrocode} FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } % \end{macrocode} % % the variables s and t are temporary string holders % \begin{macrocode} STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } % \end{macrocode} % % This function finishes all entries. % % \begin{macrocode} FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } % \end{macrocode} % % Sometimes we begin a new block only if the block will be big enough. The % new.block.checka function issues a new.block if its argument is nonempty; % new.block.checkb does the same if either of its TWO arguments is nonempty. % \begin{macrocode} FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } % \end{macrocode} % % The new.sentence.check functions are analogous. % \begin{macrocode} FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } % \end{macrocode} % % % \subsection{Formatting chunks} % % Here are some functions for formatting chunks of an entry. % By convention they either produce a string that can be followed by % a comma or period (using |add.period$|, so it is OK to end in a period), % or they produce the null string. % % A useful utility is the field.or.null function, which checks if the % argument is the result of pushing a `missing' field (one for which no % assignment was made when the current entry was read in from the database) % or the result of pushing a string having no non-white-space characters. % It returns the null string if so, otherwise it returns the field string. % Its main (but not only) purpose is to guarantee that what's left on the % stack is a string rather than a missing field. % % \begin{pseudocode} % field.or.null(s) == % BEGIN % if empty$(s) then return "" % else return s % END % \end{pseudocode} % % Another helper function is emphasize, which returns the argument emphazised, % if that is non-empty, otherwise it returns the null string. Italic % corrections aren't used, so this function should be used when punctation % will follow the result. % % \begin{pseudocode} % emphasize(s) == % BEGIN % if empty$(s) then return "" % else return "{\em " * s * "}" % \end{pseudocode} % % The `pop\$' in this function gets rid of the duplicate `empty' value and % the `skip\$' returns the duplicate field value % \begin{macrocode} FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } % \end{macrocode} % % \subsubsection{Detect Language} % \begin{macrocode} INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < % \end{macrocode} % U+0400 U+052F UTF-8 D0 80 D4 AF % \begin{macrocode} { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < % \end{macrocode} % CJK Unified Ideographs: U+4E00--U+9FFF; UTF-8: E4 B8 80--E9 BF BF. % \begin{macrocode} { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } % \end{macrocode} % CJK Unified Ideographs Extension A: U+3400--U+4DBF; UTF-8: E3 90 80--E4 B6 BF. % \begin{macrocode} { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } % \end{macrocode} % U+3040--U+30FF, UTF-8: E3 81 80--E3 83 BF. % \begin{macrocode} { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } % \end{macrocode} % CJK Compatibility Ideographs: U+F900--U+FAFF, UTF-8: EF A4 80--EF AB BF. % \begin{macrocode} { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } % \end{macrocode} % CJK Unified Ideographs Extension B--F: U+20000--U+2EBEF, % UTF-8: F0 A0 80 80--F0 AE AF AF. % CJK Compatibility Ideographs Supplement: U+2F800--U+2FA1F, % UTF-8: F0 AF A0 80--F0 AF A8 9F. % \begin{macrocode} { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } % \end{macrocode} % % \subsubsection{Format names} % % The format.names function formats the argument (which should be in % BibTeX name format) into "First Von Last, Junior", separated by commas % and with an "and" before the last (but ending with "et~al." if the last % of multiple authors is "others"). This function's argument should always % contain at least one name. % % \begin{pseudocode} % VAR: nameptr, namesleft, numnames: INTEGER % pseudoVAR: nameresult: STRING (it's what's accumulated on the stack) % % format.names(s) == % BEGIN % nameptr := 1 % numnames := num.names$(s) % namesleft := numnames % while namesleft > 0 % do % % for full names: % t := format.name$(s, nameptr, "{ff~}{vv~}{ll}{, jj}") % % for abbreviated first names: % t := format.name$(s, nameptr, "{f.~}{vv~}{ll}{, jj}") % if nameptr > 1 then % if namesleft > 1 then nameresult := nameresult * ", " * t % else if numnames > 2 % then nameresult := nameresult * "," % fi % if t = "others" % then nameresult := nameresult * " et~al." % else nameresult := nameresult * " and " * t % fi % fi % else nameresult := t % fi % nameptr := nameptr + 1 % namesleft := namesleft - 1 % od % return nameresult % END % \end{pseudocode} % % The format.authors function returns the result of format.names(author) % if the author is present, or else it returns the null string % % \begin{pseudocode} % format.authors == % BEGIN % if empty$(author) then return "" % else return format.names(author) % fi % END % \end{pseudocode} % % Format.editors is like format.authors, but it uses the editor field, % and appends ", editor" or ", editors" % % \begin{pseudocode} % format.editors == % BEGIN % if empty$(editor) then return "" % else % if num.names$(editor) > 1 then % return format.names(editor) * ", editors" % else % return format.names(editor) * ", editor" % fi % fi % END % \end{pseudocode} % % Other formatting functions are similar, so no "comment version" will be % given for them. % \begin{macrocode} INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ %<*author-year> bbl.anonymous %</author-year> %<*numerical> "" %</numerical> } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } % \end{macrocode} % % \subsubsection{Format title} % % The |format.title| function is used for non-book-like titles. % For most styles we convert to lowercase (except for the very first letter, % and except for the first one after a colon (followed by whitespace)), % and hope the user has brace-surrounded words that need to stay capitilized; % for some styles, however, we leave it as it is in the database. % \begin{macrocode} FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } % \end{macrocode} % % For several functions we'll need to connect two strings with a % tie (|~|) if the second one isn't very long (fewer than 3 characters). % The tie.or.space.connect function does that. It concatenates the two % strings on top of the stack, along with either a tie or space between % them, and puts this concatenation back onto the stack: % % \begin{pseudocode} % tie.or.space.connect(str1,str2) == % BEGIN % if text.length$(str2) < 3 % then return the concatenation of str1, "~", and str2 % else return the concatenation of str1, " ", and str2 % END % \end{pseudocode} % \begin{macrocode} FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } % \end{macrocode} % % The either.or.check function complains if both fields or an either-or pair % are nonempty. % % \begin{pseudocode} % either.or.check(t,s) == % BEGIN % if empty$(s) then % warning$(can't use both " * t * " fields in " * cite$) % fi % END % \end{pseudocode} % \begin{macrocode} FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } % \end{macrocode} % % The format.bvolume function is for formatting the volume and perhaps % series name of a multivolume work. If both a volume and a series field % are there, we assume the series field is the title of the whole multivolume % work (the title field should be the title of the thing being referred to), % and we add an "of <series>". This function is called in mid-sentence. % % The format.number.series function is for formatting the series name % and perhaps number of a work in a series. This function is similar to % format.bvolume, although for this one the series must exist (and the % volume must not exist). If the number field is empty we output either % the series field unchanged if it exists or else the null string. % If both the number and series fields are there we assume the series field % gives the name of the whole series (the title field should be the title % of the work being one referred to), and we add an "in <series>". % We capitilize Number when this function is used at the beginning of a block. % \begin{macrocode} FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } % \end{macrocode} % % \begin{macrocode} FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } % \end{macrocode} % % \subsubsection{Format entry type mark} % % \begin{macrocode} FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } % \end{macrocode} % % \subsubsection{Format edition} % % The format.edition function appends " edition" to the edition, if present. % We lowercase the edition (it should be something like "Third"), because % this doesn't start a sentence. % \begin{macrocode} FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } % \end{macrocode} % % \subsubsection{Format publishing items} % % [S.l.: s.n.] % \begin{macrocode} FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } % \end{macrocode} % % \subsubsection{Format date} % % The format.date function is for the month and year, but we give a warning if % there's an empty year but the month is there, and we return the empty string % if they're both empty. % % /-- % v2.0.2 -- % \begin{macrocode} FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } % \end{macrocode} % % - % \begin{macrocode} FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } % \end{macrocode} % % % \begin{macrocode} FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } % \end{macrocode} % % electronic % \begin{macrocode} FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } % \end{macrocode} % % URL urldate % \BibTeX{} % \begin{macrocode} FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } % \end{macrocode} % % \subsubsection{Format pages} % % By default, BibTeX sets the global integer variable |global.max$| to the BibTeX % constant |glob_str_size|, the maximum length of a global string variable. % Analogously, BibTeX sets the global integer variable |entry.max$| to % |ent_str_size|, the maximum length of an entry string variable. % The style designer may change these if necessary (but this is unlikely) % % The n.dashify function makes each single |`-'| in a string a double |`--'| % if it's not already % % \begin{pseudocode} % pseudoVAR: pageresult: STRING (it's what's accumulated on the stack) % % n.dashify(s) == % BEGIN % t := s % pageresult := "" % while (not empty$(t)) % do % if (first character of t = "-") % then % if (next character isn't) % then % pageresult := pageresult * "--" % t := t with the "-" removed % else % while (first character of t = "-") % do % pageresult := pageresult * "-" % t := t with the "-" removed % od % fi % else % pageresult := pageresult * the first character % t := t with the first character removed % fi % od % return pageresult % END % \end{pseudocode} % % hyphen dash hyphen % \begin{macrocode} FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } % \end{macrocode} % % This function doesn't begin a sentence so "pages" isn't capitalized. % Other functions that use this should keep that in mind. % \begin{macrocode} FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } % \end{macrocode} % % The |format.vol.num.pages| function is for the volume, number, and page range % of a journal article. We use the format: vol(number):pages, with some % variations for empty fields. This doesn't begin a sentence. % % % \begin{macrocode} FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } % \end{macrocode} % % % \begin{macrocode} FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } % \end{macrocode} % % \subsubsection{Format url and doi} % % \BibTeX{} howpublished url % \begin{macrocode} FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } % \end{macrocode} % % DOI URL % \begin{macrocode} FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } % \end{macrocode} % % The function empty.misc.check complains if all six fields are empty, and % if there's been no sorting or alphabetic-label complaint. % \begin{macrocode} FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } % \end{macrocode} % % % \subsection{Functions for all entry types} % % Now we define the type functions for all entry types that may appear % in the .BIB file---e.g., functions like `article' and `book'. These % are the routines that actually generate the .BBL-file output for % the entry. These must all precede the READ command. In addition, the % style designer should have a function `default.type' for unknown types. % Note: The fields (within each list) are listed in order of appearance, % except as described for an `inbook' or a `proceedings'. % % \subsubsection{} % % \begin{macrocode} FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ %<*author-year> bbl.anonymous %</author-year> %<*numerical> "" %</numerical> } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % An incollection is like inbook, but where there is a separate title % for the referenced thing (and perhaps an editor for the whole). % An incollection may CROSSREF a book. % % Required: author, title, booktitle, publisher, year % % Optional: editor, volume or number, series, type, chapter, pages, % address, edition, month, note % \begin{macrocode} FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % \begin{macrocode} FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % The article function is for an article in a journal. An article may % CROSSREF another article. % % Required fields: author, title, journal, year % % Optional fields: volume, number, pages, month, note % % The other entry functions are all quite similar, so no "comment version" % will be given for them. % \begin{macrocode} FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % number % \begin{macrocode} FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % \begin{macrocode} FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % \begin{macrocode} FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ %<*author-year> bbl.anonymous %</author-year> %<*numerical> "" %</numerical> } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check %<*2015> "A" set.entry.mark %</2015> %<*!2015> "Z" set.entry.mark %</!2015> format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } % \end{macrocode} % % \subsubsection{} % % A misc is something that doesn't fit elsewhere. % % Required: at least one of the `optional' fields % % Optional: author, title, howpublished, month, year, note % % Misc % \begin{macrocode} FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { %<*!2005> "Z" set.entry.mark %</!2005> %<*2005> "M" set.entry.mark %</2005> monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } % \end{macrocode} % % The book function is for a whole book. A book may CROSSREF another book. % % Required fields: author or editor, title, publisher, year % % Optional fields: volume or number, series, address, edition, month, % note % \begin{macrocode} FUNCTION {book} { monograph } % \end{macrocode} % % A booklet is a bound thing without a publisher or sponsoring institution. % % Required: title % % Optional: author, howpublished, address, month, year, note % \begin{macrocode} FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } % \end{macrocode} % % An inbook is a piece of a book: either a chapter and/or a page range. % It may CROSSREF a book. If there's no volume field, the type field % will come before number and series. % % Required: author or editor, title, chapter and/or pages, publisher,year % % Optional: volume or number, series, type, address, edition, month, note % % BibTeX \texttt{@inbook} \texttt{booktitle} % biblatex \texttt{@inbook} \texttt{incollection} % % \begin{macrocode} FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } % \end{macrocode} % % An inproceedings is an article in a conference proceedings, and it may % CROSSREF a proceedings. If there's no address field, the month (\& year) % will appear just before note. % % Required: author, title, booktitle, year % % Optional: editor, volume or number, series, pages, address, month, % organization, publisher, note % \begin{macrocode} FUNCTION {inproceedings} { "C" set.entry.mark incollection } % \end{macrocode} % % The conference function is included for Scribe compatibility. % \begin{macrocode} FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } % \end{macrocode} % % A manual is technical documentation. % % Required: title % % Optional: author, organization, address, edition, month, year, note % \begin{macrocode} FUNCTION {manual} { monograph } % \end{macrocode} % % A mastersthesis is a Master's thesis. % % Required: author, title, school, year % % Optional: type, address, month, note % \begin{macrocode} FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } % \end{macrocode} % % A phdthesis is like a mastersthesis. % % Required: author, title, school, year % % Optional: type, address, month, note % \begin{macrocode} FUNCTION {phdthesis} { mastersthesis } % \end{macrocode} % % A proceedings is a conference proceedings. % If there is an organization but no editor field, the organization will % appear as the first optional field (we try to make the first block nonempty); % if there's no address field, the month (\& year) will appear just before note. % % Required: title, year % % Optional: editor, volume or number, series, address, month, % organization, publisher, note % \begin{macrocode} FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } % \end{macrocode} % % A techreport is a technical report. % % Required: author, title, institution, year % % Optional: type, number, address, month, note % \begin{macrocode} FUNCTION {techreport} { "R" set.entry.mark misc } % \end{macrocode} % % An unpublished is something that hasn't been published. % % Required: author, title, note % % Optional: month, year % \begin{macrocode} FUNCTION {unpublished} { misc } % \end{macrocode} % % We use entry type `misc' for an unknown type; BibTeX gives a warning. % \begin{macrocode} FUNCTION {default.type} { misc } % \end{macrocode} % % % \subsection{Common macros} % % Here are macros for common things that may vary from style to style. % Users are encouraged to use these macros. % % Months are either written out in full or abbreviated % \begin{macrocode} MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} % \end{macrocode} % % Journals are either written out in full or abbreviated; % the abbreviations are like those found in ACM publications. % % To get a completely different set of abbreviations, it may be best to make % a separate .bib file with nothing but those abbreviations; users could then % include that file name as the first argument to the \cs{bibliography} command % \begin{macrocode} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} % \end{macrocode} % % % \subsection{Format labels} % % The sortify function converts to lower case after |purify$|ing; it's % used in sorting and in computing alphabetic labels after sorting % % The chop.word(w,len,s) function returns either s or, if the first len % letters of s equals w (this comparison is done in the third line of the % function's definition), it returns that part of s after w. % \begin{macrocode} FUNCTION {sortify} { purify$ "l" change.case$ } % \end{macrocode} % % We need the chop.word stuff for the dubious unsorted-list-with-labels case. % \begin{macrocode} FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } % \end{macrocode} % % The |format.lab.names| function makes a short label by using the initials of % the von and Last parts of the names (but if there are more than four names, % (i.e., people) it truncates after three and adds a superscripted "+"; % it also adds such a "+" if the last of multiple authors is "others"). % If there is only one name, and its von and Last parts combined have just % a single name-token ("Knuth" has a single token, "Brinch Hansen" has two), % we take the first three letters of the last name. The boolean % et.al.char.used tells whether we've used a superscripted "+", so that we % know whether to include a LaTeX macro for it. % % \begin{pseudocode} % format.lab.names(s) == % BEGIN % numnames := num.names$(s) % if numnames > 1 then % if numnames > 4 then % namesleft := 3 % else % namesleft := numnames % nameptr := 1 % nameresult := "" % while namesleft > 0 % do % if (name_ptr = numnames) and % format.name$(s, nameptr, "{ff }{vv }{ll}{ jj}") = "others" % then nameresult := nameresult * "{\etalchar{+}}" % et.al.char.used := true % else nameresult := nameresult * % format.name$(s, nameptr, "{v{}}{l{}}") % nameptr := nameptr + 1 % namesleft := namesleft - 1 % od % if numnames > 4 then % nameresult := nameresult * "{\etalchar{+}}" % et.al.char.used := true % else % t := format.name$(s, 1, "{v{}}{l{}}") % if text.length$(t) < 2 then % there's just one name-token % nameresult := text.prefix$(format.name$(s,1,"{ll}"),3) % else % nameresult := t % fi % fi % return nameresult % END % \end{pseudocode} % % Exactly what fields we look at in constructing the primary part of the label % depends on the entry type; this selectivity (as opposed to, say, always % looking at author, then editor, then key) helps ensure that "ignored" fields, % as described in the LaTeX book, really are ignored. Note that MISC is part % of the deepest `else' clause in the nested part of calc.label; thus, any % unrecognized entry type in the database is handled correctly. % % There is one auxiliary function for each of the four different sequences of % fields we use. The first of these functions looks at the author field, and % then, if necessary, the key field. The other three functions, which might % look at two fields and the key field, are similar, except that the key field % takes precedence over the organization field (for labels---not for sorting). % % The calc.label function calculates the preliminary label of an entry, which % is formed by taking three letters of information from the author or editor or % key or organization field (depending on the entry type and on what's empty, % but ignoring a leading "The " in the organization), and appending the last % two characters (digits) of the year. It is an error if the appropriate fields % among author, editor, organization, and key are missing, and we use % the first three letters of the |cite$| in desperation when this happens. % The resulting label has the year part, but not the name part, |purify$|ed % (|purify$|ing the year allows some sorting shenanigans by the user). % % This function also calculates the version of the label to be used in sorting. % % The final label may need a trailing 'a', 'b', etc., to distinguish it from % otherwise identical labels, but we can't calculated those "extra.label"s % until after sorting. % % \begin{pseudocode} % calc.label == % BEGIN % if type$ = "book" or "inbook" then % author.editor.key.label % else if type$ = "proceedings" then % editor.key.organization.label % else if type$ = "manual" then % author.key.organization.label % else % author.key.label % fi fi fi % label := label * substring$(purify$(field.or.null(year)), -1, 2) % % assuming we will also sort, we calculate a sort.label % sort.label := sortify(label), but use the last four, not two, digits % END % \end{pseudocode} % \begin{macrocode} FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } % \end{macrocode} % % % \ , 2010a, 2010b % |short.label| et al % \begin{macrocode} FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } % \end{macrocode} % % label [ \cs{bibitem} % \pkg{bibunits}name(year)fullname % \href{path_to_url}{tuna/thuthesis/\#630} % \begin{macrocode} FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } % \end{macrocode} % % % \subsection{Sorting} % % When sorting, we compute the sortkey by executing "presort" on each entry. % The presort key contains a number of "sortify"ed strings, concatenated % with multiple blanks between them. This makes things like "brinch per" % come before "brinch hansen per". % % The fields used here are: the sort.label for alphabetic labels (as set by % |calc.label|), followed by the author names (or editor names or organization % (with a leading "The " removed) or key field, depending on entry type and on % what's empty), followed by year, followed by the first bit of the title % (chopping off a leading "The ", "A ", or "An "). % Names are formatted: Von Last First Junior. % The names within a part will be separated by a single blank % (such as "brinch hansen"), two will separate the name parts themselves % (except the von and last), three will separate the names, % four will separate the names from year (and from label, if alphabetic), % and four will separate year from title. % % The |sort.format.names| function takes an argument that should be in % BibTeX name format, and returns a string containing " "-separated % names in the format described above. The function is almost the same % as format.names. % \begin{macrocode} %<*author-year> FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } % \end{macrocode} % % The sort.format.title function returns the argument, % but first any leading "A "'s, "An "'s, or "The "'s are removed. % The chop.word function uses s, so we need another string variable, t % \begin{macrocode} FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } % \end{macrocode} % % The auxiliary functions here, for the presort function, are analogous to % the ones for calc.label; the same comments apply, except that the % organization field takes precedence here over the key field. For sorting % purposes, we still remove a leading "The " from the organization field. % \begin{macrocode} FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } %</author-year> % \end{macrocode} % % % \begin{macrocode} %<*numerical> INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } %</numerical> % \end{macrocode} % % There is a limit, |entry.max$|, on the length of an entry string variable % (which is what its |sort.key$| is), so we take at most that many characters % of the constructed key, and hope there aren't many references that match % to that many characters! % \begin{macrocode} FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * %<*author-year> sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ %</author-year> %<*numerical> seq.num #1 + 'seq.num := seq.num int.to.fix %</numerical> 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } % \end{macrocode} % % Now comes the final computation for alphabetic labels, putting in the 'a's % and 'b's and so forth if required. This involves two passes: a forward % pass to put in the 'b's, 'c's and so on, and a backwards pass % to put in the 'a's (we don't want to put in 'a's unless we know there % are 'b's). % We have to keep track of the longest (in |width$| terms) label, for use % by the "thebibliography" environment. % % \begin{pseudocode} % VAR: longest.label, last.sort.label, next.extra: string % longest.label.width, last.extra.num: integer % % initialize.longest.label == % BEGIN % longest.label := "" % last.sort.label := int.to.chr$(0) % next.extra := "" % longest.label.width := 0 % last.extra.num := 0 % END % % forward.pass == % BEGIN % if last.sort.label = sort.label then % last.extra.num := last.extra.num + 1 % extra.label := int.to.chr$(last.extra.num) % else % last.extra.num := chr.to.int$("a") % extra.label := "" % last.sort.label := sort.label % fi % END % % reverse.pass == % BEGIN % if next.extra = "b" then % extra.label := "a" % fi % label := label * extra.label % if width$(label) > longest.label.width then % longest.label := label % longest.label.width := width$(label) % fi % next.extra := extra.label % END % \end{pseudocode} % \begin{macrocode} STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { %<*author-year> last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ %</author-year> number.label #1 + 'number.label := } FUNCTION {reverse.pass} { %<*author-year> next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := %</author-year> label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } % \end{macrocode} % % % \subsection{Write bbl file} % % Now we're ready to start writing the .BBL file. % We begin, if necessary, with a \LaTeX{} macro for unnamed names in an % alphabetic label; next comes stuff from the `preamble' command in the % database files. Then we give an incantation containing the command % |\begin{thebibliography}{...}| % where the `...' is the longest label. % % We also call init.state.consts, for use by the output routines. % \begin{macrocode} FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } % \end{macrocode} % % Finally, we finish up by writing the `|\end{thebibliography}|' command. % \begin{macrocode} FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } % \end{macrocode} % % % \subsection{Main execution} % % Now we read in the .BIB entries. % \begin{macrocode} READ EXECUTE {init.state.consts} EXECUTE {load.config} %<*numerical> EXECUTE {init.seq} %</numerical> ITERATE {presort} % \end{macrocode} % % And now we can sort % \begin{macrocode} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} % \end{macrocode} % % Now we produce the output for all the entries % \begin{macrocode} ITERATE {call.type$} EXECUTE {end.bib} %</author-year|numerical> % \end{macrocode} % \end{environment} % % \Finale \endinput ```
/content/code_sandbox/gbt7714.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
33,063
```unknown %% %% This is file `variants/thu/thuthesis-numeric.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,thu,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #0 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/thu/thuthesis-numeric.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,565
```unknown %% %% This is file `variants/thu/thuthesis-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,thu,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #0 'uppercase.name := #0 'terms.in.macro := #1 'year.after.author := #0 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/thu/thuthesis-author-year.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,596
```unknown %% %% This is file `variants/thu/thuthesis-bachelor.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/thu/thuthesis-bachelor.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,562
```unknown %% %% This is file `variants/ustc/ustcthesis-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,ustc,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/ustc/ustcthesis-numerical.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,568
```unknown %% %% This is file `variants/ustc/ustcthesis-authoryear.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,ustc,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #1 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #1 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/ustc/ustcthesis-authoryear.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,599
```unknown %% %% This is file `variants/ustc/ustcthesis-bachelor.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,numerical,italic-journal,no-url,no-doi') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #1 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #0 'show.url := #0 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/ustc/ustcthesis-bachelor.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,573
```unknown %% %% This is file `variants/ucas/ucasthesis-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,ucas,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #3 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #1 'terms.in.macro := #0 'year.after.author := #0 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/ucas/ucasthesis-author-year.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,597
```python abbrs = { 'China Physics C': 'Chin Phys C', 'Chinese Physics Letters': 'Chin Phys Lett', 'Nuclear Instruments and Methods in Physics Research Section A': 'Nucl Instr and Meth A', 'Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment': 'Nucl Instr and Meth A', 'Nuclear Instruments and Methods in Physics Research Section B': 'Nucl Instr and Meth B', 'Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms': 'Nucl Instr and Meth B', 'Physical Review C': 'Phys Rev C', 'Physical Review D': 'Phys Rev D', 'Physical Review E': 'Phys Rev E', 'Physical Review Letters': 'Phys Rev Lett', 'Physics Letters B': 'Phys Lett B', } lines = [] lines.append('''\ FUNCTION {short.journal} { 't := t "l" change.case$ 's := ''') # for k, v in abbrs.items(): # lines.append(f' s "{k.lower()}" =\n {{ "{v}" }} {{\n') # lines.append(f' t\n') # for _ in range(len(abbrs)): # lines.append(f' }} if$\n') for k, v in abbrs.items(): k = k.replace('.', '').lower() lines.append(f' s "{k}" =\n') lines.append(f' {{ "{v}" }}\n') lines.append(f' \'skip$\n') lines.append(f' if$\n') lines.append('''\ \'s := s empty$ { t } { s } if$ } ''') for line in lines: print(line, end='') with open('abbr.bst', 'w') as f: f.writelines(lines) ```
/content/code_sandbox/tools/abbr-journal.py
python
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
421
```lua testfiledir = "./test/testfiles-bibunits" testsuppdir = testfiledir .. "/support" checkruns = 3 function runtest_tasks(name) return "bibtex -terse bu1; bibtex -terse bu2" end ```
/content/code_sandbox/test/config-bibunits.lua
lua
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
60
```lua testfiledir = "./test/testfiles-chapterbib" testsuppdir = testfiledir .. "/support" checkruns = 3 function runtest_tasks(name) return "bibtex -terse section1; bibtex -terse section2" end ```
/content/code_sandbox/test/config-chapterbib.lua
lua
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
60
```shell testfiledir="test/testbst" testsuppdir="$testfiledir/support" unpackdir="build/unpacked"; testdir="build/test"; texoptions="-file-line-error -halt-on-error -interaction=nonstopmode" unpackexe="xetex $texoptions" checkexe="xelatex $texoptions -no-pdf" bibtexexe="bibtex" if [ ! -d "$unpackdir" ]; then mkdir -p "$unpackdir"; fi cp -f "gbt7714.dtx" "$unpackdir"; if [ ! -d "$testdir" ]; then mkdir -p "$testdir"; fi cp -f "$testfiledir/support/standard.bib" "$testdir"; if [ -z "$1" ]; then fails=0; echo "Running checks on"; for file in $testfiledir/*.dtx; do filename=$(basename $file); testname=$(basename $filename .dtx); echo " $testname"; cp -f "$file" "$unpackdir"; # test bib file ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) cp -f "$unpackdir/test.aux" "$testdir" cp -f "$unpackdir/test.bst" "$testdir" cp -f "$unpackdir/test.bib" "$testdir" ( cd $testdir; if ! $bibtexexe test > /dev/null; then $bibtexexe test | head -n 20; echo ""; fi ) bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; if ! diff -q "$bblfile" "$stdfile" > /dev/null 2> /dev/null; then echo " differs"; cp -f "$bblfile" "$stdfile"; fails=$((fails+1)); fi done echo ""; if [ $fails == 0 ]; then echo "All checks passed"; echo ""; fi exit $fails; else cp -f "$testfiledir/support/test.tex" "$testdir"; cp -f "gbt7714.sty" "$testdir"; testname="$1"; filename="$testname.dtx"; file="$testfiledir/$testname.dtx"; cp -f "$file" "$unpackdir"; # test bib file ( cd "$unpackdir"; $unpackexe $filename; ) cp -f "$unpackdir/test.aux" "$testdir"; cp -f "$unpackdir/test.bst" "$testdir"; cp -f "$unpackdir/test.bib" "$testdir"; ( cd "$testdir"; latexmk -xelatex test; ) bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; if ! diff -q "$bblfile" "$stdfile" > /dev/null; then cp -f "$bblfile" "$stdfile"; fi fi ```
/content/code_sandbox/test/test.sh
shell
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
676
```shell testfiledir="test/testbst" testsuppdir="$testfiledir/support" unpackdir="build/unpacked"; testdir="build/test"; texoptions="-file-line-error -halt-on-error -interaction=nonstopmode" unpackexe="xetex $texoptions" checkexe="xelatex $texoptions -no-pdf" bibtexexe="bibtex" if [ ! -d "$unpackdir" ]; then mkdir -p "$unpackdir"; fi cp -f "gbt7714.dtx" "$unpackdir"; if [ ! -d "$testdir" ]; then mkdir -p "$testdir"; fi cp -f "$testfiledir/support/test.aux" "$testdir"; cp -f "$testfiledir/support/standard.bib" "$testdir"; echo "Saving bbl"; for file in $testfiledir/*.dtx; do filename=$(basename $file); testname=$(basename $filename .dtx); echo " $testname"; cp -f "$file" "$unpackdir"; # test bib file ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) cp -f "$unpackdir/test.bst" "$testdir" cp -f "$unpackdir/test.bib" "$testdir" ( cd $testdir; $bibtexexe test > /dev/null; ) bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; if ! diff -q "$bblfile" "$stdfile" > /dev/null; then cp -f "$bblfile" "$stdfile"; fi done ```
/content/code_sandbox/test/save.sh
shell
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
367
```tex \input{regression-test.tex} \documentclass{article} \pagestyle{empty} \usepackage{gbt7714} \usepackage{bibunits} \citestyle{super} \begin{document} \START \showoutput \include{section1} \include{section2} \clearpage \OMIT \end{document} ```
/content/code_sandbox/test/testfiles-bibunits/package-bibunits.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
80
```unknown This is a generated file for the l3build validation system. Don't change this file in any respect. (section1.tex (bu1.aux) LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... (bu1.bbl) (bu1.aux) No file bu.aux. ) Completed box being shipped out [1] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 451.04085fil ...\write-{} ...\write-{} ...\glue(\topskip) 0.1936 ...\hbox(9.8064+0.08638)x345.0, glue set 297.00482fil ....\hbox(9.4464+0.0)x22.50719 .....\glue 0.0 .....\TU/lmr/bx/n/14.4 1 .....\glue 14.4 ....\TU/lmr/bx/n/14.4 Foo ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\write2{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {1}Foo}{\thepage }{}\protected@file@percent }} ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.0347 ...\hbox(8.87892+0.10999)x345.0, glue set 318.015fil ....\TU/lmr/m/n/10 Foo ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 .....\TU/lmr/m/n/7 ] ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -300 ...\glue 15.08499 plus 4.31 minus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 7.81001 ...\hbox(10.08+0.17279)x345.0, glue set 269.19843fil ....\hbox(0.0+0.0)x0.0 .....\glue 0.0 ....\TU/lmr/bx/n/14.4 References ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.32721 ...\hbox(7.5+2.49998)x329.44, glue set 0.01685, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [1] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 PEEBLES ....\glue 3.33 plus 1.66331 minus 1.1111 ....\TU/lmr/m/n/10 P ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Z, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jr. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Probability, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 random ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 variables, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 random ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 signal ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 prin- ....\glue(\rightskip) 0.0 ...\penalty 14100 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x329.44, glue set 112.60999fil, shifted 15.56 ....\TU/lmr/m/n/10 ciples ....\penalty 0 ....\TU/lmr/m/n/10 [M]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 4th ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ed. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 New ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 York: ....\glue 4.44 plus 3.32999 minus 0.555 ....\TU/lmr/m/n/10 McGraw-Hill, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 2001. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 10.0 plus 3.0 minus 5.0 ...\glue -10.0 plus -3.0 minus -5.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 (section2.tex (bu2.aux) (bu2.bbl) (bu2.aux) No file bu.aux. ) Completed box being shipped out [2] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 443.0417fil ...\write-{} ...\write-{} ...\write-{} ...\glue(\topskip) 0.1216 ...\hbox(9.8784+0.08638)x345.0, glue set 296.47203fil ....\hbox(9.4464+0.0)x22.50719 .....\glue 0.0 .....\TU/lmr/bx/n/14.4 2 .....\glue 14.4 ....\TU/lmr/bx/n/14.4 Bar ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\write2{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {2}Bar}{\thepage }{}\protected@file@percent }} ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.0347 ...\hbox(8.87892+0.10999)x345.0, glue set 311.31699fil ....\TU/lmr/m/n/10 Bar ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x15.68301, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 .....\TU/lmr/m/n/7 - .....\penalty 1000 .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 .....\TU/lmr/m/n/7 ] ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -300 ...\glue 15.08499 plus 4.31 minus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 7.81001 ...\hbox(10.08+0.17279)x345.0, glue set 269.19843fil ....\hbox(0.0+0.0)x0.0 .....\glue 0.0 ....\TU/lmr/bx/n/14.4 References ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.32721 ...\hbox(7.5+2.49998)x329.44, glue set 87.58998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [1] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JONES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1991. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 8.0 plus 4.0 minus 2.0 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x329.44, glue set 87.58998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [2] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JONES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1992. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 10.0 plus 3.0 minus 5.0 ...\glue -10.0 plus -3.0 minus -5.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 ```
/content/code_sandbox/test/testfiles-bibunits/package-bibunits.tlg
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
3,961
```tex \section{Bar} \begin{bibunit}[gbt7714-numerical] Bar\cite{jon91,jon92a} \putbib[section2] \end{bibunit} ```
/content/code_sandbox/test/testfiles-bibunits/support/section2.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
43
```tex @book{4.1.2:14, author = {Peebles, Jr, Peyton Z.}, title = {Probability, Random Variables, and Random Signal Principles}, edition = {4}, address = {New York}, publisher = {McGraw-Hill}, year = {2001}, } ```
/content/code_sandbox/test/testfiles-bibunits/support/section1.bib
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
77
```tex \begin{bibunit}[gbt7714-numerical] \section{Foo} Foo\cite{4.1.2:14} \putbib[section1] \end{bibunit} ```
/content/code_sandbox/test/testfiles-bibunits/support/section1.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
44
```tex @article{jon88, author = {Jones}, title = {Title}, journal = {Journal}, year = {1988}, } @article{jon89, author = {Jones and Baker}, title = {Title}, journal = {Journal}, year = {1989}, } @article{jon90, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1990}, } @article{lzp1, author = {}, key = {li3 ze2 ping2}, title = {}, journal = {}, year = {2016}, } @article{lzp2, author = { and }, key = {li3 ze2 ping2 & ze2 ping2 li3}, title = {}, journal = {}, year = {2016}, } @article{lzp3, author = { and and }, key = {li3 ze2 ping2 & ze2 ping2 li3 & ping2 ze2 li3}, title = {}, journal = {}, year = {2016}, } @article{jam91, author = {James and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon91, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon92a, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } @article{jon92b, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } ```
/content/code_sandbox/test/testfiles-bibunits/support/section2.bib
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
430
```unknown This is a generated file for the l3build validation system. Don't change this file in any respect. (section1.tex LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... (section1.bbl)) Completed box being shipped out [1] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 443.0417fil ...\write-{} ...\write-{} ...\write-{} ...\glue(\topskip) 0.1936 ...\hbox(9.8064+0.08638)x345.0, glue set 297.00482fil ....\hbox(9.4464+0.0)x22.50719 .....\glue 0.0 .....\TU/lmr/bx/n/14.4 1 .....\glue 14.4 ....\TU/lmr/bx/n/14.4 Foo ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\write2{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {1}Foo}{\thepage }{}\protected@file@percent }} ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.0347 ...\hbox(8.87892+0.10999)x345.0, glue set 311.33699fil ....\TU/lmr/m/n/10 Foo ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x15.68301, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 .....\TU/lmr/m/n/7 - .....\penalty 1000 .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 .....\TU/lmr/m/n/7 ] ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -300 ...\glue 15.08499 plus 4.31 minus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 7.81001 ...\hbox(10.08+0.17279)x345.0, glue set 269.19843fil ....\hbox(0.0+0.0)x0.0 .....\glue 0.0 ....\TU/lmr/bx/n/14.4 References ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.32721 ...\hbox(7.5+2.49998)x329.44, glue set 87.58998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [1] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JONES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1990. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 8.0 plus 4.0 minus 2.0 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x329.44, glue set 86.19998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [2] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JAMES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1991. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 10.0 plus 3.0 minus 5.0 ...\glue -10.0 plus -3.0 minus -5.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 (section2.tex (section2.bbl)) Completed box being shipped out [2] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 443.0417fil ...\write-{} ...\write-{} ...\write-{} ...\write-{} ...\glue(\topskip) 0.1216 ...\hbox(9.8784+0.08638)x345.0, glue set 296.47203fil ....\hbox(9.4464+0.0)x22.50719 .....\glue 0.0 .....\TU/lmr/bx/n/14.4 2 .....\glue 14.4 ....\TU/lmr/bx/n/14.4 Bar ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\write2{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {2}Bar}{\thepage }{}\protected@file@percent }} ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.0347 ...\hbox(8.87892+0.10999)x345.0, glue set 311.31699fil ....\TU/lmr/m/n/10 Bar ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x15.68301, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 .....\TU/lmr/m/n/7 - .....\penalty 1000 .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 .....\TU/lmr/m/n/7 ] ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -300 ...\glue 15.08499 plus 4.31 minus 0.86198 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 7.81001 ...\hbox(10.08+0.17279)x345.0, glue set 269.19843fil ....\hbox(0.0+0.0)x0.0 .....\glue 0.0 ....\TU/lmr/bx/n/14.4 References ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty 10000 ...\glue 9.913 plus 0.86198 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.32721 ...\hbox(7.5+2.49998)x329.44, glue set 87.58998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [1] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JONES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1991. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 8.0 plus 4.0 minus 2.0 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x329.44, glue set 87.58998fil, shifted 15.56 ....\hbox(7.5+2.49998)x0.0 .....\glue 0.0 .....\glue -10.56 .....\glue -5.0 .....\hbox(7.5+2.49998)x10.56 ......\glue 0.0 plus 1.0fil ......\glue 0.0 plus 1.0fil ......\TU/lmr/m/n/10 [2] ......\glue 0.0 plus 1.0fill .....\glue 5.0 ....\penalty 0 ....\TU/lmr/m/n/10 JONES, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 BAKER, ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 WILLIAMS. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Title ....\penalty 0 ....\TU/lmr/m/n/10 [J]. ....\glue 3.33 plus 1.665 minus 1.11 ....\glue 1.1 plus 3.30002 minus 0.70007 ....\TU/lmr/m/n/10 Journal, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 1992. ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\penalty -51 ...\glue 10.0 plus 3.0 minus 5.0 ...\glue -10.0 plus -3.0 minus -5.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 ```
/content/code_sandbox/test/testfiles-chapterbib/package-chapterbib.tlg
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
4,035
```tex \input{regression-test.tex} \documentclass{article} \pagestyle{empty} \usepackage{chapterbib} \usepackage{gbt7714} \begin{document} \START \showoutput \include{section1} \include{section2} \clearpage \OMIT \end{document} ```
/content/code_sandbox/test/testfiles-chapterbib/package-chapterbib.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
74
```tex \section{Bar} Bar\cite{jon91,jon92a} \bibliographystyle{gbt7714-numerical} \bibliography{refs} ```
/content/code_sandbox/test/testfiles-chapterbib/support/section2.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
37
```tex \section{Foo} Foo\cite{jon90,jam91} \bibliographystyle{gbt7714-numerical} \bibliography{refs} ```
/content/code_sandbox/test/testfiles-chapterbib/support/section1.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
36
```tex @article{jon88, author = {Jones}, title = {Title}, journal = {Journal}, year = {1988}, } @article{jon89, author = {Jones and Baker}, title = {Title}, journal = {Journal}, year = {1989}, } @article{jon90, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1990}, } @article{lzp1, author = {}, key = {li3 ze2 ping2}, title = {}, journal = {}, year = {2016}, } @article{lzp2, author = { and }, key = {li3 ze2 ping2 & ze2 ping2 li3}, title = {}, journal = {}, year = {2016}, } @article{lzp3, author = { and and }, key = {li3 ze2 ping2 & ze2 ping2 li3 & ping2 ze2 li3}, title = {}, journal = {}, year = {2016}, } @article{jam91, author = {James and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon91, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon92a, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } @article{jon92b, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } ```
/content/code_sandbox/test/testfiles-chapterbib/support/refs.bib
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
430
```tex \documentclass{ctexart} \usepackage{gbt7714} \usepackage{hyperref} \begin{document} \citestyle{super} Foo \nocite{*} \bibliographystyle{test} \bibliography{standard,test} \end{document} ```
/content/code_sandbox/test/minimal/test.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
63
```tex ```
/content/code_sandbox/test/minimal/test.bib
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
1
```unknown %% %% This is file `variants/ucas/ucasthesis-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,ucas,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #3 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #1 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/variants/ucas/ucasthesis-numerical.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,567
```unknown ENTRY {}{}{} FUNCTION {test} { % ", . " #1 "{vv~}{ll}{, jj}{, ff}" format.name$ top$ "Knuth, Donald E." #1 "{vv~}{ll}{f}" format.name$ top$ ", . " #1 "{vv~}{ll}{f}" format.name$ top$ } READ EXECUTE{test} ```
/content/code_sandbox/test/minimal/test.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
84
```tex \bibstyle{test} % \bibstyle{gbt7714-numerical} % \bibstyle{gbt7714-author-year} \citation{*} \bibdata{test} ```
/content/code_sandbox/test/minimal/test.aux
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
42
```unknown %% %% This is file `gbt7714-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,numerical') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #0 'year.after.author := #1 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ "" } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ "" } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } INTEGERS { seq.num } FUNCTION {init.seq} { #0 'seq.num :=} FUNCTION {int.to.fix} { "000000000" swap$ int.to.str$ * #-1 #10 substring$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * seq.num #1 + 'seq.num := seq.num int.to.fix 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { number.label #1 + 'number.label := } FUNCTION {reverse.pass} { label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} EXECUTE {init.seq} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/test/minimal/gbt7714-numerical.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
12,561
```unknown ```
/content/code_sandbox/test/minimal/test.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
1
```unknown %% %% This is file `gbt7714-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: %% %% gbt7714.dtx (with options: `2015,author-year') %% your_sha256_hash--- %% GB/T 7714 BibTeX Style %% path_to_url %% Version: 2024/03/08 v2.1.6 %% your_sha256_hash--- %% your_sha256_hash--- %% This file may be distributed and/or modified under the %% of this license or (at your option) any later version. %% The latest version of this license is in %% path_to_url %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% your_sha256_hash--- INTEGERS { citation.et.al.min citation.et.al.use.first bibliography.et.al.min bibliography.et.al.use.first uppercase.name terms.in.macro year.after.author period.after.author italic.book.title sentence.case.title link.title title.in.journal show.patent.country show.mark space.before.mark show.medium.type short.journal italic.journal link.journal bold.journal.volume show.missing.address.publisher space.before.pages only.start.page wave.dash.in.pages show.urldate show.url show.doi show.preprint show.note show.english.translation end.with.period lang.zh.order lang.ja.order lang.en.order lang.ru.order lang.other.order } STRINGS { component.part.label } FUNCTION {load.config} { #2 'citation.et.al.min := #1 'citation.et.al.use.first := #4 'bibliography.et.al.min := #3 'bibliography.et.al.use.first := #1 'uppercase.name := #0 'terms.in.macro := #1 'year.after.author := #0 'period.after.author := #0 'italic.book.title := #1 'sentence.case.title := #0 'link.title := #1 'title.in.journal := #0 'show.patent.country := #1 'show.mark := #0 'space.before.mark := #1 'show.medium.type := "slash" 'component.part.label := #0 'short.journal := #0 'italic.journal := #0 'link.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #1 'space.before.pages := #0 'only.start.page := #0 'wave.dash.in.pages := #1 'show.urldate := #1 'show.url := #1 'show.doi := #1 'show.preprint := #0 'show.note := #0 'show.english.translation := #1 'end.with.period := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := #4 'lang.ru.order := #5 'lang.other.order := } ENTRY { address archivePrefix author booktitle date doi edition editor eprint eprinttype entrysubtype howpublished institution journal journaltitle key langid language location mark medium note number organization pages publisher school series shortjournal title translation translator url urldate volume year } { entry.lang entry.is.electronic is.pure.electronic entry.numbered } { label extra.label sort.label short.label short.list entry.mark entry.url } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } INTEGERS { charptr len } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.sentence := #3 'after.block := #4 'after.slash := #3 'lang.zh := #4 'lang.ja := #1 'lang.en := #2 'lang.ru := #0 'lang.other := } FUNCTION {bbl.anonymous} { entry.lang lang.zh = { "" } { "Anon" } if$ } FUNCTION {bbl.space} { entry.lang lang.zh = { "\ " } { " " } if$ } FUNCTION {bbl.and} { "" } FUNCTION {bbl.et.al} { entry.lang lang.zh = { "" } { entry.lang lang.ja = { "" } { entry.lang lang.ru = { "" } { "et~al." } if$ } if$ } if$ } FUNCTION {citation.and} { terms.in.macro { "{\biband}" } 'bbl.and if$ } FUNCTION {citation.et.al} { terms.in.macro { "{\bibetal}" } 'bbl.et.al if$ } FUNCTION {bbl.colon} { ": " } FUNCTION {bbl.pages.colon} { space.before.pages { ": " } { ":\allowbreak " } if$ } FUNCTION {bbl.wide.space} { "\quad " } FUNCTION {bbl.slash} { "//\allowbreak " } FUNCTION {bbl.sine.loco} { entry.lang lang.zh = { "[]" } { "[S.l.]" } if$ } FUNCTION {bbl.sine.nomine} { entry.lang lang.zh = { "[]" } { "[s.n.]" } if$ } FUNCTION {bbl.sine.loco.sine.nomine} { entry.lang lang.zh = { "[: ]" } { "[S.l.: s.n.]" } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } STRINGS { x y } FUNCTION {contains} { 'y := 'x := y text.length$ 'len := x text.length$ len - #1 + 'charptr := { charptr #0 > x charptr len substring$ y = not and } { charptr #1 - 'charptr := } while$ charptr #0 > } STRINGS { s t } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ newline$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.after} { 't := duplicate$ empty$ 'pop$ { 's := output.state mid.sentence = { t * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.slash = { bbl.slash * write$ } { add.period$ " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {fin.entry} { end.with.period 'add.period$ 'skip$ if$ write$ show.english.translation entry.lang lang.zh = and { ")" write$ } 'skip$ if$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { output.state after.slash = 'skip$ { after.sentence 'output.state := } if$ } if$ } if$ } FUNCTION {new.slash} { output.state before.all = 'skip$ { component.part.label "slash" = { after.slash 'output.state := } { new.block component.part.label "in" = { entry.lang lang.en = { "In: " output write$ "" before.all 'output.state := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } FUNCTION {format.btitle} { italic.book.title entry.lang lang.en = and 'emphasize 'skip$ if$ } INTEGERS { byte second.byte } INTEGERS { char.lang tmp.lang } STRINGS { tmp.str } FUNCTION {get.str.lang} { 'tmp.str := lang.other 'tmp.lang := #1 'charptr := tmp.str text.length$ #1 + 'len := { charptr len < } { tmp.str charptr #1 substring$ chr.to.int$ 'byte := byte #128 < { charptr #1 + 'charptr := byte #64 > byte #91 < and byte #96 > byte #123 < and or { lang.en 'char.lang := } { lang.other 'char.lang := } if$ } { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := byte #224 < { charptr #2 + 'charptr := byte #207 > byte #212 < and byte #212 = second.byte #176 < and or { lang.ru 'char.lang := } { lang.other 'char.lang := } if$ } { byte #240 < { charptr #3 + 'charptr := byte #227 > byte #234 < and { lang.zh 'char.lang := } { byte #227 = { second.byte #143 > { lang.zh 'char.lang := } { second.byte #128 > second.byte #132 < and { lang.ja 'char.lang := } { lang.other 'char.lang := } if$ } if$ } { byte #239 = second.byte #163 > second.byte #172 < and and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } { charptr #4 + 'charptr := byte #240 = second.byte #159 > and { lang.zh 'char.lang := } { lang.other 'char.lang := } if$ } if$ } if$ } if$ char.lang tmp.lang > { char.lang 'tmp.lang := } 'skip$ if$ } while$ tmp.lang } FUNCTION {check.entry.lang} { author field.or.null title field.or.null * get.str.lang } STRINGS { entry.langid } FUNCTION {set.entry.lang} { "" 'entry.langid := language empty$ not { language 'entry.langid := } 'skip$ if$ langid empty$ not { langid 'entry.langid := } 'skip$ if$ entry.langid empty$ { check.entry.lang } { entry.langid "english" = entry.langid "american" = or entry.langid "british" = or { lang.en } { entry.langid "chinese" = { lang.zh } { entry.langid "japanese" = { lang.ja } { entry.langid "russian" = { lang.ru } { check.entry.lang } if$ } if$ } if$ } if$ } if$ 'entry.lang := } FUNCTION {set.entry.numbered} { type$ "patent" = type$ "standard" = or type$ "techreport" = or { #1 'entry.numbered := } { #0 'entry.numbered := } if$ } INTEGERS { nameptr namesleft numnames name.lang } FUNCTION {format.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { bbl.et.al } { t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}{ f{~}}" format.name$ uppercase.name { "u" change.case$ } 'skip$ if$ t #1 "{, jj}" format.name$ * } { t #1 "{ll}{ff}" format.name$ } if$ } if$ } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.name bbl.et.al = numnames bibliography.et.al.min #1 - > nameptr bibliography.et.al.use.first > and or { ", " * bbl.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = bbl.and "" = not and { bbl.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.key} { empty$ { key field.or.null } { "" } if$ } FUNCTION {format.authors} { author empty$ not { author format.names } { "empty author in " cite$ * warning$ bbl.anonymous } if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names } if$ } FUNCTION {format.translators} { translator empty$ { "" } { translator format.names entry.lang lang.zh = { translator num.names$ #3 > { "" * } { ", " * } if$ } 'skip$ if$ } if$ } FUNCTION {format.full.names} {'s := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t get.str.lang 'name.lang := name.lang lang.en = { t #1 "{vv~}{ll}" format.name$ 't := } { t #1 "{ll}{ff}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.editor.full} { author empty$ { editor empty$ { "" } { editor format.full.names } if$ } { author format.full.names } if$ } FUNCTION {author.full} { author empty$ { "" } { author format.full.names } if$ } FUNCTION {editor.full} { editor empty$ { "" } { editor format.full.names } if$ } FUNCTION {make.full.names} { type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.full { type$ "collection" = type$ "proceedings" = or 'editor.full 'author.full if$ } if$ } FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ label ")" * make.full.names duplicate$ short.list = { pop$ } { duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * } if$ "]{" * write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {change.sentence.case} { entry.lang lang.en = { "t" change.case$ } 'skip$ if$ } FUNCTION {add.link} { url empty$ not { "\href{" url * "}{" * swap$ * "}" * } { doi empty$ not { "\href{path_to_url" doi * "}{" * swap$ * "}" * } 'skip$ if$ } if$ } FUNCTION {format.title} { title empty$ { "" } { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * type$ "patent" = show.patent.country and { address empty$ not { address * ", " * } { location empty$ not { location * ", " * } { entry.lang lang.zh = { "" * ", " * } 'skip$ if$ } if$ } if$ } 'skip$ if$ number * } 'skip$ if$ link.title 'add.link 'skip$ if$ } if$ } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { " " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {is.digit} { duplicate$ empty$ { pop$ #0 } { chr.to.int$ duplicate$ "0" chr.to.int$ < { pop$ #0 } { "9" chr.to.int$ > { #0 } { #1 } if$ } if$ } if$ } FUNCTION {is.number} { 's := s empty$ { #0 } { s text.length$ 'charptr := { charptr #0 > s charptr #1 substring$ is.digit and } { charptr #1 - 'charptr := } while$ charptr not } if$ } FUNCTION {format.volume} { volume empty$ not { volume is.number { entry.lang lang.zh = { " " volume * " " * } { "Vol." volume tie.or.space.connect } if$ } { volume } if$ } { "" } if$ } FUNCTION {format.number} { number empty$ not { number is.number { entry.lang lang.zh = { " " number * " " * } { "No." number tie.or.space.connect } if$ } { number } if$ } { "" } if$ } FUNCTION {format.volume.number} { volume empty$ not { format.volume } { format.number } if$ } FUNCTION {format.title.vol.num} { title sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { number empty$ not { bbl.colon * number * } 'skip$ if$ } { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.title} { format.volume.number 's := series empty$ not { series sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered { bbl.wide.space * } { bbl.colon * s empty$ not { s * bbl.wide.space * } 'skip$ if$ } if$ title * sentence.case.title 'change.sentence.case 'skip$ if$ entry.numbered number empty$ not and { bbl.colon * number * } 'skip$ if$ } { format.title.vol.num } if$ format.btitle link.title 'add.link 'skip$ if$ } FUNCTION {format.booktitle.vol.num} { booktitle entry.numbered 'skip$ { format.volume.number 's := s empty$ not { bbl.colon * s * } 'skip$ if$ } if$ } FUNCTION {format.series.vol.num.booktitle} { format.volume.number 's := series empty$ not { series bbl.colon * entry.numbered not s empty$ not and { s * bbl.wide.space * } 'skip$ if$ booktitle * } { format.booktitle.vol.num } if$ format.btitle } FUNCTION {remove.period} { 't := "" 's := { t empty$ not } { t #1 #1 substring$ 'tmp.str := tmp.str "." = not { s tmp.str * 's := } 'skip$ if$ t #2 global.max$ substring$ 't := } while$ s } FUNCTION {abbreviate} { remove.period 't := t "l" change.case$ 's := "" s "physical review letters" = { "Phys Rev Lett" } 'skip$ if$ 's := s empty$ { t } { pop$ s } if$ } FUNCTION {get.journal.title} { short.journal { shortjournal empty$ not { shortjournal } { journal empty$ not { journal abbreviate } { journaltitle empty$ not { journaltitle abbreviate } { "" } if$ } if$ } if$ } { journal empty$ not { journal } { journaltitle empty$ not { journaltitle } { shortjournal empty$ not { shortjournal } { "" } if$ } if$ } if$ } if$ } FUNCTION {check.arxiv.preprint} { #1 #5 substring$ purify$ "l" change.case$ "arxiv" = { #1 } { #0 } if$ } FUNCTION {format.journal} { get.journal.title duplicate$ empty$ not { italic.journal entry.lang lang.en = and 'emphasize 'skip$ if$ link.journal 'add.link 'skip$ if$ } 'skip$ if$ } FUNCTION {set.entry.mark} { entry.mark empty$ not 'pop$ { mark empty$ not { pop$ mark 'entry.mark := } { 'entry.mark := } if$ } if$ } FUNCTION {format.mark} { show.mark { entry.mark show.medium.type { medium empty$ not { "/" * medium * } { entry.is.electronic { "/OL" * } 'skip$ if$ } if$ } 'skip$ if$ 'entry.mark := space.before.mark { " " } { "\allowbreak" } if$ "[" * entry.mark * "]" * } { "" } if$ } FUNCTION {num.to.ordinal} { duplicate$ text.length$ 'charptr := duplicate$ charptr #1 substring$ 's := s "1" = { "st" * } { s "2" = { "nd" * } { s "3" = { "rd" * } { "th" * } if$ } if$ } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition is.number { edition "1" = not { entry.lang lang.zh = { edition " " * } { edition num.to.ordinal " ed." * } if$ } 'skip$ if$ } { entry.lang lang.en = { edition change.sentence.case 's := s "Revised" = s "Revised edition" = or { "Rev. ed." } { s " ed." * } if$ } { edition } if$ } if$ } if$ } FUNCTION {format.publisher} { publisher empty$ not { publisher } { school empty$ not { school } { organization empty$ not { organization } { institution empty$ not { institution } { "" } if$ } if$ } if$ } if$ } FUNCTION {format.address.publisher} { address empty$ not { address } { location empty$ not { location } { "" } if$ } if$ duplicate$ empty$ not { format.publisher empty$ not { bbl.colon * format.publisher * } { entry.is.electronic not show.missing.address.publisher and { bbl.colon * bbl.sine.nomine * } 'skip$ if$ } if$ } { pop$ entry.is.electronic not show.missing.address.publisher and { format.publisher empty$ not { bbl.sine.loco bbl.colon * format.publisher * } { bbl.sine.loco.sine.nomine } if$ } { format.publisher empty$ not { format.publisher } { "" } if$ } if$ } if$ } FUNCTION {extract.before.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.dash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {extract.before.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ s #1 charptr #1 - substring$ } if$ } FUNCTION {extract.after.slash} { duplicate$ empty$ { pop$ "" } { 's := #1 'charptr := s text.length$ #1 + 'len := { charptr len < s charptr #1 substring$ "-" = not and s charptr #1 substring$ "/" = not and } { charptr #1 + 'charptr := } while$ { charptr len < s charptr #1 substring$ "-" = s charptr #1 substring$ "/" = or and } { charptr #1 + 'charptr := } while$ s charptr global.max$ substring$ } if$ } FUNCTION {format.year} { year empty$ not { year extra.label * } { date empty$ not { date extract.before.dash extra.label * } { entry.is.electronic not { "empty year in " cite$ * warning$ } 'skip$ if$ urldate empty$ not { "[" urldate extract.before.dash * extra.label * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.periodical.year} { year empty$ not { year extract.before.slash "--" * year extract.after.slash duplicate$ empty$ 'pop$ { * } if$ } { date empty$ not { date extract.before.dash } { "empty year in " cite$ * warning$ urldate empty$ not { "[" urldate extract.before.dash * "]" * } { "" } if$ } if$ } if$ } FUNCTION {format.date} { date empty$ not { type$ "patent" = type$ "newspaper" = or { date } { entrysubtype empty$ not { type$ "article" = entrysubtype "newspaper" = and { date } { format.year } if$ } { format.year } if$ } if$ } { year empty$ not { format.year } { "" } if$ } if$ } FUNCTION {format.editdate} { date empty$ not { "\allowbreak(" date * ")" * } { "" } if$ } FUNCTION {format.urldate} { show.urldate show.url and entry.url empty$ not and is.pure.electronic or urldate empty$ not and { "\allowbreak[" urldate * "]" * } { "" } if$ } FUNCTION {hyphenate} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { wave.dash.in.pages { "" * } { "-" * } if$ { t #1 #1 substring$ "-" = } { t #2 global.max$ substring$ 't := } while$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.pages} { pages empty$ { "" } { pages hyphenate } if$ } FUNCTION {format.extracted.pages} { pages empty$ { "" } { pages only.start.page 'extract.before.dash 'hyphenate if$ } if$ } FUNCTION {format.journal.volume} { volume empty$ not { bold.journal.volume { "\textbf{" volume * "}" * } { volume } if$ } { "" } if$ } FUNCTION {format.journal.number} { number empty$ not { "\allowbreak (" number * ")" * } { "" } if$ } FUNCTION {format.journal.pages} { pages empty$ { "" } { format.extracted.pages } if$ } FUNCTION {format.periodical.year.volume.number} { year empty$ not { year extract.before.slash } { "empty year in periodical " cite$ * warning$ } if$ volume empty$ not { ", " * volume extract.before.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.before.dash * ")" * } 'skip$ if$ "--" * year extract.after.slash empty$ volume extract.after.dash empty$ and number extract.after.dash empty$ and not { year extract.after.slash empty$ not { year extract.after.slash * } { year extract.before.slash * } if$ volume empty$ not { ", " * volume extract.after.dash * } 'skip$ if$ number empty$ not { "\allowbreak (" * number extract.after.dash * ")" * } 'skip$ if$ } 'skip$ if$ } FUNCTION {check.url} { url empty$ not { url 'entry.url := #1 'entry.is.electronic := } { howpublished empty$ not { howpublished #1 #5 substring$ "\url{" = { howpublished 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } { note empty$ not { note #1 #5 substring$ "\url{" = { note 'entry.url := #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } if$ } if$ } FUNCTION {output.url} { show.url is.pure.electronic or entry.url empty$ not and { new.block entry.url #1 #5 substring$ "\url{" = { entry.url } { "\url{" entry.url * "}" * } if$ output } 'skip$ if$ } FUNCTION {check.doi} { doi empty$ not { #1 'entry.is.electronic := } 'skip$ if$ } FUNCTION {is.in.url} { 's := s empty$ { #1 } { entry.url empty$ { #0 } { s text.length$ 'len := entry.url "l" change.case$ text.length$ 'charptr := { entry.url "l" change.case$ charptr len substring$ s "l" change.case$ = not charptr #0 > and } { charptr #1 - 'charptr := } while$ charptr } if$ } if$ } FUNCTION {format.doi} { "" doi empty$ not { "" 's := doi 't := #0 'numnames := { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or { t #2 #1 substring$ empty$ { s tmp.str * 's := } 'skip$ if$ s empty$ s is.in.url or 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } { "DOI: " * } if$ "\doi{" s * "}" * * } if$ "" 's := } { s tmp.str * 's := } if$ t #2 global.max$ substring$ 't := } while$ } 'skip$ if$ } FUNCTION {output.doi} { doi empty$ not show.doi and show.english.translation entry.lang lang.zh = and not and { new.block format.doi output } 'skip$ if$ } FUNCTION {check.electronic} { "" 'entry.url := #0 'entry.is.electronic := 'check.doi 'skip$ if$ 'check.url 'skip$ if$ medium empty$ not { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or { #1 'entry.is.electronic := } 'skip$ if$ } 'skip$ if$ } FUNCTION {format.eprint} { archivePrefix empty$ not { archivePrefix } { eprinttype empty$ not { archivePrefix } { "" } if$ } if$ 's := s empty$ not { s ": \eprint{" * url empty$ not { url } { "https://" s "l" change.case$ * ".org/abs/" * eprint * } if$ * "}{" * eprint * "}" * } { eprint } if$ } FUNCTION {output.eprint} { show.preprint eprint empty$ not and { new.block format.eprint output } 'skip$ if$ } FUNCTION {format.note} { note empty$ not show.note and { note } { "" } if$ } FUNCTION {output.translation} { show.english.translation entry.lang lang.zh = and { translation empty$ not { translation } { "[English translation missing!]" } if$ " (in Chinese)" * output write$ format.doi duplicate$ empty$ not { newline$ write$ } 'pop$ if$ " \\" write$ newline$ "(" write$ "" before.all 'output.state := } 'skip$ if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {monograph} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.sentence format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {incollection} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "M" set.entry.mark format.mark "" output.after new.block format.translators output new.slash format.editors output new.block format.series.vol.num.booktitle "booktitle" output.check new.block format.edition output new.block format.address.publisher output year.after.author not { format.year "year" output.check } 'skip$ if$ format.extracted.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {periodical} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "J" set.entry.mark format.mark "" output.after new.block format.periodical.year.volume.number output new.block format.address.publisher output year.after.author not { format.periodical.year "year" output.check } 'skip$ if$ format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {journal.article} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.title "title" output.check entrysubtype empty$ not { entrysubtype "newspaper" = { "N" set.entry.mark } { "J" set.entry.mark } if$ } { "J" set.entry.mark } if$ format.mark "" output.after new.block } 'skip$ if$ format.journal "journal" output.check year.after.author not { format.date "year" output.check } 'skip$ if$ format.journal.volume output format.journal.number "" output.after format.journal.pages bbl.pages.colon output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {patent} { output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.title "title" output.check "P" set.entry.mark format.mark "" output.after new.block format.date "year" output.check format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := #1 'is.pure.electronic := output.bibitem output.translation format.authors output author format.key output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block format.series.vol.num.title "title" output.check "EB" set.entry.mark format.mark "" output.after new.block format.address.publisher output year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.url output.doi new.block format.note output fin.entry } FUNCTION {preprint} { output.bibitem output.translation author empty$ not { format.authors } { editor empty$ not { format.editors } { "empty author and editor in " cite$ * warning$ bbl.anonymous } if$ } if$ output year.after.author { period.after.author 'new.sentence 'skip$ if$ format.year "year" output.check } 'skip$ if$ new.block title.in.journal { format.series.vol.num.title "title" output.check "A" set.entry.mark format.mark "" output.after new.block } 'skip$ if$ format.translators output new.sentence format.edition output new.block year.after.author not { date empty$ { format.date output } 'skip$ if$ } 'skip$ if$ format.pages bbl.pages.colon output.after format.editdate "" output.after format.urldate "" output.after output.eprint output.url show.preprint not eprint empty$ or 'output.doi 'skip$ if$ new.block format.note output fin.entry } FUNCTION {misc} { get.journal.title duplicate$ empty$ not { check.arxiv.preprint 'preprint 'journal.article if$ } { pop$ booktitle empty$ not 'incollection { publisher empty$ not 'monograph { eprint empty$ not archivePrefix empty$ not or 'preprint { entry.is.electronic 'electronic { "Z" set.entry.mark monograph } if$ } if$ } if$ } if$ } if$ empty.misc.check } FUNCTION {archive} { "A" set.entry.mark misc } FUNCTION {article} { misc } FUNCTION {book} { monograph } FUNCTION {booklet} { book } FUNCTION {collection} { "G" set.entry.mark monograph } FUNCTION {database} { "DB" set.entry.mark electronic } FUNCTION {dataset} { "DS" set.entry.mark electronic } FUNCTION {inbook} { booktitle empty$ 'book 'incollection if$ } FUNCTION {inproceedings} { "C" set.entry.mark incollection } FUNCTION {conference} { inproceedings } FUNCTION {legislation} { archive } FUNCTION {map} { "CM" set.entry.mark misc } FUNCTION {manual} { monograph } FUNCTION {mastersthesis} { "D" set.entry.mark monograph } FUNCTION {newspaper} { "N" set.entry.mark article } FUNCTION {online} { "EB" set.entry.mark electronic } FUNCTION {phdthesis} { mastersthesis } FUNCTION {proceedings} { "C" set.entry.mark monograph } FUNCTION {software} { "CP" set.entry.mark electronic } FUNCTION {standard} { "S" set.entry.mark misc } FUNCTION {techreport} { "R" set.entry.mark misc } FUNCTION {unpublished} { misc } FUNCTION {default.type} { misc } MACRO {jan} {"January"} MACRO {feb} {"February"} MACRO {mar} {"March"} MACRO {apr} {"April"} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"August"} MACRO {sep} {"September"} MACRO {oct} {"October"} MACRO {nov} {"November"} MACRO {dec} {"December"} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} FUNCTION {sortify} { purify$ "l" change.case$ } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {format.lab.name} { "{vv~}{ll}{, jj}{, ff}" format.name$ 't := t "others" = { citation.et.al } { t get.str.lang 'name.lang := name.lang lang.zh = name.lang lang.ja = or { t #1 "{ll}{ff}" format.name$ } { t #1 "{vv~}{ll}" format.name$ } if$ } if$ } FUNCTION {format.lab.names} { 's := s #1 format.lab.name 'short.label := #1 'nameptr := s num.names$ 'numnames := "" numnames 'namesleft := { namesleft #0 > } { s nameptr format.lab.name citation.et.al = numnames citation.et.al.min #1 - > nameptr citation.et.al.use.first > and or { bbl.space * citation.et.al * #1 'namesleft := } { nameptr #1 > { namesleft #1 = citation.and "" = not and { citation.and * } { ", " * } if$ } 'skip$ if$ s nameptr format.lab.name * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {author.key.label} { author empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {author.editor.key.label} { author empty$ { editor empty$ { key empty$ { cite$ #1 #3 substring$ } 'key if$ } { editor format.lab.names } if$ } { author format.lab.names } if$ } FUNCTION {author.key.organization.label} { author empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { author format.lab.names } if$ } FUNCTION {editor.key.organization.label} { editor empty$ { key empty$ { organization empty$ { cite$ #1 #3 substring$ } { "The " #4 organization chop.word #3 text.prefix$ } if$ } 'key if$ } { editor format.lab.names } if$ } FUNCTION {calc.short.authors} { "" 'short.label := type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.key.label { type$ "collection" = type$ "proceedings" = or { editor empty$ not 'editor.key.organization.label 'author.key.organization.label if$ } 'author.key.label if$ } if$ 'short.list := short.label empty$ { short.list 'short.label := } 'skip$ if$ } FUNCTION {calc.label} { calc.short.authors short.list "]" contains { "{" short.list * "}" * } { short.list } if$ "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ duplicate$ "]" contains { "{" swap$ * "}" * } 'skip$ if$ * 'label := short.label "(" * format.year duplicate$ empty$ short.list key field.or.null = or { pop$ "" } 'skip$ if$ * 'short.label := } FUNCTION {sort.language.label} { entry.lang lang.zh = { lang.zh.order } { entry.lang lang.ja = { lang.ja.order } { entry.lang lang.en = { lang.en.order } { entry.lang lang.ru = { lang.ru.order } { lang.other.order } if$ } if$ } if$ } if$ #64 + int.to.chr$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr #1 > { " " * namesleft #1 = t "others" = and { "zzzzz" * } { numnames #2 > nameptr #2 = and { "zz" * year field.or.null * " " * } 'skip$ if$ t sortify * } if$ } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {anonymous.sort} { entry.lang lang.zh = { "yi4 ming2" } { "anon" } if$ } FUNCTION {warn.empty.key} { entry.lang lang.zh = { "empty key in " cite$ * warning$ } 'skip$ if$ } FUNCTION {author.sort} { key empty$ { warn.empty.key author empty$ { anonymous.sort } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.editor.sort} { key empty$ { warn.empty.key author empty$ { editor empty$ { anonymous.sort } { editor sort.format.names } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {author.organization.sort} { key empty$ { warn.empty.key author empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } { key } if$ } FUNCTION {editor.organization.sort} { key empty$ { warn.empty.key editor empty$ { organization empty$ { anonymous.sort } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } { key } if$ } FUNCTION {presort} { set.entry.lang set.entry.numbered show.url show.doi check.electronic #0 'is.pure.electronic := calc.label label sortify " " * sort.language.label " " * type$ "book" = type$ "inbook" = booktitle empty$ not and or 'author.editor.sort { type$ "collection" = type$ "proceedings" = or 'editor.organization.sort 'author.sort if$ } if$ * " " * year field.or.null sortify * " " * cite$ * #1 entry.max$ substring$ 'sort.label := sort.label * #1 entry.max$ substring$ 'sort.key$ := } STRINGS { longest.label last.label next.extra last.extra.label } INTEGERS { longest.label.width number.label } FUNCTION {initialize.longest.label} { "" 'longest.label := #0 int.to.chr$ 'last.label := "" 'next.extra := #0 'longest.label.width := #0 'number.label := "" 'last.extra.label := } FUNCTION {forward.pass} { last.label short.label = { "" 'extra.label := last.extra.label text.length$ 'charptr := { last.extra.label charptr #1 substring$ "z" = charptr #0 > and } { "a" extra.label * 'extra.label := charptr #1 - 'charptr := } while$ charptr #0 > { last.extra.label charptr #1 substring$ chr.to.int$ #1 + int.to.chr$ extra.label * 'extra.label := last.extra.label #1 charptr #1 - substring$ extra.label * 'extra.label := } { "a" extra.label * 'extra.label := } if$ extra.label 'last.extra.label := } { "a" 'last.extra.label := "" 'extra.label := short.label 'last.label := } if$ number.label #1 + 'number.label := } FUNCTION {reverse.pass} { next.extra "b" = { "a" 'extra.label := } 'skip$ if$ extra.label 'next.extra := extra.label duplicate$ empty$ 'skip$ { "{\natexlab{" swap$ * "}}" * } if$ 'extra.label := label extra.label * 'label := } FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{" number.label int.to.str$ * "}" * write$ newline$ terms.in.macro { "\providecommand{\biband}{}" write$ newline$ "\providecommand{\bibetal}{}" write$ newline$ } 'skip$ if$ "\providecommand{\natexlab}[1]{#1}" write$ newline$ "\providecommand{\url}[1]{#1}" write$ newline$ "\expandafter\ifx\csname urlstyle\endcsname\relax\else" write$ newline$ " \urlstyle{same}\fi" write$ newline$ "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ " \DeclareUrlCommand\doi{\urlstyle{rm}}" write$ newline$ " \def\eprint#1#2{#2}" write$ newline$ "\else" write$ newline$ " \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}}" write$ newline$ " \let\eprint\href" write$ newline$ "\fi" write$ newline$ } FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } READ EXECUTE {init.state.consts} EXECUTE {load.config} ITERATE {presort} SORT EXECUTE {initialize.longest.label} ITERATE {forward.pass} REVERSE {reverse.pass} ITERATE {bib.sort.order} SORT EXECUTE {begin.bib} ITERATE {call.type$} EXECUTE {end.bib} ```
/content/code_sandbox/test/minimal/gbt7714-author-year.bst
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
13,591
```tex \input{regression-test.tex} \documentclass[UTF8,scheme=plain,fontset=fandol]{ctexart} \pagestyle{empty} \usepackage{gbt7714} \citestyle{numbers} \begin{document} \START \showoutput % Basic Citation Commands Citation \citet{jon88} test\par Citation \citet{jon88}.\par Citation \citet[42]{jon89} test\par Citation \citet[42]{jon89}.\par Citation \citep{jon88} test\par Citation \citep{jon88}.\par Citation \citep[42]{jon89} test\par Citation \citep[42]{jon89}.\par Citation \citep[see][]{jon90} test\par Citation \citep[see][42]{jon90} test\par \citet{lzp1}\par \citet{lzp1}\par \citet[42]{lzp2}\par \citet[42]{lzp2}\par \citep{lzp1}\par \citep{lzp1}\par \citep[42]{lzp2}\par \citep[42]{lzp2}\par \citep[][]{lzp3}\par \citep[][42]{lzp3}\par % Multi Citations Citation \citep{jon88} test\par Citation \citep{jon89,jon90} test\par Citation \citep{lzp1,lzp2,lzp3} test\par \clearpage \OMIT \bibliographystyle{gbt7714-numerical} \bibliography{refs} \end{document} ```
/content/code_sandbox/test/testfiles/numbers.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
402
```tex \input{regression-test.tex} \documentclass[UTF8,scheme=plain,fontset=fandol]{ctexart} \pagestyle{empty} \usepackage{gbt7714} \begin{document} \START \showoutput % Basic Citation Commands Citation \citet{jon88} test\par Citation \citet{jon88}.\par Citation \citet[42]{jon89} test\par Citation \citet[42]{jon89}.\par Citation\citep{jon88} test\par Citation\citep{jon88}.\par Citation\citep[42]{jon89} test\par Citation\citep[42]{jon89}.\par Citation \citep[see][]{jon90} test\par Citation \citep[see][42]{jon90} test\par \citet{lzp1}\par \citet{lzp1}\par \citet[42]{lzp2}\par \citet[42]{lzp2}\par \citep{lzp1}\par \citep{lzp1}\par \citep[42]{lzp2}\par \citep[42]{lzp2}\par \citep[][]{lzp3}\par \citep[][42]{lzp3}\par % Multi Citations Citation\citep{jon88} test\par Citation\citep{jon89,jon90} test\par Citation\citep{lzp1,lzp2,lzp3} test\par \clearpage \OMIT \bibliographystyle{gbt7714-numerical} \bibliography{refs} \end{document} ```
/content/code_sandbox/test/testfiles/super.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
396
```tex \input{regression-test.tex} \documentclass[UTF8,scheme=plain,fontset=fandol]{ctexart} \pagestyle{empty} \usepackage{gbt7714} \begin{document} \START \showoutput Citation \cite{jon88} test\par Citation \cite{jon89} test\par Citation \cite{jon90} test\par \cite{lzp1}\par \cite{lzp2}\par \cite{lzp3}\par % Basic Citation Commands Citation \citet{jon90} test\par Citation \citet{jon90}.\par Citation \citet[42]{jon90} test\par Citation \citet[42]{jon90}.\par Citation \citep{jon90} test\par Citation \citep{jon90}.\par Citation \citep[42]{jon90} test\par Citation \citep[42]{jon90}.\par Citation \citep[see][]{jon90} test\par Citation \citep[see][42]{jon90} test\par Citation \citet*{jon90} test\par Citation \citep*{jon90} test\par \citet{lzp3}\par \citet{lzp3}\par \citet[42]{lzp3}\par \citet[42]{lzp3}\par \citep{lzp3}\par \citep{lzp3}\par \citep[42]{lzp3}\par \citep[42]{lzp3}\par \citep[][]{lzp3}\par \citep[][42]{lzp3}\par \citet*{lzp3}\par \citep*{lzp3}\par % Multi Citations Citation \citet{jon90,jam91} test\par Citation \citet{jon90,jon91} test\par Citation \citet{jon92a,jon92b} test\par Citation \citep{jon90,jam91} test\par Citation \citep{jon90,jon91} test\par Citation \citep{jon92a,jon92b} test\par % Extended Citation Commands Citation \citealt{jon90} Test\par Citation \citealt*{jon90} Test\par Citation \citealp{jon90} Test\par Citation \citealp*{jon90} Test\par Citation \citealp{jon90,jam91} Test\par Citation \citealp[42]{jon90} Test\par Citation \citenum{jon90} Test\par Citation \citetext{priv.\ comm.} Test\par Citation \citeauthor{jon90} Test\par Citation \citeauthor*{jon90} Test\par Citation \citeyear{jon90} Test\par Citation \citeyearpar{jon90} Test\par \clearpage \OMIT \bibliographystyle{gbt7714-author-year} \bibliography{refs} \end{document} ```
/content/code_sandbox/test/testfiles/author-year.tex
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
734
```unknown This is a generated file for the l3build validation system. Don't change this file in any respect. LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... Completed box being shipped out [1] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 275.97052fil ...\write-{} ...\glue(\topskip) 2.5 ...\hbox(7.5+2.49998)x345.0, glue set 233.09fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 1 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 249.8fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 1 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 199.07399fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 2 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 215.784fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 2 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 260.5fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 1 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 277.21fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 1 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 252.034fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 2 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 268.744fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 2 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 244.34999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [see ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 3 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 235.88399fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [see ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 3 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 246.11fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.77+0.0)x5.0 .....\TU/lmr/m/n/10 4 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 262.55fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.77+0.0)x5.0 .....\TU/lmr/m/n/10 4 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 220.984fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 5 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 240.754fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 5 .....\kern -0.0002 .....\kern 0.0002 ....\hbox(7.5+2.49998)x2.78 .....\TU/lmr/m/n/10 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 272.78fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.77+0.0)x5.0 .....\TU/lmr/m/n/10 4 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 292.55fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.77+0.0)x5.0 .....\TU/lmr/m/n/10 4 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 264.314fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 5 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 284.084fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 5 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 259.45fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 6 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 250.984fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 6 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 260.5fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 1 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 252.17fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.66+0.0)x5.0 .....\TU/lmr/m/n/10 2 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 - ....\discretionary ....\kern -0.00023 ....\kern 0.00023 ....\penalty 1000 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 3 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 252.17fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 [ ....\hbox(6.77+0.0)x5.0 .....\TU/lmr/m/n/10 4 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 - ....\discretionary ....\kern -0.00023 ....\kern 0.00023 ....\penalty 1000 ....\hbox(6.66+0.21999)x5.0 .....\TU/lmr/m/n/10 6 .....\kern -0.0002 .....\kern 0.0002 ....\TU/lmr/m/n/10 ] ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 ```
/content/code_sandbox/test/testfiles/numbers.tlg
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
9,945
```unknown This is a generated file for the l3build validation system. Don't change this file in any respect. LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... Completed box being shipped out [1] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 275.97052fil ...\write-{} ...\glue(\topskip) 1.12108 ...\hbox(8.87892+0.21999)x345.0, glue set 234.97499fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 1 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 251.685fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 1 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 200.95898fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 2 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 217.66899fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 2 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 263.385fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 280.095fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 255.41899fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 272.129fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 247.23499fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 see ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 3 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 239.26898fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 see ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 3 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+1.77998)x345.0, glue set 247.995fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.718+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 4 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+1.69998)x345.0, glue set 264.435fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.718+0.0)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 4 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.4211 ...\hbox(8.87892+1.77998)x345.0, glue set 226.19899fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.13998)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 5 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+1.69998)x345.0, glue set 242.63899fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x3.761, shifted -3.62892 .....\kern 1.0 .....\TU/lmr/m/n/7 [ ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(4.648+0.13998)x4.483, shifted -3.62892 .....\TU/lmr/m/n/7 5 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\mathon ....\hbox(5.25+1.74998)x2.761, shifted -3.62892 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.4211 ...\hbox(8.87892+1.77998)x345.0, glue set 278.995fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.718+0.0)x3.983 ......\TU/lmr/m/n/7 4 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+1.69998)x345.0, glue set 295.435fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.718+0.0)x3.983 ......\TU/lmr/m/n/7 4 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.4211 ...\hbox(8.87892+1.77998)x345.0, glue set 271.02899fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 5 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+1.69998)x345.0, glue set 287.469fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 5 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.4211 ...\hbox(8.87892+1.77998)x345.0, glue set 268.995fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 6 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+1.77998)x345.0, glue set 261.02899fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x16.97101, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 6 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ]42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.3411 ...\hbox(8.87892+0.21999)x345.0, glue set 263.385fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x9.005, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 1 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 256.70699fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x15.68301, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.648+0.0)x3.983 ......\TU/lmr/m/n/7 2 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 - .....\kern -0.00023 .....\kern 0.00023 .....\penalty 1000 .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 3 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.9011 ...\hbox(8.87892+0.21999)x345.0, glue set 256.70699fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\kern -0.0002 ....\kern 0.0002 ....\kern 1.0 ....\mathon ....\hbox(5.25+1.74998)x15.68301, shifted -3.62892 .....\TU/lmr/m/n/7 [ .....\hbox(4.718+0.0)x3.983 ......\TU/lmr/m/n/7 4 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 - .....\kern -0.00023 .....\kern 0.00023 .....\penalty 1000 .....\hbox(4.648+0.13998)x3.983 ......\TU/lmr/m/n/7 6 ......\kern -0.0002 ......\kern 0.0002 .....\TU/lmr/m/n/7 ] .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\kern 1.0 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue -0.21999 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 ```
/content/code_sandbox/test/testfiles/super.tlg
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
10,857
```tex @article{jon88, author = {Jones}, title = {Title}, journal = {Journal}, year = {1988}, } @article{jon89, author = {Jones and Baker}, title = {Title}, journal = {Journal}, year = {1989}, } @article{jon90, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1990}, } @article{lzp1, author = {}, key = {li3 ze2 ping2}, title = {}, journal = {}, year = {2016}, } @article{lzp2, author = { and }, key = {li3 ze2 ping2 & ze2 ping2 li3}, title = {}, journal = {}, year = {2017}, } @article{lzp3, author = { and and }, key = {li3 ze2 ping2 & ze2 ping2 li3 & ping2 ze2 li3}, title = {}, journal = {}, year = {2018}, } @article{jam91, author = {James and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon91, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1991}, } @article{jon92a, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } @article{jon92b, author = {Jones and Baker and Williams}, title = {Title}, journal = {Journal}, year = {1992}, } ```
/content/code_sandbox/test/testfiles/support/refs.bib
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
430
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 . \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock . \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock . \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock . \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : . \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock . \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock . \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock . \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock . \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock . \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock . \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 //\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock //\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock //\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock //\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock . \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock . \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : . \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : . \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock . \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : . \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock . \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 . \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock . \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock . \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock . \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock . \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : . \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock . \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock //\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock . \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : . \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock //\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 . \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock . \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 . \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : . \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock . \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : . \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : . \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock . \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : . \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock . \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 . \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : . \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock . \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock . \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : . \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : . \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : . \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock . \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock . \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 //\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock //\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock //\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : //\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock //\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock . \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock . \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock . \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock . \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock . \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA . \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock . \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ? \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock . \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock . \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-no-mark.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
7,967
```unknown This is a generated file for the l3build validation system. Don't change this file in any respect. LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... Completed box being shipped out [1] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0 ...\write-{} ...\glue(\topskip) 2.5 ...\hbox(7.5+2.49998)x345.0, glue set 215.87fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1988 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 190.31999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1989 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 190.31999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 225.56fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2016 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 212.23fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2017 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 212.23fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 190.31999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 207.03fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 181.85399fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 198.564fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 187.54fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 204.25fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 179.07399fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 195.784fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\TU/lmr/m/n/10 . ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 171.38998fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (see ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 162.92398fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (see ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 120.09fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 Baker, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Williams ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 117.31fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 Baker, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Williams ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 212.23fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 232.0fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 203.76399fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 223.534fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 206.12fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 225.89fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 197.65399fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 217.424fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\penalty 10000 ....\TU/FandolSong-Regular(0)/m/n/10 ....\rule(0.0+0.0)x-6.44 ....\kern 0.0004 ....\kern -0.0004 ....\kern -0.18753 ....\kern 0.18753 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.68001 ...\hbox(7.82+2.49998)x345.0, glue set 192.79fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.15309 ...\hbox(8.34692+2.49998)x345.0, glue set 184.32399fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 133.89fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\TU/lmr/m/n/10 , ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\TU/lmr/m/n/10 , ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.86002 ...\hbox(7.64+2.49998)x345.0, glue set 127.78fil ....\hbox(0.0+0.0)x15.0 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 ( ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\TU/lmr/m/n/10 , ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\TU/lmr/m/n/10 , ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 2018 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/FandolSong-Regular(0)/m/n/10 ....\glue 0.0 plus 0.46875 ....\TU/FandolSong-Regular(0)/m/n/10 ....\kern -0.00017 ....\kern 0.00017 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 100.69998fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ); ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 James ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1991 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 164.20999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1991 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 176.98fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1992 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 a ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 b ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 102.91998fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ; ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 James ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1991 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 161.43fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1991 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.00002 ...\hbox(7.5+2.49998)x345.0, glue set 174.2fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1992 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 a ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 b ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.45001 ...\hbox(7.05+0.21999)x345.0, glue set 195.59999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.73001 ...\hbox(7.05+1.92998)x345.0, glue set 125.37fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 Baker, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Williams ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.02002 ...\hbox(7.05+1.92998)x345.0, glue set 192.81999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.02002 ...\hbox(7.05+1.92998)x345.0, glue set 122.59fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 Baker, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Williams ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.02002 ...\hbox(7.05+1.92998)x345.0, glue set 108.19998fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ; ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 James ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1991 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 1.7231 ...\hbox(8.34692+1.92998)x345.0, glue set 184.35399fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 , ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\mathon ....\hbox(4.718+0.0)x8.466, shifted -3.62892 .....\TU/lmr/m/n/7 42 .....\kern -0.0002 .....\kern 0.0002 ....\mathoff ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 3.02002 ...\hbox(7.05+0.21999)x345.0, glue set 263.56fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\hbox(6.76+0.21999)x5.0 .....\TU/lmr/m/n/10 7 .....\kern -0.0002 .....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.28001 ...\hbox(7.5+2.49998)x345.0, glue set 207.13998fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (priv. ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 comm.) ....\glue 4.44 plus 4.99498 minus 0.37 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 2.45001 ...\hbox(7.05+0.21999)x345.0, glue set 217.81999fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 et ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 al. ....\kern -0.0002 ....\kern 0.0002 ....\glue 4.44 plus 4.99498 minus 0.37 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.73001 ...\hbox(7.05+1.92998)x345.0, glue set 148.7fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Jones, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 Baker, ....\glue 3.33 plus 2.08124 minus 0.888 ....\TU/lmr/m/n/10 and ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Williams ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue -1.92998 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 Completed box being shipped out [2] \vbox(633.0+0.0)x407.0 .\glue 16.0 .\vbox(617.0+0.0)x345.0, shifted 62.0 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil ...\glue 0.0 plus 1.0fil ...\hbox(0.0+0.0)x345.0 ....\hbox(0.0+0.0)x345.0 ..\glue 25.0 ..\glue(\lineskip) 0.0 ..\vbox(550.0+0.0)x345.0, glue set 527.9436fil ...\glue(\topskip) 2.95 ...\hbox(7.05+0.21999)x345.0, glue set 248.56fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 1990 ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\parskip) 0.0 ...\glue(\baselineskip) 4.28001 ...\hbox(7.5+2.49998)x345.0, glue set 240.78fil ....\hbox(0.0+0.0)x15.0 ....\TU/lmr/m/n/10 Citation ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 (1990 ....\kern -0.0002 ....\kern 0.0002 ....\TU/lmr/m/n/10 ) ....\kern -0.0002 ....\kern 0.0002 ....\glue 3.33 plus 1.665 minus 1.11 ....\TU/lmr/m/n/10 Test ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 ....\glue(\parfillskip) 0.0 plus 1.0fil ....\glue(\rightskip) 0.0 ...\glue -2.49998 ...\glue 0.0 plus 1.0fil ...\glue 0.0 ...\glue 0.0 plus 0.0001fil ..\glue(\baselineskip) 30.0 ..\hbox(0.0+0.0)x345.0 ...\hbox(0.0+0.0)x345.0 ```
/content/code_sandbox/test/testfiles/author-year.tlg
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
23,409
```unknown \begin{thebibliography}{129} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[Franz et~al.(2014)Franz, Danielewicz, Wong, Anderson, and Boothe]{franz2013phenotypic-short} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chem. Biol., 2014, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-short-journal.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,780
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,no-urldate}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-no-urldate.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
260
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/2015-numerical.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
255
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2). \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-no-urldate.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,297
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,no-url,no-doi}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-no-url-doi.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
260
```unknown \begin{thebibliography}{4} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2014)]{2.14.2:4} . 2014. \newblock \allowbreak[M]. \newblock . \bibitem[(1996)]{2.14.2:2} . 1996. \newblock \allowbreak[M]. \newblock , , . \newblock : . \bibitem[(1996)]{2.14.2:3} . 1996. \newblock \allowbreak[J]. \newblock \allowbreak (2): 24-29. \bibitem[Baker et~al.(1995)Baker and Jackson]{2.14.2:1} BAKER S~K, JACKSON M~E. 1995. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press. \end{thebibliography} ```
/content/code_sandbox/test/testbst/ustc-author-year.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
340
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,short-journal}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> @article{franz2013phenotypic-short, author = {Franz, Annaliese K. and Danielewicz, Megan A. and Wong, Diana M. and Anderson, Lisa A. and Boothe, Jordan R.}, title = {Phenotypic Screening with Oleaginous Microalgae Reveals Modulators of Lipid Productivity}, journaltitle = {ACS Chemical biology}, shortjournal = {ACS Chem. Biol.}, year = {2014}, volume = {8}, pages = {1053--1062}, urldate = {2014-06-26}, url = {path_to_url}, } %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-short-journal.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
413
```unknown \begin{thebibliography}{130} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[Kingma et~al.(2014)Kingma and Ba]{kingma2014adam} KINGMA D~P, BA J. \newblock Adam: A method for stochastic optimization\allowbreak[A/OL]. \newblock 2014\allowbreak[2017-04-19]. \newblock arXiv: \eprint{path_to_url}{1412.6980}. \newblock \url{path_to_url}. \bibitem[Finn et~al.(2017)Finn, Abbeel, and Levine]{finn2017modelagnostic} FINN C, ABBEEL P, LEVINE S. \newblock Model-agnostic meta-learning for fast adaptation of deep networks\allowbreak[A/OL]. \newblock \allowbreak(2017-07-17)\allowbreak[2018-04-08]. \newblock arXiv: \eprint{path_to_url}{1703.03400}. \newblock \url{path_to_url}. \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-preprint.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,864
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,no-medium-type}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-no-medium-type.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
258
```unknown \begin{thebibliography}{129} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(1980)]{2005:4.5.2:1} . \newblock : , 88105607.3\allowbreak[P]. \newblock 1980-07-26. \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \bibitem[(2006)]{4.5.2:1} . \newblock : , 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : , 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : , 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : , 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-2005-numerical.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,563
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,thu,numerical}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> @article{10-1:1, author = { and and and others}, title = {}, journal = {: }, volume = {34}, number = {2}, pages = {1--7}, year = {1994}, } @book{10-1:2, author = {}, title = {}, address = {}, publisher = {}, year = {1973}, pages = {56--60}, } @inproceedings{10-1:3, author = {Dupont, B}, title = {Bone marrow transplantation in severe combined immunodeficiency with an unrelated MLC compatible donor}, editor = {White, H J and Smith, R}, booktitle = {Proceedings of the third annual meeting of the International Society for Experimental Hematology}, address = {Houston}, publisher = {International Society for Experimental Hematology}, year = {1974}, pages = {44--46}, } @mastersthesis{10-1:4, author = {}, title = {}, address = {}, school = {}, year = {1987}, } @patent{10-1:5, author = {}, title = {}, address = {}, number = {88105607.3}, date = {1980-07-26}, } @standard{10-1:6, author = {}, title = {GB3100-3102. -}, address = {}, publisher = {}, year = {1994}, } @article{10-1:7, author = {Merkt, Fr{\'e}d{\'e}ric and Mackenzie, S R and Softley, Timothy P}, title = {Rotational Autoionization Dynamics in High Rydberg States of Nitrogen}, journal = {J Chem Phys}, year = {1995}, volume = {103}, pages = {4509--4518}, } @article{10-1:8, author = {Mellinger, A and Vidal, C R and Jungen, {Ch}}, title = {Laser reduced fluorescence study of the carbon monoxide nd triplet Rydberg series - Experimental results and multichannel quantum defect analysis}, journal = {J Chem Phys}, year = {1996}, volume = {104}, pages = {8913--8921}, } @article{10-1:9, author = {Bixon, M and Jortner, Joshua}, title = {The dynamics of predissociating high {Rydberg} states of {NO}}, journal = {J Chem Phys}, year = {1996}, volume = {105}, pages = {1363--1382}, } @article{10-1:10, author = { and and and others}, title = { {REMPI} {BaF} }, journal = {}, year = {1995}, volume = {8}, pages = {308--311}, } @article{10-1:11, author = {Carlson, N W and Taylor, A J and Jones, K M and Schawlow, A L}, title = {Two-step polarization-labeling spectroscopy of excited states of {Na2}}, journal = {Phys Rev A}, year = {1981}, volume = {24}, pages = {822--834}, } @article{10-1:12, author = {Taylor, A J and Jones, K M and Schawlow, A L}, title = {Scanning pulsed-polarization spectrometer applied to {Na2}}, journal = {J Opt Soc Am}, year = {1983}, volume = {73}, pages = {994--998}, } @article{10-1:13, author = {Taylor, A J and Jones, K M and Schawlow, A L}, title = {A study of the excited {1$\Sigma$g+} states in {Na2}}, journal = {Opt Commun}, year = {1981}, volume = {39}, pages = {47--50}, } @article{10-1:14, author = {Shimizu, Kazuko and Shimizu, Fujio}, title = {Laser induced fluorescence spectra of the a {3$\Pi$u--X 1$\Sigma$g+} band of {Na2} by molecular beam}, journal = {J Chem Phys}, year = {1983}, volume = {78}, pages = {1126--1131}, } @article{10-1:15, author = {Atkinson, J B and Becker, J and Demtr{\"o}der, W}, title = {Experimental observation of the a {3$\Pi$u} state of {Na2}}, journal = {Chem Phys Lett}, year = {1982}, volume = {87}, pages = {92--97}, } @article{10-1:16, author = {Kusch, P and Hessel, M M}, title = {Perturbations in the A {1$\Sigma$u+} state of {Na2}}, journal = {J Chem Phys}, year = {1975}, volume = {63}, pages = {4087--4088}, } @book{10-1:17, author = {}, title = {}, address = {}, publisher = {}, year = {1993}, } @book{10-1:18, author = {}, title = {}, translator = {}, edition = {2}, address = {}, publisher = {}, year = {1989}, pages = {15--20}, } @book{10-1:19, author = {}, title = {}, edition = {}, address = {}, publisher = {}, year = {1865}, } @book{10-1:20, author = {}, title = {}, address = {}, publisher = {}, year = {1998}, urldate = {1998-09-26}, url = {path_to_url}, } @standard{10-1:21, author = {}, title = {GB/T 12450-2001 }, address = {}, publisher = {}, year = {2002}, pages = {1}, } @book{10-1:22, author = {}, title = {: }, edition = {2014}, address = {}, publisher = {}, year = {2004}, pages = {299--307}, } @techreport{10-1:23, author = {{World Health Organization}}, title = {Factors Regulating the Immune Response: Report of {WHO Scientific Group}}, address = {Geneva}, publisher = {WHO}, year = {1970}, } @book{10-1:24, author = {Peebles, Jr, Peyton Z.}, title = {Probability, Random Variables, and Random Signal Principles}, edition = {4}, address = {New York}, publisher = {McGraw Hill}, year = {2001}, } @incollection{10-1:25, author = {}, title = {}, editor = {}, booktitle = {}, address = {}, publisher = {}, year = {1998}, pages = {146--163}, } @incollection{10-1:26, author = {Weinstein, L and Swertz, M N}, title = {Pathogenic Properties of Invading Microorganism}, editor = {Sodeman, Jr, William A and Sodeman, William A}, booktitle = {Pathologic physiology: mechanisms of disease}, address = {Philadelphia}, publisher = {Saunders}, year = {1974}, pages = {745--772}, } @inproceedings{10-1:27, author = {}, title = {}, editor = {}, booktitle = {}, address = {}, publisher = {}, year = {1985}, pages = {90--99}, } @periodical{10-1:28, author = {}, title = {}, year = {1936}, volume = {1}, number = {1}, address = {}, publisher = {}, } @periodical{10-1:29, author = {}, title = {}, year = {1957/1990}, number = {1--4}, address = {}, publisher = {}, } @periodical{10-1:30, author = {{American Association for the Advancement of Science}}, title = {Science}, year = {1883}, volume = {1}, number = {1}, address = {Washington, D.C.}, publisher = {American Association for the Advancement of Science}, } @newspaper{10-1:31, author = { and and }, title = {}, journal = {}, date = {2000-04-12}, number = {14}, urldate = {2002-03-06}, url = {path_to_url}, } @online{10-1:32, author = {}, title = {}, date = {2001-12-19}, urldate = {2002-04-15}, url = {path_to_url}, } @online{10-1:33, author = {{Online Computer Library Center, Inc}}, title = {About {OCLC}: History of Cooperation}, urldate = {2000-01-08}, url = {path_to_url}, } @software{10-1:34, author = {{Scitor Corporation}}, title = {Project scheduler}, address = {Sunnyvale, Calif.}, publisher = {Scitor Corporation}, year = {1983}, medium = {DK}, } %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/thu-numeric.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
2,623
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]. \newblock . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]. \newblock , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]. \newblock . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]. \newblock , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]. \newblock . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]. \newblock SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]. \newblock {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]. \newblock . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]. \newblock . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]. \newblock . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]. \newblock : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]. \newblock . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]. \newblock . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]. \newblock . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]. \newblock : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]. \newblock . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]. \newblock Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]. \newblock Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-no-slash.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,592
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,no-uppercase}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-no-uppercase.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
257
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock \emph{Science}, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock \emph{The public access computer systems review}, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock \emph{Biology}, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock \emph{Nature}, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock \emph{Br Med J}, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock \emph{Journal of library administration}, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock \emph{Columbia law review}, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock \emph{College and research libraries}, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock \emph{Sedimentology}, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock \emph{Lethaia}, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock \emph{Nature}, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock \emph{Bulletin of the geological survey of Japan}, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock \emph{Biology}, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock \emph{ACS Chemical Biology}, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock \emph{Cataloging \& classification quarterly}, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-italic-journal.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,711
```unknown \begin{thebibliography}{130} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(1998)]{10.2.4:3} , 1998. \newblock : \allowbreak[J]. \newblock \allowbreak (5): 38-39. \bibitem[(1996)]{9.1:3} , 1996. \newblock \allowbreak[M]. \newblock , , . \newblock : . \bibitem[(1981)]{10.2.4:4} , 1981. \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : : 2-10. \bibitem[(1997)]{9.1:4} , 1997. \newblock \allowbreak[M]. \newblock : : 16. \bibitem[\ (2010{\natexlab{a}}), , and ]{10.2.3:1a} , , , 2010{\natexlab{a}}. \newblock \allowbreak[J]. \newblock (), 37\allowbreak (4): 147. \bibitem[(2010{\natexlab{b}})]{10.2.3:1b} , 2010{\natexlab{b}}. \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : : 138. \bibitem[(1996)]{9.1:5} , 1996. \newblock \allowbreak[J]. \newblock \allowbreak (2): 24-29. \bibitem[A.1(1962)]{A.1:5} , 1962. \newblock : : \allowbreak[M]. \newblock . \newblock : : 50. \bibitem[A.7(1977)]{A.7:5} , 1977. \newblock : \allowbreak[M]//\allowbreak : 1 . \newblock : : 49. \bibitem[A.7(1988)]{A.7:1} , 1988. \newblock 39 \allowbreak[M]//\allowbreak : . \newblock : : 590. \bibitem[4.2(2011)]{4.2.2:1} , 2011. \newblock : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : : 1109. \bibitem[\ (2007) and ]{zhangsan} , , 2007. \newblock \allowbreak[J]. \newblock , 23\allowbreak (4): 20-26. \bibitem[(2007)]{zhangsanfeng} , 2007. \newblock \allowbreak[J]. \newblock , 23\allowbreak (4): 20-26. \bibitem[(1997)]{10.2.4:1} , 1997. \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : : 33-34. \bibitem[(1996)]{10.2.4:2} , 1996. \newblock \allowbreak[M]. \newblock . \newblock : . \bibitem[(2000)]{A.9:1} , 2000. \newblock \allowbreak[N]. \newblock \allowbreak (15). \bibitem[(2013)]{A.3:1} , 2013. \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} , 1984. \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : . \bibitem[(2012)]{4.6.2:1} , 2012. \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[\ (2013), , and ]{A.1:8} , , , 2013. \newblock : \allowbreak[M]. \newblock : . \bibitem[(1957/1990)]{4.3.2:2} , 1957/1990. \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : . \bibitem[(2012)]{A.2:2} , 2012. \newblock \allowbreak[C]. \newblock : . \bibitem[\ (2001) and ]{4.1.2:9} , , 2001. \newblock \allowbreak[A]. \newblock : . \bibitem[(1985)]{A.2:1} , 1985. \newblock \allowbreak[G]. \newblock : . \bibitem[(2003)]{4.1.2:13} , 2003. \newblock : 2003\allowbreak[M/OL]. \newblock : \allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , , 2012. \newblock \allowbreak[J]. \newblock (), 52\allowbreak (11): 1518-1523. \bibitem[(2013)]{4.4.2:2} , 2013. \newblock : \allowbreak[N/OL]. \newblock \allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.1:11} , 2010. \newblock : \allowbreak[M/OL]. \newblock : : 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[\ (2000), , and ]{A.9:3} , , , 2000. \newblock \allowbreak[N/OL]. \newblock \allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[(2010{\natexlab{a}})]{4.1.2:4} , 2010{\natexlab{a}}. \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : : 2-3. \bibitem[(2010{\natexlab{b}})]{A.6:1} , 2010{\natexlab{b}}. \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : : 3. \bibitem[(2007)]{A.6:2} , 2007. \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : : 1. \bibitem[(2000)]{8.7:1} , 2000. \newblock \allowbreak[D/OL]. \newblock : : 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , , 2013. \newblock , ?\allowbreak[N/OL]. \newblock \allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} , 2005. \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[\ (2012) and ]{4.1.2:3} , , 2012. \newblock \allowbreak[M]. \newblock : : 112. \bibitem[(2011)]{4.1.2:12} , 2011. \newblock \allowbreak[M/OL]. \newblock : : 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} , 2003. \newblock \allowbreak[D/OL]. \newblock : \allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.1.2:2} , 2012. \newblock \allowbreak[M]. \newblock , . \newblock : : 235-236. \bibitem[(1988)]{A.7:4} , 1988. \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : : 59-92. \bibitem[(1996)]{A.6:3} , 1996. \newblock : GB 156161995\allowbreak[S/OL]. \newblock : : 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.1:10} , 2012. \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : . \bibitem[(2002)]{A.1:1} , 2002. \newblock \allowbreak[M]. \newblock : : 288. \bibitem[(2012)]{A.5:1} , 2012. \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2000)]{A.9:2} , 2000. \newblock DNA \allowbreak[N]. \newblock \allowbreak (7). \bibitem[\ (2010) and ]{4.1.2:5} , , 2010. \newblock \allowbreak[M]. \newblock : . \bibitem[\ (2010) and ]{4.4.2:4} , , 2010. \newblock : \allowbreak[J/OL]. \newblock (), 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} , 2012. \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[(2008{\natexlab{a}})]{4.4.2:3} , 2008{\natexlab{a}}. \newblock \allowbreak[J/OL]. \newblock , 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[(2008{\natexlab{b}})]{A.8:2} , 2008{\natexlab{b}}. \newblock \allowbreak[J]. \newblock , 52\allowbreak (6): 6-21. \bibitem[(2012)]{4.1.2:10} , 2012. \newblock \allowbreak[D/OL]. \newblock : \allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2013)]{A.8:1} , 2013. \newblock \allowbreak[J]. \newblock \allowbreak (1): 56-75. \bibitem[\ (2011) and ]{A.7:6} , , 2011. \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : : 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , , 2008. \newblock \allowbreak[J/OL]. \newblock , 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , , 2013. \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[(2002)]{A.7:3} , 2002. \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : : 22-25. \bibitem[(1881)]{A.1:6} , 1881. \newblock : \allowbreak[M]. \newblock . \newblock : . \bibitem[(2001)]{A.5:2} , 2001. \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[\ (2012), , and ]{4.1.2:8} , , , 2012. \newblock \allowbreak[C]. \newblock : . \bibitem[(1865())]{4.1.2:7} , 1865(). \newblock \allowbreak[M]. \newblock . \newblock : . \bibitem[(1998)]{A.7:2} , 1998. \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : : 146-163. \bibitem[(2009)]{A.1:2} , 2009. \newblock : 4 \allowbreak[M]. \newblock : : 155. \bibitem[(1999)]{4.2.2:2} , 1999. \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : : 32-36. \bibitem[(2009)]{A.1:9} , 2009. \newblock \allowbreak[M]. \newblock , , , . \newblock : . \bibitem[(2011)]{10.1.3:3} , 2011. \newblock : \allowbreak[M]. \newblock , , , . \newblock : : 15-16. \bibitem[(2010)]{A.1:4} , 2010. \newblock \allowbreak[M]. \newblock , , . \newblock : : 38-39. \bibitem[\ (2010), , and ]{A.1:3} , , , 2010. \newblock : \allowbreak[M]. \newblock : : 112. \bibitem[(2001)]{A.10:1} , 2001. \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , , 1998. \newblock \allowbreak[M]. \newblock : . \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , , 2012. \newblock : \allowbreak[J]. \newblock , 57\allowbreak (34): 3219. \bibitem[(2002)]{4.5.2:2} , 2002. \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[\ (2011) and ]{4.2.2:5} , , 2011. \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : : 45-52. \bibitem[(2001)]{4.1.2:11} , 2001. \newblock \allowbreak[M/OL]. \newblock : \allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2006)]{4.5.2:1} , 2006. \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2010)]{A.8:4} , 2010. \newblock \allowbreak[J/OL]. \newblock , 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[(2011)]{A.2:4} , 2011. \newblock : \allowbreak[C/OL]. \newblock : \allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , , 1980. \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : : 56-114. \bibitem[(2000{\natexlab{a}})]{10.1.3:4} , 2000{\natexlab{a}}. \newblock : 1 \allowbreak[M]. \newblock : : 29. \bibitem[(2000{\natexlab{b}})]{4.1.2:1} , 2000{\natexlab{b}}. \newblock : 1 \allowbreak[M]. \newblock : : 29. \bibitem[(2012)]{A.2:3} , 2012. \newblock : \allowbreak[C]. \newblock : . \bibitem[(1992)]{4.1.2:6} , 1992. \newblock : \allowbreak[M]. \newblock : . \bibitem[(2013)]{4.2.2:4} , 2013. \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : : 302. \bibitem[(2011)]{A.4:1} , 2011. \newblock \allowbreak[D/OL]. \newblock : : 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}, 1883. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science. \bibitem[8.1(1981)]{8.1.3} Anon, 1981. \newblock Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 283\allowbreak (6292): 628. \bibitem[A.6(2009)]{A.6:4} Anon, 2009. \newblock Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Anon, 2012. \newblock Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al., 2014. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E, 1995. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P, 2011. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D, 2008. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R, c1980. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America: 117-211. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M, 2011. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 8-9. \bibitem[Calms(1965)]{A.4:3} CALMS R~B, 1965. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P, 1993. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 4\allowbreak (2): 61-66. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E, 1982. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}, [2013]. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[Crane(1972)]{10.2.1:1} CRANE D, 1972. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M, 1995. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al., 1992. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 359: 605-609. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D, 2013. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Dowler(1995)]{9.1:6} DOWLER L, 1995. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 21\allowbreak (1/2): 5-26. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H, 2013. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E, c1971. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME: 17-38. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al., 2013. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B, 2013. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A, 2009. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}, 1977. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H, 1998. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 279\allowbreak (5359): 2063. \bibitem[Kennedy et~al.(1975{\natexlab{a}})Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E, 1975{\natexlab{a}}. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 22: 311. \bibitem[Kennedy et~al.(1975{\natexlab{b}})Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E, 1975{\natexlab{b}}. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 8: 339. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A, 2012. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al., 2002. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I, 2010. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al., 2014. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A, 1994. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}, [2012]. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y, 2010. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr, 2001. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A, 2011. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc.: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G, 2011. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K, 2006. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 57\allowbreak (5/6): 169-176. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F, 1981. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 42\allowbreak (6): 549-560. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R, 1996. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al., 2005. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}, 1990. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E, 2013. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N, 1974. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders: 745-772. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}, 1970. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A, 2000. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema. \end{thebibliography} ```
/content/code_sandbox/test/testbst/2015-author-year.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,947
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} Peebles P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} Yufin S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} Baldock P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} Fan X, Sommers C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} Weinstein L, Swertz M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak Sodeman W~A, Jr, Sodeman W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} Roberson J~A, Burneson E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} Kanamori H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} Caplan P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} Frese K~S, Katus H~A, Meder B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} Myburg A~A, Grattapaglia D, Tuskan G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} Tachibana R, Shimizu S, Kobayshi S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} Bawden D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} Hopkinson A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} Deverell W, Igler D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} Baker S~K, Jackson M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} Chernik B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[Dowler(1995)]{9.1:6} Dowler L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Sunstein(1996)]{10.1.3:1} Sunstein C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} Morri I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} Crane D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} Stieg M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} Kennedy W~L, Garrison R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} Kennedy W~L, Garrison R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} Crawford W, Gorman M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'Brien J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} Kinchy A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} Praetzellis A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} Babu B~V, Nagar A~K, Deep K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} Calkin D, Ager A, Thompson M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} Calms R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} Koseki A, Momose H, Kawahito M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} Buseck P~R, Nord G~L, Jr, Veblen D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Fourney(c1971)]{A.7:8} Fourney M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6-21. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} Des~Marais D~J, Strauss H, Summons R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} Saito M, Miyazaki K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} Walls S~C, Barichivich W~J, Brown M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} Franz A~K, Danielewicz M~A, Wong D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} Park J~R, Tosaka Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-no-uppercase.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,578
```unknown \begin{thebibliography}{128} \providecommand{\biband}{} \providecommand{\bibetal}{} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38-39. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2-10. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[\ {\bibetal}(2010{\natexlab{a}}), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010{\natexlab{a}}, 37\allowbreak (4): 147. \bibitem[(2010{\natexlab{b}})]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010{\natexlab{b}}: 138. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24-29. \bibitem[A.1(1962)]{A.1:5} . \newblock : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[A.7(1977)]{A.7:5} . \newblock : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[A.7(1988)]{A.7:1} . \newblock 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[4.2(2011)]{4.2.2:1} . \newblock : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33-34. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[{\biband}(2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518-1523. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[(2010{\natexlab{a}})]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010{\natexlab{a}}: 2-3. \bibitem[(2010{\natexlab{b}})]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010{\natexlab{b}}: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[\ {\bibetal}(2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[{\biband}(2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59-92. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[{\biband}(2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[{\biband}(2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225-228\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[(2008{\natexlab{a}})]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008{\natexlab{a}}, 52\allowbreak (6): 6-12\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[(2008{\natexlab{b}})]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008{\natexlab{b}}, 52\allowbreak (6): 6-21. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56-75. \bibitem[{\biband}(2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011-012\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8-9\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[\ {\bibetal}(2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22-25. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32-36. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[\ {\bibetal}(2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ {\bibetal}(2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[{\biband}(2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45-52. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[\ {\bibetal}(1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56-114. \bibitem[(2000{\natexlab{a}})]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000{\natexlab{a}}: 29. \bibitem[(2000{\natexlab{b}})]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000{\natexlab{b}}: 29. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[8.1(1981)]{8.1.3} Anon. \newblock Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[A.6(2009)]{A.6:4} Anon. \newblock Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Anon. \newblock Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[Babu {\bibetal}(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[Baker{\biband}Jackson(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[Buseck {\bibetal}(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. \bibitem[Calkin {\bibetal}(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61-66. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Crawford{\biband}Gorman(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[Des~Marais {\bibetal}(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605-609. \bibitem[Deverell{\biband}Igler(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5-26. \bibitem[Fan{\biband}Sommers(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17-38. \bibitem[Franz {\bibetal}(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053-1062\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Frese {\bibetal}(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378-398\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Kennedy{\biband}Garrison(1975{\natexlab{a}})Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975{\natexlab{a}}, 22: 311. \bibitem[Kennedy{\biband}Garrison(1975{\natexlab{b}})Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975{\natexlab{b}}, 8: 339. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Koseki {\bibetal}(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[Myburg {\bibetal}(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356-362\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Park{\biband}Tosaka(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696-715\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[Roberson{\biband}Burneson(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[Saito{\biband}Miyazaki(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169-176. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549-560. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Tachibana {\bibetal}(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[Walls {\bibetal}(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399-418\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Weinstein{\biband}Swertz(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \end{thebibliography} ```
/content/code_sandbox/test/testbst/ucas-author-year.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,922
```unknown \begin{thebibliography}{34} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[\ (1994), , , et~al.]{10-1:1} , , , . \newblock \allowbreak[J]. \newblock : , 1994, 34\allowbreak (2): 1-7. \bibitem[(1973)]{10-1:2} . \newblock \allowbreak[M]. \newblock : , 1973: 56-60. \bibitem[Dupont(1974)]{10-1:3} Dupont B. \newblock Bone marrow transplantation in severe combined immunodeficiency with an unrelated mlc compatible donor\allowbreak[C]//\allowbreak White H~J, Smith R. \newblock Proceedings of the third annual meeting of the International Society for Experimental Hematology. \newblock Houston: International Society for Experimental Hematology, 1974: 44-46. \bibitem[(1987)]{10-1:4} . \newblock \allowbreak[D]. \newblock : , 1987. \bibitem[(1980)]{10-1:5} . \newblock : , 88105607.3\allowbreak[P]. \newblock 1980-07-26. \bibitem[(1994)]{10-1:6} . \newblock GB3100-3102. -\allowbreak[S]. \newblock : , 1994. \bibitem[Merkt et~al.(1995)Merkt, Mackenzie, and Softley]{10-1:7} Merkt F, Mackenzie S~R, Softley T~P. \newblock Rotational autoionization dynamics in high rydberg states of nitrogen\allowbreak[J]. \newblock J Chem Phys, 1995, 103: 4509-4518. \bibitem[Mellinger et~al.(1996)Mellinger, Vidal, and Jungen]{10-1:8} Mellinger A, Vidal C~R, Jungen C. \newblock Laser reduced fluorescence study of the carbon monoxide nd triplet rydberg series - experimental results and multichannel quantum defect analysis\allowbreak[J]. \newblock J Chem Phys, 1996, 104: 8913-8921. \bibitem[Bixon et~al.(1996)Bixon and Jortner]{10-1:9} Bixon M, Jortner J. \newblock The dynamics of predissociating high {Rydberg} states of {NO}\allowbreak[J]. \newblock J Chem Phys, 1996, 105: 1363-1382. \bibitem[\ (1995), , , et~al.]{10-1:10} , , , . \newblock {REMPI} {BaF} \allowbreak[J]. \newblock , 1995, 8: 308-311. \bibitem[Carlson et~al.(1981)Carlson, Taylor, Jones, and Schawlow]{10-1:11} Carlson N~W, Taylor A~J, Jones K~M, et~al. \newblock Two-step polarization-labeling spectroscopy of excited states of {Na2}\allowbreak[J]. \newblock Phys Rev A, 1981, 24: 822-834. \bibitem[Taylor et~al.(1983)Taylor, Jones, and Schawlow]{10-1:12} Taylor A~J, Jones K~M, Schawlow A~L. \newblock Scanning pulsed-polarization spectrometer applied to {Na2}\allowbreak[J]. \newblock J Opt Soc Am, 1983, 73: 994-998. \bibitem[Taylor et~al.(1981)Taylor, Jones, and Schawlow]{10-1:13} Taylor A~J, Jones K~M, Schawlow A~L. \newblock A study of the excited {1$\Sigma$g+} states in {Na2}\allowbreak[J]. \newblock Opt Commun, 1981, 39: 47-50. \bibitem[Shimizu et~al.(1983)Shimizu and Shimizu]{10-1:14} Shimizu K, Shimizu F. \newblock Laser induced fluorescence spectra of the a {3$\Pi$u--X 1$\Sigma$g+} band of {Na2} by molecular beam\allowbreak[J]. \newblock J Chem Phys, 1983, 78: 1126-1131. \bibitem[Atkinson et~al.(1982)Atkinson, Becker, and Demtr{\"o}der]{10-1:15} Atkinson J~B, Becker J, Demtr{\"o}der W. \newblock Experimental observation of the a {3$\Pi$u} state of {Na2}\allowbreak[J]. \newblock Chem Phys Lett, 1982, 87: 92-97. \bibitem[Kusch et~al.(1975)Kusch and Hessel]{10-1:16} Kusch P, Hessel M~M. \newblock Perturbations in the a {1$\Sigma$u+} state of {Na2}\allowbreak[J]. \newblock J Chem Phys, 1975, 63: 4087-4088. \bibitem[(1993)]{10-1:17} . \newblock \allowbreak[M]. \newblock : , 1993. \bibitem[(1989)]{10-1:18} . \newblock \allowbreak[M]. \newblock , . 2 . \newblock : , 1989: 15-20. \bibitem[(1865)]{10-1:19} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865. \bibitem[(1998)]{10-1:20} . \newblock \allowbreak[M/OL]. \newblock : , 1998\allowbreak[1998-09-26]. \newblock \url{path_to_url}. \bibitem[(2002)]{10-1:21} . \newblock GB/T 12450-2001 \allowbreak[S]. \newblock : , 2002: 1. \bibitem[(2004)]{10-1:22} . \newblock : \allowbreak[M]. \newblock 2014 . \newblock : , 2004: 299-307. \bibitem[{World Health Organization}(1970)]{10-1:23} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[Peebles(2001)]{10-1:24} Peebles P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw Hill, 2001. \bibitem[(1998)]{10-1:25} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146-163. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{10-1:26} Weinstein L, Swertz M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak Sodeman W~A, Jr, Sodeman W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745-772. \bibitem[(1985)]{10-1:27} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1985: 90-99. \bibitem[(1936)]{10-1:28} . \newblock \allowbreak[J]. \newblock 1936, 1\allowbreak (1)--. \newblock : , 1936--. \bibitem[(1957/1990)]{10-1:29} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{10-1:30} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2000), , and ]{10-1:31} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-04-12\allowbreak (14)\allowbreak[2002-03-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{10-1:32} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[{Online Computer Library Center, Inc}({[2000]})]{10-1:33} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2000-01-08]. \newblock \url{path_to_url}. \bibitem[{Scitor Corporation}(1983)]{10-1:34} {Scitor Corporation}. \newblock Project scheduler\allowbreak[CP/DK]. \newblock Sunnyvale, Calif.: Scitor Corporation, 1983. \end{thebibliography} ```
/content/code_sandbox/test/testbst/thu-numeric.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
2,372
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,author-year}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> @article{zhangsan, title = {}, author = { and }, key = {zhang1 san1 & li3 si4}, journal = {}, volume = {23}, number = {4}, pages = {20--26}, year = {2007}, publisher = {} } @article{zhangsanfeng, title = {}, author = {}, key = {zhang1 san1 feng1}, journal = {}, volume = {23}, number = {4}, pages = {20--26}, year = {2007}, publisher = {} } %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/2015-author-year.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
408
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,sl-sn}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-sl-sn.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
258
```unknown \begin{thebibliography}{128} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{#1} \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax \DeclareUrlCommand\doi{\urlstyle{rm}} \def\eprint#1#2{#2} \else \def\doi#1{\href{path_to_url#1}{\nolinkurl{#1}}} \let\eprint\href \fi \bibitem[(2000)]{4.1.2:1} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2012)]{4.1.2:2} . \newblock \allowbreak[M]. \newblock , . \newblock : , 2012: 235-236. \bibitem[\ (2012) and ]{4.1.2:3} , . \newblock \allowbreak[M]. \newblock : , 2012: 112. \bibitem[(2010)]{4.1.2:4} . \newblock \quad : GB/T 251002010\allowbreak[S]. \newblock : , 2010: 2-3. \bibitem[\ (2010) and ]{4.1.2:5} , . \newblock \allowbreak[M]. \newblock : , 2010. \bibitem[(1992)]{4.1.2:6} . \newblock : \allowbreak[M]. \newblock : , 1992. \bibitem[(1865())]{4.1.2:7} . \newblock \allowbreak[M]. \newblock . \newblock : , 1865(). \bibitem[\ (2012), , and ]{4.1.2:8} , , . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[\ (2001) and ]{4.1.2:9} , . \newblock \allowbreak[A]. \newblock : , 2001. \bibitem[(2012)]{4.1.2:10} . \newblock \allowbreak[D/OL]. \newblock : , 2012\allowbreak[2012-11-01]. \newblock \url{path_to_url}. \bibitem[(2001)]{4.1.2:11} . \newblock \allowbreak[M/OL]. \newblock : , 2001\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[(2011)]{4.1.2:12} . \newblock \allowbreak[M/OL]. \newblock : , 2011: 5-6\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[(2003)]{4.1.2:13} . \newblock : 2003\allowbreak[M/OL]. \newblock : , 2003\allowbreak[2014-04-25]. \newblock \url{path_to_url}. \bibitem[Peebles(2001)]{4.1.2:14} PEEBLES P~Z, Jr. \newblock Probability, random variables, and random signal principles\allowbreak[M]. \newblock 4th ed. \newblock New York: McGraw-Hill, 2001. \bibitem[Yufin(2000)]{4.1.2:15} YUFIN S~A. \newblock Geoecology and computers: Proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering}, {Moscow, Russia}, {February} 1--4, 2000\allowbreak[C]. \newblock Rotterdam: A. A. Balkema, 2000. \bibitem[Baldock(2011)]{4.1.2:16} BALDOCK P. \newblock Developing early childhood services: Past, present and future\allowbreak[M/OL]. \newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Fan et~al.(2013)Fan and Sommers]{4.1.2:17} FAN X, SOMMERS C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. \newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[4.2(2011)]{4.2.2:1} : 5\allowbreak[M]//\allowbreak . \newblock : 6 . \newblock : , 2011: 1109. \bibitem[(1999)]{4.2.2:2} . \newblock 1998 \allowbreak[M]//\allowbreak , . \newblock . \newblock : , 1999: 32. \bibitem[\ (1980), , , , and ]{4.2.2:3} , , , . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1980: 56. \bibitem[(2013)]{4.2.2:4} . \newblock \allowbreak[M]//\allowbreak , . \newblock : 35 . \newblock : , 2013: 302. \bibitem[\ (2011) and ]{4.2.2:5} , . \newblock \allowbreak[C]//\allowbreak . \newblock : 2011 . \newblock : , 2011: 45. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{4.2.2:6} WEINSTEIN L, SWERTZ M~N. \newblock Pathogenic properties of invading microorganism\allowbreak[M]//\allowbreak SODEMAN W~A, Jr, SODEMAN W~A. \newblock Pathologic physiology: mechanisms of disease. \newblock Philadelphia: Saunders, 1974: 745. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{4.2.2:7} ROBERSON J~A, BURNESON E~G. \newblock Drinking water standards, regulations and goals\allowbreak[M/OL]//\allowbreak {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. \newblock New York: McGraw-Hill, 2011: 1.1\allowbreak[2012-12-10]. \newblock \url{path_to_url}. \bibitem[(1984)]{4.3.2:1} . \newblock \allowbreak[J]. \newblock 1984, 1\allowbreak (1)--. \newblock : , 1984--. \bibitem[(1957/1990)]{4.3.2:2} . \newblock \allowbreak[J]. \newblock 1957\allowbreak (1)--1990\allowbreak (4). \newblock : , 1957--1990. \bibitem[{American Association for the Advancement of Science}(1883)]{4.3.2:3} {American Association for the Advancement of Science}. \newblock Science\allowbreak[J]. \newblock 1883, 1\allowbreak (1)--. \newblock Washington, D.C.: American Association for the Advancement of Science, 1883--. \bibitem[\ (2012), , , et~al.]{4.4.2:1} , , , . \newblock : \allowbreak[J]. \newblock , 2012, 57\allowbreak (34): 3219. \bibitem[(2013)]{4.4.2:2} . \newblock : \allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak (2)\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \bibitem[(2008)]{4.4.2:3} . \newblock \allowbreak[J/OL]. \newblock , 2008, 52\allowbreak (6): 6\allowbreak[2013-10-25]. \newblock \url{path_to_url}. \bibitem[\ (2010) and ]{4.4.2:4} , . \newblock : \allowbreak[J/OL]. \newblock (), 2010, 4\allowbreak (3): 225\allowbreak[2014-06-09]. \newblock \url{path_to_url}. \bibitem[\ (2008), , , et~al.]{4.4.2:5} , , , . \newblock \allowbreak[J/OL]. \newblock , 2008, 33\allowbreak (5): 8\allowbreak[2009-10-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{4.4.2:6} KANAMORI H. \newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\allowbreak (5359): 2063. \bibitem[Caplan(1993)]{4.4.2:7} CAPLAN P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\allowbreak (2): 61. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{4.4.2:8} FRESE K~S, KATUS H~A, MEDER B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 378\allowbreak[2013-03-19]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{4.4.2:9} MYBURG A~A, GRATTAPAGLIA D, TUSKAN G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510: 356\allowbreak[2014-06-25]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[(2006)]{4.5.2:1} . \newblock : 200610171314.3\allowbreak[P]. \newblock 2006-12-13. \bibitem[(2002)]{4.5.2:2} . \newblock : 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{4.5.2:3} TACHIBANA R, SHIMIZU S, KOBAYSHI S, et~al. \newblock Electronic watermarking method and system: US6915001\allowbreak[P/OL]. \newblock 2005-07-05\allowbreak[2013-11-11]. \newblock \url{path_to_url}. \bibitem[(2012)]{4.6.2:1} . \newblock 29 \allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock \url{path_to_url}. \bibitem[(2005)]{4.6.2:2} . \newblock : [2005]37\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. \newblock \url{path_to_url}. \bibitem[Bawden(2008)]{4.6.2:3} BAWDEN D. \newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. \newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. \newblock \url{path_to_url~dbawden/digital%20literacy%20chapter.pdf}. \bibitem[{Online Computer Library Center, Inc}({[2012]})]{4.6.2:4} {Online Computer Library Center, Inc}. \newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. \newblock \allowbreak[2012-03-27]. \newblock \url{path_to_url}. \bibitem[Hopkinson(2009)]{4.6.2:5} HOPKINSON A. \newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. \newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. \newblock \url{path_to_url}. \bibitem[8.1(1981)]{8.1.3} Coffee drinking and cancer of the pancreas\allowbreak[J]. \newblock Br Med J, 1981, 283\allowbreak (6292): 628. \bibitem[(2000)]{8.7:1} . \newblock \allowbreak[D/OL]. \newblock : , 2000: 17-18\allowbreak[2014-08-29]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.7666/d.y351065}. \bibitem[Deverell et~al.(2013)Deverell and Igler]{8.7:2} DEVERELL W, IGLER D. \newblock A companion to {California} history\allowbreak[D/OL]. \newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Baker et~al.(1995)Baker and Jackson]{9.1:1} BAKER S~K, JACKSON M~E. \newblock The future of resource sharing\allowbreak[M]. \newblock New York: The Haworth Press, 1995. \bibitem[Chernik(1982)]{9.1:2} CHERNIK B~E. \newblock Introduction to library services for library technicians\allowbreak[M]. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[(1996)]{9.1:3} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 1996. \bibitem[(1997)]{9.1:4} . \newblock \allowbreak[M]. \newblock : , 1997: 16. \bibitem[(1996)]{9.1:5} . \newblock \allowbreak[J]. \newblock , 1996\allowbreak (2): 24. \bibitem[Dowler(1995)]{9.1:6} DOWLER L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\allowbreak (1/2): 5. \bibitem[Sunstein(1996)]{10.1.3:1} SUNSTEIN C~R. \newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{path_to_url}. \bibitem[Morri(2010)]{10.1.3:2} MORRI I. \newblock Why the west rules for now: the patterns of history, and what they reveal about the future\allowbreak[M]. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[(2011)]{10.1.3:3} . \newblock : \allowbreak[M]. \newblock , , , . \newblock : , 2011: 15-16. \bibitem[Crane(1972)]{10.2.1:1} CRANE D. \newblock Invisible college\allowbreak[M]. \newblock Chicago: Univ. of Chicago Press, 1972. \bibitem[Stieg(1981)]{10.2.1:2} STIEG M~F. \newblock The information needs of historians\allowbreak[J]. \newblock College and research libraries, 1981, 42\allowbreak (6): 549. \bibitem[\ (2010), , and ]{10.2.3:1a} , , . \newblock \allowbreak[J]. \newblock (), 2010, 37\allowbreak (4): 147. \bibitem[(2010)]{10.2.3:1b} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2010: 138. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2a} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular chalks and hardgrounds in the {Upper Cretaceous of southern England}\allowbreak[J]. \newblock Sedimentology, 1975, 22: 311. \bibitem[Kennedy et~al.(1975)Kennedy and Garrison]{10.2.3:2b} KENNEDY W~L, GARRISON R~E. \newblock Morphology and genesis of nodular phosphates in the cenomanian of {South-east England}\allowbreak[J]. \newblock Lethaia, 1975, 8: 339. \bibitem[(1997)]{10.2.4:1} . \newblock ()\allowbreak[C]//\allowbreak . \newblock . \newblock : , 1997: 33. \bibitem[(1996)]{10.2.4:2} . \newblock \allowbreak[M]. \newblock . \newblock : , 1996. \bibitem[(1998)]{10.2.4:3} . \newblock : \allowbreak[J]. \newblock , 1998\allowbreak (5): 38. \bibitem[(1981)]{10.2.4:4} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 1981: 2. \bibitem[(2000)]{10.1.3:4} . \newblock : 1 \allowbreak[M]. \newblock : , 2000: 29. \bibitem[(2002)]{A.1:1} . \newblock \allowbreak[M]. \newblock : , 2002: 288. \bibitem[(2009)]{A.1:2} . \newblock : 4 \allowbreak[M]. \newblock : , 2009: 155. \bibitem[\ (2010), , and ]{A.1:3} , , . \newblock : \allowbreak[M]. \newblock : , 2010: 112. \bibitem[(2010)]{A.1:4} . \newblock \allowbreak[M]. \newblock , , . \newblock : , 2010: 38-39. \bibitem[A.1(1962)]{A.1:5} : : \allowbreak[M]. \newblock . \newblock : , 1962: 50. \bibitem[(1881)]{A.1:6} . \newblock : \allowbreak[M]. \newblock . \newblock : , 1881. \bibitem[\ (1998), , , et~al.]{A.1:7} , , , . \newblock \allowbreak[M]. \newblock : , 1998. \bibitem[\ (2013), , and ]{A.1:8} , , . \newblock : \allowbreak[M]. \newblock : , 2013. \bibitem[(2009)]{A.1:9} . \newblock \allowbreak[M]. \newblock , , , . \newblock : , 2009. \bibitem[(2012)]{A.1:10} . \newblock : 4 \allowbreak[M]. \newblock , , . 2 . \newblock : , 2012. \bibitem[(2010)]{A.1:11} . \newblock : \allowbreak[M/OL]. \newblock : , 2010: 119\allowbreak[2012-11-27]. \newblock \url{path_to_url}. \bibitem[Crawford et~al.(1995)Crawford and Gorman]{A.1:12} CRAWFORD W, GORMAN M. \newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. \newblock Chicago: American Library Association, 1995. \bibitem[{International Federation of Library Association and Institutions}(1977)]{A.1:13} {International Federation of Library Association and Institutions}. \newblock Names of persons: National usages for entry in catalogues\allowbreak[M]. \newblock 3rd ed. \newblock London: IFLA International Office for UBC, 1977. \bibitem[O'Brien(1994)]{A.1:14} O'BRIEN J~A. \newblock Introduction to information systems\allowbreak[M]. \newblock 7th ed. \newblock Burr Ridge, III: Irwin, 1994. \bibitem[Kinchy(2012)]{A.1:15} KINCHY A. \newblock Seeds, sciences, and struggle: the global politics of transgenic crops\allowbreak[M/OL]. \newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. \newblock \url{path_to_url}. \bibitem[Praetzellis(2011)]{A.1:16} PRAETZELLIS A. \newblock Death by theory: a tale of mystery and archaeological theory\allowbreak[M/OL]. \newblock Rev. ed. ed. \newblock Rowman \& Littlefield Publishing Group, Inc., 2011: 13\allowbreak[2012-07-26]. \newblock \url{path_to_url}. \bibitem[(1985)]{A.2:1} . \newblock \allowbreak[G]. \newblock : , 1985. \bibitem[(2012)]{A.2:2} . \newblock \allowbreak[C]. \newblock : , 2012. \bibitem[(2012)]{A.2:3} . \newblock : \allowbreak[C]. \newblock : , 2012. \bibitem[(2011)]{A.2:4} . \newblock : \allowbreak[C/OL]. \newblock : , 2011\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{A.2:5} BABU B~V, NAGAR A~K, DEEP K, et~al. \newblock Proceedings of the {Second International Conference on Soft Computing for Problem Solving}, {December} 28--30, 2012\allowbreak[C]. \newblock New Delhi: Springer, 2014. \bibitem[(2013)]{A.3:1} . \newblock : \allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.3:2} , , , . \newblock : 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. \newblock \url{path_to_url}. \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{A.3:3} CALKIN D, AGER A, THOMPSON M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. \newblock 2011: 8-9. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{A.3:4} {U.S. Department of Transportation Federal Highway Administration}. \newblock Guidelines for handling excavated acid-producing material: {PB 91-194001}\allowbreak[R]. \newblock Springfield: U.S. Department of Commerce National Information Service, 1990. \bibitem[{World Health Organization}(1970)]{A.3:5} {World Health Organization}. \newblock Factors regulating the immune response: Report of {WHO Scientific Group}\allowbreak[R]. \newblock Geneva: WHO, 1970. \bibitem[(2011)]{A.4:1} . \newblock \allowbreak[D/OL]. \newblock : , 2011: 27\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[(2003)]{A.4:2} . \newblock \allowbreak[D/OL]. \newblock : , 2003\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[Calms(1965)]{A.4:3} CALMS R~B. \newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. \newblock Berkeley: Univ. of California, 1965. \bibitem[(2012)]{A.5:1} . \newblock : 201220158825.2\allowbreak[P]. \newblock 2012-04-05. \bibitem[(2001)]{A.5:2} . \newblock : 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{A.5:3} KOSEKI A, MOMOSE H, KAWAHITO M, et~al. \newblock Compiler: US828402\allowbreak[P/OL]. \newblock 2002-05-25\allowbreak[2002-05-28]. \newblock \url{path_to_url}. \bibitem[(2010)]{A.6:1} . \newblock : 4 \quad : GB/T 3792.72009\allowbreak[S]. \newblock : , 2010: 3. \bibitem[(2007)]{A.6:2} . \newblock : 2 \quad : GY/T 202.22007\allowbreak[S]. \newblock : , 2007: 1. \bibitem[(1996)]{A.6:3} . \newblock : GB 156161995\allowbreak[S/OL]. \newblock : , 1996: 2-3\allowbreak[2013-10-14]. \newblock \url{path_to_url}. \bibitem[A.6(2009)]{A.6:4} Information and documentation---the {Dublin} cord metadata element set: ISO 15836: 2009\allowbreak[S/OL]. \newblock 2009\allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.7(1988)]{A.7:1} 39 \allowbreak[M]//\allowbreak : . \newblock : , 1988: 590. \bibitem[(1998)]{A.7:2} . \newblock \allowbreak[M]//\allowbreak . \newblock . \newblock : , 1998: 146. \bibitem[(2002)]{A.7:3} . \newblock \allowbreak[C]//\allowbreak . \newblock . \newblock : , 2002: 22. \bibitem[(1988)]{A.7:4} . \newblock : GB/T 26591986\allowbreak[S]//\allowbreak . \newblock : 3. \newblock : , 1988: 59. \bibitem[A.7(1977)]{A.7:5} : \allowbreak[M]//\allowbreak : 1 . \newblock : , 1977: 49. \bibitem[\ (2011) and ]{A.7:6} , . \newblock \allowbreak[M/OL]//\allowbreak . \newblock . \newblock : , 2011: 011\allowbreak[2013-05-09]. \newblock \url{path_to_url}. \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{A.7:7} BUSECK P~R, NORD G~L, Jr, VEBLEN D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. \newblock Washington, D.C.: Mineralogical Society of America, c1980: 117. \bibitem[Fourney(c1971)]{A.7:8} FOURNEY M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on {Applications of Holography in Mechanics}, {August} 23--25, 1971, {University of Southern California, Los Angeles, California}. \newblock New York: ASME, c1971: 17. \bibitem[(2013)]{A.8:1} . \newblock \allowbreak[J]. \newblock , 2013\allowbreak (1): 56. \bibitem[(2008)]{A.8:2} . \newblock \allowbreak[J]. \newblock , 2008, 52\allowbreak (6): 6. \bibitem[\ (2012), , , et~al.]{A.8:3} , , , . \newblock \allowbreak[J]. \newblock (), 2012, 52\allowbreak (11): 1518. \bibitem[(2010)]{A.8:4} . \newblock \allowbreak[J/OL]. \newblock , 2010, 7\allowbreak (10): 93\allowbreak[2013-03-20]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{A.8:5} DES~MARAIS D~J, STRAUSS H, SUMMONS R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. \newblock Nature, 1992, 359: 605. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{A.8:6} SAITO M, MIYAZAKI K. \newblock Jadeite-bearing metagabbro in serpentinite mlange of the {Kurosegawa Belt in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\allowbreak (5/6): 169. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{A.8:7} WALLS S~C, BARICHIVICH W~J, BROWN M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\allowbreak (1): 399\allowbreak[2013-11-04]. \newblock \url{path_to_url}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{A.8:8} FRANZ A~K, DANIELEWICZ M~A, WONG D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical Biology, 2013, 8: 1053\allowbreak[2014-06-26]. \newblock \url{path_to_url}. \bibitem[Park et~al.(2010)Park and Tosaka]{A.8:9} PARK J~R, TOSAKA Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\allowbreak (8): 696\allowbreak[2013-09-05]. \newblock \url{path_to_url}. \bibitem[(2000)]{A.9:1} . \newblock \allowbreak[N]. \newblock , 2000-11-20\allowbreak (15). \bibitem[(2000)]{A.9:2} . \newblock DNA \allowbreak[N]. \newblock , 2000-11-12\allowbreak (7). \bibitem[\ (2000), , and ]{A.9:3} , , . \newblock \allowbreak[N/OL]. \newblock , 2000-01-12\allowbreak[2005-09-28]. \newblock \url{path_to_url}. \bibitem[\ (2013), , , et~al.]{A.9:4} , , , . \newblock , ?\allowbreak[N/OL]. \newblock , 2013-01-12\allowbreak[2013-11-06]. \newblock \url{path_to_url}. \bibitem[(2001)]{A.10:1} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. \newblock \url{path_to_url}. \bibitem[(2012)]{A.10:2} . \newblock \allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. \newblock \url{path_to_url}. \bibitem[{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}({[2013]})]{A.10:3} {Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}. \newblock Pennsylvania library laws\allowbreak[EB/OL]. \newblock \allowbreak[2013-03-24]. \newblock \url{path_to_url}. \bibitem[A.1(2012)]{A.10:4} Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. \newblock \url{path_to_url}. \end{thebibliography} ```
/content/code_sandbox/test/testbst/option-only-start-page.bbl
unknown
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
8,574
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,macro}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-macro.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
257
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,in-collection}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-in-collection.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
257
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,no-sentence-case}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-no-sentence-case.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
259
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,link-title}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-link-title.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
258
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2005,author-year}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-2005-author-year.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
255
```tex %<*internal> \begingroup \def\nameoflatex{LaTeX2e} \expandafter\endgroup\ifx\nameoflatexe\fmtname\else \csname fi\endcsname %</internal> %<*install> \input docstrip.tex \nopreamble \keepsilent \askforoverwritefalse \nopostamble \generate{ \file{test.aux}{\from{\jobname.dtx}{aux}} \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,italic-journal}} \file{test.bib}{\from{\jobname.dtx}{bib}} } \endbatchfile %</install> %<*internal> \fi %</internal> %<*driver> \ProvidesFile{\jobname.dtx} %</driver> % \fi % % \begin{macrocode} %<*aux> \bibstyle{test} \citation{*} \bibdata{test,standard} %</aux> % \end{macrocode} % % \begin{macrocode} %<*bib> %</bib> % \end{macrocode} \endinput ```
/content/code_sandbox/test/testbst/option-italic-journal.dtx
tex
2016-03-19T04:16:10
2024-08-16T08:50:19
gbt7714-bibtex-style
zepinglee/gbt7714-bibtex-style
1,167
259