Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. Yes, but only if you do Input mycharstyles.inc in the layout files. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: Jean-Pierre Chretien [EMAIL PROTECTED] Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Mon, 6 Nov 2006 09:09:02 +0100 Cc: LyX User lyx-users@lists.lyx.org Jean-Pierre Chretien wrote: You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. Yes, but only if you do Input mycharstyles.inc in the layout files. That's what I'd done in the first place. I think I've tracked down the problem to layout2layout conversion: I did not include a Format 2 command in mycharstyles.inc, so that I see a conversion on the fly with lyx-dbg tclass, and I get twice the charstyle, both in the Insert menu (did I mention this ?) and in the latex export. If either I plug the charstyle code in the class, or as a Format 2 mycharstyles.inc, all is OK. I guess this deserves an entry in bugzilla ? -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: I guess this deserves an entry in bugzilla ? I don't know if the Format 2 is mandatory in inc files. Georg? Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: Jean-Pierre Chretien wrote: I guess this deserves an entry in bugzilla ? I don't know if the Format 2 is mandatory in inc files. Georg? Yes, if they are in the new format. If the file is in the old dormat it must not have the Format entry. LyX does not treat .inc files any differently than standalone .layout files. Before reporting this in bugzilla please make sure that the file without the Format entry was indeed in the old format. If it was already in the new format then this is no bug. Georg
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. Yes, but only if you do Input mycharstyles.inc in the layout files. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: Jean-Pierre Chretien [EMAIL PROTECTED] Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Mon, 6 Nov 2006 09:09:02 +0100 Cc: LyX User lyx-users@lists.lyx.org Jean-Pierre Chretien wrote: You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. Yes, but only if you do Input mycharstyles.inc in the layout files. That's what I'd done in the first place. I think I've tracked down the problem to layout2layout conversion: I did not include a Format 2 command in mycharstyles.inc, so that I see a conversion on the fly with lyx-dbg tclass, and I get twice the charstyle, both in the Insert menu (did I mention this ?) and in the latex export. If either I plug the charstyle code in the class, or as a Format 2 mycharstyles.inc, all is OK. I guess this deserves an entry in bugzilla ? -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: I guess this deserves an entry in bugzilla ? I don't know if the Format 2 is mandatory in inc files. Georg? Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: Jean-Pierre Chretien wrote: I guess this deserves an entry in bugzilla ? I don't know if the Format 2 is mandatory in inc files. Georg? Yes, if they are in the new format. If the file is in the old dormat it must not have the Format entry. LyX does not treat .inc files any differently than standalone .layout files. Before reporting this in bugzilla please make sure that the file without the Format entry was indeed in the old format. If it was already in the new format then this is no bug. Georg
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: > You mean that creating mycharstyles.inc makes the charstyles available for > all layouts ? That's great, thanks for pointing this out. Yes, but only if you do Input mycharstyles.inc in the layout files. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
>>From: Juergen Spitzmueller <[EMAIL PROTECTED]> >>To: Jean-Pierre Chretien <[EMAIL PROTECTED]> >>Subject: Re: How to actually use the LyX 1.4 Character Style Feature >>Date: Mon, 6 Nov 2006 09:09:02 +0100 >>Cc: LyX User <lyx-users@lists.lyx.org> >> >>Jean-Pierre Chretien wrote: >>> You mean that creating mycharstyles.inc makes the charstyles available for >>> all layouts ? That's great, thanks for pointing this out. >> >>Yes, but only if you do >>Input mycharstyles.inc >>in the layout files. That's what I'd done in the first place. I think I've tracked down the problem to layout2layout conversion: I did not include a Format 2 command in mycharstyles.inc, so that I see a conversion on the fly with lyx-dbg tclass, and I get twice the charstyle, both in the Insert menu (did I mention this ?) and in the latex export. If either I plug the charstyle code in the class, or as a Format 2 mycharstyles.inc, all is OK. I guess this deserves an entry in bugzilla ? -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: > I guess this deserves an entry in bugzilla ? I don't know if the Format 2 is mandatory in inc files. Georg? Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: > Jean-Pierre Chretien wrote: >> I guess this deserves an entry in bugzilla ? > > I don't know if the Format 2 is mandatory in inc files. Georg? Yes, if they are in the new format. If the file is in the old dormat it must not have the Format entry. LyX does not treat .inc files any differently than standalone .layout files. Before reporting this in bugzilla please make sure that the file without the Format entry was indeed in the old format. If it was already in the new format then this is no bug. Georg
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: Jean-Pierre Chretien [EMAIL PROTECTED] Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Sat, 4 Nov 2006 15:27:54 +0100 Cc: LyX User lyx-users@lists.lyx.org Jean-Pierre Chretien wrote: Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. So you added the definition in the layout file *and* in the *.inc file which you included? This is wrong, just add it in one place. You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: Jean-Pierre Chretien [EMAIL PROTECTED] Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Sat, 4 Nov 2006 15:27:54 +0100 Cc: LyX User lyx-users@lists.lyx.org Jean-Pierre Chretien wrote: Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. So you added the definition in the layout file *and* in the *.inc file which you included? This is wrong, just add it in one place. You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
>>From: Juergen Spitzmueller <[EMAIL PROTECTED]> >>To: Jean-Pierre Chretien <[EMAIL PROTECTED]> >>Subject: Re: How to actually use the LyX 1.4 Character Style Feature >>Date: Sat, 4 Nov 2006 15:27:54 +0100 >>Cc: LyX User <lyx-users@lists.lyx.org> >> >>Jean-Pierre Chretien wrote: >>> Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the >>> exported latex file, so I had to change \newcommand to \providecommand to >>> make it work. >>> >>> I created the .inc file and modified the class layout in the site location >>> /usr/local/share/lyx, if this may be the reason of the problem. >> >>So you added the definition in the layout file *and* in the *.inc file which >>you included? This is wrong, just add it in one place. You mean that creating mycharstyles.inc makes the charstyles available for all layouts ? That's great, thanks for pointing this out. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. So you added the definition in the layout file *and* in the *.inc file which you included? This is wrong, just add it in one place. Is this known ? I found nothing in bugzilla. Not AFAIK. If you didn't make the mistake above, send an example file (includin the layout and inc files). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. So you added the definition in the layout file *and* in the *.inc file which you included? This is wrong, just add it in one place. Is this known ? I found nothing in bugzilla. Not AFAIK. If you didn't make the mistake above, send an example file (includin the layout and inc files). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Pierre Chretien wrote: > Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the > exported latex file, so I had to change \newcommand to \providecommand to > make it work. > > I created the .inc file and modified the class layout in the site location > /usr/local/share/lyx, if this may be the reason of the problem. So you added the definition in the layout file *and* in the *.inc file which you included? This is wrong, just add it in one place. > Is this known ? I found nothing in bugzilla. Not AFAIK. If you didn't make the mistake above, send an example file (includin the layout and inc files). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Mon, 2 Oct 2006 08:17:55 +0200 Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. Is this known ? I found nothing in bugzilla. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
From: Juergen Spitzmueller [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Subject: Re: How to actually use the LyX 1.4 Character Style Feature Date: Mon, 2 Oct 2006 08:17:55 +0200 Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. Is this known ? I found nothing in bugzilla. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
>>From: Juergen Spitzmueller <[EMAIL PROTECTED]> >>To: lyx-users@lists.lyx.org >>Subject: Re: How to actually use the LyX 1.4 Character Style Feature >>Date: Mon, 2 Oct 2006 08:17:55 +0200 >> >>Daniel Lohmann wrote: >>> 1) I would like to use character styles in my documents. In our papers, we >>> frequently have to refer to identifiers from C++ listings that should be >>> set in "typewriter" and either "small" or "smaller" and I would like to >>> define a character style for that. >> >>Currently, charstyles are only available on a general (document-class or >>several-document-classes) level. >>You have to define your character styles either in the *.layout file or in a >>mycharstyles.inc file, which is then to be included in the layout file(s) >>with >> >>Input mycharstyles.inc >> >>All those files have to be placed in your ./lyx-directory. >> >>The char styles are then available through the menu (Input->Character Styles) >> >>The syntax is pretty straightforward, in your case it's something like: >> >>CharStyle Identifier >> LatexType Command >> LatexName identif >> LabelFont >>Family Typewriter >>Color blue >> EndFont >> Preamble >> \newcommand\identif[1]{\small\texttt{#1}} >> EndPreamble >>End Tried this example on 1.4.3-qt/Solaris, but I got twice the command in the exported latex file, so I had to change \newcommand to \providecommand to make it work. I created the .inc file and modified the class layout in the site location /usr/local/share/lyx, if this may be the reason of the problem. Is this known ? I found nothing in bugzilla. -- Jean-Pierre
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). Yeah, however it is not just the label, but the indicator line as well that makes the different (and unpleasant to read on the screen) line spacing. How about moving the indicator line a bit further up? I'll have a look For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . I think when using preview, the lines and label should be hidden always. Another issue with the current inset-style implementation is that it always appears on the screen as if there were an extra space at the boundaries. If one assigns a character class to same chars from the middle of a word that looks quite odd. All in all, character styles are still very much in development. Hence, it is the right time to be a bit picky about details ;-) Yes, certainly. Jürgen (I really appreciate the effort you guys are putting into Lyx!) Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Helge Hafting wrote: Some ideas: * Where the charstyle is defined, let the implementor specify wheter it should have a label or not. That way, we can do away with labels for styles with obvious visual appearance like large bold red. Probably (would be easy to implement, since I already implemented a show_label param). It probably also would make sense to define there whether the charstyle should use preview. We'd then have the following preview settings for charstyles: never, auto, always. * Also, the style could show in the minibuffer area whenever the cursor goes into styled text. When nesting happens, show all the styles there. I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). * Have some way of defining icon labels so that the label can be very small and unobtrusive, and still identify the styled text. I don't understand. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). That'd be nice. And with charstyles being the preferred way, it should definitely be right there in the user interface. I was thinking about the bottom of the screen where it says things like Font:Standard... one might add a list of active styles at the end. There will usually not be that many. * Have some way of defining icon labels so that the label can be very small and unobtrusive, and still identify the styled text. I don't understand. I tried your example with the style named Identifier. I applied it to the word Test, and got something like: See a Test of charstyles -Identifier- The style label take up too much space. Not only vertically, but also horizontally. Now, if I could make a teststyles.inc like this: Format 2 CharStyle Identifier LatexType Command LatexName identif LabelType png LabelIcon smiley.png Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End With this, I'd get rid of that long text Identifier, and get a nice little png image instead as the label. png images can be quite small while still being distinct. Perhaps only 5 pixels high and no wider than an m. With this, the linespacing won't be so bad, and neither will the line show with excessive whitespace when the marked word is shorter than the label. Just an idea, I don't know how hard it is to stick a .png there. Maybe not that hard if you're going to add preview capability anyway? Helge Hafting
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . Juergen I think when using preview, the lines and label should be Juergen hidden always. I do not really see why it would be better than just displaying the contents (without markers) when the cursor is outside of the inset. I do not think that we should use preview here. Note that the setting telling how much decoration we want should be a pref, not something that is set in the .lyx file itself. JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: I do not really see why it would be better than just displaying the contents (without markers) when the cursor is outside of the inset. I do not think that we should use preview here. This only works for very simple character styles. I'm thinking of using character styles for \textipa, for soul's letterspacing commands, for predefined character styles like scaled and letterspaced all caps etc. I agree that preview would not make sense for all character styles (and thus should be adjustable in the definiton). Note that the setting telling how much decoration we want should be a pref, not something that is set in the .lyx file itself. Agreed for general settings (e.g. Don't show makers (at all)). In the patch I have posted to lyx-devel, I'm saving the state of individual insets (just like the collapse status of collapsables is saved). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). Yeah, however it is not just the label, but the indicator line as well that makes the different (and unpleasant to read on the screen) line spacing. How about moving the indicator line a bit further up? I'll have a look For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . I think when using preview, the lines and label should be hidden always. Another issue with the current inset-style implementation is that it always appears on the screen as if there were an extra space at the boundaries. If one assigns a character class to same chars from the middle of a word that looks quite odd. All in all, character styles are still very much in development. Hence, it is the right time to be a bit picky about details ;-) Yes, certainly. Jürgen (I really appreciate the effort you guys are putting into Lyx!) Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Helge Hafting wrote: Some ideas: * Where the charstyle is defined, let the implementor specify wheter it should have a label or not. That way, we can do away with labels for styles with obvious visual appearance like large bold red. Probably (would be easy to implement, since I already implemented a show_label param). It probably also would make sense to define there whether the charstyle should use preview. We'd then have the following preview settings for charstyles: never, auto, always. * Also, the style could show in the minibuffer area whenever the cursor goes into styled text. When nesting happens, show all the styles there. I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). * Have some way of defining icon labels so that the label can be very small and unobtrusive, and still identify the styled text. I don't understand. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). That'd be nice. And with charstyles being the preferred way, it should definitely be right there in the user interface. I was thinking about the bottom of the screen where it says things like Font:Standard... one might add a list of active styles at the end. There will usually not be that many. * Have some way of defining icon labels so that the label can be very small and unobtrusive, and still identify the styled text. I don't understand. I tried your example with the style named Identifier. I applied it to the word Test, and got something like: See a Test of charstyles -Identifier- The style label take up too much space. Not only vertically, but also horizontally. Now, if I could make a teststyles.inc like this: Format 2 CharStyle Identifier LatexType Command LatexName identif LabelType png LabelIcon smiley.png Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End With this, I'd get rid of that long text Identifier, and get a nice little png image instead as the label. png images can be quite small while still being distinct. Perhaps only 5 pixels high and no wider than an m. With this, the linespacing won't be so bad, and neither will the line show with excessive whitespace when the marked word is shorter than the label. Just an idea, I don't know how hard it is to stick a .png there. Maybe not that hard if you're going to add preview capability anyway? Helge Hafting
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . Juergen I think when using preview, the lines and label should be Juergen hidden always. I do not really see why it would be better than just displaying the contents (without markers) when the cursor is outside of the inset. I do not think that we should use preview here. Note that the setting telling how much decoration we want should be a pref, not something that is set in the .lyx file itself. JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: I do not really see why it would be better than just displaying the contents (without markers) when the cursor is outside of the inset. I do not think that we should use preview here. This only works for very simple character styles. I'm thinking of using character styles for \textipa, for soul's letterspacing commands, for predefined character styles like scaled and letterspaced all caps etc. I agree that preview would not make sense for all character styles (and thus should be adjustable in the definiton). Note that the setting telling how much decoration we want should be a pref, not something that is set in the .lyx file itself. Agreed for general settings (e.g. Don't show makers (at all)). In the patch I have posted to lyx-devel, I'm saving the state of individual insets (just like the collapse status of collapsables is saved). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: > > For 1.5, I'm just working on a patch that lets you hide all labels at > > once and > > probably also saves the settings (whether the labels are shown or not). > > The former might even go into some future version of 1.4 (the latter not, > > because > > it entails a file format change). > > Yeah, however it is not just the label, but the indicator line as well > that makes the different (and unpleasant to read on the screen) line > spacing. How about moving the indicator line a bit further up? I'll have a look > > For representation issues, I'm also thinking about adding preview-latex > > facility to character styles. That would give you a wysiwyg impression of > > how > > the output will look like. > > That would be cool! > It would be even more cool, if it was optionally possible to represent > the character class *only* via the preview-latex setting and leave out > the indicator line and label. That is, to define something that is > presented on the screen with a similar user experience as the current > text styles (Emphasis, ...) . I think when using preview, the lines and label should be hidden always. > Another issue with the current inset-style implementation is that it > always appears on the screen as if there were an extra space at the > boundaries. If one assigns a character class to same chars from the > middle of a word that looks quite odd. > > > All in all, character styles are still very much in development. > > Hence, it is the right time to be a bit picky about details ;-) Yes, certainly. Jürgen > (I really appreciate the effort you guys are putting into Lyx!) > > Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Helge Hafting wrote: > Some ideas: > * Where the charstyle is defined, let the implementor specify wheter > it should have a label or not. That way, we can do away with labels > for styles with obvious visual appearance like "large bold red". Probably (would be easy to implement, since I already implemented a show_label param). It probably also would make sense to define there whether the charstyle should use preview. We'd then have the following preview settings for charstyles: never, auto, always. > * Also, the style could show in the minibuffer area whenever the cursor > goes into styled text. When nesting happens, show all the styles there. I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). > * Have some way of defining "icon labels" so that the label can be > very small and unobtrusive, and still identify the styled text. I don't understand. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen Spitzmueller wrote: I'd prefer to have a charstyle combo (similar to the paragraph style combo) in the long term that displays the current charstyle (only the one the cursor is in, though). That'd be nice. And with charstyles being the preferred way, it should definitely be right there in the user interface. I was thinking about the bottom of the screen where it says things like "Font:Standard..." one might add a list of active styles at the end. There will usually not be that many. * Have some way of defining "icon labels" so that the label can be very small and unobtrusive, and still identify the styled text. I don't understand. I tried your example with the style named "Identifier". I applied it to the word "Test", and got something like: See a Test of charstyles -Identifier- The style label take up too much space. Not only vertically, but also horizontally. Now, if I could make a teststyles.inc like this: Format 2 CharStyle Identifier LatexType Command LatexName identif LabelType png LabelIcon smiley.png Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End With this, I'd get rid of that long text "Identifier", and get a nice little png image instead as the label. png images can be quite small while still being distinct. Perhaps only 5 pixels high and no wider than an "m". With this, the linespacing won't be so bad, and neither will the line show with excessive whitespace when the marked word is shorter than the label. Just an idea, I don't know how hard it is to stick a .png there. Maybe not that hard if you're going to add preview capability anyway? Helge Hafting
Re: How to actually use the LyX 1.4 Character Style Feature
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: >> That would be cool! It would be even more cool, if it was >> optionally possible to represent the character class *only* via the >> preview-latex setting and leave out the indicator line and label. >> That is, to define something that is presented on the screen with a >> similar user experience as the current text styles (Emphasis, ...) >> . Juergen> I think when using preview, the lines and label should be Juergen> hidden always. I do not really see why it would be better than just displaying the contents (without markers) when the cursor is outside of the inset. I do not think that we should use preview here. Note that the setting telling how much decoration we want should be a pref, not something that is set in the .lyx file itself. JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: > I do not really see why it would be better than just displaying the > contents (without markers) when the cursor is outside of the inset. I > do not think that we should use preview here. This only works for very simple character styles. I'm thinking of using character styles for \textipa, for soul's letterspacing commands, for predefined character styles like "scaled and letterspaced all caps" etc. I agree that preview would not make sense for all character styles (and thus should be adjustable in the definiton). > Note that the setting telling how much decoration we want should be a > pref, not something that is set in the .lyx file itself. Agreed for general settings (e.g. "Don't show makers (at all)"). In the patch I have posted to lyx-devel, I'm saving the state of individual insets (just like the collapse status of collapsables is saved). Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the Family and Color options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos [EMAIL PROTECTED] # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Thank you very much, Jürgen - works like a charm! I am a bit surprised about the way character styles are represented in the GUI (with this kind of inset and the name below). I had expected it to be more like Emphasis and the other text styles so that one can defines, how the text *itself* does appear - and not the character style label. I suppose the reason is support for nesting? (Just figured out that you can nest character styles, which definitely makes sense. Pretty cool!) Problem is just that it makes the text a bit uneasy to read on the screen, as a line containing a word with applied character style(s) takes additional space, resulting in different line spacings. Is there any way to define own text styles such as Emphasis or Noun? As I understand it, this should conceptually be a character style as well, even though it seems to be implemented differently. Thanks again! Daniel Juergen Spitzmueller schrieb: Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the Family and Color options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos [EMAIL PROTECTED] # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: I am a bit surprised about the way character styles are represented in the GUI (with this kind of inset and the name below). I had expected it to be more like Emphasis and the other text styles so that one can defines, how the text *itself* does appear - and not the character style label. I suppose the reason is support for nesting? Yes, amongst others. (Just figured out that you can nest character styles, which definitely makes sense. Pretty cool!) Problem is just that it makes the text a bit uneasy to read on the screen, as a line containing a word with applied character style(s) takes additional space, resulting in different line spacings. You can hide the label by right-clicking in the character style. Unfortunately, this is not saved, and you have to do it for any single charstyle again. For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. All in all, character styles are still very much in development. Is there any way to define own text styles such as Emphasis or Noun? Yes, you can just define it as any other character style. As I understand it, this should conceptually be a character style as well, even though it seems to be implemented differently. For the future, I think they will be implemented as character styles, once the feature is matured. Jürgen Thanks again! Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: Juergen For 1.5, I'm just working on a patch that lets you hide all Juergen labels at once and probably also saves the settings (whether Juergen the labels are shown or not). The former might even go into Juergen some future version of 1.4 (the latter not, because it Juergen entails a file format change). Juergen For representation issues, I'm also thinking about adding Juergen preview-latex facility to character styles. That would give Juergen you a wysiwyg impression of how the output will look like. What about not showing the label when cursor is outside of the inset (like mathed does)? Would that be too confusing? JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: What about not showing the label when cursor is outside of the inset (like mathed does)? Would that be too confusing? I think so. There are not too much distinguishable colors, after all. I have a patch that improves the situation quite a bit. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). Yeah, however it is not just the label, but the indicator line as well that makes the different (and unpleasant to read on the screen) line spacing. How about moving the indicator line a bit further up? For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . Another issue with the current inset-style implementation is that it always appears on the screen as if there were an extra space at the boundaries. If one assigns a character class to same chars from the middle of a word that looks quite odd. All in all, character styles are still very much in development. Hence, it is the right time to be a bit picky about details ;-) (I really appreciate the effort you guys are putting into Lyx!) Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the Family and Color options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos [EMAIL PROTECTED] # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Thank you very much, Jürgen - works like a charm! I am a bit surprised about the way character styles are represented in the GUI (with this kind of inset and the name below). I had expected it to be more like Emphasis and the other text styles so that one can defines, how the text *itself* does appear - and not the character style label. I suppose the reason is support for nesting? (Just figured out that you can nest character styles, which definitely makes sense. Pretty cool!) Problem is just that it makes the text a bit uneasy to read on the screen, as a line containing a word with applied character style(s) takes additional space, resulting in different line spacings. Is there any way to define own text styles such as Emphasis or Noun? As I understand it, this should conceptually be a character style as well, even though it seems to be implemented differently. Thanks again! Daniel Juergen Spitzmueller schrieb: Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input-Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the Family and Color options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos [EMAIL PROTECTED] # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: I am a bit surprised about the way character styles are represented in the GUI (with this kind of inset and the name below). I had expected it to be more like Emphasis and the other text styles so that one can defines, how the text *itself* does appear - and not the character style label. I suppose the reason is support for nesting? Yes, amongst others. (Just figured out that you can nest character styles, which definitely makes sense. Pretty cool!) Problem is just that it makes the text a bit uneasy to read on the screen, as a line containing a word with applied character style(s) takes additional space, resulting in different line spacings. You can hide the label by right-clicking in the character style. Unfortunately, this is not saved, and you have to do it for any single charstyle again. For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. All in all, character styles are still very much in development. Is there any way to define own text styles such as Emphasis or Noun? Yes, you can just define it as any other character style. As I understand it, this should conceptually be a character style as well, even though it seems to be implemented differently. For the future, I think they will be implemented as character styles, once the feature is matured. Jürgen Thanks again! Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: Juergen For 1.5, I'm just working on a patch that lets you hide all Juergen labels at once and probably also saves the settings (whether Juergen the labels are shown or not). The former might even go into Juergen some future version of 1.4 (the latter not, because it Juergen entails a file format change). Juergen For representation issues, I'm also thinking about adding Juergen preview-latex facility to character styles. That would give Juergen you a wysiwyg impression of how the output will look like. What about not showing the label when cursor is outside of the inset (like mathed does)? Would that be too confusing? JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: What about not showing the label when cursor is outside of the inset (like mathed does)? Would that be too confusing? I think so. There are not too much distinguishable colors, after all. I have a patch that improves the situation quite a bit. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). Yeah, however it is not just the label, but the indicator line as well that makes the different (and unpleasant to read on the screen) line spacing. How about moving the indicator line a bit further up? For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . Another issue with the current inset-style implementation is that it always appears on the screen as if there were an extra space at the boundaries. If one assigns a character class to same chars from the middle of a word that looks quite odd. All in all, character styles are still very much in development. Hence, it is the right time to be a bit picky about details ;-) (I really appreciate the effort you guys are putting into Lyx!) Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: > 1) I would like to use character styles in my documents. In our papers, we > frequently have to refer to identifiers from C++ listings that should be > set in "typewriter" and either "small" or "smaller" and I would like to > define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input->Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the "Family" and "Color" options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos <[EMAIL PROTECTED]> # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Thank you very much, Jürgen - works like a charm! I am a bit surprised about the way character styles are represented in the GUI (with this kind of inset and the name below). I had expected it to be more like "Emphasis" and the other text styles so that one can defines, how the text *itself* does appear - and not the character style label. I suppose the reason is support for nesting? (Just figured out that you can nest character styles, which definitely makes sense. Pretty cool!) Problem is just that it makes the text a bit uneasy to read on the screen, as a line containing a word with applied character style(s) takes additional space, resulting in different line spacings. Is there any way to define own "text styles" such as "Emphasis" or "Noun"? As I understand it, this should conceptually be a character style as well, even though it seems to be implemented differently. Thanks again! Daniel Juergen Spitzmueller schrieb: Daniel Lohmann wrote: 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in "typewriter" and either "small" or "smaller" and I would like to define a character style for that. Currently, charstyles are only available on a general (document-class or several-document-classes) level. You have to define your character styles either in the *.layout file or in a mycharstyles.inc file, which is then to be included in the layout file(s) with Input mycharstyles.inc All those files have to be placed in your ./lyx-directory. The char styles are then available through the menu (Input->Character Styles) The syntax is pretty straightforward, in your case it's something like: CharStyle Identifier LatexType Command LatexName identif LabelFont Family Typewriter Color blue EndFont Preamble \newcommand\identif[1]{\small\texttt{#1}} EndPreamble End Note that the "Family" and "Color" options only refer to the appearance on screen. HTH, Jürgen # Textclass definition file for docbook. # Author : José Abílio Oliveira Matos <[EMAIL PROTECTED]> # Character Styles definition Format 2 CharStyle Versal LatexType Command LatexName versal LabelFont Family Roman Color blue EndFont Preamble [EMAIL PROTECTED] \usepackage{soul} }{} [EMAIL PROTECTED] \DeclareRobustCommand*\versal[1]{% \MakeUppercase{\scalefont{.92}\null{\caps{#1}}}% } }{} EndPreamble End CharStyle Enquote* LatexType Command LatexName enquote* Font Family Typewriter EndFont LabelFont Family Roman Color green EndFont End CharStyle Enquote LatexType Command LatexName enquote LabelFont Family Roman Color green EndFont End
Re: How to actually use the LyX 1.4 Character Style Feature
Daniel Lohmann wrote: > I am a bit surprised about the way character styles are represented in the > GUI (with this kind of inset and the name below). I had expected it to be > more like "Emphasis" and the other text styles so that one can defines, how > the text *itself* does appear - and not the character style label. > > I suppose the reason is support for nesting? Yes, amongst others. > (Just figured out that you can > nest character styles, which definitely makes sense. Pretty cool!) Problem > is just that it makes the text a bit uneasy to read on the screen, as a > line containing a word with applied character style(s) takes additional > space, resulting in different line spacings. You can hide the label by right-clicking in the character style. Unfortunately, this is not saved, and you have to do it for any single charstyle again. For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. All in all, character styles are still very much in development. > Is there any way to define own "text styles" such as "Emphasis" or "Noun"? Yes, you can just define it as any other character style. > As I understand it, this should conceptually be a character style as well, > even though it seems to be implemented differently. For the future, I think they will be implemented as character styles, once the feature is matured. Jürgen > Thanks again! > > Daniel
Re: How to actually use the LyX 1.4 Character Style Feature
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> For 1.5, I'm just working on a patch that lets you hide all Juergen> labels at once and probably also saves the settings (whether Juergen> the labels are shown or not). The former might even go into Juergen> some future version of 1.4 (the latter not, because it Juergen> entails a file format change). Juergen> For representation issues, I'm also thinking about adding Juergen> preview-latex facility to character styles. That would give Juergen> you a wysiwyg impression of how the output will look like. What about not showing the label when cursor is outside of the inset (like mathed does)? Would that be too confusing? JMarc
Re: How to actually use the LyX 1.4 Character Style Feature
Jean-Marc Lasgouttes wrote: > What about not showing the label when cursor is outside of the inset > (like mathed does)? Would that be too confusing? I think so. There are not too much distinguishable colors, after all. I have a patch that improves the situation quite a bit. Jürgen
Re: How to actually use the LyX 1.4 Character Style Feature
For 1.5, I'm just working on a patch that lets you hide all labels at once and probably also saves the settings (whether the labels are shown or not). The former might even go into some future version of 1.4 (the latter not, because it entails a file format change). Yeah, however it is not just the label, but the indicator line as well that makes the different (and unpleasant to read on the screen) line spacing. How about moving the indicator line a bit further up? For representation issues, I'm also thinking about adding preview-latex facility to character styles. That would give you a wysiwyg impression of how the output will look like. That would be cool! It would be even more cool, if it was optionally possible to represent the character class *only* via the preview-latex setting and leave out the indicator line and label. That is, to define something that is presented on the screen with a similar user experience as the current text styles (Emphasis, ...) . Another issue with the current inset-style implementation is that it always appears on the screen as if there were an extra space at the boundaries. If one assigns a character class to same chars from the middle of a word that looks quite odd. All in all, character styles are still very much in development. Hence, it is the right time to be a bit picky about details ;-) (I really appreciate the effort you guys are putting into Lyx!) Daniel
How to actually use the LyX 1.4 Character Style Feature
Lyx 1.4.3svn Win32 Hi, Even though I have been using Lyx for quite a couple of years, I am new on this list - so please forgive me, if this already has been discussed. (Yes, I did a quick check the archives :-) ) 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. However, whenever I try to do a: charstyle-insert whatever I get a command disabled message in the status bar. Has the new 1.4 feature intentionally been disabled in 1.4.3? Thanks! Daniel
How to actually use the LyX 1.4 Character Style Feature
Lyx 1.4.3svn Win32 Hi, Even though I have been using Lyx for quite a couple of years, I am new on this list - so please forgive me, if this already has been discussed. (Yes, I did a quick check the archives :-) ) 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in typewriter and either small or smaller and I would like to define a character style for that. However, whenever I try to do a: charstyle-insert whatever I get a command disabled message in the status bar. Has the new 1.4 feature intentionally been disabled in 1.4.3? Thanks! Daniel
How to actually use the LyX 1.4 Character Style Feature
Lyx 1.4.3svn Win32 Hi, Even though I have been using Lyx for quite a couple of years, I am new on this list - so please forgive me, if this already has been discussed. (Yes, I did a quick check the archives :-) ) 1) I would like to use character styles in my documents. In our papers, we frequently have to refer to identifiers from C++ listings that should be set in "typewriter" and either "small" or "smaller" and I would like to define a character style for that. However, whenever I try to do a: charstyle-insert I get a "command disabled" message in the status bar. Has the new 1.4 feature intentionally been disabled in 1.4.3? Thanks! Daniel