On 10/13/2017 06:06 PM, Enrico Forestieri wrote:
> On Fri, Oct 13, 2017 at 03:42:12PM +0200, Jürgen Spitzmüller wrote:
>> Am Freitag, den 13.10.2017, 15:27 +0200 schrieb Enrico Forestieri:
>>>> (obviously, the placeholder is supposed to read %surname, not
>>>> %surnamP)
>>> This is weird. I see this behavior when using MiKTeX as the TeX
>>> engine
>>> in a cygwin version of LyX. I don't see it when using the cygwin
>>> texlive
>>> or a native Windows version of LyX, whatever the engine (MiKTeX or
>>> texlive).
>>>
>>> I wonder whether it is some result returned back by MiKTeX using a
>>> CRLF
>>> text format that confuses the processing by the cygwin utilities.
>>>
>>> What TeX command is used when processing citeengine files?
>> TeX is not involved at all. This is a simple (though multi-layered)
>> replace mechanism of placeholders (see BiblioInfo).
>>
>> I don't see how the TeX engine could interfere here.
> I tried to debug this, but when using the debugger the replacements
> are always correct. So, I think that this is some kind of threading
> issue and the observed relation to the TeX engine is not for real. 

You might also try putting some debugging code into
BibTeXInfo::expandFormat. Try putting:
    LYXERR0(fmt); LYXERR0(ret);
at the beginning of the while loop. The first is the format string we're
processing; the latter is what we've got so far. I'm curious when
%surname% gets messed up.

Richard

Reply via email to