Re: copy plain text

2018-05-04 Thread Paul A. Rubin

On 05/04/2018 06:12 PM, Csikos Bela wrote:

Hello, and thanks again your answer.

"Paul A. Rubin" <parubi...@gmail.com> írta:

I snipped the content from previous messages.


The text you are copying from ERT actually has no style attached to it.
The style is applied outside the ERT box. So what you are copying is,

>from LyX's perspective, plain text.

Yes. This is the reason I gave the subject 'copy plain text'.


I don't think there is a way around
that, because I do not believe LyX will let you apply LyX formatting
commands (\shape, \size) inside ERT.

My problem is not this.


If you want the entire LyX table to be large italic, that is easy to do.
Rather than applying the format to the text inside the first row, select
the entire table and then apply the format to that. Once you've done
that, plain text from anywhere that you paste in becomes large and
italic.

Is is not correct, and that is my problem. I did exactly what you write
above, and the inserted text becomes plain text, not large italic.
I would expect too what you write, that is, if I apply the format to the whole
table then the newly inserted plain text will be formatted the same.
But it is not. At least not in my lyx 2.3.0. installation.

Thank again,

bcsikos

Ouch! You are correct. Before I wrote my previous message, I tested (or 
thought I tested) what I was saying, and I would swear that the text I 
pasted into the table was formatted correctly. I can't reproduce that 
now, and I have no idea what I did differently that could possibly make 
it work.


If you customize the font in the table and do not customize anything 
else, when you go back to the table and paste new things in you can 
quickly match them to the existing font by using the "Apply last" button 
(the font symbol with an arrow wrapped over it). That only helps if the 
table was the last font you customized, though.


There probably should be a "copy text style" command to let you copy the 
style of an existing block of text, and applying a text style to a table 
should probably apply it to all current and future table entries except 
where overridden by a new style applied at the cell level. You might 
request those as enhancements. If you have a particular style that you 
use frequently, you could write a macro (using the textstyle-update 
LFUN) to apply it on command, and bind that macro to some key 
combination. You would still have to adjust pasted text to get the new 
style, though.


Sorry for the noise. I'm perplexed what I did the one time I got 
something to work.


Paul


Re: copy plain text

2018-05-04 Thread Csikos Bela
Hello, and thanks again your answer.

"Paul A. Rubin" <parubi...@gmail.com> írta:

I snipped the content from previous messages.

>The text you are copying from ERT actually has no style attached to it. 
>The style is applied outside the ERT box. So what you are copying is, 
>from LyX's perspective, plain text.

Yes. This is the reason I gave the subject 'copy plain text'.

> I don't think there is a way around 
>that, because I do not believe LyX will let you apply LyX formatting 
>commands (\shape, \size) inside ERT.

My problem is not this.

>If you want the entire LyX table to be large italic, that is easy to do. 
>Rather than applying the format to the text inside the first row, select 
>the entire table and then apply the format to that. Once you've done 
>that, plain text from anywhere that you paste in becomes large and 
>italic.

Is is not correct, and that is my problem. I did exactly what you write
above, and the inserted text becomes plain text, not large italic.
I would expect too what you write, that is, if I apply the format to the whole
table then the newly inserted plain text will be formatted the same.
But it is not. At least not in my lyx 2.3.0. installation.

Thank again,

bcsikos



Re: copy plain text

2018-05-04 Thread Paul A. Rubin

On 05/04/2018 07:45 AM, Csikos Bela wrote:

"Paul A. Rubin"  írta:

On 05/03/2018 12:05 PM, Csikos Bela wrote:

Hello:

This question applies to lyx 3.0.

I have some text formatted and entered in ERT. In the same document I inserted 
a table and formatted the table font size and shape (to larger italic) by 
selecting the whole table and applying the font commands to the whole 
selection. This works nicely. Now I would like to replace some text in the 
table with text from the ERT so that the formatted table text would keep its 
style (size and shape, larger italic). I tried to use different copy commands 
but all of them reformats the text in the table to normal size and shape. How 
can I keep the table font style (larger italic) when I copy text into the table 
from somewhere else? In other words I'd like if the copied text (into the 
table) took the style of the fonts already configured in the table.

