Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linebreaks and indents in the apparatus #52

Closed
floriandk opened this issue Aug 31, 2012 · 34 comments
Closed

linebreaks and indents in the apparatus #52

floriandk opened this issue Aug 31, 2012 · 34 comments
Milestone

Comments

@floriandk
Copy link

Sometimes one has to add or replace very long passages in the apparatus. One problem with this is already addressed in #29

Another problem is, that these lengthy additions sometimes consist of several paragraphs or include other material that needs linebreaks and indents, like dialogues or poetry.
(Poetry-handling doesn't necessarily be as elaborate as ledmac's \stanza, because these passages are rather seldom, so formatting could be done by hand as soon as linebreaks are available.)

The following example should have linebreaks and indents at all ¶

\documentclass[12pt]{book}

\usepackage{lipsum}

\usepackage{ledmac}
\footparagraph{A}


\begin{document}

\beginnumbering
\pstart
\lipsum[1]
\pend
\pstart
Lorem %
\edtext{once}{%
    \Afootnote{Once in a while you will have longish textsportions or even short chapters to enter in a critical note.
%
    \textparagraph{} Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis. Donec eget sem sit amet ligula viverra gravida. Etiam vehicula urna vel turpis. Suspendisse sagittis ante a urna. Morbi a est quis orci consequat rutrum. Nullam egestas feugiat felis. Integer adipiscing semper ligula. Nunc molestie, nisl sit amet cursus convallis, sapien lectus pretium metus, vitae pretium enim wisi id lectus. Donec vestibulum. Etiam vel nibh. Nulla facilisi. Mauris pharetra. Donec augue. Fusce ultrices, neque id dignissim ultrices, tellus mauris dictum elit, vel lacinia enim metus eu nunc.
%
    \textparagraph{} Proin at eros non eros adipiscing mollis. Donec semper turpis sed diam. Sed consequat ligula nec tortor. Integer eget sem. Ut vitae enim eu est vehicula gravida.
%   
    \textparagraph{} Or you have to refer direct speech:
%   
    \textparagraph{} --- Why, he asked.
%   
    \textparagraph{} --- Just because the text has it, she answered. }}
 more.
\pend
\pstart
\lipsum[1]
\pend
\pstart
And another line.%
\edtext{}{%
    \Afootnote{Here the other text witness intersperses some lines of verse:
%   
%   \stanza
\textparagraph{} Arma gravi numero violentaque bella parabam %&
\textparagraph{}  edere, materi\={a} conveniente modis. %&
\textparagraph{} Par erat inferior versus---risisse Cupido %&
\textparagraph{}  dicitur atque unum surripuisse pedem. %\&
    }}
\pend
\pstart
\lipsum[1]
\pend
\endnumbering

\end{document}

(Maïeul, this is my last feature-requests for the time being, I promise!)

@maieul
Copy link
Owner

maieul commented Aug 31, 2012

ok, but you shoudl test version 1.0 when I will post it, to be sur there is no break compatibility

@floriandk
Copy link
Author

Sure I will!
I have quite some heritage examples I could try and recompile with your new code.

@camatkara
Copy link

Just a note to say that this functionality would be of great help to me as well, in typesetting running commentaries. Looking forward to testing out this feature in the Beta version. Will you update this thread when this feature is ready to test? Thanks!

@maieul
Copy link
Owner

maieul commented Sep 9, 2012

when I implemnt a futur, I every do update the topic and ask the autor to test the version.

@maieul
Copy link
Owner

maieul commented Sep 12, 2012

Ok, it will be in 1.1

@maieul
Copy link
Owner

maieul commented Sep 14, 2012

could you try the branch issue52 ? to do it :

Not that, of course, is not compatible with paragraphed footnote

@camatkara
Copy link

I'm not sure what "Not that, of course, is not compatible with paragraphed footnote" means--that eledmac is not yet compatibile with paragraphed footnotes? Just in case, I tried eledmac with a simple paragraphed footnote and got the error:
(./eledmac_test.aux)
! Argument of \select@@lemmafont has an extra }.

\par
l.13 This is the second!}}

?
Runaway argument?
0|
! Paragraph ended before \select@@lemmafont was complete.

@maieul
Copy link
Owner

maieul commented Sep 15, 2012

