Skip to main content

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
1 answer
63 views

Tabular, how to add up values of two cells automatically

I am wondering if there is any way that for each row of my table, latex calculates the sum of the two cells and writes it in the new cell. With the code below, I can automatically sum up the values of ...
nakisa's user avatar
  • 23
0 votes
0 answers
37 views

Apply collcell to only some of the tables in my document

I'd like to use the method shown here to color only some of the tables in my document. How can I specify which tables should be colored using collcell and which shouldn't? In addition, I would like to ...
Ofir P's user avatar
  • 11
2 votes
2 answers
467 views

Colorize column based on cell value

I have the following table which uses the S column type of siunitx. The code is given below. I would like to color the 4th and last columns according to the cell value, i.e. bigger values with a ...
Nicolas Früh's user avatar
0 votes
0 answers
54 views

Aligning multiple "decimal points" in table column (by expanding one column into multiple?)

I'm working a document with values that have multiple "decimal points" (historical units & currencies) and am trying to create a column type that can align these properly (like siunitx does for ...
meide's user avatar
  • 1,175
2 votes
1 answer
81 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)/...
CK2019's user avatar
  • 23
9 votes
1 answer
1k 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 ...
Peter Grill's user avatar
2 votes
1 answer
255 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 \...
Peter Grill's user avatar
3 votes
1 answer
112 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 ...
Jack's user avatar
  • 1,137
1 vote
0 answers
122 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,...
Jack's user avatar
  • 1,137
9 votes
1 answer
1k 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 ...
Right leg's user avatar
  • 201
3 votes
1 answer
260 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 ...
Werner's user avatar
  • 607k
1 vote
2 answers
911 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 ...
Gilles 'SO- stop being evil''s user avatar
5 votes
2 answers
165 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} ...
sgmoye's user avatar
  • 8,941
3 votes
2 answers
447 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 ...
Halil  Sen's user avatar
  • 277
3 votes
2 answers
611 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 ...
benni's user avatar
  • 197
4 votes
1 answer
242 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} % ...
user2146441's user avatar
  • 1,226
9 votes
1 answer
5k 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 ...
user2960474's user avatar
9 votes
1 answer
194 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 ...
Peter Grill's user avatar
5 votes
1 answer
1k 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 ...
Peter Grill's user avatar
3 votes
1 answer
278 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 ...
Marcos's user avatar
  • 5,462