Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to change ledmac's paragraph footnotes from justified to ragged ? They seem to be justified by default, but I need them ragged left. Probably needs a redefinition of \parafootfmt, but I don't know how to do it.

Edit: the solutions provided works for ragged right but not ragged left...

\documentclass[a4paper,12pt]{article}
\TeXXeTstate=1

\usepackage{ledmac}

\footparagraphX{A}

\begin{document}

hello

\footnoteA{hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello  hello hello }

\end{document}
share|improve this question
3  
BTW just as information: Take a look on the successor package eledmac. –  Speravir Mar 10 '13 at 2:46
    
@Speravir Here is an example ; I just looked at eledmac, it doesn't seem to be included in my distribution, I'll try to install it. –  Tonton80 Mar 10 '13 at 2:53
    
What about the main text? Is that RTL as well? What language(s) are involved? What side does the footnote marker go on? And are you aware of the ledarab package (which I've never really used)? –  jon Mar 11 '13 at 17:02
    
@jon The main text is in Hebrew (RTL), footnote marker and footnotes are LTR english. I'll check the package you mention today ! –  Tonton80 Mar 13 '13 at 0:18

2 Answers 2

With eledmac it is very easy: It provides a command \notenumfontX for font switching in familiar footnotes, as they are called in eledmac – in the example below I intentionally added \itshape.

For critical footnotes there is \Xnotenumfont.

Note, that I had to use the package ragged2e and its command \RaggedRight as also shown in Jon’s answer. With the kernel command \raggedright nothing happens, Try it out: I added a commented line. The package babel is added, because it improves in many cases the hyphenation significantly.

\documentclass{article}

\usepackage[english]{babel}
\usepackage{ragged2e}

\usepackage{eledmac}
  \footparagraphX{A}
%  \notenumfontX[A]{\raggedright}
  \notenumfontX[A]{\RaggedRight\itshape}

\begin{document}
Hello%
\footnoteA{% text taken from package "blindtext"
  Hello, here is some text without a meaning. This text should show what a
  printed text will look like at this place. If you read this text, you will get
  no information. Really? Is there no information? Is there a difference between
  this text and some nonsense like ``Huardest gefburn''? Kjift -- not at all! A
  blind text \emph{like this} gives you information about the selected font, how
  the letters are written and an impression of the look. This text should
  contain \emph{all letters of the alphabet} and it should be written in of the
  original language. There is no need for special contents, but the length of
  words should match the language.%
}
\end{document}

image of footnote

share|improve this answer
    
I can't download the eledmac package from CTAN, the connection is reset each time I try to download the file. I'll look at it as soon as I can get it. For now, I'll use Jon's answer with the "old" ledmac. –  Tonton80 Mar 11 '13 at 3:27
    
You should get this with the package manager of your recent TeX distribution. Also you could try another CTAN mirror. –  Speravir Mar 11 '13 at 3:37
    
@jon I just tried both solutions on my document. Since it is in a right-to-left language, I would need the paragraph notes to be ragged left, but in both the ledmac and eledmac solutions, the \RaggedLeft or \raggedleft commands produce a ragged right paragraph ... (I also tried with the english example you provided, just replacing '\RaggedRight' with '\RaggedLeft', with the same result) –  Tonton80 Mar 11 '13 at 4:43
    
@Tonton80 First: This is all essential information you had to give from the beginning, also an minimal example with rtl text. Second: What happens with \RaggedRight? Try out, please. –  Speravir Mar 11 '13 at 15:26
    
Sorry, I didn't think it would change anything, so I gave the most simple example. I tried both commands, \RaggedRight works and gives a ragged right paragraph, but the problem is that \RaggedLeft also gives a ragged right paragraph ... –  Tonton80 Mar 11 '13 at 15:46

(Note: I don't have the old version of ledmac on this computer, but this should still work.)

You can add a 'ragged right' command to \ledsetnormalparstuff:

\documentclass[a4paper,12pt]{article} 
\TeXXeTstate=1

\usepackage[noeledmac]{ledmac}% option needed for newer versions of ledmac (now deprecated in favour of eledmac)
\usepackage{ragged2e}

\makeatletter
\renewcommand*{\ledsetnormalparstuff}{%
  \RaggedRight% <-- added; from ragged2e.sty; better than plain \raggedright
  \normal@pars
  \parindent \z@ \parfillskip \z@ \@plus 1fil}
\makeatother 

\footparagraphX{A}

\begin{document}
hello%
\footnoteA{hello hello hello hello hello hello hello hello hello hello
  hello hello hello hello hello hello hello hello hello hello hello 
  hello hello hello hello hello hello hello hello hello hello hello
  hello hello hello hello hello hello hello hello hello hello hello 
  hello hello hello hello hello hello hello hello hello hello hello
  hello hello hello hello hello hello }  
\end{document} 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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