Change lyx use of tex system

Paul A. Rubin parubin73 at gmail.com
Thu May 19 15:31:14 UTC 2022


On 5/17/22 08:38, tush via lyx-users wrote:
> I got two tex installations on my computer running Windows.
> One is TeX live 2021, the other is miktex.
> Is there any way to tell lyx which one to use?
> Or is it rather determined by the computer via the control panel PATH 
> (in the Environmental Variables menu)?
>
> I haven't seen any menu in LyX that lets the user to choose such a 
> thing, so I tend to think that you can only make such decisions from 
> the system's control panel. But I would like to be sure about it.
>
I'm not sure this will work, so consider it an experiment. Not knowing 
what you preferred method is for generating output, I'll focus on pdflatex.

I recommend starting LyX from a command prompt with the option "-dbg 
latex" so that you can see which TeX distribution is being used. In 
Tools > Preferences... > File Handling > Converters, select "LaTeX 
(pdflatex) -> PDF (pdflatex)" in the Converter Definitions box and 
change the entry in "Converter" to include the path to the pdflatex 
executable in whichever TeX distro you want to use. You might want to 
select "Apply to current session only" for testing (and then go back, 
remove that check box and save the change again if it works). Test by 
compiling a document.

If this works, you can make comparable changes to other converters 
("LaTeX (plain) -> DVI", etc.). If you want to have the option to choose 
between TeX distros at will, I think you will need to create new file 
formats and converters, so that for instance viewing/exporting your 
document as "PDF (pdflatex)" uses MiKTeX whereas viewing/exporting as 
"PDF (pdflatex) 2" uses TeXLive.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220519/89c99b11/attachment.html>


More information about the lyx-users mailing list