Re: minted and inputminted

2022-01-17 Thread camus.philippe--- via lyx-users

Hello. 
I answer (partially) to myself : I could have used the insert/sub-document with 
the option "listing" and "language={Python}" in the parameter box 

instead of using ERT. 


Anyway, knowing some environments variables is sometime useful... 


Philippe 

- Mail original -

De: "camus.philippe--- via lyx-users"  
À: "mailing lyx"  
Envoyé: Dimanche 16 Janvier 2022 15:29:19 
Objet: minted and inputminted 



Hello. 
I tried to use the \inputminted command. 
>From LyX, I get an error message about minted not finding the Pygments output. 
I tried to give minted the path to lyxtmpbuf as outputdir without success. 
(The tex file just compiles fine when I use TexStudio) 


By the way, is there a way to know all the environment variables Lyx uses ? 



Thanks 
Philippe 



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

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


Re: How to (correctly) insert large and slanted text

2022-01-17 Thread Jürgen Spitzmüller via lyx-users
Am Sonntag, dem 16.01.2022 um 18:00 -0500 schrieb Paul A. Rubin via
lyx-users:
> As far as how the braces are placed, I don't think there is any way
> to change that other than ERT.

The reason is that it is not easy for LyX to guess what follows. With a
character, a space needs to be inserted to terminate the command, but
with another command, this space must be omitted as it would result in
a real space. Braces work in both cases.

Note though that forthcoming LyX 2.4 will be smarter and output, with
your example:

{\Large\textsl{Here is some long long long and even longer text that
spans multiple lines of a paragraph in large size and slanted
style.}}{\Large\par}

There is also a reason for size switches coming before font style
markup. I can't remember the details now but this is the only order
that works in all cases.

HTH,
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to (correctly) insert large and slanted text

2022-01-17 Thread Jürgen Spitzmüller via lyx-users
Am Sonntag, dem 16.01.2022 um 16:16 -0500 schrieb Paul A. Rubin via
lyx-users:
> As I suspected, the issue is that the text you are formatting occurs
> at the very end of a paragraph. 

And the reason why it is inserted is line spacing. This is wrong if the
\par is not resized, at least if whole paragraphs are in a non-standard
size.

See attached example which uses Paul's advise but with an empty ERT
rather than a space.

Jürgen 



mwe large slanted text.lyx
Description: application/lyx


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users