On 05/04/2018 06:12 PM, Csikos Bela wrote:
Hello, and thanks again your answer.
"Paul A. Rubin" <[email protected]> í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