Dear Scott and Kornel,

On 2016-09-15, Kornel Benko wrote:
> Am Donnerstag, 15. September 2016 um 10:50:46, schrieb Scott Kostyshak 
> <skost...@lyx.org>
>> On Thu, Sep 15, 2016 at 08:56:09AM +0000, Guenter Milde wrote:

>> > >> > 280:export/export/Unicode-characters/077-79-mathops-technical-control-utf8_pdf2

>> > > I get the following error:
>> > 
>> > > ! Undefined control sequence.
>> > > l.114 ...380}]  Escape  TODO: user keystroke? \Esc

...

>> In the .lyx file there is an ERT with \Esc

>> Somehow, \Esc is defined for you but not for me. Do you know where?

I see. So the comment/experiment was in the lyx file, not in unicodesymbols.

> Missing '\usepackage{keystroke}' in the preamble?

That solved the failure.

It should work now. Unfortunately, I had to invert all Unicode_character
tests, because "export failed while converting"
(see the comment in suspiciousTests).



>> By the way is there a way to see in LaTeX exactly where a command is
>> defined? For example, whether it comes from the .tex file itself or the
>> .sty or a package (e.g. and what line *in* the package file)? That would
>> be useful for my learning how to debug issues like this.

Not easily (of course, you can `grep` in the sources, try googling for
documentation or tips and tricks, or ask at comp.text.tex).

In case of an error, the log gives some hints: whenever a new file is
loaded, you see a "(" followed by the path. After processing the file,
closing is indicated by ")". If a file loads another one, the () are nested.
This way you can find out which file the code triggering the error is from.

For location of the problem in a LyX file, line-numbers or a search
feature in the source pane would be nice. Until we have such a thing, you
can open the tmp-dir and then open the log with a decent text editor...


Günter

Reply via email to