Uwe Stöhr wrote:

> Am 20.11.2010 19:57, schrieb Georg Baum:
>>
>> This is possible (using the "insert inset and move selection inside"
>> mechanism and inset-dissolve internally), but would be more risk, so I'd
>> like to postpone this. If you want a more visible place you could put the
>> scripts into a toolbar. Removing a script is already very easy with
>> inset- dissolve (pressing backspace at the first position).
> 
> But we need a method to change existing text to be a superscript text via
> a dialog. LyX is really the only word processor I know that doesn't
> provide this. A toolbar might be a workaround but as user I would expect
> that i can do this in the text style dialog too.

As a first step, I committed what I had. This is much better than the 
previous solution. As I wrote, modifying the font dialog will be more risky, 
and should not be done now IMHO. Of course one could produce an additional 
dialog without much risk, but then I don't understand why that would be 
needed, since it would also be different from the usual office packages.

> I found another, important issue:
> 
> you are using \usepackage{subscript} but subscript is not a real
> LaTeX-package (the author calls it a fragment) and therefore not
> installable via the package managers of TeXLive and MiKTeX:
> http://www.ctan.org/tex-archive/help/Catalogue/entries/subscript.html

This is not true. This file is included in the "fragments" package in 
TeXLive, and I believe also in MikTeX. Also the file contains the lines

% the fragment may be used as a package in its own right, if so
% needed.

What is the problem with using that package?

> But the subscript.sty file contains of only 4 lines, the ones I proposed
> in comment 3 of #3008:
> 
> \DeclareRobustCommand*\textsubscript[1]{%
>    \...@textsubscript{\selectfont#1}}
> \d...@textsubscript#1{%
>    {...@th\ensuremath{_{\mbox{\fontsize\sf@siz...@#1}}}}}
> 
> (These lines are also used by Koma-script.)
> So we must insert these lines instad of using subscript.sty.

This is wrong IMO. There is a package for this purpose, so we should use it. 
The less LaTeX hardcoding in LyX, the better. I added a note about the 
"fragments" package to LaTeXConfig.lyx, so that users will find it more 
easily.


Georg


Reply via email to