Re: Layout for changing font within a paragraph?

2012-05-04 Thread rgheck

On 05/04/2012 01:46 PM, James Sutherland wrote:


FYI, I found a solution using "InsetLayout"

InsetLayout "Flex:Revision"

  LyXType charstyle

  MultiPar true

  LatexName textcolor

  LatexParam {red}

  LatexType Command

  Font

Color Red

  EndFont

End

This forces you to use "Text Style" to modify the text, but works fine.
That's the difference between Layout and InsetLayout: The former is 
paragraph level; the latter is word level.


There's a proposal to put some kind of combo box on the toolbar to allow 
easier access to these things.


By the way, you don't need the quotes around "Flex:Revision".

Richard



Re: Layout for changing font within a paragraph?

2012-05-04 Thread Richard Heck

On 05/04/2012 03:37 PM, Alex Vergara Gil wrote:


El 04/05/2012 11:06 a.m., James Sutherland escribió:

LyX users,

I am trying to create a "local layout" that allows me to change the 
font.  This is what I have so far:


Format 35

Style Revision

CopyStyle Standard

LatexName textcolor{red}

LatexType Command

Font

Color Red

EndFont

End

The problem is that this applies to an entire paragraph.  How do I 
apply this to only a few words/sentences within a paragraph?


Thanks,

James


I don't see the point for doing this. Is it not easier to select the 
text you want to change, then press the style button (the "ab" one) 
and finally choose whatever you want? I mean I can change font family, 
color , style etc


What if you do that fifty-five times, and then decide you wanted all 
fifty of those things to be styled some other way? Some of us would say 
that the whole point of a markup-based editor like LyX was to allow you 
to style things semantically, and to adjust presentation independently.


Richard



Re: Layout for changing font within a paragraph?

2012-05-04 Thread Alex Vergara Gil


El 04/05/2012 11:06 a.m., James Sutherland escribió:

LyX users,

I am trying to create a "local layout" that allows me to change the 
font.  This is what I have so far:


Format 35

Style Revision

CopyStyle Standard

LatexName textcolor{red}

LatexType Command

Font

Color Red

EndFont

End

The problem is that this applies to an entire paragraph.  How do I 
apply this to only a few words/sentences within a paragraph?


Thanks,

James


I don't see the point for doing this. Is it not easier to select the 
text you want to change, then press the style button (the "ab" one) and 
finally choose whatever you want? I mean I can change font family, color 
, style etc


Alex


Re: Layout for changing font within a paragraph?

2012-05-04 Thread James Sutherland
On Fri, May 4, 2012 at 11:06 AM, James Sutherland  wrote:

> LyX users,
>
> I am trying to create a "local layout" that allows me to change the font.
>  This is what I have so far:
>
>> Format 35
>>
>> Style Revision
>>
>> CopyStyle Standard
>>
>> LatexName textcolor{red}
>>
>> LatexType Command
>>
>> Font
>>
>> Color Red
>>
>> EndFont
>>
>> End
>>
> The problem is that this applies to an entire paragraph.  How do I apply
> this to only a few words/sentences within a paragraph?
>
> Thanks,
>
> James
>


FYI, I found a solution using "InsetLayout"

> InsetLayout "Flex:Revision"
>
>   LyXType charstyle
>
>   MultiPar true
>
>   LatexName textcolor
>
>   LatexParam {red}
>
>   LatexType Command
>
>   Font
>
> Color Red
>
>   EndFont
>
> End
>
This forces you to use "Text Style" to modify the text, but works fine.


Layout for changing font within a paragraph?

2012-05-04 Thread James Sutherland
LyX users,

I am trying to create a "local layout" that allows me to change the font.
 This is what I have so far:

> Format 35
>
> Style Revision
>
> CopyStyle Standard
>
> LatexName textcolor{red}
>
> LatexType Command
>
> Font
>
> Color Red
>
> EndFont
>
> End
>
The problem is that this applies to an entire paragraph.  How do I apply
this to only a few words/sentences within a paragraph?

Thanks,

James