Search found 5 matches

by FPantigny
Mon Jan 06, 2025 9:05 pm
Forum: Graphics, Figures & Tables
Topic: filling header cells with color
Replies: 1
Views: 10972

Re: filling header cells with color

The package nicematrix has tools designed to address that kind of problem.

More precisely, you may encounter two problems with colortbl :

Some rules seem to disappear. This is because many PDF viewers give priority to graphical element drawn posteriorly (which is in the spirit of the "painting ...
by FPantigny
Wed Apr 24, 2024 7:38 pm
Forum: Graphics, Figures & Tables
Topic: Choosing between table packages
Replies: 2
Views: 17960

Choosing between table packages

I suggest my package nicematrix , which, despite its name, is able to deal with tabulars. It loads the package array and can be used in conjunction with the package booktabs .

The main advantage of nicematrix is that it creates PGF/TikZ nodes under the cells, rows and columns. Several ...
by FPantigny
Wed Apr 24, 2024 7:27 pm
Forum: Graphics, Figures & Tables
Topic: Vertical lines breaking in table
Replies: 5
Views: 6470

Vertical lines breaking in table

For information, here is a way to create that table with {NiceTabular} of nicematrix. In this environment, the vertical rules are drawn even if the row is incomplete.


\documentclass[a4paper,14pt,oneside]{article}
\usepackage{nicematrix}

\begin{document}
\begin{table}[h]
\centering
\begin ...
by FPantigny
Thu Nov 02, 2023 9:34 am
Forum: Graphics, Figures & Tables
Topic: Table formatting
Replies: 4
Views: 19813

Table formatting

That's a classic problem: \cline is overwritten by the colored panels of \rowcolor .

Here is a easy to construct your table with {NiceTabular} of nicematrix. You need several compilations (because nicematrix uses PGF/TikZ under the hood).


\documentclass[journal]{IEEEtran}
\usepackage{nicematrix ...
by FPantigny
Wed Jul 26, 2023 10:42 pm
Forum: Math & Science
Topic: How to type complexity equation in overleaf
Replies: 2
Views: 17483

How to type complexity equation in overleaf

Here is a solution with nicematrix and the first column left-aligned (by using the command \SubMatrix in the so-called \CodeAfter .



\documentclass{article}
\usepackage{tikz}
\usepackage{nicematrix}

\begin{document}

\[
\begin{NiceArray}{lccccccccc}[first-row]
& n + 1 & \cdots & n + m & 1 ...