一个不错的小宏onreledmac
允许用节号替换行号。这对于圣经节号特别有用。我的问题详细阐述了 reledmac 的这一功能。如果在相同的环境中,我想在文本主体中而不是在侧面显示节号,我该怎么办?要清楚,我不需要侧面的任何文本。
\documentclass{article}
\usepackage[total={2.5in, 2.7in}]{geometry}
\usepackage{polyglossia,fontspec,xunicode}
\usepackage{libertine}
\usepackage[noresetlinenumannotation, series={A}, noend,noeledsec,nofamiliar,noledgroup]{reledmac}%Not resetting line number annotation
\newcommand{\bv}[1]{\linenumannotation{#1}}%Biblical verse are managed as line annotation
\makeatletter
\Xwraplinenumannotation{\@firstofone}%We just typeset the annotation, without any formatting
\renewcommand{\linenumrep}[1]{}% We don't typeset the real line number.
\makeatother
\Xnoidenticallinenumannotation% Don't typeset to identical line number annotation
\begin{document}
\firstlinenum{1}
\linenumincrement{1}
\beginnumbering
\pstart
\bv{4}[\textbf{4}] Baptizabat Ioannes in solitudine, et emendationis vitae baptisma publicabat ad peccatorum veniam,\bv{5} [\textbf{5}] ad eumque proficiscebatur tota Iudaea regio ac Hierosolymitani, et ab eo baptizabantur omnes in Iordane fluvio, confitentes peccata sua.\bv{6} [\textbf{6}] Erat autem Ioannes indutus camelinis pilis, lateribus pelliceo cingulo cinctis, vescebaturque locustis et \edtext{melle silvestri}{\Afootnote{quod mel Ioannes non in horto vel apiario colebat, sed in locis desertis inveniebat.}},\bv{7} [\textbf{7}] atque huiusmodi verbis publice docebat: “Venit quidam post me, adeo me praestantior, ut ego non sim dignus qui eius calceorum corrigiam pronus solvam.\bv{8} [\textbf{8}] Ego quidem vos aqua baptizavi, at is vos sancto Spiritu baptizabit.”
\pend
\endnumbering
\end{document}
答案1
首先,由于你在正文中的诗句和注释中的诗句是一样的,你可以修改你的\bv
命令,直接排版括号内的诗句
\newcommand{\bv}[1]{\linenumannotation{#1}[\textbf{#1}]}%
。
对于您的主要问题,您可以使用Xwraplinenumannotationside
宏\@gobble
。
因此一般文件:
\documentclass{article}
\usepackage[total={2.5in, 2.7in}]{geometry}
\usepackage{polyglossia,fontspec,xunicode}
\usepackage{libertine}
\usepackage[noresetlinenumannotation, series={A}, noend,noeledsec,nofamiliar,noledgroup]{reledmac}%Not resetting line number annotation
\newcommand{\bv}[1]{\linenumannotation{#1}[\textbf{#1}]}%Biblical verse are managed as line annotation
\makeatletter
\Xwraplinenumannotation{\@firstofone}%We just typeset the annotation, without any formatting
\Xwraplinenumannotationside{\@gobble}
\renewcommand{\linenumrep}[1]{}% We don't typeset the real line number.
\makeatother
\Xnoidenticallinenumannotation% Don't typeset to identical line number annotation
\begin{document}
\firstlinenum{1}
\linenumincrement{1}
\beginnumbering
\pstart
\bv{4} Baptizabat Ioannes in solitudine, et emendationis vitae baptisma publicabat ad peccatorum veniam,\bv{5} ad eumque proficiscebatur tota Iudaea regio ac Hierosolymitani, et ab eo baptizabantur omnes in Iordane fluvio, confitentes peccata sua.\bv{6} Erat autem Ioannes indutus camelinis pilis, lateribus pelliceo cingulo cinctis, vescebaturque locustis et \edtext{melle silvestri}{\Afootnote{quod mel Ioannes non in horto vel apiario colebat, sed in locis desertis inveniebat.}},\bv{7} atque huiusmodi verbis publice docebat: “Venit quidam post me, adeo me praestantior, ut ego non sim dignus qui eius calceorum corrigiam pronus solvam.\bv{8} Ego quidem vos aqua baptizavi, at is vos sancto Spiritu baptizabit.”
\pend
\endnumbering
\end{document}