Richard Heck wrote:

> Adam C.M. Solove wrote:
>> Hello all, I'm a long-time LaTeX user but new to LyX. I am currently
>> working on a package to convert Word-using literature scholars to open
>> formats and the benefits of TeX. Specifically, I am trying to
>> find/write a sensible GUI to the ledmac package for typesetting
>> critical editions. I have some C experience and would be willing to
>> work with the code but I'm hoping there's an easier way. I would
>> appreciate if anyone could help with two problems:
>>
>> First is facing-page translations. I would like to just display them
>> in LyX as a special table environment, and specify a way to export
>> them to LaTeX. The LaTeX command looks like
>>    \translatedPoem{ ... original ... }{ ... translation ... }
>> Any chance of this working, or should I just write a script to convert
>> the exported file? How much would it take to add a button to LyX and
>> have it run: export LaTeX > conversion script > XeTeX resulting file >
>> open result?
>>   
> LyX has a built-in exporting system that allows you (i) to define
> different formats and (ii) to specify what programs should be run to
> convert between them. So let's say your custom format is MyFormat. The
> LyX-->LaTeX bit is automatic, so you could just do this with a shell
> script that called your conversion script, ran XeTeX on that, and opened
> a dvi viewer. Adding the button is also easy, since the toolbars are
> completely configurable. See ui/stdtoolbars.inc.
>> Second and last is multiple sets of footnote. I think this is doable
>> in the 1.6 specs' [http://wiki.lyx.org/LyX/NewInLyX16#toc2]
>> "User-formattable Collapsable Insets" feature, but it isn't further
>> explained. Does anyone have more info?
>>   
> This will be completely do-able in 1.6, since the user can define custom
> collapsable insets, similar in appearance and functionality to the
> footnote inset. E.g.:
> InsetLayout Custom:Endnote
>    LyXType    custom
>    LatexName    endnote
>    LatexType    command
>    Font
>      Size    Smal
>    EndFont
>    LabelString    endnote
>    Preamble
>      \usepackage{endnotes}
>    EndPreamble
> End

For Ledmac, you don't insert a footnote at the end of a sentence but apply
it to a range of the text. I doubt it is possible to do it in LyX with
insets. Or only in a clumsy way.

A possible workflow would be to have the editor type the text in LyX, export
it in kile and have several macros to add the different footnotes layers.

Cheers,
Charles 

Reply via email to