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