no, I just wante to say that you can have paragraphed comments inside of paragraphed not.

What version of eledmac did you try ?

@camatkara
Copy link

I tried branch issue52. I just tried it again this evening to make sure that I hadn't made a mistake; I still get that error, which ends up being fatal. When I run the file using xelatex, the terminal does show that eledmac.sty is loaded and I didn't get any errors when I created the .sty file, so I'm not sure what's going on. Is there any other info I can pass along for troubleshooting?

@maieul
Copy link
Owner

maieul commented Sep 17, 2012

COuld you send your code ? I made a lot of test, and I didn't see problem

@maieul
Copy link
Owner

maieul commented Sep 18, 2012

camatkara : did you use pstart and pend around your text ?

@camatkara
Copy link

Hi, sorry I've been extremely busy. I'm attaching my .sty file in case
it didn't compile correctly, and the sample test file I tried and the
.log file, and addending the terminal output. Not sure where I've gone
wrong. If there's anything else I can send, please let me know.

Thanks again for your work on this! I can't wait to use this feature.

best,
Guy

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./eledmac_test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang,
nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek,
ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian,
czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic,
farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek,
hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam,
marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal,
nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc,
slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2011/03/06 v3.6j configurable book, report,
article docu
ment class
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/mem10.clo)
(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/mempatch.sty))
(./eledmac.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/xargs/xargs.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty))
(./eledmac_test.aux)
! Argument of \select@@lemmafont has an extra }.

\par
l.12 This is the second!}}

?
Runaway argument?
0|
! Paragraph ended before \select@@lemmafont was complete.

\par
l.12 This is the second!}}

