Biblatex + Xetex + 乌尔都语回忆录:如何修改标题

Biblatex + Xetex + 乌尔都语回忆录:如何修改标题

虽然我是新手,但我一直在使用 XeteX、bidi 和 BiblateX 来处理乌尔都语,效果非常好。我的脚注按字母顺序排列,大多数次要资料都放在尾注中。尾注和参考书目是英文的,其余部分则是乌尔都语的。修改页眉和页脚也很好用。

但是,我想删除章节标题,包括乌尔都语标题 نوٹس 上方的数字。我想将副标题居中。使用 enoteheadings 进行修改似乎不起作用(memoir + XeteX 有问题?\titlesec 也一样。memoir 和 \endnotes 以及 \titlesec 之间是否存在兼容性问题?

有任何想法吗?

我的最小例子:

% !TEX TS-program = xelatex
\TeXXeTstate=1

\documentclass[12pt,a4paper]{memoir} 
\usepackage[a5paper, left=.915in,right=.915in,top=1.651cm,bottom=1.524cm]   {geometry}

\usepackage{fontspec}% font selecting commands
\usepackage{xunicode}% unicode character macros
\usepackage{wrapfig}
\usepackage[footnotesize,justification=centering]{caption}
\usepackage{float}
\usepackage{framed}
\usepackage{libertine}

\usepackage{bidi}
\usepackage{perpage} 
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
\setmainfont[Script=Arabic,Scale=1.3, WordSpace=1]{Jameel Noori Nastaleeq}
\newfontfamily\latin[Ligatures=TeX]{Linux Libertine O}
\newfontfamily\greek[Script=Greek]{Linux Libertine O}

\rightfootnoterule
\usepackage[perpage,bottom]{footmisc}
\usepackage{csquotes}

\pretitle{\begin{center}\LARGE}
\posttitle{\par\end{center}\vskip 6em}

%%% ToC (table of contents)APPEARANCE
\maxtocdepth{subsection} % include subsections
\renewcommand{\cftchapterpagefont}{}
\renewcommand{\cftchapterfont}{}     % no bold!
\renewcommand*{\contentsname}{فہرست ِ مضامین}

\chapterstyle{ger} 

\renewcommand*{\chaptername}{باب}

\renewcommand{\thepart}{}
\renewcommand{\printpartname}{}

\let\origfootnote\footnote
\renewcommand{\footnote}[1]{\kern-.2em\origfootnote{#1}}
\renewcommand*{\thefootnote}{\alph{footnote}}

\makepagenote
\renewcommand*{\pagenotesubhead}[3]{\section*{#2  #1}}

\renewcommand*{\notesname}{نوٹس}

\renewcommand*{\notenuminnotes}[1]{\latin #1.\space}
\renewcommand*{\prenoteinnotes}{\par\noindent\hangindent 2em}

\usepackage[backend=biber,autocite=footnote,sortcites=true,   style=authortitle-icomp,block=space,notetype=endonly,firstinits=true,language=british]{biblatex}
\addbibresource{bibliography.bib}


\title
{کتاب\\
{وغیرہ}}
\author{خان}

\begin{document}
\setRL
\maketitle
\newpage
\tableofcontents*
\newpage
\chapter
آپ ایمان کی دوڑ میں اچھی ترقی کر رہے تھے! تو پھر کس نے آپ کو سچائی کی پیروی کرنے سے روک لیا؟ 
\footnote{گلتیوں 5:\! 7}

زہر کے پیالے کو ہونٹوں تک اُٹھا کر اُس نے بلاجھجک اور زندہ دلی سے زہر کو پی لیا۔ یہاں تک ہم جو ساتھ تھے زیادہ تر سنبھلے ہوئے تھے۔ لیکن جب دیکھا
\autocite[56--78]{Najim}
کہ وہ زہر کو پی کر تہہ تک پہنچ گیا ہے تو ہم اپنے آنسوؤں کو روک نہ سکے۔ میں بھی  اپنے آپ پر قابو نہ پا سکا بلکہ زار و قطار رونے لگا۔
\autocite[33--34]{Murray1974}

%%print endnote
\newpage
\setLR{\printpagenotes*}
%%print endnote

\newpage
\printbibliography%[heading=bibliography]%
\end{document}

与此链接的 bibliography.bib 文件:

   @ARTICLE{Murray1974,
  author = {Robert Murray},
  title = {The Exhortation to Candidates for Ascetical Vows at Baptism in the Ancient Syrian Church},
  journal = {New Testament Studies},
  year = {1974–75},
  volume = {21},
  pages = {58–79},
  timestamp = {2013.03.13}
}

@BOOK{Najim,
  title = {Antioch and Syrian Christianity},
  author = {Najim, Michel},
  editor = {Frazer, Terry},
  subtitle = {A Chalcedonian Perspective on a Spiritual Heritage},
  timestamp = {2011.08.29},
  url = {www.stnicholasla.com/frmichel/antiochandsyriacchristianity.pdf},
  urldate = {2011-08-31}
}

Jameel Noori Nastaleeq 字体可在此处找到http://urdu.ca/1(其他操作系统)。

尾注图像

答案1

在 \renewcommand*{\notesname}{نوٹس} 之后添加以下代码即可:

\renewcommand*{\notedivision}{%
\renewcommand*{\chaptitlefont}{\huge\centering\vspace{10pt}}
\chapter*{\notesname}
\addcontentsline{toc}{chapter}{\notesname}
\SingleSpacing
}

存在将参考书目中的设置从 RL 更改为 LR 的问题。已通过将 \printbibliography 替换为

\setmainfont{Linux Libertine O}
\setLTRbibitems\printbibliography

这不是一个完全令人满意的解决方案。在这个最小的例子中,没有明显看出涉及页眉的页面样式(在我的情况下是标题)可能会导致问题;在我的情况下,我必须在打印尾注之前再次定义页面样式,如下所示:

\makeevenhead{headings}{\thepage}{}{نوٹس}
\makeoddhead{headings}{نوٹس}{}{\thepage}
\renewcommand*{\secheadstyle}{\large\centering}

否则,前一章的标题将会延续到尾注标题中。

这再次意味着我必须在打印之前定义参考书目的页面样式:

\makeevenhead{headings}{\thepage}{}{Bibliography}
\makeoddhead{headings}{Bibliography}{}{\thepage}

这很好用,但我很好奇是否有更清洁的解决方案。

相关内容