使用 jabref 和 lyx 生成参考书目

使用 jabref 和 lyx 生成参考书目

我按照以下说明在 lyx 中使用 jabref 生成的参考书目:

http://ubuntuforums.org/showthread.php?t=477632

它运行良好,除了一种我无法弄清楚的错误。

LaTeX 错误:命令 \itshape 在数学模式下无效。

Lyx 文件

我在下面创建了一个最小工作示例,其中包含一行 lyx 文件和 1 个条目书目。您知道如何修复此错误吗?

#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\end_header

\begin_body

\begin_layout Standard
test of bibliography
\begin_inset CommandInset citation
LatexCommand cite
key "Hardy2007"

\end_inset


\end_layout

\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "mwe"
options "plain"

\end_inset


\end_layout

\end_body
\end_document

bibTex 文件

% This file was created with JabRef 2.5.
% Encoding: ISO8859_1

@ARTICLE{Hardy2007,
  author = {Robert G Hardy and Carolina Vicente-Dueñas and Ines González-Herrero
 and Catriona Anderson and Teresa Flores and Sharon Hughes and Chris
 Tselepis and James A Ross and Isidro Sánchez-García},
  title = {Snail family transcription factors are implicated in thyroid carcinogenesis.},
  journal = {Am J Pathol},
  year = {2007},
  volume = {171},
  pages = {1037--1046},
  number = {3},
  month = {Sep},
  abstract = {E-Cadherin (CDH1) expression is reduced in thyroid carcinomas by primarily
 unknown mechanisms. In several tissues, SNAIL (SNAI1) and SLUG (SNAI2)
 induce epithelial-mesenchymal transition by altering target gene
 transcription, including CDH1 repression, but these transcription
 factors have not been studied in thyroid carcinoma. Recently, our
 group has provided direct evidence that ectopic SNAI1 expression
 induces epithelial and mesenchymal mouse tumors. SNAI1, SNAI2, and
 CDH1 expression were analyzed in thyroid-derived cell lines and samples
 of human follicular and papillary thyroid carcinoma by reverse transcriptase-polymerase
 chain reaction, Western blotting, and immunohistochemistry. The effect
 of SNAI1 expression on CDH1 transcription was analyzed by reverse
 transcriptase-polymerase chain reaction and Western blotting in ori-3
 cells. Thyroid carcinoma development was analyzed in CombitTA-Snail
 mice, in which SNAI1 levels are up-regulated. SNAI1 and SNAI2 were
 not expressed in cells derived from normal thyroid tissue, or in
 normal human thyroid samples, but were highly expressed in cell lines
 derived from thyroid carcinomas, in human thyroid carcinoma samples,
 and their metastases. SNAI1 expression in ori-3 cells repressed CDH1
 transcription. Combi-TA mice developed papillary thyroid carcinomas,
 the incidence of which was increased by concomitant radiotherapy.
 In conclusion, SNAI1 and SNAI2 are ectopically expressed in thyroid
 carcinomas, and aberrant expression in mice is associated with papillary
 carcinoma development.},
  doi = {10.2353/ajpath.2007.061211},
  institution = {Tissue Injury and Repair Group, Centre for Regenerative Medicine,
 University of Edinburgh, Division of Clinical and Surgical Sciences,
 Room FU501, Chancellors Bldg, 49 Little France Crescent, Edinburgh
 EH16 4SB, UK. [email protected]},
  keywords = {Animals; Cadherins, genetics/metabolism; Carcinoma, metabolism/pathology;
 Cell Line, Tumor; Humans; Mice; Thyroid Neoplasms, metabolism/pathology;
 Transcription Factors, genetics/metabolism},
  language = {eng},
  medline-pst = {ppublish},
  pii = {171/3/1037},
  pmid = {17724139},
  timestamp = {2010.11.04},
  url = {http://dx.doi.org/10.2353/ajpath.2007.061211}
}

更新:

另一个比较难以操作的书目文件是:

bibTex 文件

@Book{IbnTaymiyya1970,
author = {Ibn Taymiyyah, Aḥmad ibn ʿAbd al{-}Halīm},
title = {Naqḍ al{-}manṭiq},
shorttitle = {Naqḍ al-manṭiq},
editor = {Ḥamzah, Aḥmad},
publisher = {Maktabat a{l-}Sunnah},
address = {Cairo},
year = {1970},
sortname = {IbnTaymiyyaNaqdalmantiq},
keywords = { Logic, Medieval}} 

答案1

我注意到了两件事:

  1. 您的文档的编码是 latin9(“查看”>“查看源代码”>“完整源代码”),但是
  2. 您的 .bib 文件中的条目以 UTF-8 格式编写,BibTeX 不支持该格式。

因此,请尝试以通常的方式在 .bib 中书写重音字符,例如 González > Gonz{\'{a}}lez 等。

另外,检查LyX 维基有关使用 BibTeX 的有用提示。

答案2

正如@Meho R. 指出的那样,问题似乎出在编码上。可以通过以下方法修复:

  1. 改变UTF-8 字符转义为 latex。这可以通过使用konwert utf8-texplus 额外命令来添加括号来完成。

  2. 比一直更改编码更简单的方法是将 Lyx 文件导出为 LaTeX,然后替换编码的命令 \usepackage[latin9]{inputenc}然后\usepackage[utf8x]{inputenc}将其导入回 Lyx。我不知道有什么方法可以在不经过 LaTeX 的情况下改变这种情况。

相关内容