Questions tagged [collcell]

{coll­cell} is a package to col­lect con­tents of a tab­u­lar cell as ar­gu­ment to a macro. It does not sup­port ver­ba­tim ma­te­rial in­side the cells.

Filter by
Sorted by
Tagged with
2
votes
1answer
33 views

Generating Heatmap with collcell, but with the number inside with comma

\documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \def\colorModel{hsb} \newcommand\ColCell[1]{ \pgfmathsetmacro\compA{(#1-90)/...
9
votes
1answer
363 views

Tabular with conditional rows based on content

I would like to define appropriate column types which suppress an entire row of a table if all of the columns (besides the title column, ie the first column) are empty. That is, with the tabular ...
2
votes
1answer
84 views

Using collcell package with tabularx X columntype

I would like to use the X column type from the tabularx with the collcell package. In the MWE below, I define: \newcolumntype{R}{>{\collectcell\TitleColumn}{r}<{\endcollectcell}}% works \...
3
votes
1answer
62 views

Test which macro is called in tabular

I want to test if a certain macro is called in a tabular. The MWE illustrates that. But the result is always 'No'. How can I achieve what I want, without changing macro \Cl (which is just a ...
0
votes
0answers
43 views

Howto create a new cell in tabular when using \collectcell

I have to display a table with 6 columns, the last 2 cells of each row are calculated from the first 4. In the MWE this calculation is simulated by just displaying these values connected with a hyphen,...
8
votes
1answer
354 views

Applying a command to a whole column spawning “\ignorespaces”

I am trying to apply a styling command to every cell of a table's column. I define a new command invoking minted: \newcommand{\ccode}[1]{\mintinline{c}{#1}} And then, I apply this command in the ...
3
votes
1answer
125 views

Row/column indexing using collcell

I'm trying to replicate the row/column indexing behaviour presented in Counters for use in array/tabular cells using collcell. However, the collection and printing mechanism (and therefore any ...
1
vote
1answer
335 views

Using \collectcell in {tabu}

I have a document with tables where I automatically create cross-references based on the contents of some cells. For this, I use the collcell package to pass the cell contents to a macro. I'm ...
4
votes
2answers
104 views

Trying to use collcell.sty with an optional argument

I'm trying to use collcell.sty with xparse. If I have macro with an optional argument, using it with collcell.sty does not seem to pick up the optional argument. For example: \documentclass{article} ...
3
votes
1answer
231 views

Is there an incompatibility between collcell, longtable, and/or arydshln?

In the past (may be last year or so), I have used these three packages together successfully (and produced a conditionally colored long table). That tex file still compiles nicely; however, the ...
3
votes
2answers
443 views

top alignment of table in table

I have a small :) problem with latex. I wanted to put an enumeration into a tabular, but this didn't work. Than I worked on a workaround ending up with the following code. My Problem: The cells are ...
4
votes
1answer
89 views

Combining collcell with input

The following code works perfectly: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{collcell} %The min, mid and max values \newcommand*{\MinNumber}{0.0}% \newcommand*{\MidNumber}{0.5} % ...
9
votes
1answer
4k views

Automatic cell colouring using cellcolor: Undefined Control Sequence

I am trying to produce a table, using tabularx, where the cells are coloured automatically depending upon their value. I want to use the \cellcolor command as it will fill the whole cell, rather than ...
9
votes
1answer
120 views

Can't use collectcell within environment on last column if missing trailing \\ on last line

Well it's embarrassing question time again. What am I doing wrong here with the collcell package? I have used this pacakge often, but am stumped on this trivial example. I have defined a ...
4
votes
1answer
734 views

Using collcell package with csvsimple, or datatool

I was trying to compose an answer to Bold one cell in table using CSV reader using the collcell package, and can't seem to get it to work either with the csvsimple tabluar, nor datatool. With the ...
3
votes
1answer
245 views

Switching text case with package collcell

I would like to use the package collcell to change the case of every string in a column of a tabuenvironment. I know there are workarounds to do this without resorting to the package, but none of ...