On 1/16/22 3:46 PM, tush via lyx-users wrote:
The shape works the way I want, but the sizing rather gives the unwanted formatting.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, January 16th, 2022 at 10:43 PM, <ehud.be...@protonmail.com> wrote:
Could you tell me how to apply the style so that the code is the way I want it to be?

I selected the whole line, maybe lyx sees it as a paragraph.


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via lyx-users <lyx-users@lists.lyx.org> wrote:
On 1/16/22 3:05 PM, tush via lyx-users wrote:
I want to insert the following styled text to my document:

{\large{\textsl{Some text goes here}}


This is what a a LaTeX user would have inserted into his .tex file.

If I select my text in LyX and right click it and choose Text Style -> Customized...

I can apply the aforementioned features, i.e. slanted shape and large size, but the command LyX inserts is not the one above, but rather

\textsl{\large{}Some text goes here}{\large\par}


Is it possible to achieve what I first wrote, rather than inserting ERT commands?

That last {\large\par} may have something to do with how you selected the text before applying the style change. In a test document, I did not encounter that. Comparing your ERT version with the customized style version, I can confirm the difference in the LaTeX commands but see no difference in the output. Is there a reason why you are unhappy with what LyX enters?

Paul




First, please bottom post.

Second, does the "unwanted formatting" refer to {\large\par}? If so, we would need a minimal example. It would need to be a self-contained document (your previous MWE had include commands for child documents not attached to the message), preferably with as little customization as possible. Every package you add, font or language change you make, etc. makes it a bit less likely that someone on the list has all the packages necessary to compile your MWE.

If by "unwanted formatting" you mean that you really want the LaTeX commands entered in the order you used in your ERT, I doubt that is possible without resorting to ERT.

Paul

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to