Re: Lyx with Codex/Claude-Code?
Neal Becker via lyx-users <[email protected]> Sun, 24 May 2026 17:06:09 -0400
| Newsgroups | gmane.editors.lyx.general |
|---|---|
| Message-ID | <CAG3t+pHCvXJ2-swCMedF+oQBCYTD1Zc6iFiLxukYzC=T4Txtmg@mail.gmail.com> |
--===============9032076787963465649== Content-Type: multipart/alternative; boundary="0000000000002f5f03065296a281" --0000000000002f5f03065296a281 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable *Those who don't understand recursion are doomed to repeat it* On Sun, May 24, 2026, 4:51=E2=80=AFPM Bernt Lie via lyx-users < [email protected]> wrote: > In Google AI Studio, it is trivial to ask for a response to be latex code > in a single code block. Then just copy the code block, paste it into an > ASCII editor, save it as a tex file, and import into LyX as plain latex > > It would surprise me if this is not possible in Claude. > > The integration could be simpler, and it would be great if LyX could use > such tools to rewrite the LyX document from within LyX > > > > Sent from Outlook for Android <https://aka.ms/AAb9ysg> > ------------------------------ > *From:* lyx-users <[email protected]> on behalf of Eberhard > W Lisse via lyx-users <[email protected]> > *Sent:* Sunday, May 24, 2026 10:06:33 PM > *To:* [email protected] <[email protected]> > *Subject:* Re: Lyx with Codex/Claude-Code? > > Alex, > > I am doing a bit of vibe coding with CLaude at the moment. > > It's rather trivial to pandoc from Markdown to Typst. > > Pandoc obviusly also works for LaTeX but the importing into LyX is not > easy. You could however rewrite Pandoc's LaTeX Template to be as plain > or rather LyX-aware as possible, so you can import into LyX. > > I most however confess that VS Codium (set up to use the Code > Marketplace) and Typst (using the Tinymist LSP) are making me use LyX > less and less. > > el > > On 2026-05-24 19:00, Alex Boche via lyx-users wrote: > > I'm wondering if anyone has found a good workflow for using one of the > > agentic coding tools with LyX for mathematical writing? > > > > I found Codex and Claude Code very useful for coding in VS Code > > together with Git. I suspect they will be very useful for mathematical > > writing as well, but I'm not sureif they will work well with LyX. I > > have found ChatGPT can generate and modify Lyx files usefully, but I > > haven't tried it with Codex or Git yet. > > > > If I want to make heavy use of these tools, is it recommended to > > switch to LaTeX or is there a good LyX solution? At some point, I > > might look into Typst as well. > > > > Thank you, > > Alex > I've used codex usually to produce beamer slides. I haven't tried to produce lyx directly. Codex produces latex which I can import to lyx. Unfortunately that doesn't work perfectly, probably due to issues in latex2lyx. The last time I tried it I decided it wasn't worth the effort to fix after import and just worked with the latex. I suppose I should sit down and try to debug it. > > --0000000000002f5f03065296a281 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><= div data-smartmail=3D"gmail_signature" dir=3D"auto"><div dir=3D"ltr"><i>Tho= se who don't understand recursion are doomed to repeat it</i></div></di= v><br><div class=3D"gmail_quote gmail_quote_container" dir=3D"auto"><div di= r=3D"ltr" class=3D"gmail_attr">On Sun, May 24, 2026, 4:51=E2=80=AFPM Bernt = Lie via lyx-users <<a href=3D"mailto:[email protected]">lyx-users@= lists.lyx.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex"> <div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> In Google AI Studio, it is trivial to ask for a response to be latex code i= n a single code block. Then just copy the code block, paste it into an ASCI= I editor, save it as a tex file, and import into LyX as plain latex=C2=A0</= div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> <br> </div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> It would surprise me if this is not possible in Claude.=C2=A0</div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> <br> </div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> The integration could be simpler, and it would be great if LyX could use su= ch tools to rewrite the LyX document from within LyX=C2=A0</div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> <br> </div> <div dir=3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-sys= tem,Roboto,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> <br> </div> <div id=3D"m_8999612940553210569ms-outlook-mobile-body-separator-line" dir= =3D"auto" style=3D"font-family:Aptos,Aptos_MSFontService,-apple-system,Robo= to,Arial,Helvetica,sans-serif;font-size:12pt"> <div style=3D"font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Ar= ial,Helvetica,sans-serif;font-size:12pt"> <br> </div> </div> <div id=3D"m_8999612940553210569ms-outlook-mobile-signature" dir=3D"auto" s= tyle=3D"font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,He= lvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)"> <span style=3D"font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,A= rial,Helvetica,sans-serif;font-size:12pt;color:rgb(33,33,33)">Sent from </span><a href=3D"https://aka.ms/AAb9ysg" style=3D"font-family:Aptos,Aptos_= MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif;font-size:12p= t" target=3D"_blank" rel=3D"noreferrer">Outlook for Android</a></div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_8999612940553210569divRplyFwdMsg" dir=3D"ltr"><font face=3D"Ca= libri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b> = lyx-users <<a href=3D"mailto:[email protected]" target=3D"= _blank" rel=3D"noreferrer">[email protected]</a>> on behal= f of Eberhard W Lisse via lyx-users <<a href=3D"mailto:[email protected]= yx.org" target=3D"_blank" rel=3D"noreferrer">[email protected]</a>>= ;<br> <b>Sent:</b> Sunday, May 24, 2026 10:06:33 PM<br> <b>To:</b> <a href=3D"mailto:[email protected]" target=3D"_blank" rel= =3D"noreferrer">[email protected]</a> <<a href=3D"mailto:lyx-users= @lists.lyx.org" target=3D"_blank" rel=3D"noreferrer">[email protected]= g</a>><br> <b>Subject:</b> Re: Lyx with Codex/Claude-Code?</font> <div>=C2=A0</div> </div> <div><font size=3D"2"><span style=3D"font-size:11pt"> <div>Alex,<br> <br> I am doing a bit of vibe coding with CLaude at the moment.<br> <br> It's rather trivial to pandoc from Markdown to Typst.<br> <br> Pandoc obviusly also works for LaTeX but the importing into LyX is not<br> easy. You could however rewrite Pandoc's LaTeX Template to be as plain<= br> or rather LyX-aware as possible, so you can import into LyX.<br> <br> I most however confess that VS Codium (set up to use the Code<br> Marketplace) and Typst (using the Tinymist LSP) are making me use LyX<br> less and less.<br> <br> el<br> <br> On 2026-05-24 19:00, Alex Boche via lyx-users wrote:<br> > I'm wondering if anyone has found a good workflow for using one of= the<br> > agentic coding tools with LyX for mathematical writing?<br> > <br> > I found Codex and Claude Code very useful for coding in VS Code<br> > together with Git. I suspect they will be very useful for mathematical= <br> > writing as well, but I'm not sureif they will work well with LyX. = I<br> > have found ChatGPT can generate and modify Lyx files usefully, but I<b= r> > haven't tried it with Codex or Git yet.<br> > <br> > If I want to make heavy use of these tools, is it recommended to<br> > switch to LaTeX or is there a good LyX solution? At some point, I<br> > might look into Typst as well.<br> > <br> > Thank you,<br> > Alex<br></div></span></font></div></div></blockquote></div><div dir=3D= "auto"><br></div><div dir=3D"auto">I've used codex usually to produce b= eamer slides.=C2=A0 I haven't tried to produce lyx directly.=C2=A0 Code= x produces latex which I can import to lyx.=C2=A0 Unfortunately that doesn&= #39;t work perfectly, probably due to issues in latex2lyx.=C2=A0 The last t= ime I tried it I decided it wasn't worth the effort to fix after import= and just worked with the latex.=C2=A0 I suppose I should sit down and try = to debug it.</div><div class=3D"gmail_quote gmail_quote_container" dir=3D"a= uto"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><font size= =3D"2"><span style=3D"font-size:11pt"><div><br></div></span></font></div></= div> </blockquote></div></div> --0000000000002f5f03065296a281-- --===============9032076787963465649== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users --===============9032076787963465649==--