?
[1
@ref[0][
]
]
! Undefined control sequence.
\do #1->\ifvoid \cuse
{##1footins}\else @mem@nofootfalse \fi \ifvoid
\csuse...
l.16 \end{document}

?

On 09/16/2012 08:55 PM, Maïeul Rouquette wrote:

COuld you send your code ? I made a lot of test, and I didn't see problem


Reply to this email directly or view it on GitHub
#52 (comment).

@maieul
Copy link
Owner

maieul commented Sep 19, 2012

Sorrt, I did'nt receipt the file : the email system of github don't transmit them

@camatkara
Copy link

Sorry, I'm a bit of a newb on Git. Could you please specify which code
to send and how I can send it? All I can think of, apart from the
terminal output above, is my .tex file, .sty file, and .log. Addending
the .tex and .log file below, in case they're of use, but the .sty file
seems too long at 3400 lines....

eledmac_text.tex

\documentclass[letterpaper]{memoir}

%\usepackage{polyglossia}
\usepackage[parapparatus]{eledmac}

\begin{document}
\section*{Alankara}

\edtext{Hello!}{\lemma{Hello!}\Afootnote{This is the first pargraph.

This is the second!}}

Hello there

\end{document}

eledmac_test.log

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
(format=xelatex 2012.9.15) 19 SEP 2012 10:09
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**eledmac_test.tex
(./eledmac_test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang,
nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek,
ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian,
czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic,
farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek,
hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam,
marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal,
nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc,
slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2011/03/06 v3.6j configurable book, report,
article docu
ment class
\onelineskip=\skip41
\lxvchars=\skip42
\xlvchars=\skip43
@memcnta=\count80
\c@@memmarkcntra=\count81
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is not detected.
)
Class memoir Info: An `ifetex' package is being emulated on input line
251.

(/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
\stockheight=\skip44
\stockwidth=\skip45
\trimtop=\skip46
\trimedge=\skip47

(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et@xins=\count82
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/mem10.clo
File: mem10.clo 2008/01/30 v0.3 memoir class 10pt size option
)
\binding=\skip48
\spinemargin=\skip49
\foremargin=\skip50
\uppermargin=\skip51
\lowermargin=\skip52
\headdrop=\skip53
\normalrulethickness=\skip54
\mem@maxheadheight=\skip55
\mem@maxfootheight=\skip56
\headwidth=\skip57
\c@storedpagenumber=\count83
\memPD=\dimen102
\m@mabparskip=\skip58
\thanksmarkwidth=\skip59
\thanksmarksep=\skip60
\droptitle=\skip61
\c@book=\count84
\c@part=\count85
\c@chapter=\count86
\c@section=\count87
\c@subsection=\count88
\c@subsubsection=\count89
\c@paragraph=\count90
\c@subparagraph=\count91
\beforechapskip=\skip62
\midchapskip=\skip63
\afterchapskip=\skip64
\chapindent=\skip65
\bottomsectionskip=\skip66
\secindent=\skip67
\beforesecskip=\skip68
\aftersecskip=\skip69
\subsecindent=\skip70
\beforesubsecskip=\skip71
\aftersubsecskip=\skip72
\subsubsecindent=\skip73
\beforesubsubsecskip=\skip74
\aftersubsubsecskip=\skip75
\paraindent=\skip76
\beforeparaskip=\skip77
\afterparaskip=\skip78
\subparaindent=\skip79
\beforesubparaskip=\skip80
\aftersubparaskip=\skip81
\pfbreakskip=\skip82
\c@@ppsavesec=\count92
\c@@ppsaveapp=\count93
\ragrparindent=\dimen103
\everylistparindent=\dimen104
\parsepi=\skip83
\topsepi=\skip84
\itemsepi=\skip85
\parsepii=\skip86
\topsepii=\skip87
\topsepiii=\skip88
\itemsepii=\skip89
\itemsepiii=\skip90
\partopsepii=\skip91
\partopsepiii=\skip92
\m@msavetopsep=\skip93
\m@msavepartopsep=\skip94
@enlab=\toks14
\abstitleskip=\skip95
\absleftindent=\skip96
\abs@leftindent=\dimen105
\absrightindent=\skip97
\absparindent=\skip98
\absparsep=\skip99
\c@vslineno=\count94
\c@poemline=\count95
\c@modulo@vs=\count96
\c@memfvsline=\count97
\vleftskip=\skip100
\vrightskip=\skip101
\stanzaskip=\skip102
\versewidth=\skip103
\vgap=\skip104
\vindent=\skip105
\vleftmargin=\dimen106
\c@verse=\count98
\c@chrsinstr=\count99
\beforepoemtitleskip=\skip106
\afterpoemtitleskip=\skip107
\c@poem=\count100
\beforePoemTitleskip=\skip108
\midPoemTitleskip=\skip109
\afterPoemTitleskip=\skip110
\col@sep=\dimen107
\extrarowheight=\dimen108
\NC@list=\toks15
\extratabsurround=\skip111
\backup@length=\skip112
\TX@col@width=\dimen109
\TX@old@table=\dimen110
\TX@old@col=\dimen111
\TX@target=\dimen112
\TX@delta=\dimen113
\TX@cols=\count101
\TX@ftn=\toks16
\heavyrulewidth=\dimen114
\lightrulewidth=\dimen115
\cmidrulewidth=\dimen116
\belowrulesep=\dimen117
\belowbottomsep=\dimen118
\aboverulesep=\dimen119
\abovetopsep=\dimen120
\cmidrulesep=\dimen121
\cmidrulekern=\dimen122
\defaultaddspace=\dimen123
@cmidla=\count102
@cmidlb=\count103
@aboverulesep=\dimen124
@belowrulesep=\dimen125
@thisruleclass=\count104
@lastruleclass=\count105
@thisrulewidth=\dimen126
\ctableftskip=\skip113
\ctabrightskip=\skip114
\abovecolumnspenalty=\count106
@linestogo=\count107
@cellstogo=\count108
@cellsincolumn=\count109
\crtok=\toks17
@mincolumnwidth=\dimen127
\c@newflo@tctr=\count110
\mem@margin@floatbox=\box26
@contcwidth=\skip115
@contindw=\skip116
\abovecaptionskip=\skip117
\belowcaptionskip=\skip118
\subfloattopskip=\skip119
\subfloatcapskip=\skip120
\subfloatcaptopadj=\skip121
\subfloatbottomskip=\skip122
\subfloatlabelskip=\skip123
\subfloatcapmargin=\dimen128
\c@@contsubnum=\count111
\m@mscap@capbox=\box27
\m@mscap@fbox=\box28
\sidecapsep=\dimen129
\sidecapwidth=\dimen130
\m@m@tempdima=\dimen131
\m@mscapraise=\dimen132
\sidecapraise=\dimen133
\m@mscapmainwidth=\dimen134
\m@mscaplkern=\dimen135
\beforeepigraphskip=\skip124
\afterepigraphskip=\skip125
\epigraphwidth=\skip126
\epigraphrule=\skip127
LaTeX Info: Redefining \em on input line 7377.
LaTeX Info: Redefining \emph on input line 7385.
\tocentryskip=\skip128
\tocbaseline=\skip129
\cftparskip=\skip130
\cftbeforebookskip=\skip131
\cftbookindent=\dimen136
\cftbooknumwidth=\dimen137
\cftbeforepartskip=\skip132
\cftpartindent=\skip133
\cftpartnumwidth=\skip134
\cftbeforechapterskip=\skip135
\cftchapterindent=\skip136
\cftchapternumwidth=\skip137
\cftbeforesectionskip=\skip138
\cftsectionindent=\skip139
\cftsectionnumwidth=\skip140
\cftbeforesubsectionskip=\skip141
\cftsubsectionindent=\skip142
\cftsubsectionnumwidth=\skip143
\cftbeforesubsubsectionskip=\skip144
\cftsubsubsectionindent=\skip145
\cftsubsubsectionnumwidth=\skip146
\cftbeforeparagraphskip=\skip147
\cftparagraphindent=\skip148
\cftparagraphnumwidth=\skip149
\cftbeforesubparagraphskip=\skip150
\cftsubparagraphindent=\skip151
\cftsubparagraphnumwidth=\skip152
\prechapterprecisshift=\dimen138
\c@maxsecnumdepth=\count112
\bibindent=\dimen139
\bibitemsep=\skip153
\indexcolsep=\skip154
\indexrule=\skip155
\indexmarkstyle=\toks18
@IndexBox=\insert233
\glossarycolsep=\dimen140
\glossaryrule=\dimen141
\sideparvshift=\skip156
\sideins=\insert232
\sidebartopsep=\skip157
\sidebarhsep=\skip158
\sidebarvsep=\skip159
\sidebarwidth=\skip160
\footmarkwidth=\skip161
\footmarksep=\skip162
\footparindent=\skip163
\footinsdim=\skip164
\footinsv@r=\insert231
@mpfootinsv@r=\insert230
\m@m@k=\count113
\m@m@h=\dimen142
\m@mipn@skip=\skip165
\sidefootins=\insert229
\sidefootadjust=\skip166
\sidefootheight=\skip167
\sidefoothsep=\skip168
\sidefootvsep=\skip169
\sidefootwidth=\skip170
\m@mdownsf=\skip171
\c@sidefootnote=\count114
\sidefootmarkwidth=\skip172
\sidefootmarksep=\skip173
\sidefootparindent=\skip174
\c@pagenote=\count115
\c@pagenoteshadow=\count116
\mem@pn@lastkern=\skip175
\every@verbatim=\toks19
\afterevery@verbatim=\toks20
\verbatim@line=\toks21
\tab@position=\count117
\verbatim@in@stream=\read1
\verbatimindent=\skip176
\verbatim@out=\write3
\bvboxsep=\skip177
\c@memfbvline=\count118
\c@bvlinectr=\count119
\bvnumlength=\skip178
\fb@frw=\dimen143
\fb@frh=\dimen144
\FrameRule=\dimen145
\FrameSep=\dimen146
\c@cp@cntr=\count120
LaTeX Info: Redefining : on input line 11807.
LaTeX Info: Redefining ! on input line 11809.
\c@ism@mctr=\count121
\c@xsm@mctr=\count122
\c@csm@mctr=\count123
\c@ksm@mctr=\count124
\c@xksm@mctr=\count125
\c@cksm@mctr=\count126
\c@msm@mctr=\count127
\c@xmsm@mctr=\count128
\c@cmsm@mctr=\count129
\c@bsm@mctr=\count130
\c@workm@mctr=\count131
\c@sheetsequence=\count132
\c@lastsheet=\count133
\c@lastpage=\count134
\c@figure=\count135
\c@lofdepth=\count136
\cftbeforefigureskip=\skip179
\cftfigureindent=\skip180
\cftfigurenumwidth=\skip181
\c@table=\count137
\c@lotdepth=\count138
\cftbeforetableskip=\skip182
\cfttableindent=\skip183
\cfttablenumwidth=\skip184
Package abstract [2008/07/23] emulated by memoir.
Package appendix [2008/07/23] emulated by memoir.
Package array [2008/07/23] emulated by memoir.
Package booktabs [2008/07/23] emulated by memoir.
Package ccaption [2008/07/23] emulated by memoir.
Package changepage [2008/07/23] emulated by memoir.
Package chngcntr [2008/07/23] emulated by memoir.
Package chngpage [2008/07/23] emulated by memoir.
Package crop emulated by memoir.
Package dcolumn [2008/07/23] emulated by memoir.
Package delarray [2008/07/23] emulated by memoir.
Package enumerate [2008/07/23] emulated by memoir.
Package epigraph [2008/07/23] emulated by memoir.
Package ifmtarg [2008/07/23] emulated by memoir.
Package ifetex [2008/07/23] emulated by memoir.
Package index [2008/07/23] emulated by memoir.
Package makeidx [2008/07/23] emulated by memoir.
Package moreverb [2008/07/23] emulated by memoir.
Package mparhack [2008/07/23] emulated by memoir.
Package needspace [2008/07/23] emulated by memoir.
Package newfile [2008/07/23] emulated by memoir.
Package nextpage [2008/07/23] emulated by memoir.
Package pagenote [2008/07/23] emulated by memoir.
Package parskip [2008/07/23] emulated by memoir.
Package patchcmd [2008/07/23] emulated by memoir.
Package setspace [2008/07/23] emulated by memoir.
Package shortvrb [2008/07/23] emulated by memoir.
Package showidx [2008/07/23] emulated by memoir.
Package tabularx [2008/07/23] emulated by memoir.
Package titleref [2008/07/23] emulated by memoir.
Package titling [2008/07/23] emulated by memoir.
Package tocbibind [2008/07/23] emulated by memoir.
Package tocloft [2008/07/23] emulated by memoir.
Package tocvsec2 [2008/07/23] emulated by memoir.
Package verbatim [2008/07/23] emulated by memoir.
Package verse [2008/07/23] emulated by memoir.

(/usr/local/texlive/2011/texmf-dist/tex/latex/memoir/mempatch.sty
Package: mempatch 2009/07/24 v6.0f Patches for memoir class v1.6180339
))
(./eledmac.sty
Package: eledmac 2012/09/16 v1.0.1 LaTeX port of EDMAC
(/usr/local/texlive/2011/texmf-dist/tex/latex/xargs/xargs.sty
Package: xargs 2008/03/22 v1.1 extended macro definitions (mpg)

(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
\XKV@toks=\toks22
\XKV@tempa@toks=\toks23
\XKV@depth=\count139
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex)))
\xargs@max=\count140
\xargs@toksa=\toks24
\xargs@toksb=\toks25
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX
\etb@tempcnta=\count141
)
@l@dtempcnta=\count142
@l@dtempcntb=\count143
\section@num=\count144
\l@dnumpstartsL=\count145
\line@margin=\count146
\c@firstlinenum=\count147
\c@linenumincrement=\count148
\c@firstsublinenum=\count149
\c@sublinenumincrement=\count150
\lock@disp=\count151
\sublock@disp=\count152
\linenumsep=\skip185
@Toksa=\toks26
@Toksb=\toks27
\line@num=\count153
\subline@num=\count154
\absline@num=\count155
@lock=\count156
\sub@lock=\count157
\page@num=\count158
\endpage@num=\count159
\endline@num=\count160
\endsubline@num=\count161
@inputcheck=\read2
\last@page@num=\count162
\insert@count=\count163
\linenum@out=\write4
\raw@text=\box29
\num@lines=\count164
\one@line=\box30
\par@line=\count165
\c@pstart=\count166
\ballast@count=\count167
\c@ballast=\count168
@k=\count169
@h=\dimen147
\mpfootinsA=\insert228
\footinsA=\insert227
\Afootins=\insert226
\mpAfootins=\insert225
\c@footnoteA=\count170
\mpfootinsB=\insert224
\footinsB=\insert223
\Bfootins=\insert222
\mpBfootins=\insert221
\c@footnoteB=\count171
\mpfootinsC=\insert220
\

On 09/19/2012 10:33 AM, Maïeul Rouquette wrote:

Sorrt, I did'nt receipt the file : the email system of github don't
transmit them


Reply to this email directly or view it on GitHub
#52 (comment).

@maieul
Copy link
Owner

maieul commented Sep 20, 2012

you should read the documentation....

you will see that the :

  1. to use critical apparatus, you must be between \beginnumbering and \endnumbering.
  2. you must split your test with \pstart \pend (or use \autopar)

So it's made

\documentclass[letterpaper]{memoir}

\usepackage{polyglossia}
\usepackage[parapparatus]{eledmac}

\begin{document}
\section*{Alankara}

\beginnumbering
\pstart \edtext{Hello!}{\lemma{Hello!}\Afootnote{This is the first pargraph

This is the second!}}

Hello there
\pend
\endnumbering
\end{document}

@camatkara
Copy link

Sorry, I was too hasty in making up that minimal example. I should have just run one of my previous documents through with eledmac. I just did that now, using a Sanskrit test file and xelatex, and it worked fine. Many thanks.

@maieul
Copy link
Owner

maieul commented Sep 20, 2012

and so, for the paragraph ?

@camatkara
Copy link

Using \usepackage[parapparatus]{eledmac,eledpar}, I get the following error in the terminal:


(/home/guy/texmf/tex/latex/eledmac/eledpar.sty

! LaTeX Error: Unknown option parapparatus' for packageeledpar'.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...

l.33 \l@dpairingfalse

?


The package seems to be found and loaded, but the option doesn't work. On this file, if I switch back to \usepackage{ledmac,ledpar} without paragraphed notes, it compiles fine....

@maieul
Copy link
Owner

maieul commented Sep 20, 2012

which version did you try ?

@camatkara
Copy link

I tried the eledpar.sty file with this line: "\ProvidesPackage{eledpar}[2012/09/16 v1.0.1 eledmac extension for parallel texts]". I just downloaded again, compiled and tried again; the eledpar.sty file still mentions "2012/09/16 v1.0.1". Is there something else to try for troubleshooting?

@maieul
Copy link
Owner

maieul commented Sep 21, 2012

yes, that is the stable version. But the feature is in the dev version ;-)

I'm waiting for your test before publish it ...

go to https://github.com/maieul/ledmac/tree/issue52, and dowload the files clicking on the cloud with "zip", run the .ins file .... and try

@camatkara
Copy link

Well, not sure what to say... That's what I did (making sure that the button said branch:issue52 and then downloading the zip). I went back and did it again, just to be sure, but got the same result. And though the files in the directory are dated to yesterday, when I run "latex eledpar.ins," the resulting .sty file when opened still says "\ProvidesPackage{eledpar}[2012/09/16 v1.0.1 eledmac extension for parallel texts]". Should that be the case? Any other troubleshooting I can do?

@Doc73
Copy link

Doc73 commented Sep 21, 2012

Did you put the *.sty files in the personal tree?
The path of personal tree depends on your OS.

@maieul
Copy link
Owner

maieul commented Sep 21, 2012

for the test, you can just put the .sty file aside your .tex file (or as explain dominico, add to you personnale tree, but with some os you must make some command).

So the more easy is to use the first method.

@camatkara
Copy link

hi guys. For the test, I put the .sty file in a local tree for my user (on Ubuntu linux). The path for that is indicated in my response above to Maieul's question "and so for the paragraph?" I copied the output of the terminal there for you, which seems to show that the package loaded from my personal directory (/home/guy...) but not the parapparatus option. I moved my test file into Maieul's directory and tried again just to be sure and got the same output:


(./eledpar.sty

! LaTeX Error: Unknown option parapparatus' for packageeledpar'.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...

l.33 \l@dpairingfalse


anything else I can send you?

@maieul
Copy link
Owner

maieul commented Sep 23, 2012

Of course, the option parapparatus is for eledmac, not for eledpar...

@camatkara
Copy link

i see, sorry, miscommunication. I thought when you said, "and for the paragraph?" you were referring to a test with eledpar as well. eledpar works fine for me without the option on my old ledpar files. And the paragraphed notes in eledmac look fine--they come through without any errors or misteps.

@maieul
Copy link
Owner

maieul commented Sep 23, 2012

thank, I could merge the file to the new versiob tomorrow

@maieul
Copy link
Owner

maieul commented Sep 24, 2012

in "ledpar", the "par" mean parallel, not paragraph

@maieul maieul closed this as completed Sep 24, 2012
@camatkara
Copy link

Hello. I'm curious whether this feature was implemented along the lines floriandk mentioned above. I just tried with this .sty (\ProvidesPackage{eledmac}[2012/12/18 v1.4.3 LaTeX port of EDMAC]) and couldn't get \stanza to work in the apparatus, using floriandk's example above (after uncommenting the stanza and using [parapparatus]eledmac).

Using Memoir, I was able to get \begin{verse} to work in the parapparatus of eledmac, but quite a bit of vertical space is inserted before and after the verse (although somewhat irregularly). In fact, I prefer Memoir's verse capabilities, where, for example, quotation marks can be typeset before the verse margin. Is there a way to control the \verse pre- and post-line-spacing in the apparatus?

I ask because eledmac opens up great possibilities for typesetting running commentaries in various languages (Sanskrit, Latin, Greek, etc.). Depending on the genre, the commentary (an apparatus) may have a good deal of verse in it.

Also, I had an issue with lineation using eledmac in a two-column Memoir document. It doesn't seem to be related to any of the existing issues, but wanted to make sure before trying to create a new one. Thanks.

@maieul
Copy link
Owner

maieul commented Jan 2, 2013

please :

  • send a simple example for your problem
  • open an issue for your last ¶

@camatkara
Copy link

For the /stanza experiment, I just used floriandk's file above. Simplified for the test, it is:

\documentclass[12pt]{book}
\usepackage{lipsum}
\usepackage[parapparatus]{eledmac}
\footparagraph{A}
\begin{document}
\beginnumbering
\pstart
\lipsum[1]
\pend
\pstart
Lorem
\edtext{once}{%
\Afootnote{Once in a while you will have longish textsportions or even short chapters to enter in a critical note.}}.

Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis. Donec eget sem sit amet ligula viverra gravida. Etiam vehicula urna vel turpis. Suspendisse sagittis ante a urna. Morbi a est quis orci consequat rutrum. Nullam egestas feugiat felis. Integer adipiscing semper ligula. Nunc molestie, nisl sit amet cursus convallis, sapien lectus pretium metus, vitae pretium enim wisi id lectus. Donec vestibulum. Etiam vel nibh. Nulla facilisi. Mauris pharetra. Donec augue. Fusce ultrices, neque id dignissim ultrices, tellus mauris dictum elit, vel lacinia enim metus eu \edtext{nunc}{Afootnote{
\stanza
Arma gravi numero violentaque bella parabam &
edere, materi={a} conveniente modis. &
Par erat inferior versus---risisse Cupido &
dicitur atque unum surripuisse pedem. &}}.
\pend
\endnumbering
\end{document}

The first error I get is:
! Missing number, treated as zero.

\sza@0@
l.19 dicitur atque unum surripuisse pedem. &}}
?

(For some reason, though I've written backslash-ampersand above, the backslash isn't showing up in the terminal or the display of the mwe above.) The terminal says the eledmac.sty is loaded, so I'm not sure where I've gone wrong. On the other hand, if we use the \verse environment (which has a few very desirable features) instead of \stanza is there a way to control vertical space between the critical apparatus text and the verse?

@maieul maieul reopened this Jan 3, 2013
@maieul
Copy link
Owner

maieul commented Jan 5, 2013

Hi, I have time to watch in more detail your question. I'm sorry, but I can't solve it :
-It's not possible to use \stanza inside a note (because the stanza is like a numbering section, what should implie to have numbered section inside note, that I can't do it, )

  • By definition, paragraphed critical footnotes can't have ¶ inside (it's a general problematic of paragraphed notes, that it' seem not possible to solve)

@maieul maieul closed this as completed Jan 5, 2013
@camatkara
Copy link

Thanks for looking into it and letting me know. I've discovered that the issue I was having with the \verse environment in Memoir can be solved with
\setlength{\stanzaskip}{0pt} and
\tightlists
so (in Memoir at least) an environment like \stanza isn't needed in the notes. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants