# 制表符格式

Tab-delimited 导入选项可以导入每个文献间用段落符号 (¶) 分隔，文献内不同部分使用制表符分隔的文本文件

### 导出数据前准备

**作者姓名**

从数据库导出文献前，推荐作者之间使用分号(;)或者两个斜杠(//)进行分隔，例如：

HowSci, P.//Harrison, G.//Lennon, J.

如果做不到，可以导出或者导入后手动修改

**文献类型**

如果可能，应该保证每个文献都有一个部分是表明文献类型的，推荐使用 EndNote 的文献类型，这样 EndNote 才能辨识。如果仅有一种文献类型，此项到是不重要，导入设置可以指明所有文献默认导入为期刊类文献

### 导入前数据准备

打开文件，增加两行内容，告诉 EndNote 该文件的默认文献类型和如何解析数据

**第一行：默认文献类型**

第一行必须定义整个文件的文献类型，格式是一个星号后紧跟一个 EndNote 的文献类型，之后是一个段落符号 (¶)，例如：

\*Journal Article <¶>

整个文件应该如下样式

| \*Journal Article   | <¶ >   |      |        |            |        |                |        |        |     |
| ------------------- | ------ | ---- | ------ | ---------- | ------ | -------------- | ------ | ------ | --- |
| Author              | \<tab> | Year | \<tab> | Title      | \<tab> | Journal        | \<tab> | Volume | <¶> |
| Jones, J//Sho, S    | \<tab> | 1994 | \<tab> | Easy Food  | \<tab> | J. of Eating   | \<tab> | 1      | <¶> |
| Woo, W //Lee, L     | \<tab> | 1995 | \<tab> | Rain Hats  | \<tab> | J. of Clothing | \<tab> | 2      | <¶> |
| Carlos, C\\\Luis, L | \<tab> | 1991 | \<tab> | Cell Phone | \<tab> | J. of Phones   | \<tab> | 3      | <¶> |

**第一行：自定义文献类型**

如果是自定义文献类型，需要检查 EndNote 的文献类型设置，依次打开菜单 Edit >> Preferences >> Reference Types >> Modify Reference Types

使用自定义文献类型的数据文件应该如下样式：

| \*My Reference Type | <¶>    |      |        |            |        |                |        |        |     |
| ------------------- | ------ | ---- | ------ | ---------- | ------ | -------------- | ------ | ------ | --- |
| Author              | \<tab> | Year | \<tab> | Title      | \<tab> | Journal        | \<tab> | Volume | <¶> |
| Jones, J//Shoe, S   | \<tab> | 1994 | \<tab> | Easy Food  | \<tab> | J. of Eating   | \<tab> | 1      | <¶> |
| Woo, W //Lee, L     | \<tab> | 1995 | \<tab> | Rain Hats  | \<tab> | J. of Clothing | \<tab> | 2      | <¶> |
| Carlos, C\\\Luis, L | \<tab> | 1991 | \<tab> | Cell Phone | \<tab> | J. of Phones   | \<tab> | 3      | <¶> |

**第一行：多种文献类型**

如果导出时不能根据文献类型导出多个文献，可在文件中指定每个文献类型。此时首先要在第一行列举出[通用](https://app.gitbook.com/s/-LrgCHEEK5wsSALfCziF/Appendices/RefTypes_A_An.htm) 文献类型的字段，以「Reference Type」字段开始，来定义文献的类型，例如：

| Reference Type  | \<tab> | Author              | \<tab> | Year | \<tab> | Title      | \<tab> | Secondary Title | \<tab> | Volume | <¶> |
| --------------- | ------ | ------------------- | ------ | ---- | ------ | ---------- | ------ | --------------- | ------ | ------ | --- |
| Journal Article | \<tab> | Jones, J//Shoe, S   | \<tab> | 1994 | \<tab> | Easy Food  | \<tab> | J. of Eating    | \<tab> | 1      | <¶> |
| Book Section    | \<tab> | Woo, W //Lee, L     | \<tab> | 1995 | \<tab> | Rain Hats  | \<tab> | J. of Clothing  | \<tab> | 2      | <¶> |
| Report          | \<tab> | Carlos, C\\\Luis, L | \<tab> | 1991 | \<tab> | Cell Phone | \<tab> | J. of Phones    | \<tab> | 3      | <¶> |

**第二行：EndNote 的字段名称**

第二行必须精确匹配 EndNote 的字段，例如：

| \*Journal Article   | <¶>    |      |        |            |        |                |        |        |     |
| ------------------- | ------ | ---- | ------ | ---------- | ------ | -------------- | ------ | ------ | --- |
| Author              | \<tab> | Year | < tab> | Title      | \<tab> | Journal        | \<tab> | Volume | <¶> |
| Jones, J//Shoe, S   | \<tab> | 1994 | \<tab> | Easy Food  | \<tab> | J. of Eating   | \<tab> | 1      | <¶> |
| Woo, W //Lee, L     | \<tab> | 1995 | \<tab> | Rain Hats  | \<tab> | J. of Clothing | \<tab> | 2      | <¶> |
| Carlos, C\\\Luis, L | \<tab> | 1991 | \<tab> | Cell Phone | \<tab> | J. of Phones   | \<tab> | 3      | <¶> |

**注：**&#x4E0D;同字段间使用制表符进行分隔，最后一个字段后要跟一个段落符号

**还需要考虑的问题**

* 可以导入 ANSI，ASCII，UTF-8 编码的文件，这意味着导入中数据文件是纯文本文件
* 所有字段和文献类型名称必须与 EndNote 中相同，参阅[文献类型列表](/reference-types/list-of-reference-types.md)了解文献类型和字段
* 多个作者间要用(;)或双斜杠(//)进行分隔
* 域内不能包含制表符或者段落符号
* 导入过程中会删除前后空格
* 导入时不能大小写转换
* 保留字段「Unused」可用于不想导入的数据

#### 导入时出现错误

以上工作完成后，就可以导入了，依次打开菜单 File >> Import >> File (见[导入文献一般过程](/importing-references/general-importing-instructions.md))，注意导入选项选择「Tab-Delimited」

如果 EndNote 不能导入数据或者数据内的某个部分，会提示错误，以下是常见3个错误

* **Bad Default Reference Type：** 第一行没有指定对文献类型
* **Bad Field Name：** 第二行的字段不是EndNote的有效字段
* **Missing Reference Type Information：**&#x6CA1;有指定默认文献类型和字段

如果出现上述错误，打开数据文件作出相应的修改，然后再次导入。可能这个过程要反复多次


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.howsci.com/importing-references/creating-a-tab-delimited-format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
