# LyX acting differently between computers

David Chan david.c.chan at gmail.com
Tue Nov 3 17:21:04 UTC 2020

>
>
> Message: 1
> Date: Tue, 3 Nov 2020 01:02:10 +0300
> From: Baris Erkus <bariserkus at hotmail.com>
> To: lyx-users at lists.lyx.org
> Subject: Re: LyX acting differently between computers
> Message-ID:
>         <
> VI1PR0601MB2528962986EF1CCA7CEE54E1DE100 at VI1PR0601MB2528.eurprd06.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> On 03-Nov-20 12:39 AM, David Chan wrote:
> >
> >         On 28-Oct-20 12:01 AM, David Chan wrote:
> >         > Hi all,
> >         >
> >         > I noticed that LyX was acting differently between computers
> >         and am
> >         > trying to figure out the source of this issue.
> >         >
> >         > One computer cannot compile a file that uses biblatex with
> >         the apa
> >         > bibliography style, while the other two computers can. Also,
> >         the first
> >         > computer compiles lines slightly differently so that a paper
> >         compiles
> >         > to 110 pages, while on the other two computers, the paper
> >         compiles to
> >         > 109 pages.
> >         >
> >         > The first computer initially had an older version of LyX, 2.3.0
> >         > (February 24, 2018), but when I updated it to the newest
> >         version, LyX
> >         > 2.3.5.2 (June 25, 2020), the problem persists. I also found the
> >         > version that matches the other computers in the archive, LyX
> >         2.3.1-1,
> >         > and the problem persists with this as well.
> >         >
> >         > When I checked the preferences on LyX on each of the
> >         computers, the
> >         > first one differs by not having pdflatex as an option under
> >         > Preferences > File Handling > File Formats > Default Output
> >         Formats,
> >         > whereas this option exists on the other computers. I am
> >         unable to find
> >         > the pdflatex option on the first computer regardless of
> >         the version
> >         > of LyX.
> >         >
> >         > The next thing that I did was to reinstall MikTeX on the first
> >         > computer. This did not seem to resolve the problem, although
> >         it seems
> >         > to have caused errors in compilation ("undefined control
> >         sequence",
> >         > "Missing number, treated as zero", and "Missing glyphs!").
> >         >
> >         >
> >         > Thanks in advance,
> >         > Dave
> >         >
> >         First, I would recommend you sending a MWE for each of the
> >         problem you
> >         have listed. Users of the list can try these MWEs on their
> >         computers and
> >         tell you if there is a problem with the LyX file or LyX.
> >
> >         Second, missing "pdflatex" option under LyX may be a sign of
> >         faulty
> >         MikTeX system and trailing faulty LyX configuration. I am
> >         guessing you
> >         are using Windows. You should install the latest updates of
> >         MikTeX and
> >         update everything for both user and admin mode.
> >
> >         I would also recommend testing your MikTeX setup with a MWE of
> >         LaTeX file.
> >
> >         You can also re-configure your LyX and see possible errors.
> >
> >         --
> >         ??????????????????????????????????????????
> >
> >
> >     The suggestion to do MWEs is really great. I?ve never done this
> >     before, but it makes a lot of sense. I?m attaching two .lyx MWEs
> >     and a related .. For each MWE, I also attach two PDF files: PDF
> >     files with the suffix |-1| correspond to the error produced on the
> >     first computer, and PDF files with the suffix |-0| correspond to
> >     the correct output produced on the other computers.
> >
> >       * |mwe1.lyx| is what happens when I switch from BibTeX to
> >         biblatex in the Settings > Bibliography page.
> >       * |mwe2.lyx| is what happens when I further specify the apa
> >         bibliography style within biblatex in the Settings >
> >         Bibliography page.
> >
> >     In a way, the fact that I do not have pdflatex as an option in the
> >     first computer under Preferences > File Handling > File Formats >
> >     Default Output Formats, while I have that specified in the other
> >     computers, is a clue that does not even depend on the .lyx document.
> >
> >     FYI, all computers are Macs, and they all are using macOS Catalina
> >     (10.15.7).
> >
> >     Apologies for stating MiKTeX on my last post, as that was
> >     misleading. In fact, I?ve been using MacTeX. I updated MacTeX,
> >     reconfigured LyX, and confirmed that the path in Tools > TeX
> >     Information points to |/usr/local/texlive/2020/|. Weirdly, the
> >     update actually caused more errors, as I mentioned above. Is there
> >     a way to figure out which packages are causing the problem?
> >
> >     Thanks again,
> >     Dave
> >
> > Hi all,
> >
> > I have an update on this, which has clarified the root of the problem
> > but in some ways is still mysterious.
> >
> > I?ve discovered that that |pdflatex| indeed does exist on the
> > previously problematic computer under |Document > View (Other
> > Formats)|. If I compile the files using |pdflatex| from this dropdown
> > menu, everything turns out fine for the MWEs. It turns out that LuaTeX
> > is problematic on all of my computers, regardless of the MacTeX
> > version that I?m using. In other words, I need to use |pdflatex|
> > rather than LuaTeX to handle |biblatex| properly.
> >
> > The weird thing is that |pdflatex| can be set as the default output
> > format in |Preferences > File Handling > File Formats| in all of my
> > computers except for the problematic computer. I?m not sure why in
> > that computer it?s not showing up in |Preferences|, but is an option
> > in the |Document > View (Other Formats)| dropdown.
> >
> > Does anyone have any clue?
> >
> > Thanks,
> > Dave
> >
> >
> Hello Dave,
>
> I have tried your LyX files and I have the correct outputs.
>
> Couple of suggestions:
>
> 1. Did you check your LaTeX installation by running the pdflatex on the
> following latex file (e.g. mwe.tex) ?
>
> \documentclass[english]{article}
>
> \PassOptionsToPackage{natbib=true}{biblatex}
>
> \usepackage[T1]{fontenc}
>
> \usepackage[latin9]{inputenc}
>
> \usepackage{babel}
>
> \usepackage[citestyle=authoryear]{biblatex}
>
>
> \begin{document}
>
> See \citealt{imbens_identification_1994}.\printbibliography
>
>
> \end{document}
>
>
> 2. Did you reconfigure LyX after updating your LaTeX system.
>
>
> 3. You can add PDF (pdflatex) to Preferences by yourself. Did you try that?
>
> --
> ??????????????????????????????????????????
>

Thanks very much Baris for your thoughts!

I tried compiling the document in my LaTeX installation (TeXShop). When I
typeset the file with pdflatexmk, it compiles fine. When I compile it
with Plain TeX, it compiles incorrectly, although it looks different than
the problematic output from LyX.

Yes, I have reconfigured LyX whenever updating in the TeX Live Utility or
installing a new version of MacTeX. This doesn't seem to matter.

Can you tell me more about how to add PDF (pdflatex) to Preferences by
myself? I'm sure that would do the trick. As I mentioned, when I manually
use pdflatex from Document > View (Other Formats), it works fine. The only
problem is that I cannot get pdflatex to appear in the dropdown in
Preferences in order to make it my default.

Thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201103/3b29ff3d/attachment.html>