There's something wrong with my style file:

\parindent=0pt \parfillskip=0pt plus 1fil
#3\penalty-10 }



\newcommand{\rhet}[2]{\edtext{}{\Afootnote{#1~]\ \ #2}}}
\newcommand{\oed}[2]{\edtext{ #1}{\Bfootnote{~]\ \ #2}}}

when I use \rhet{blah}{see X} "blah" does not appear in the main text

This is the preamble of the main document:

% 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
\textheight = 180.5 mm
\textwidth = 108.5 mm

\makeindex[name=nominum, title=Index nominum, columns=2]
\makeindex[name=rerum, title=Index rerum, columns=2]


%\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

%\renewcommand %These two commands are for double-spacing

% 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.

\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}
\setmonofont[Scale=MatchLowercase]{Andale Mono}


As I understand, you would like to have nothing in the main text, and something lije blah \dots\ blah] see x in the critical notes.

You should use the syntaxis :

\edtext{}{\lemma{blah \dots\ blah}\Afootnote{see x}}.

You should use eledmac 1.0 which : - allow you to use command inside the \lemma{}. - propose to you command to change style of the notes (distance before /after the right bracket, for example).

  • my problem is that there is nothing in the main text, not that I want nothing to appear.$ – Guillaume Coatalen Dec 13 '12 at 18:18
  • @GuillaumeCoatalen -- This comment seems to be the opposite of your comment to my answer. Do you want something to appear in the main text or not? \edtext{<appears in main text>}{\lemma{<replaces what appears in main text>}\footnoteA{<what appears to right of the ']'>}} is how to have three different things; remove the \lemma{} if you only want the 'main text' to also appear as the lemma. – jon Dec 13 '12 at 18:52
  • as jon said, this solution allow you to have nothing in the main text. The only mistake I made is that I forget two {}. – Maïeul Dec 13 '12 at 19:12

There are possibly a few things wrong with your style file. The most obvious, however, is the definition of \rhet. Instead of:

\newcommand{\rhet}[2]{\edtext{}{\Afootnote{#1~]\ \ #2}}}

which needs a #1 in the first argument of \edtext for anything to appear in the text, it should look like:

\newcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#1~]\ \ #2}}}

However, this is still not recommended. If you are trying to add more space between the right bracket that divides lemma and apparatus text, a better approach would be (I'm guessing on the overall style based on your preamble):


% --- To modify \Afootfmt \\

\newcommand{\Aparafootfmt}[3]{% <-- app. font.
 % {\select@lemmafont#1|#2}\rbracket\quad % <-- use to increase space 
 #3\penalty-10\hskip -0.25em plus 0.2em minus 0.2em\relax

% --- To modify \Afootfmt //

\newcommand{\rhet}[2]{\edtext{}{\Afootnote{#1~]\ \ #2}}}% this doesn't work!
\renewcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#2}}}    % <-- better



words \rhet{blah}{see X}.


Also, if you want to add a little bit of extra space before the right bracket (\rbracket), you could use this line instead:


Note, finally, that this file was constructed using ledmac.sty version

  ledmac.sty    2005/03/24 v0.7 LaTeX port of EDMAC 

which is old. But since you haven't switched yet to eledmac, I think you are still using something close to this version. (You can check what version you are using by adding a \listfiles in your preamble; then the information will be printed at the end of you .log file.)

Edit. I'm not sure what you're looking for, but compare the difference between these two commands:

\newcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#2}}}% from above
  • When I use your style file I've got a problem with my \rhet{blah \dots\ blah}{see x} what happens is that I get "blah...blah" in the main text – Guillaume Coatalen Dec 13 '12 at 15:50
  • Perhaps you want to define a command this way: \newcommand\rhet[2]{\edtext{}{\lemma{#1}{\Afootnote{#2}}}}..? I'll update the answer if that is what you are looking for. – jon Dec 13 '12 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.