如何将 ledmac 的段落脚注从两端对齐改为两端对齐

如何将 ledmac 的段落脚注从两端对齐改为两端对齐

如何改变ledmac段落脚注从两端对齐改为两端不对齐?默认情况下它们似乎是两端对齐的,但我需要它们两端不对齐左边。可能需要重新定义\parafootfmt,但我不知道该怎么做。

编辑:提供的解决方案适用于右侧不规则,但不适用于左侧不规则......

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

答案1

使用eledmac它非常容易:它提供了一个\notenumfontX在熟悉的脚注中切换字体的命令,正如它们在eledmac– 在下面的例子中我故意添加了一样\itshape

对于关键的脚注,有\Xnotenumfont

请注意,我必须使用包ragged2e及其命令\RaggedRight,正如 Jon 的回答中所示。使用 kernel 命令时\raggedright没有任何反应,请尝试一下:我添加了注释行。babel添加包是因为它在很多情况下可以显著改善连字符。

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

脚注图片

答案2

ledmac(注意:我的电脑上没有旧版本,但它仍然有效。)

您可以添加“右边不规则”命令到\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} 

相关内容