Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lstinline seems broken in non-first column in tables with texlive2022 #1870

Closed
HansOlsson opened this issue Jun 20, 2022 · 1 comment · Fixed by #1890
Closed

lstinline seems broken in non-first column in tables with texlive2022 #1870

HansOlsson opened this issue Jun 20, 2022 · 1 comment · Fixed by #1890
Labels
packages regression texlive 2022 specific to a texlive-2022 toolchain
Milestone

Comments

@HansOlsson
Copy link
Contributor

I don't have a small example, but basically it seems that using \lstinline in a tabular row eats all preceding columns (and thus it sort of works in the first column). A workaround seems to be to put \lstinline inside {}. It was not seen before using texlive2022.

modelica/ModelicaSpecification#3156 has an example of the result.
which can be generated from:
https://github.com/modelica/ModelicaSpecification/tree/8ddfa77f68b2e989a0fee22e2c604db8a4aeceb3

It seems to be corrected by e.g, replacing:

\begin{center}
\begin{tabular}{l l l l l}
\lstinline!algorithm! & \lstinline!discrete! & \lstinline!false! & \lstinline!loop! & \lstinline!pure!\\ \hline
\lstinline!and! & \lstinline!each! & \lstinline!final! & \lstinline!model! & \lstinline!record!\\ \hline
\lstinline!annotation! & \lstinline!else! & \lstinline!flow! & \lstinline!not! & \lstinline!redeclare!\\ \hline
& \lstinline!elseif! & \lstinline!for! & \lstinline!operator! & \lstinline!replaceable!\\ \hline
\lstinline!block! & \lstinline!elsewhen! & \lstinline!function! & \lstinline!or! & \lstinline!return!\\ \hline
\lstinline!break! & \lstinline!encapsulated! & \lstinline!if! & \lstinline!outer! & \lstinline!stream!\\ \hline
\lstinline!class! & \lstinline!end! & \lstinline!import! & \lstinline!output! & \lstinline!then!\\ \hline
\lstinline!connect! & \lstinline!enumeration! & \lstinline!impure! & \lstinline!package! & \lstinline!true!\\ \hline
\lstinline!connector! & \lstinline!equation! & \lstinline!in! & \lstinline!parameter! & \lstinline!type!\\ \hline
\lstinline!constant! & \lstinline!expandable! & \lstinline!initial! & \lstinline!partial! & \lstinline!when!\\ \hline
\lstinline!constrainedby! & \lstinline!extends! & \lstinline!inner! & \lstinline!protected! & \lstinline!while!\\ \hline
\lstinline!der! & \lstinline!external! & \lstinline!input! & \lstinline!public! & \lstinline!within!\\
\end{tabular}
\end{center}

by:

\begin{center}
\begin{tabular}{l l l l l}
{\lstinline!algorithm!} & {\lstinline!discrete!} & {\lstinline!false!} & {\lstinline!loop!} & {\lstinline!pure!}\\ \hline
{\lstinline!and!} & {\lstinline!each!} & {\lstinline!final!} & {\lstinline!model!} & {\lstinline!record!}\\ \hline
{\lstinline!annotation!} & {\lstinline!else!} & {\lstinline!flow!} & {\lstinline!not!} & {\lstinline!redeclare!}\\ \hline
& {\lstinline!elseif!} & {\lstinline!for!} & {\lstinline!operator!} & {\lstinline!replaceable!}\\ \hline
{\lstinline!block!} & {\lstinline!elsewhen!} & {\lstinline!function!} & {\lstinline!or!} & {\lstinline!return!}\\ \hline
{\lstinline!break!} & {\lstinline!encapsulated!} & {\lstinline!if!} & {\lstinline!outer!} & {\lstinline!stream!}\\ \hline
{\lstinline!class!} & {\lstinline!end!} & {\lstinline!import!} & {\lstinline!output!} & {\lstinline!then!}\\ \hline
{\lstinline!connect!} & {\lstinline!enumeration!} & {\lstinline!impure!} & {\lstinline!package!} & {\lstinline!true!}\\ \hline
{\lstinline!connector!} & {\lstinline!equation!} & {\lstinline!in!} & {\lstinline!parameter!} & {\lstinline!type!}\\ \hline
{\lstinline!constant!} & {\lstinline!expandable!} & {\lstinline!initial!} & {\lstinline!partial!} & {\lstinline!when!}\\ \hline
{\lstinline!constrainedby!} & {\lstinline!extends!} & {\lstinline!inner!} & {\lstinline!protected!} & {\lstinline!while!}\\ \hline
{\lstinline!der!} & {\lstinline!external!} & {\lstinline!input!} & {\lstinline!public!} & {\lstinline!within!}\\
\end{tabular}
\end{center}

There might be some other factor that I haven't discovered.

@dginev dginev added regression texlive 2022 specific to a texlive-2022 toolchain packages labels Jun 20, 2022
@dginev dginev added this to the LaTeXML-0.8.8 milestone Jun 20, 2022
@brucemiller
Copy link
Owner

Actually, I suspect that it was broken by the creeping "improvements" to alignments in LaTeXML, rather than a recent TeX-live. Fix on the way; Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages regression texlive 2022 specific to a texlive-2022 toolchain
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants