On 2015-12-09, Enrico Forestieri wrote:
> On Wed, Dec 09, 2015 at 07:20:16AM +0000, Guenter Milde wrote:

> And why not using "info-insert icon math/vphantom", that automatically
> addresses all of these points?

Because the documentation

> Help->LyX Functions

points to InsetInfo.h for detailed description and there, it says

    The syntax is the same as what is used in the bind and ui files.

A grep in lib/bind/ and lib/ui/ shows:

   ui/stdtoolbars.inc:361:              Item "Phantom   \\phantom" "math-insert 
\phantom"
   ui/stdtoolbars.inc:362:              Item "Horizontal phantom        
\\hphantom" "math-insert \hphantom"
   ui/stdtoolbars.inc:363:              Item "Vertical phantom  \\vphantom" 
"math-insert \vphantom"
   ui/stdcontext.inc:207:       Menu "context-phantom"
   ui/stdcontext.inc:208:               Item "Phantom|P" "inset-modify phantom 
Phantom Phantom"
   ui/stdcontext.inc:209:               Item "Horizontal Phantom|H" 
"inset-modify phantom Phantom HPhantom"
   ui/stdcontext.inc:210:               Item "Vertical Phantom|V" "inset-modify 
phantom Phantom VPhantom"
   ui/stdmenus.inc:142:         OptItem "Phantom Settings...|h" "inset-settings 
phantom"
   ui/stdmenus.inc:424:         Submenu "Phantom|m" "insert_phantom"
   ui/stdmenus.inc:509: Menu "insert_phantom"
   ui/stdmenus.inc:510:         Item "Phantom|P" "phantom-insert Phantom"
   ui/stdmenus.inc:511:         Item "Horizontal Phantom|H" "phantom-insert 
HPhantom"
   ui/stdmenus.inc:512:         Item "Vertical Phantom|V" "phantom-insert 
VPhantom"

and none of these syntax examples worked.


In addition, while I agree that using info-insert consistently is to be 
preferred
for the manuals, I don't see that this solved the raised points:

* "info-insert icon math/vphantom" does not place a protected space before
  itself ;-)
  
* "info-isert icon ..." does not scale with the font size.

Actually, it is even worse: the size of the icons in PDF is hard to
predict, often less than acceptable and cannot be adjusted:

> >    Unfortunately, many of these icons have the wrong size in the PDF:
> >    either too large [math-insert \leq] or too small, or with content
> >    non-centered and partly invisible [ert-insert].


I hope there is a way to fix this issue. Maybe by setting the hight of the
displayed icon to "1 em".

For the ert-insert icon, more needs to be done. Currently this is
non-readable in the PDF.

Günter




Reply via email to