Re: What is the toolbar icon name for
Yaniv yaniv256 at gmail.com writes: Julien Rioux jrioux at physics.utoronto.ca writes:/ On 10/08/2011 1:55 AM, Jason Rute wrote: Hello, I added Item Insert | | math-delim | | to my stdtoolbars.inc file. It works fine, except that I can't figure out what the corresponding icon file name should be (in AppData/Roaming/Lyx2.0/images/math). ... Does anyone know? Is this a bug? I just wanted to share that I also looked for this icon filename but could not find what it was. Anyone knows the answer? I figured it out! It should be bars_bars.png. I had to look in the source code (src/frontends/qt4/GuiApplication.cpp). It is fairly self explanatory: QString png_name; if (it != end) { png_name = it-value; } else { png_name = name; png_name.replace('_', underscore); png_name.replace(' ', '_'); // This way we can have math-delim { } on the toolbar. png_name.replace('(', lparen); png_name.replace(')', rparen); png_name.replace('[', lbracket); png_name.replace(']', rbracket); png_name.replace('{', lbrace); png_name.replace('}', rbrace); png_name.replace('|', bars); png_name.replace(',', thinspace); png_name.replace(':', mediumspace); png_name.replace(';', thickspace); png_name.replace('!', negthinspace); }
Re: What is the toolbar icon name for
Yaniv yaniv256 at gmail.com writes: Julien Rioux jrioux at physics.utoronto.ca writes:/ On 10/08/2011 1:55 AM, Jason Rute wrote: Hello, I added Item Insert | | math-delim | | to my stdtoolbars.inc file. It works fine, except that I can't figure out what the corresponding icon file name should be (in AppData/Roaming/Lyx2.0/images/math). ... Does anyone know? Is this a bug? I just wanted to share that I also looked for this icon filename but could not find what it was. Anyone knows the answer? I figured it out! It should be bars_bars.png. I had to look in the source code (src/frontends/qt4/GuiApplication.cpp). It is fairly self explanatory: QString png_name; if (it != end) { png_name = it-value; } else { png_name = name; png_name.replace('_', underscore); png_name.replace(' ', '_'); // This way we can have math-delim { } on the toolbar. png_name.replace('(', lparen); png_name.replace(')', rparen); png_name.replace('[', lbracket); png_name.replace(']', rbracket); png_name.replace('{', lbrace); png_name.replace('}', rbrace); png_name.replace('|', bars); png_name.replace(',', thinspace); png_name.replace(':', mediumspace); png_name.replace(';', thickspace); png_name.replace('!', negthinspace); }
Re: What is the toolbar icon name for
Yaniv gmail.com> writes: > > Julien Rioux physics.utoronto.ca> writes:/ > > > > > On 10/08/2011 1:55 AM, Jason Rute wrote: > > > Hello, I added > > > > > > Item "Insert | |" "math-delim | |" > > > > > > to my stdtoolbars.inc file. It works fine, except that I can't figure out > > > what the corresponding icon file name should be (in > > > AppData/Roaming/Lyx2.0/images/math). > ... > > > Does anyone know? Is this a bug? > > I just wanted to share that I also looked for this icon filename but could not > find what it was. Anyone knows the answer? > I figured it out! It should be bars_bars.png. I had to look in the source code (src/frontends/qt4/GuiApplication.cpp). It is fairly self explanatory: QString png_name; if (it != end) { png_name = it->value; } else { png_name = name; png_name.replace('_', "underscore"); png_name.replace(' ', '_'); // This way we can have "math-delim { }" on the toolbar. png_name.replace('(', "lparen"); png_name.replace(')', "rparen"); png_name.replace('[', "lbracket"); png_name.replace(']', "rbracket"); png_name.replace('{', "lbrace"); png_name.replace('}', "rbrace"); png_name.replace('|', "bars"); png_name.replace(',', "thinspace"); png_name.replace(':', "mediumspace"); png_name.replace(';', "thickspace"); png_name.replace('!', "negthinspace"); }
What is the toolbar icon name for math-delim | |
Hello, I added Item Insert | | math-delim | | to my stdtoolbars.inc file. It works fine, except that I can't figure out what the corresponding icon file name should be (in AppData/Roaming/Lyx2.0/images/math). I think it should be vert_vert.png, but that doesn't work. Here is a what I do know---these commands work with these file names. math-delim ( ) lparen_rparen.png math-delim [ ] lbrace_rbrace.png math-delim vert vert vert_vert.png math-delim | vert.png math-delim ( ( lparen_lparen.png math-delim | | ??? Also, the same correspondences seem to hold if I replace math-delim with math-insert. Does anyone know? Is this a bug? Also, I know math-delim vert vert is equivalent, but I want the LaTeX to be \left| \right|. And I could deal without an icon (and even make the alt-text be | | so it looks like I want), but am curious/stubborn. Thanks!
What is the toolbar icon name for math-delim | |
Hello, I added Item Insert | | math-delim | | to my stdtoolbars.inc file. It works fine, except that I can't figure out what the corresponding icon file name should be (in AppData/Roaming/Lyx2.0/images/math). I think it should be vert_vert.png, but that doesn't work. Here is a what I do know---these commands work with these file names. math-delim ( ) lparen_rparen.png math-delim [ ] lbrace_rbrace.png math-delim vert vert vert_vert.png math-delim | vert.png math-delim ( ( lparen_lparen.png math-delim | | ??? Also, the same correspondences seem to hold if I replace math-delim with math-insert. Does anyone know? Is this a bug? Also, I know math-delim vert vert is equivalent, but I want the LaTeX to be \left| \right|. And I could deal without an icon (and even make the alt-text be | | so it looks like I want), but am curious/stubborn. Thanks!
What is the toolbar icon name for "math-delim | |"
Hello, I added Item "Insert | |" "math-delim | |" to my stdtoolbars.inc file. It works fine, except that I can't figure out what the corresponding icon file name should be (in AppData/Roaming/Lyx2.0/images/math). I think it should be vert_vert.png, but that doesn't work. Here is a what I do know---these commands work with these file names. "math-delim ( )" lparen_rparen.png "math-delim [ ]" lbrace_rbrace.png "math-delim vert vert" vert_vert.png "math-delim |" vert.png "math-delim ( (" lparen_lparen.png "math-delim | |" ??? Also, the same correspondences seem to hold if I replace math-delim with math-insert. Does anyone know? Is this a bug? Also, I know "math-delim vert vert" is equivalent, but I want the LaTeX to be \left| \right|. And I could deal without an icon (and even make the alt-text be "| |" so it looks like I want), but am curious/stubborn. Thanks!