由于某种原因,我的边注没有出现。是因为行号吗?
% XeLaTeX can use any Mac OS X font. See the setromanfont command below.
% Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.
% The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[11pt,oneside]{book}
\usepackage{ledmac}
\usepackage{fancyhdr}
\usepackage{adforn}
\pagestyle{myheadings}
\usepackage{hanging}
\textheight = 180.5 mm
\textwidth = 108.5 mm
\pagenumbering{arabic}
\makeatletter
% And in the paragraphed footnotes, I'd like no colon too:
\def\parafootfmt#1#2#3{%
\normal@pars
\parindent=0pt \parfillskip=0pt plus 1fil
{\bf\printlines#1|}%
{\select@lemmafont#1|#2}~%
#3\penalty-10 }
\makeatother
\let\Afootfmt\parafootfmt
%\newcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#2}}}
\newcommand{\rhet}[2]{\edtext{}{\Afootnote{#1~]\ \ #2}}}
\newcommand{\oed}[2]{\edtext{ #1}{\Bfootnote{] #2}}}
\footparagraph{A}
\footparagraph{B}
%%%%%%%%%%%%%%%%
\raggedbottom
\newcommand*{\LeftWidth}{3.0cm}%
\newcommand*{\RightWidth}{\dimexpr\linewidth-\LeftWidth-2em\relax}%
\newcommand{\AlignedBrace}[2]{%
\medskip\par\noindent%
\parbox{\LeftWidth}{\raggedleft\textbf{#1}\strut~}%
$\left\{~\parbox{\RightWidth}{\strut\textit{#2}\strut}\right.$%
}%
%\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
%\geometry{a4paper} % ... or a4paper or a5paper or ...
%\geometry{landscape} % Activate for for rotated page geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
%\renewcommand %These two commands are for double-spacing
%\baselinestretch{2}
% Will Robertson's fontspec.sty can be used to simplify font choices.
% To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,
% and change "Hoefler Text" to any of these choices.
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{Brill}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}
\setmonofont[Scale=MatchLowercase]{Andale Mono}
\frenchspacing
\begin{document}
\beginnumbering
\pstart
NAture hath indued euery man, with
a certain eloquence, and also subtilitée \marginpar{Rhetorike
and Logike
giuen of nature.} to reason and discusse,
\pend
\endnumbering
\end{document}
答案1
您的例子不是很简洁,其中大部分与您的问题无关。
但无论如何,首先:ledmac
已被弃用,eledmac
建议改用。其次,我将引用 的手册eledmac
(同样适用于ledmac
):
此
\marginpar
命令在带编号的文本中不起作用。相反,该包在任一边距中提供非浮动的旁注。
\ledleftnote{text}
会将 放入text
发出命令的左边距级别。类似地,\ledrightnote{text}
放入text
右边距。\ledsidenote{text}
会将 放入text
当前设置指定的边距\sidenotemargin{location}
。 的允许值是、、或location
列表中的一个,例如 。该包的默认设置是 在右边距排版。这与行号的默认边距相反。left
right
inner
outer
\sidenotemargin{outer}
\sidenotemargin{right}
\ledsidenotes
因此,有一个有效的例子:
\documentclass[11pt,oneside]{book}
\usepackage{eledmac}
\begin{document}
\beginnumbering
\pstart
Nsture hath indued euery man, with
a certain eloquence, and also subtilitée \ledsidenote{Rhetorike
and Logike
giuen of nature.} to reason and discusse, to reason and discusse \ldots
\pend
\endnumbering
\end{document}