Thanks,

bcsikos

Could you posted a minimal example of this?


Hello:

Here is a mwe.
Lyx table is formatted to have Italic large fonts.
When I copy text into it, the pasted text should be formatted to Italic large 
too.

bcsikos
The text you are copying from ERT actually has no style attached to it. 
The style is applied outside the ERT box. So what you are copying is, 
from LyX's perspective, plain text. I don't think there is a way around 
that, because I do not believe LyX will let you apply LyX formatting 
commands (\shape, \size) inside ERT.


If you want the entire LyX table to be large italic, that is easy to do. 
Rather than applying the format to the text inside the first row, select 
the entire table and then apply the format to that. Once you've done 
that, plain text from anywhere that you paste in becomes large and 
italic. If you copy formatted text from a non-ERT source (such as a 
typical paragraph) and paste it into the table, the formatting from the 
source will supersede the formatting applied to the table.


Paul



Re: copy plain text

2018-05-04 Thread Csikos Bela
"Paul A. Rubin"  írta:
>On 05/03/2018 12:05 PM, Csikos Bela wrote:
>> Hello:
>>
>> This question applies to lyx 3.0.
>>
>> I have some text formatted and entered in ERT. In the same document I 
>> inserted a table and formatted the table font size and shape (to larger 
>> italic) by selecting the whole table and applying the font commands to the 
>> whole selection. This works nicely. Now I would like to replace some text in 
>> the table with text from the ERT so that the formatted table text would keep 
>> its style (size and shape, larger italic). I tried to use different copy 
>> commands but all of them reformats the text in the table to normal size and 
>> shape. How can I keep the table font style (larger italic) when I copy text 
>> into the table from somewhere else? In other words I'd like if the copied 
>> text (into the table) took the style of the fonts already configured in the 
>> table.
>>
>> Thanks,
>>
>> bcsikos
>Could you posted a minimal example of this?
>
Hello:

Here is a mwe.
Lyx table is formatted to have Italic large fonts.
When I copy text into it, the pasted text should be formatted to Italic large 
too.

bcsikos

table-copy-text-mwe-lyx230.lyx
Description: application/lyx


Re: copy plain text

2018-05-03 Thread Paul A. Rubin

On 05/03/2018 12:05 PM, Csikos Bela wrote:

Hello:

This question applies to lyx 3.0.

I have some text formatted and entered in ERT. In the same document I inserted 
a table and formatted the table font size and shape (to larger italic) by 
selecting the whole table and applying the font commands to the whole 
selection. This works nicely. Now I would like to replace some text in the 
table with text from the ERT so that the formatted table text would keep its 
style (size and shape, larger italic). I tried to use different copy commands 
but all of them reformats the text in the table to normal size and shape. How 
can I keep the table font style (larger italic) when I copy text into the table 
from somewhere else? In other words I'd like if the copied text (into the 
table) took the style of the fonts already configured in the table.

Thanks,

bcsikos

Could you posted a minimal example of this?

Paul




copy plain text

2018-05-03 Thread Csikos Bela
Hello:

This question applies to lyx 3.0.

I have some text formatted and entered in ERT. In the same document I inserted 
a table and formatted the table font size and shape (to larger italic) by 
selecting the whole table and applying the font commands to the whole 
selection. This works nicely. Now I would like to replace some text in the 
table with text from the ERT so that the formatted table text would keep its 
style (size and shape, larger italic). I tried to use different copy commands 
but all of them reformats the text in the table to normal size and shape. How 
can I keep the table font style (larger italic) when I copy text into the table 
from somewhere else? In other words I'd like if the copied text (into the 
table) took the style of the fonts already configured in the table.

Thanks,

bcsikos