LaTeX.org is a TeX and LaTeX forum, suited for LaTeX beginners and experts who help them. Here are the newest questions. Sorry that the code formatting is not preserved through the RSS feed.

  • LyX • Emacs key bindings
    by symptom-heap-chuck on January 5, 2026 at 6:33 pm

    Can LyX be configured to use Emacs navigation key-bindings, like ctrl-n and ctrl-p for down/up, without replacing any of the existing bindings?Statistics: Posted by symptom-heap-chuck — Mon Jan 05, 2026 8:33 pm

  • Page Layout • Re: weird visual bug
    by roken on January 2, 2026 at 3:57 pm

    exactly, thanks a lot Statistics: Posted by roken — Fri Jan 02, 2026 5:57 pm

  • Page Layout • Re: weird visual bug
    by Haiopaio on January 1, 2026 at 5:15 pm

    In cell no.1 you may have set inadvertently multirow. Remove the checkmark in table settings and you are done.Statistics: Posted by Haiopaio — Thu Jan 01, 2026 7:15 pm

  • Page Layout • weird visual bug
    by roken on January 1, 2026 at 11:23 am

    hi i have a weird bug in my file : in the first exercice, the first item appears higher.I linked 2 images to show the Lyx Interface and result, and another link to the file. calcul de dérivés.lyxStatistics: Posted by roken — Thu Jan 01, 2026 1:23 pm

  • General • Re: [Fix] LaTeX Error: Unknown message 'caption-code-by-class-deactivated' (tocbasic / KOMA-Script)
    by Stefan Kottwitz on December 31, 2025 at 12:45 pm

    Hi gwadasly,welcome to the forum!Thanks for letting us know! It's indeed helpful to post your fix here in the forum, as people may find it later when googling for such a fix, so thanks for that.StefanStatistics: Posted by Stefan Kottwitz — Wed Dec 31, 2025 2:45 pm

  • General • Re: \savebox in \newenvironment
    by Stefan Kottwitz on December 31, 2025 at 12:43 pm

    Hi Johannes,welcome to the forum!It's better to use a real environment here, take lrbox:Code: \documentclass{article}\newsavebox{\mybox}\newenvironment{myenviron}{%\begin{lrbox}{\mybox}}{\end{lrbox}%\usebox{\mybox}}\begin{document}\begin{myenviron}This is a test.\end{myenviron}\end{document}StefanStatistics: Posted by Stefan Kottwitz — Wed Dec 31, 2025 2:43 pm

  • LyX • Re: suggestion: add supports for wsl texlive environment
    by Stefan Kottwitz on December 31, 2025 at 12:33 pm

    Hi,welcome to the forum!You can use a Windows TeX Live within WSL by calling them with the .exe extension, such as "pdflatex.exe filename".And you can install and use TeX Live completely in WSL using the wsl command before, such as "wsl pdflatex filename".Looks to me like what you request is already supported.If you have further suggestions or need a specific feature, you could post an issue to the TeX Live GitHub page or discuss in the TeX Live mailing list, as this is a general LaTeX users' forum here. But of course feel free to talk here as well. StefanStatistics: Posted by Stefan Kottwitz — Wed Dec 31, 2025 2:33 pm

  • General • [Fix] LaTeX Error: Unknown message 'caption-code-by-class-deactivated' (tocbasic / KOMA-Script)
    by gwadasly on December 31, 2025 at 9:08 am

    Hi everyone,I recently updated MiKTeX (December 2025) and encountered a breaking error when compiling my thesis. I managed to fix it and wanted to share the solution here to help others.**The Error:**! LaTeX Error: Unknown message 'caption-code-by-class-deactivated' for module (LaTeX) 'tocbasic'.**The Cause:**It seems to be a bug in the latest version of `tocbasic.sty` (v3.49). The package tries to use an error message before it is actually defined in the file.**The Solution (Workaround):**You need to manually edit the file `tocbasic.sty` in your LaTeX distribution folder (e.g., `.../tex/latex/koma-script/tocbasic.sty`).1. Open `tocbasic.sty`.2. Search for the block starting with: \msg_new:nnnn { tocbasic } { caption-code-by-class-deactivated }ex : \msg_new:nnnn { tocbasic } { caption-code-by-class-deactivated } { Loading~of~class-dependent~code~for~package~caption3~prevented\MessageBreak line~context. } { The~caption3~package~attempts~to~detect~classes~known~to~it\MessageBreak using~a~number~of~heuristics~and,~if~necessary,\MessageBreak reload~class-dependent~code.\MessageBreak Unfortunately,~the~code~from~caption-koma.sto,~for~example,\MessageBreak is~no~longer~compatible~with~the~KOMA-Script~package~tocbasic\MessageBreak since~KOMA-Script~3.46.\MessageBreak Therefore,~the~tocbasic~package~attempts~to~prevent~these~files\MessageBreak from~being~loaded~by~pretending~to~caption3~that~a~standard~class\MessageBreak is~being~used.\MessageBreak Since~the~caption3~package,~as~part~of~the~caption~collection,\MessageBreak is~no~longer~maintained,~and~since~the~KOMA-Script~author~himself\MessageBreak is~trying~to~maintain~the~compatibility~of~the~caption~package\MessageBreak with~KOMA-Script,~this~is~currently~the~best~known~method\MessageBreak to~prevent~unnecessary~warnings~from~caption~or~caption3. } (It is located near the end of the file).3. Cut (Ctrl+X) this entire definition block.4. Paste (Ctrl+V) it at the beginning of the file, just after the `\ExplSyntaxOn` command.ex :\if@tocbasic@old@latex@found\else \ExplSyntaxOn % --- PASTE HERE--- \msg_new:nnnn { tocbasic } { caption-code-by-class-deactivated } { ... } { ... } % ------------------------------------------- \bool_new:N \g__tocbasic_patch_all_boolThis ensures the message is defined before `tocbasic` tries to trigger it.Hope this helps!Statistics: Posted by gwadasly — Wed Dec 31, 2025 11:08 am

  • LyX • suggestion: add supports for wsl texlive environment
    by tty2099 on December 31, 2025 at 3:51 am

    Actually, all my work is done within WSL. For commands like LaTeX, I just need to prefix them with 'wsl'. Using Linux package managers for common software is much more convenient. On Windows, maintaining package versions takes a lot of effort. While there are tools for this, they are often unsafe or require too much manual intervention. I strongly suggest adding support for TeX Live running in WSL to the Windows version.Statistics: Posted by tty2099 — Wed Dec 31, 2025 5:51 am

  • Text Formatting • Re: TEX software adds unwanted spaces and misaligns square brackets on the right
    by EugenioDiLorenzo on December 20, 2025 at 11:07 am

    Vincent Coen and I are updating and correcting the GnuCOBOL manual, trying to understand how to proceed by looking at what's in the files.I won't deny that sometimes we feel like converting everything into a Word or LibreOffice file, with which we'd be more familiar, but for now we insist on keeping everything as is, and we're managing, albeit with difficulty.Everything we have is on this site:https://sourceforge.net/p/gnucobol/code ... doc/guide/I believe they also contain everything necessary, such as the command files for creating PDFs.Here are also the PDFs created and updated each time.Unfortunately, as you may have guessed, we don't have the experience to figure out how to fix this annoying behavior on my own. We'd love our manual to be perfect, even aesthetically.I'm looking for help on this site, hoping to find someone who can give us the right direction.I don't need you to run tests for us, but I do need detailed instructions on how to proceed.Statistics: Posted by EugenioDiLorenzo — Sat Dec 20, 2025 1:07 pm

  • Text Formatting • Re: TEX software adds unwanted spaces and misaligns square brackets on the right
    by Stefan Kottwitz on December 19, 2025 at 11:55 pm

    Hi Eugenio,Since I posted the actual code from my TEX documentThat's not TeX code, it's texinfo code. Do you have a TeX code, possibly converted from texinfo .texi?could you tell me where I should apply your suggestion?Before the punctuation symbols. I cannot test it for you without a compilable file and information how to convert that to PDF. A simple texinfo call doesn't work here.StefanStatistics: Posted by Stefan Kottwitz — Sat Dec 20, 2025 1:55 am

  • Text Formatting • Re: TEX software adds unwanted spaces and misaligns square brackets on the right
    by EugenioDiLorenzo on December 19, 2025 at 5:26 pm

    Hello Stefan,and thank you so much for your reply. Unfortunately, your suggestion isn't clear to me.Since I posted the actual code from my TEX document, could you tell me where I should apply your suggestion ?Something like the following ?@verbatiminclude SYN-\fileinfo\.texi{}or@verbatiminclude SYN-\fileinfo\.texi@Or should it be placed in the command inside the macro ?@diagram{Complete GnuCOBOL Program,Complete-Program-Info,Complete-Program-Info,None}{}or@diagram{Complete GnuCOBOL Program,Complete-Program-Info,Complete-Program-Info,None}@Or somewhere else?PS. Just so you know, the complete document (the GnuCOBOL Programmer's Guide, nearly 1,000 pages) can be found here:https://sourceforge.net/p/gnucobol/code ... doc/guide/Statistics: Posted by EugenioDiLorenzo — Fri Dec 19, 2025 7:26 pm

  • General • Re: \savebox in \newenvironment
    by Johannes on December 18, 2025 at 2:52 pm

    With \bgroup and \egroup instead of the braces:Code: \documentclass{article}\usepackage{ntheorem}\newsavebox{\mybox}\newenvironment{myenviron}{%\savebox{\mybox}\bgroup}{\egroup%\usebox{\mybox}}\begin{document}\begin{myenviron}This is a test.\end{myenviron}\end{document}This is how we implemented a new enviroment, and it worked at least until 2019. Today it returns...! Missing } inserted.<inserted text> }l.16 \begin{myenviron} ?Can anyone tell me what has been changed since then?Statistics: Posted by Johannes — Thu Dec 18, 2025 4:52 pm

  • Text Formatting • Re: TEX software adds unwanted spaces and misaligns square brackets on the right
    by Stefan Kottwitz on December 18, 2025 at 11:32 am

    Hi Eugenio,welcome to the forum!I think it's not TeX inserting additional spaces, but that's done by texinfo, which controls whitespace and adds its own punctuation spacing rules. To prevent spacing, you may use {} after a command, likeCode: @code{OBJECT-COMPUTER}{},or use @ before punctuation to suppress a space, likeCode: @code{OBJECT-COMPUTER}@,Try both at such a place and see if @ or {} helps at that point.StefanStatistics: Posted by Stefan Kottwitz — Thu Dec 18, 2025 1:32 pm

  • General • Packages to reveal formatting
    by Nouber on December 16, 2025 at 10:05 am

    Hi,I need to run my work by an editor who isn't familiar with LaTeX and usually relies on options provided by Word and pilcrow signs. I would like to make this process as smooth and easy as possible for the both of us, so I would like to compile a second version of my final draft where all the relevant info is overlaid on the page or printed on a separate page.So far I have found the layout package and I am using the option showframe with the geometry package for the general formatting. I would like to also display the size of spaces after/before a figure or a list since this is something they are strict about. It would be grand if I could display that in terms of empty lines in my font size.Are there any other packages or ways to print things like the size of vertical space after a list environment in terms of the font size I am using, or all the information [verbose] on geometry gives, but on the PDF output itself? Sadly I will not have the opportunity to show any code or log files to the editor, so running the .log file or terminal output by them is not an option.Statistics: Posted by Nouber — Tue Dec 16, 2025 12:05 pm

  • Text Formatting • TEX software adds unwanted spaces and misaligns square brackets on the right
    by EugenioDiLorenzo on December 15, 2025 at 3:11 pm

    TEX software adds unwanted spaces and misaligns square brackets on the right In the source: https://sourceforge.net/p/gnucobol/code ... /2-1A.texithere is the macro: @diagram{Complete GnuCOBOL Program,Complete-Program-Info,Complete-Program-Info,None}which inserts the file: SYN-Complete-Program-Info.texiThis file contains some dots and ellipses...The right square brackets are correctly aligned in the source file but are misaligned in the PDF generated by TEX.Apparently, the right square brackets shift to the right when there is a period . or three periods ... in the line. TEX software adds unwanted spaces.This is part of source file: 2-1A.texi that call the macro "diagram" :@comment *********************************************************************@comment ** 2.1.17 Program Structure **@comment *********************************************************************@page@newsubsection{Program Structure}@diagram{Complete GnuCOBOL Program,Complete-Program-Info,Complete-Program-Info,None}This is the macro:@comment +-------------------------------------------------------------------+@comment | MACRO: diagram{title,fileinfo,filetex,note |@comment | |@comment | Insert a syntax diagram. Arguments are as follows: |@comment | title Title of Diagram |@comment | fileinfo "INFO" Format filename : SYN-<fileinfo>.texi |@comment | filetex "TeX" Format filename : SYN-<filetex>.texi |@comment | note Notes filename : NOTE-<note>.texi |@comment +-------------------------------------------------------------------+@macro diagram{title,fileinfo,filetex,note}@ifnottex@ifset SKELETON@sp 1@center =======================================================================@end ifset@center \title\ Syntax@center =======================================================================@sp 1@verbatiminclude SYN-\fileinfo\.texi@include NOTE-\note\.texi@end ifnottex@iftex@cartouche@smallformat@center @b{\title\ Syntax}@end smallformat@end cartouche@verbatiminclude SYN-\filetex\.texi@include NOTE-\note\.texi@end iftex@ifnottex@ifclear SKELETON@sp 1@center =======================================================================@end ifclear@end ifnottex@iftex@ifclear SKELETON@sp 1@center ------------------------------------------------------------------------------------------------------------------------@end ifclear@end iftex@end macrothis is the content of file: SYN-Complete-Program-Info.texi where right sqare brackets are vertical aligned:Code: [ IDENTIFICATION DIVISION. ] ~~ ~~~~~~~~ PROGRAM-ID|FUNCTION-ID. name-1 [ Program-Options ]. ~~~~~~~~~~ ~~~~~~~~~~~ [ ENVIRONMENT DIVISION. ] [ ~~~~~~~~~~~ ~~~~~~~~ ] [ CONFIGURATION SECTION. ] [ ~~~~~~~~~~~~~ ~~~~~~~ ] [ SOURCE-COMPUTER. Compilation-Computer-Specification. ] [ ~~~~~~~~~~~~~~~ ] [ OBJECT-COMPUTER. Execution-Computer-Specification. ] [ ~~~~~~~~~~~~~~~ ] [ REPOSITORY. Prototype-Specification... . ] [ ~~~~~~~~~~ ] [ SPECIAL-NAMES. Program-Configuration-Specification. ] [ ~~~~~~~~~~~~~ ] [ INPUT-OUTPUT SECTION. ] [ ~~~~~~~~~~~~ ~~~~~~~ ] [ FILE-CONTROL. General-File-Description... . ] [ ~~~~~~~~~~~~ ] [ I-O-CONTROL. File-Buffering-Specification... . ] ~~~~~~~~~~~ [ DATA DIVISION. ] [ ~~~~~~~~~~~~~ ] [ FILE SECTION. Detailed-File-Description... . ] [ ~~~~~~~~~~~~ ] [ WORKING-STORAGE SECTION. Permanent-Data-Definition... . ] [ ~~~~~~~~~~~~~~~ ~~~~~~~ ] [ LOCAL-STORAGE SECTION. Temporary-Data-Definition... . ] [ ~~~~~~~~~~~~~ ~~~~~~~ ] [ LINKAGE SECTION. Subprogram-Argument-Description... . ] [ ~~~~~~~ ~~~~~~~ ] [ REPORT SECTION. Report-Description... . ] [ ~~~~~~ ~~~~~~~ ] [ SCREEN SECTION. Screen-Layout-Definition... . ] ~~~~~~ ~~~~~~~ PROCEDURE DIVISION [ { USING Subprogram-Argument... } ] ~~~~~~~~~ ~~~~~~~~ [ { ~~~~~ } ] [ { CHAINING Main-Program-Argument... } ] ~~~~~~~~ [ RETURNING identifier-1 ]. ~~~~~~~~~ [ DECLARATIVES. ] [ ~~~~~~~~~~~~ ] [ Event-Handler-Routine... . ] [ END DECLARATIVES. ] ~~~ ~~~~~~~~~~~~ General-Program-Logic. [ Nested-Subprogram... ] [ END PROGRAM|FUNCTION name-1. ] ~~~ ~~~~~~~ ~~~~~~~~ TEX inserts unwanted spaces after the single dots and after ellipsis; it's unclear what the rule is, and this causes the right brackets to be misaligned.See attached image.How can I tell to TEX do not add spaces after dots and after ellipsis ?Statistics: Posted by EugenioDiLorenzo — Mon Dec 15, 2025 5:11 pm

  • LaTeX Beginner's Guide • How can I write a matrix with more than 10 columns?
    by Stefan Kottwitz on December 14, 2025 at 8:20 am

    Internally, amsmath uses an array environment with a number of columns set to MaxMatrixCols. That is a counter, intially set to 10. That's usually enough, but in case we need bigger matrices, we can modify the counter, also globally, by \setcounter{MaxMatrixCols}{<value>}. Here, we set the MaxMatrixCols value to 11, and now it compiles without error:Code: \documentclass{article}\usepackage{amsmath}\setcounter{MaxMatrixCols}{11}\begin{document}\[A = \begin{pmatrix}a_{11} & a_{12} & a_{13} & a_{14} & a_{15} & a_{16} & a_{17} & a_{18} & a_{19} & a_{10} & a_{11} \\a_{21} & a_{22} & a_{23} & a_{24} & a_{25} & a_{26} & a_{27} & a_{28} & a_{29} & a_{20} & a_{21} \end{pmatrix}\]\end{document}We get:Of course, we can also set it to a higher value. Btw. we had that question here earlier, in the topics Matrix Alignment Error and Problem with creating a matrix.StefanStatistics: Posted by Stefan Kottwitz — Sun Dec 14, 2025 10:20 am

  • Page Layout • Additional toc
    by clauer on December 11, 2025 at 9:00 am

    Hello, I’ve written a document (presets for my sound concert hall processor). After the theoretical description, I have about 50 rooms with their respective parameters. Now, I need a laminated handout and a page at the end listing the rooms.Attached the doc: Presets.texAny ideas?Statistics: Posted by clauer — Thu Dec 11, 2025 11:00 am

  • LyX • TikZ previews affected by LyX UI style?
    by symptom-heap-chuck on December 11, 2025 at 3:04 am

    It appears that TikZ previews are affected by the LyX user interface style?!When I have a regular white background and black text UI (preferences | look and feel | default UI style), I can enter LyX code wrapped by preview and have the preview show up as intended. HOWEVER, if I switch to a dark mode style (in my case, Adwaita-Dark), the TikZ previews change color and are so light they barely show up on my monitor.I attached my LyX file for reference: preview-not-working.lyxHere is what preview mode looks like when I have dark mode on:And this is what it looks like when the style is not dark mode:Ideally this shows me the diagram properly when I'm in dark mode. I don't care if it is white-on-black or black-on-white. How to make this work?Statistics: Posted by symptom-heap-chuck — Thu Dec 11, 2025 5:04 am

  • Graphics, Figures & Tables • Latex Include a Graphic File as the Cover Page
    by ranaya123 on December 6, 2025 at 8:19 am

    I am compiling my thesis using Latex, which eventually generates a PDF file. In addition to its textual content, I want to insert a graphical image (.png) as its cover page. This is what I am doing with the help of titlepic, pdfpages Latex packages.In my permeable: \usepackage{titlepic} \usepackage{pdfpages}\begin{document} \includepdf[pages=1]{./figures/ThesisCover.png} \end{document}Now this brings the following Latex error:! Undefined control sequence. l.31 \if@titlepage The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., \hobx'), type I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.Can anybody shed a light on how to solve this problem ?ThanksStatistics: Posted by ranaya123 — Sat Dec 06, 2025 10:19 am

  • Text Formatting • Re: Trouble converting from Overleaf to TeXStudio
    by Amissane on December 3, 2025 at 2:47 pm

    Hi,For comparison, I’ve been working with the BlabLaTeX online editor (https://www.blablatex.com), which doesn’t impose any compile-time limits, and my documents with biblatex compile normally This might help determine whether the issue is related to Overleaf’s reduced compile time or to the local TeX setup in TeXstudio.Statistics: Posted by Amissane — Wed Dec 03, 2025 4:47 pm

  • XeTeX • polyglossia sanskrit and numerals
    by frpatte on December 2, 2025 at 8:26 am

    Bonjour,I recently came across an issue with polyglossia and sanskrit: when you put\setdefaultlanguage{sanskrit} a "\requirepackage{devanagaridigits} is called which turns numbers in devanagari scipt.Is there a way to avoid (or correct) this ie. I want to be able to get numerals in latin script even if the text script is in devanagari.Thank you.PS1- What is the difference between \setdefaultlanguage{sanskrit} and \setmainlanguage{sanskrit}PS2- Where can we see all the dependencies of a command ie. be aware that \setdefaultlanguage{sanskrit} will require devanagaridigits for instance.... I discovered this problem thanks to an error message.F.P.Statistics: Posted by frpatte — Tue Dec 02, 2025 10:26 am

  • LyX • Implementing a custom module to support journalling?
    by symptom-heap-chuck on November 28, 2025 at 6:29 am

    Hi everyone.I use LaTeX to write journals with dated entries. The way I deal with the entries with a small bit of code and a new command:Code: % journal entry command\usepackage[en-CA]{datetime2}\newcommand{\journalentry}[2]{ \renewcommand{\thesection}{\DTMdate{#1}} % numbering to date \section{#2}}With this code, I can now create new journal entries with \journalentry{2025-01-01}{My Journal Title}. The content body shows the localized date as the "section number" for each entry.This works in LaTeX. I want to do this in LyX. Instead of having to insert TeX code every time I need to use \journalentry, I want to add an entry to the top-left drop down. I'm guessing what I would do is have two entries in the drop-down, one to set the next journal entry's date and then another to set the journal entry's title.I guess custom module would let me do this, but I cannot find any documentation on how to implement a custom module. How would I get started?Statistics: Posted by symptom-heap-chuck — Fri Nov 28, 2025 8:29 am

  • Text Formatting • Enotez + hyperref: Endnote links do nothing when using custom chapter-based headings (TeX Live 2024)
    by Jongomez on November 25, 2025 at 6:54 pm

    Hello,I’m working on a book project with endnotes grouped by chapter using the enotez package in TeX Live 2024.The goal is:Endnotes grouped by chapterChapter names replaced with custom titles (e.g. “KAPITULUA 1”, “HITZAURREA”, etc.)Hyperlinks working in both directions:Clicking the superscript in the text → jump to the noteClicking the note number → jump back to the reference in the text Current issueWith the code below:The custom endnote headers work perfectly (the generic “Notes for chapter X” text disappears).But hyperlinks stop working completely: clicking the superscript number in the text does nothing.It doesn’t jump to the note, nor to the AMAI-OHARRAK chapter.This happens consistently on TeX Live 2024.MWE(Uploaded here: main_nuevo_actualizado.tex — but reduced below for clarity.)[\newcommand{\GetChapterTitle}[1]{% \ifcsname ChapterTitle@#1\endcsname \csname ChapterTitle@#1\endcsname \else Chapter #1 \fi}% Custom mapping\expandafter\gdef\csname ChapterTitle@1\endcsname{HITZAURREA}\expandafter\gdef\csname ChapterTitle@2\endcsname{SARRERA}\expandafter\gdef\csname ChapterTitle@3\endcsname{KAPITULUA 1}% (… and so on)% Custom header override\makeatletter\renewcommand*\enotez@heading@chapter[1]{% \par\bigskip {\centering\Large\bfseries \GetChapterTitle{#1}\par} \medskip}\makeatotherEffects:FeatureWorks?Custom chapter titles in endnotes✔ WorksCorrect grouping of notes per chapter✔ WorksHyperlinks to notes BrokenHyperlinks back to text Broken QuestionIs there a way to keep the custom chapter-based endnote headings and preserve the hyperlink functionality?It seems that redefining \enotez@heading@chapter disables something internal related to hyperref anchors, but I don’t know how to restore it.Any hint, workaround, or correct approach is greatly appreciated.Thank you!Statistics: Posted by Jongomez — Tue Nov 25, 2025 8:54 pm

  • LyX • Re: Security Question: OpenSSL 3 DLLs (libcrypto-3.dll / libssl-3.dll) in Windows LyX
    by Stefan Kottwitz on November 19, 2025 at 1:21 pm

    Welcome to the forum!Those SSL libraries belong to Qt, right, LyX just uses Qt. LyX can use it to download from external repositories or sources such as remote BibTeX/biblatex sources, or via URL-inserted stuff. I don't work with LyX myself, but I can imagine it works when used locally without Internet access, just using the local TeX installation. So, an option may be removing the DLLs and telling users that LyX can be used without external parts (and ignoring Qt TLS warnings like “No functional TLS backend” / “incompatible OpenSSL” etc.Replacing with updated DLLs can be better, but it may require some testing (or research). Use the same kind of DLLs (64-bit) with the same major and minor versions, just patched. Test a bit, like inserting something from an external URL. If it survives a small test, then SSL/TLS should work in general.You could also ask on more official channels, such as the mailing lists, or give this a try.StefanStatistics: Posted by Stefan Kottwitz — Wed Nov 19, 2025 3:21 pm

  • LyX • Security Question: OpenSSL 3 DLLs (libcrypto-3.dll / libssl-3.dll) in Windows LyX
    by lyx_user1221 on November 19, 2025 at 9:31 am

    Dear LyX community,I am contacting you because i am evaluating the use of LyX in a corporate environment, and i have encountered a security compliance issue regarding the OpenSSL libraries distributed with the Windows version of LyX.Specifically, the LyX installation includes the following DLLs:libcrypto-3.dlllibssl-3.dllThe internal security tools have flagged these files as containing known OpenSSL 3.x vulnerabilities (based on current CVE reports).Updating LyX to a newer version did not resolve the issue, and replacing the DLLs manually is difficult without knowing which OpenSSL 3.x build is officially supported and compatible with the LyX Windows binaries.I would appreciate guidance on the following questions:Does LyX actively use OpenSSL on Windows, or are these DLLs only present because of Qt’s network module?In other words, is OpenSSL actually required by LyX, or only loaded when optional network features are used (e.g., update checks)?Is it safe and officially supported to replace the included libcrypto-3.dll and libssl-3.dll with patched OpenSSL 3.x DLLs from trusted sources (e.g., the Win64 OpenSSL builds)?If yes, are there specific version requirements, ABI constraints, or known compatibility issues?Is there a way to disable SSL/HTTPS functionality in LyX entirely, for environments where outbound network connections are blocked anyway?Are there any plans to update or decouple the bundled OpenSSL libraries in future LyX releases?This is an important question for corporate-wide deployment, because we need a clear and supportable mitigation that does not rely on sandboxing or user-level workarounds.Any information or recommendations from the LyX developers or experienced users would be very helpful.Thank you very much for your assistance,Statistics: Posted by lyx_user1221 — Wed Nov 19, 2025 11:31 am

  • Texmaker and TeXstudio • Re: How to create a Quick Build shortcut in TeXmaker?
    by PierreJ on November 17, 2025 at 10:53 am

    Thank you very much, Stefan! Will do that.By the way, user beware: going from TeXmaker v. 5 to v. 6 looks more like a 'downdate' than an update. I've noticed several problems. Among them, highlighted text is almost unreadable. Its colour is light grey, with a light blue background. Please see the attached image. Statistics: Posted by PierreJ — Mon Nov 17, 2025 12:53 pm

  • Texmaker and TeXstudio • Re: How to create a Quick Build shortcut in TeXmaker?
    by Stefan Kottwitz on November 16, 2025 at 4:25 pm

    I don't use TeXmaker, but if you don't find a solution in the editor, I suggest using a shortcut tool to register Cmd-T for that action. Sounds like a Macbook - I work on a Macbook too and use the BetterTouchTool for such keyboard actions, mouse and touch actions, as a screenshot tool, window switcher, and more.StefanStatistics: Posted by Stefan Kottwitz — Sun Nov 16, 2025 6:25 pm

  • Texmaker and TeXstudio • Re: Texmaker : Read only
    by PierreJ on November 16, 2025 at 10:20 am

    In the View menu, is the Source Viewer line checked? If so, uncheck it.Statistics: Posted by PierreJ — Sun Nov 16, 2025 12:20 pm

  • Texmaker and TeXstudio • How to create a Quick Build shortcut in TeXmaker?
    by PierreJ on November 15, 2025 at 1:11 pm

    TeXmaker's configuration window shows dozens of shortcuts, but I can't find the Quick Build one. I'd like to change the default Fn-F1 shortcut to Cmd-T (for Typesetting). In TeXmaker v. 5, I did that without any problem, but updating the app to v. 6 ruined my setting and the Quick Build line apparently disappeared from the list of shortcuts in the configuration window.Many thanks in advance for your help.Statistics: Posted by PierreJ — Sat Nov 15, 2025 3:11 pm

  • Fonts & Character Sets • Re: lmroman not loadable at 10pt
    by Stefan Kottwitz on November 13, 2025 at 11:25 am

    Hello Haines,this MWE doesn't show the error here - click on "Run LaTeX here":Code: \documentclass[]{book}\usepackage{fontspec}\begin{document}test\end{document}Can you post the .log file from the MWE that you compiled, containing the error, as an attachment?StefanStatistics: Posted by Stefan Kottwitz — Thu Nov 13, 2025 1:25 pm

  • Text Formatting • Re: Text formatting
    by Jongomez on November 12, 2025 at 11:20 am

    Thank you, Stefan!I’ll check the Language Support section in the enotez manual and see if I can adapt it to my case.I’ll post an update when I’ve tried it.Statistics: Posted by Jongomez — Wed Nov 12, 2025 1:20 pm

  • Text Formatting • Re: Text formatting
    by Stefan Kottwitz on November 11, 2025 at 8:32 pm

    There's a section "Language Support" in the enotez manual, does that help?StefanStatistics: Posted by Stefan Kottwitz — Tue Nov 11, 2025 10:32 pm

  • Graphics, Figures & Tables • Values in variations table
    by anlilou on November 11, 2025 at 5:40 pm

    HI! thanks for reading and helping me!I want to put to values in the variations table.ln(1)=0 and ln(e) =1and I'm becomming mad lolHere is my programm:\newline\newline\begin{tikzpicture}\tkzTabInit[lgt=3,espcl=2]{$x$ /1 , $\frac{1}{x}$ /1 , $\ln x$ /2 , signe de $\ln x$ /1}{0,1,,+\infty}\tkzTabLine{d, ,, + }\tkzTabVar{D-/ $-\infty$ , R/,R/,+/$+\infty$ }\tkzTabLine{d,- , z , , +, }\end{tikzpicture}\newline\newlineSo many thanks!!ALBStatistics: Posted by anlilou — Tue Nov 11, 2025 7:40 pm

  • Text Formatting • Text formatting
    by Jongomez on November 10, 2025 at 7:37 pm

    Subject: enotez (TeX Live 2024) — How to replace “Notes for chapter X” with custom titles when using split=chapter?Hello,I am using enotez on TeX Live 2024 with: Code: \usepackage{enotez}\setenotez{ backref = true, split = chapter, reset = true, list-name = {},}Code: Everything works correctly (links, numbering, grouping).The only remaining problem is that automatic titles like:Notes for chapter 0Notes for chapter 1...cannot be replaced with custom titles such as:HITZAURREASARRERAKAPITULUA 1...Earlier TeX installations allowed this with internal hooks, but in TL2024 the macro names changed and the older solutions no longer work.I inspected the code but did not find a public key or hook to override the generated headings when split=chapter.Here is a minimal reproducible example (full project with working hyperlinks): [MWE]https://www.overleaf.com/read/cpgkctnqvgjg#bc7ad8[/MWE]Question:What is the recommended way (or stable workaround) to replace the autogenerated headings when using split=chapter, without breaking enotez' hyperlink/backref logic?Thank you.Statistics: Posted by Jongomez — Mon Nov 10, 2025 9:37 pm

  • Fonts & Character Sets • lmroman not loadable at 10pt
    by Haines on November 7, 2025 at 8:07 pm

    Here is a mwe \documentclass[]{book} c \usepackage{fontspe} \begin{document} test \end{document}This is the error:(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric data not found or bad.<to be read again> relax l.116 ...lt\familydefault\seriesdefault\shapedefaultIf I comment the \usepackage{fontspe line, the mwe runs as it should.Haines BStatistics: Posted by Haines — Fri Nov 07, 2025 10:07 pm

  • Fonts & Character Sets • accessing libertinus
    by Haines on November 7, 2025 at 7:37 pm

    I did upgraded my operating system (devuan excalibur) and in so doing lost access to the libertinus font, even though I believe it is automatically comes with TexLive. I did register fonts for LaTeX. Here is a mwe \documentclass{memoir} \usepackage{libertinus} \begin{document} test \end{document} This produces the error: (/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty)[\directlua]:1: attempt to index a nil value (global 'fonts') stack traceback: [\directlua]:1: in main chunk. l.27 }I do not understand the error. Is it saying that there is an error at line 27 of texcomp.sty? Haines BrownStatistics: Posted by Haines — Fri Nov 07, 2025 9:37 pm

  • General • Re: case-statement conditional text
    by Shea12Shea12 on November 7, 2025 at 3:22 pm

    Thank you!Statistics: Posted by Shea12Shea12 — Fri Nov 07, 2025 5:22 pm

  • General • Re: case-statement conditional text
    by Stefan Kottwitz on October 28, 2025 at 5:15 pm

    Hi Alan,that's an excellent test example! Here's the improved code:Code: \documentclass{article}\usepackage{etoolbox}\begin{document}\newbool{customer1}\newbool{customer2}%...\newbool{customerN}\boolfalse{customer1}\booltrue{customerN}This is special information:\ifboolexpr{bool{customer1}}{%customer1 specific information}{%\ifboolexpr{bool{customer2}}{%customer2 specific information}{%\ifboolexpr{bool{customerN}}{%customerN specific information}{%No previous customers were matched}}}\end{document}In text, the end of a line is like a white space. So just take care that your macros don't insert line spaces just because the code line ends. Just comment out the line ending by a % where it should not cause a white space.That's the reason why you often can see percent signs at the end of lines in longer LaTeX macros that generate text, to avoid generating spaces. After a while one gets used to it and ends every macro code line with a % because the "end of line space" is only needed in text.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 7:15 pm

  • General • case-statement conditional text
    by Shea12Shea12 on October 28, 2025 at 4:55 pm

    Hello,In my continued search for various ways of creating conditional text, I'm looking for a good way to handle a case statements. One way of handling it is to use nested if statements, but the more cases your have the uglier/more-cumbersome it becomes, and I am also getting a weird spacing issue where the text is placed (large spacing after the colon).Is there a smarter way of handling this?Thank you for taking the time to read and reply,AlanExample nested statement, spacing issueCode: \documentclass{article}\usepackage{etoolbox}\begin{document}\newbool{customer1}\newbool{customer2}%...\newbool{customerN}This is general text all customers get.\booltrue{customer1}This is special information:\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customer2}}{customerN specific information}{No previous customers were matched}}}\boolfalse{customer1}\booltrue{customerN}Notice the larger spacing after the colon using customerNThis is special information:\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customerN}}{customerN specific information}{No previous customers were matched}}}\bigskipIf the text is on a new line, no spacing issue\booltrue{customer1}\boolfalse{customerN}\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customer2}}{customerN specific information}{No previous customers were matched}}}\boolfalse{customer1}\booltrue{customerN}\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customerN}}{customerN specific information}{No previous customers were matched}}}\end{document}Statistics: Posted by Shea12Shea12 — Tue Oct 28, 2025 6:55 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by Stefan Kottwitz on October 28, 2025 at 1:58 pm

    I get 0 errors. Perhaps post your updated code and the .log file you get with that code to see the exact error message and related information. I don't get an !Extra \fi error.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 3:58 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by gmbokoma_94 on October 28, 2025 at 1:43 pm

    Dear StefanThank you very much. I have tried re-positioning \usepackage{BSPMsample} but I am still getting the same error. I will probably try to avoid subcaption at all cost. Or is there anyway I can do it?Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 3:43 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by Stefan Kottwitz on October 28, 2025 at 10:59 am

    Sure, that's why I suggested keeping it, but moving it to a later place. If you have it on the top, first loaded, the other packages are not only interfering but can also change the journal's settings. If you move it to the end, it applies its settings later, when another package's settings cannot overwrite them. But if you don't have another error, you can keep that, the errors I got may be related to my local LaTeX version.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 12:59 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by gmbokoma_94 on October 28, 2025 at 10:23 am

    Thank you StefanThe \usepackage{BSPMsample} is a special package for journal submission that I am trying to submit my article too. I can not by pass it. Maybe their package does not support \subcaptionbox, otherwise everything else is good.Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 12:23 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by Stefan Kottwitz on October 28, 2025 at 10:11 am

    You have this line here:Code: \caption{ Numerical, exact solution and absolute error at $T = 5$, with $\Delta t = 0.1$, $\Delta x = 0.12 $ for %Eq.~(\ref{eq-27}).}Eq.~(\ref{eq-27}).} is commented out by that percent sign, so the closing brace is missing. Remove that % symbol.Also, I think better moveCode: \usepackage{BSPMsample}to the end of the preamble, right before \begin{document}, because it seems to interfere with the other packages otherwise.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 12:11 pm

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by gmbokoma_94 on October 28, 2025 at 8:52 am

    Hi StefanThank you so much.Kindly, see attached the attached file. I literally just cut the parts that is giving problem. Test.zipStatistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 10:52 am

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by Stefan Kottwitz on October 28, 2025 at 8:21 am

    A quick example to show that it's usually working:Code: \documentclass{article}\usepackage{subcaption,lipsum}\begin{document}\section*{Demo of subcaption with subcaptionbox}\lipsum[1]\begin{figure}[htbp!] \centering \subcaptionbox{First dummy image}[.45\linewidth]{% \fbox{\rule{0pt}{3cm}\rule{5cm}{0pt}}% }\hfill \subcaptionbox{Second dummy image (longer caption to show wrapping)}[.45\linewidth]{% \fbox{\rule{0pt}{3cm}\rule{5cm}{0pt}}% } \caption{Two subfigures created with subcaptionbox} \label{fig:main-fig}\end{figure}\lipsum[2]\end{document}StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 10:21 am

  • Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption package
    by Stefan Kottwitz on October 28, 2025 at 8:14 am

    Hi,welcome to the forum!There may be an error in your code. Perhaps post your code here as a small, reduced copy (complete with relevant preamble like \documentclass, etc.). That code should bring the error when we test it.Once we can test the code and see the error, we can fix it most of the time. Without code, a hint is rarely possible.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 10:14 am

  • Graphics, Figures & Tables • Getting Extra \fi error for using subcaption package
    by gmbokoma_94 on October 28, 2025 at 7:47 am

    Hi Kindly, assist with !Extra \fi error for subcaption package. The package is working perfectly for other projects but not working for this specific one. This error is rising from having \subcaptionbox inside the figure enviroment.Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 9:47 am

  • General • Re: input files with variable filenames
    by Amaydennis on October 28, 2025 at 6:23 am

    Working with LaTeX and input files that have variable filenames can be tricky, but using commands like \jobname or external scripts can help automate the process and make your workflow much smoother. While tackling complex document structures, it’s also important to stay mindful of personal wellness. For example, a intermittent fasting app can help you track your fasting windows, set reminders, and maintain consistency, making it easier to stay healthy even during long coding or writing sessions. Additionally, https://wellness-app.com/ offers a variety of tools and resources to support your overall well-being, helping you balance productivity and self-care in a structured way.Statistics: Posted by Amaydennis — Tue Oct 28, 2025 8:23 am