I'd need a way to get the LaTeX export of a text
segment, generally from a DocIterator to another.
Looking at the code, the single paragraph seems
the finest granularity at which LaTeX export may
be done easily, through the lyx::TeXOnePar() function.

Yes. ViewSource exports paragraphs.

Also, I'd like to know if there is any function that, given
a position on the LaTeX export, provides the DocIterator
(almost) equivalent position in the Buffer. Guess I could
exploit this TexRow stuff for this purpose, but I'd need
some hand-written logics to finish the work inside the
single-line granularity.

There was a patch from Alfredo a while ago that tries to highlight
lines in ViewSource window, search "linking source view with text" for
the patch. It handles TexTow stuff.

Bo

Reply via email to