我是 LyX 的新手,现在正在学习。
我用希伯来语写了一些东西,并添加了参考书目(英文)及其反向内容:
代码:
בדיקה\cite{Ruan2003}
\bibliographystyle{unsrt}
围兜文件:
@Article{Ruan2003,
language={english},
hyphenation={english},
author = {Ruan, YiJun and Wei, Chia Lin and Ling, Ai Ee and Vega, Vinsensius B and Thoreau, Herve and Thoe, Su Yun Se and Chia, Jer-Ming and Ng, Patrick and Chiu, Kuo Ping and Lim, Landri and others},
title = {Comparative full-length genome sequence analysis of 14 SARS coronavirus isolates and common mutations associated with putative origins of infection},
journal = {The Lancet},
year = {2003},
volume = {361},
number = {9371},
pages = {1779--1785},
__markedentry = {[MyLaptop:6]},
publisher = {Elsevier},
}
@Comment{jabref-meta: databaseType:bibtex;}
任何想法?
完整代码(MWE):
% Preview source code
%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{theorem}
\theorembodyfont{\upshape}
\newtheorem{theorem}{\R{משפט}}[section]
\AtBeginDocument{\make@lr\thetheorem}
% The following chunk fixes export with XeTeX.
% It is needed because polyglossia is used by default
% and \make@lr is only defined by babel.
\@ifundefined{make@lr}
{\def\make@lr#1{\begingroup
\toks@=\expandafter{#1}%
\edef\x{\endgroup
\def\noexpand#1{\noexpand\@number{\the\toks@}}}%
\x}}{\relax}
\makeatother
\usepackage{babel}
\begin{document}
בדיקה \cite{Ruan2003}
\bibliographystyle{plain}
\bibliography{db}
\end{document}
答案1
因为我没有安装你的希伯来语代码,所以我无法使用你的希伯来语文本进行编译,但我可以向你显示正确的参考书目。
您需要告诉 LaTeX 使用英语语言和书写参考书目
\selectlanguage{english} % <============================================
完整的 MWE(连同您的 bib 文件)
\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{theorem}
\theorembodyfont{\upshape}
\newtheorem{theorem}{\R{משפט}}[section]
\AtBeginDocument{\make@lr\thetheorem}
% The following chunk fixes export with XeTeX.
% It is needed because polyglossia is used by default
% and \make@lr is only defined by babel.
\@ifundefined{make@lr}
{\def\make@lr#1{\begingroup
\toks@=\expandafter{#1}%
\edef\x{\endgroup
\def\noexpand#1{\noexpand\@number{\the\toks@}}}%
\x}}{\relax}
\makeatother
\usepackage{babel}
\begin{document}
בדיקה \cite{Ruan2003}
\selectlanguage{english} % <============================================
\bibliographystyle{plain}
\bibliography{db} %
\end{document}
结果是: