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    Small
  EndFont
  LabelString    endnote
  Preamble
    \usepackage{endnotes}
  EndPreamble
End
This is mostly just normal layout stuff.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to