<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 03-Nov-20 12:39 AM, David Chan
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAAdUwTbWHUuUdRe2_h7L2nfiCAw_w=jdeWcuVbfbwY9XzDj2JQ@mail.gmail.com">
      
      <div dir="ltr">
        <div class="markdown-here-wrapper" style="">
          <div class="markdown-here-exclude">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">On 28-Oct-20
                    12:01 AM, David Chan wrote:<br>
                    > Hi all,<br>
                    ><br>
                    > I noticed that LyX was acting differently
                    between computers and am <br>
                    > trying to figure out the source of this issue.<br>
                    ><br>
                    > One computer cannot compile a file that uses
                    biblatex with the apa <br>
                    > bibliography style, while the other two
                    computers can. Also, the first <br>
                    > computer compiles lines slightly differently so
                    that a paper compiles <br>
                    > to 110 pages, while on the other two computers,
                    the paper 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 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 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 computers, the <br>
                    > first one differs by not having `pdflatex` as
                    an option under <br>
                    > Preferences > File Handling > File
                    Formats > Default Output Formats, <br>
                    > whereas this option exists on the other
                    computers. I am unable to find <br>
                    > the `pdflatex` option on the first computer
                    regardless of 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 it seems <br>
                    > to have caused errors in compilation
                    ("undefined control 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 problem you <br>
                    have listed. Users of the list can try these MWEs on
                    their 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 faulty <br>
                    MikTeX system and trailing faulty LyX configuration.
                    I am guessing you <br>
                    are using Windows. You should install the latest
                    updates of 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 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>
                  </blockquote>
                </div>
                <p style="margin:0px 0px 1.2em">Thanks so much for your
                  reply!</p>
                <p style="margin:0px 0px 1.2em">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 <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">-1</code>
                  correspond to the error produced on the first
                  computer, and PDF files with the suffix <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">-0</code>
                  correspond to the correct output produced on the other
                  computers.</p>
                <ul style="margin:1.2em 0px;padding-left:2em">
                  <li style="margin:0.5em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">mwe1.lyx</code>
                    is what happens when I switch from BibTeX to
                    biblatex in the Settings > Bibliography page.</li>
                  <li style="margin:0.5em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">mwe2.lyx</code>
                    is what happens when I further specify the apa
                    bibliography style within biblatex in the Settings
                    > Bibliography page.</li>
                </ul>
                <p style="margin:0px 0px 1.2em">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.</p>
                <p style="margin:0px 0px 1.2em">FYI, all computers are
                  Macs, and they all are using macOS Catalina (10.15.7).</p>
                <p style="margin:0px 0px 1.2em">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 <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">/usr/local/texlive/2020/</code>.
                  Weirdly, the update actually caused more errors, as I
                  mentioned above. Is there a way to figure out which
                  packages are causing the problem?</p>
                <p style="margin:0px 0px 1.2em">Thanks again,<br>
                  Dave</p>
              </div>
            </blockquote>
          </div>
          <p style="margin:0px 0px 1.2em!important">Hi all, </p>
          <p style="margin:0px 0px 1.2em!important">I have an update on
            this, which has clarified the root of the problem but in
            some ways is still mysterious.</p>
          <p style="margin:0px 0px 1.2em!important">I’ve discovered that
            that <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pdflatex</code>
            indeed does exist on the previously problematic computer
            under <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Document > View (Other Formats)</code>.
            If I compile the files using <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pdflatex</code>
            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 <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pdflatex</code>
            rather than LuaTeX to handle <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">biblatex</code>
            properly.</p>
          <p style="margin:0px 0px 1.2em!important">The weird thing is
            that <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pdflatex</code>
            can be set as the default output format in <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Preferences > File Handling > File Formats</code>
            in all of my computers except for the problematic computer.
            I’m not sure why in that computer it’s not showing up in <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Preferences</code>,
            but is an option in the <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Document > View (Other Formats)</code>
            dropdown. </p>
          <p style="margin:0px 0px 1.2em!important">Does anyone have any
            clue?</p>
          <p style="margin:0px 0px 1.2em!important">Thanks,<br>
            Dave</p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
    <p>Hello Dave,</p>
    <p>I have tried your LyX files and I have the correct outputs. <br>
    </p>
    <p>Couple of suggestions:</p>
    <p>1. Did you check your LaTeX installation by running the <tt>pdflatex</tt>
      on the following latex file (e.g. <tt>mwe.tex</tt>) ?<br>
    </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\documentclass[english]{article}</tt></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\PassOptionsToPackage{natbib=true}{biblatex}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\usepackage[T1]{fontenc}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\usepackage[latin9]{inputenc}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\usepackage{babel}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\usepackage[citestyle=authoryear]{biblatex}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\addbibresource{bibliography.bib}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\begin{document}</tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>See
        \citealt{imbens_identification_1994}.\printbibliography</tt></p>
    <tt>
    </tt>
    <p style="-qt-paragraph-type:empty; margin-top:0px;
      margin-bottom:0px; margin-left:0px; margin-right:0px;
      -qt-block-indent:0; text-indent:0px;"><tt><br>
      </tt></p>
    <tt>
    </tt>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\end{document}</tt></p>
    <p style="-qt-paragraph-type:empty; margin-top:0px;
      margin-bottom:0px; margin-left:0px; margin-right:0px;
      -qt-block-indent:0; text-indent:0px;"><br>
    </p>
    <p style="-qt-paragraph-type:empty; margin-top:0px;
      margin-bottom:0px; margin-left:0px; margin-right:0px;
      -qt-block-indent:0; text-indent:0px;">2. Did you reconfigure LyX
      after updating your LaTeX system.</p>
    <p style="-qt-paragraph-type:empty; margin-top:0px;
      margin-bottom:0px; margin-left:0px; margin-right:0px;
      -qt-block-indent:0; text-indent:0px;"><br>
    </p>
    <p style="-qt-paragraph-type:empty; margin-top:0px;
      margin-bottom:0px; margin-left:0px; margin-right:0px;
      -qt-block-indent:0; text-indent:0px;">3. You can add PDF
      (pdflatex) to Preferences by yourself. Did you try that?<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:</pre>
  </body>
</html>