Uwe Stöhr wrote: > > And if the thing does not turn into an integral, how do you know where > > it came from and how to pick the right package? > > I know then that LyX doesn't support this command and that I have to take > care of it. > > > An if you cut an paste a unicode symbol that needs some package? > > We already support _every_ available Unicode symbol and take care of the > needed packages.
Come on, you know that this is not true (and can never be true, even if you try hard, simply because there is a lot of stuff that is not supported in LaTeX). If you take your original argument (copying from another document may lead to a LaTeX error) seriously, you also need to forbid to set the amsmath switch to anything else but auto, since the same could happen if you copy amsmath stuff to a document with amsmath off. > (That was > my goal when I extended the unicodesymbols file for LyX 1.5.) If you find > a character where this is not the case, please report this. > When you past a Unicode symbol that cannot be handled by LaTeX (only by > XeTeX) then you have indeed a problem. But my point is not to catch all > cases but to avoid potential problem as much as possible, see below. > > > We should be pragmatic: leave it as it is, and wait until somebody > > actually complains. > > What about my proposal: > > \...@ifundefined{\iddots ... > > This assures that the package is only loaded when it is needed. This is not enough. For example, the user could define \iddots later in the document, e.g. by loading some .tex file. IMO the only solution that works reliably is the one that exists for amsmath and esint: Three settings off/auto/on, with the default being auto. That way, LaTeX power users as well as users without LaTeX knowledge are satisfied. Some @ifundefined trickery can never be good enough to catch all cases. Instead of implementing such a checkbox for each package (and making the dialog unusable), a general solution should be found, e.g. some package list that can be easily extended, and where each packaga can be set to off/auto/on, and where each package has an explanation why it is needed and what problems it could cause. I would never have imagined that this small improvement could cause such a discussion. I implemented it because the ERT destroyed the structure of a matrix on screen (I do not use instant preview because it makes editing too bumpy). If this is really so important for you please remove the two uncommented lines from lib/symbols, then you have the old ERT look back. Georg