Search found 10311 matches

by Stefan Kottwitz
Fri Jan 16, 2026 9:15 pm
Forum: LyX
Topic: Initial pains: for now, fonts
Replies: 3
Views: 585

Re: Initial pains: for now, fonts

Great! LuaTeX is often a better choice than XeTeX anyway, as the maintenance and future of XeTeX seem unclear.

Stefan
by Stefan Kottwitz
Fri Jan 16, 2026 8:54 pm
Forum: LyX
Topic: Side-by-side subfigures don't work for program listings
Replies: 2
Views: 532

Re: Side-by-side subfigures don't work for program listings

\includegraphics sets the baseline to the bottom. The baseline of your listing, top, is aligned with the baseline of the image, the bottom. A quick fix is to insert \vspace{0pt} right before the \includegraphics command; this way, the reference point will be the top, and both subfigures will be top ...
by Stefan Kottwitz
Thu Jan 15, 2026 12:38 pm
Forum: LyX
Topic: Initial pains: for now, fonts
Replies: 3
Views: 585

Re: Initial pains: for now, fonts

Hi,

welcome to the forum!

Are you sure that LyX is configured to use XeLaTeX? Because the default setting for LyX is pdfLaTeX (Document/Settings/Compiler), and that cannot use TTF fonts. On the other hand, you would get a fontspec error earlier because that cannot be used with pdfLaTeX at all. But ...
by Stefan Kottwitz
Wed Dec 31, 2025 2:45 pm
Forum: General
Topic: [Fix] LaTeX Error: Unknown message 'caption-code-by-class-deactivated' (tocbasic / KOMA-Script)
Replies: 2
Views: 1974

Re: [Fix] LaTeX Error: Unknown message 'caption-code-by-class-deactivated' (tocbasic / KOMA-Script)

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.

Stefan
by Stefan Kottwitz
Wed Dec 31, 2025 2:43 pm
Forum: General
Topic: \savebox in \newenvironment
Replies: 9
Views: 11619

Re: \savebox in \newenvironment

Hi Johannes,

welcome to the forum!

It's better to use a real environment here, take lrbox:

\documentclass{article}
\newsavebox{\mybox}
\newenvironment{myenviron}{%
\begin{lrbox}{\mybox}}{\end{lrbox}%
\usebox{\mybox}}
\begin{document}
\begin{myenviron}
This is a test.
\end{myenviron}
\end ...
by Stefan Kottwitz
Wed Dec 31, 2025 2:33 pm
Forum: LyX
Topic: suggestion: add supports for wsl texlive environment
Replies: 1
Views: 931

Re: suggestion: add supports for wsl texlive environment

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 ...
by Stefan Kottwitz
Sat Dec 20, 2025 1:55 am
Forum: Text Formatting
Topic: TEX software adds unwanted spaces and misaligns square brackets on the right
Replies: 4
Views: 1418

Re: TEX software adds unwanted spaces and misaligns square brackets on the right

Hi Eugenio,


Since I posted the actual code from my TEX document


That'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 ...
by Stefan Kottwitz
Thu Dec 18, 2025 1:32 pm
Forum: Text Formatting
Topic: TEX software adds unwanted spaces and misaligns square brackets on the right
Replies: 4
Views: 1418

Re: TEX software adds unwanted spaces and misaligns square brackets on the right

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, like

@code{OBJECT-COMPUTER}{},

or use @ before punctuation ...
by Stefan Kottwitz
Sun Dec 14, 2025 10:20 am
Forum: LaTeX Beginner's Guide
Topic: How can I write a matrix with more than 10 columns?
Replies: 1
Views: 94751

How can I write a matrix with more than 10 columns?

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 ...
by Stefan Kottwitz
Wed Nov 19, 2025 3:21 pm
Forum: LyX
Topic: Security Question: OpenSSL 3 DLLs (libcrypto-3.dll / libssl-3.dll) in Windows LyX
Replies: 1
Views: 1348

Re: Security Question: OpenSSL 3 DLLs (libcrypto-3.dll / libssl-3.dll) in Windows LyX

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 ...