All Questions
286
questions
1
vote
1
answer
135
views
Creating LaTeX Macros to Generate Tables from Predefined Variables
I've been struggling for the past two days to create macros for populating a thesis title page, as I'm planning to share it as a template with my colleagues. As you all know, thesis title pages have ...
2
votes
1
answer
50
views
Function values in columns rather then rows with numerica-tables
Package numerica-tables helps create of multi-column tables of mathematical function values, the package arranges values on rows like in this simple example
\documentclass{article}
\usepackage{...
0
votes
1
answer
56
views
My defined macro doesn't work
I don't want to write \end{tabularx} at the end of each table, so I wanted to define a the following macro:
\newcommand\et{\endtabularx}
This works:
\documentclass{article}
\usepackage{tabularx}
\...
0
votes
0
answers
28
views
Interaction between pgfplotstable and a newcommand
I'm trying to generate a big table with informations that are comming from an external csv file that I have generated. I don't really understand what is going on in the following code.
I have defined ...
0
votes
1
answer
49
views
Number rows of table in decimal and hexadecimal with multiple counters
TL;DR My code to automatically number a table with two running counters in decimal and zero-padded hexadecimal (using the fmtcount and array packages) is not working.
I'm trying to automatically ...
0
votes
0
answers
14
views
Overfull hbox warning with table that is set to linewidth [duplicate]
The following command produces a table with two columns. No padding to the sides and a relative padding in between the columns. In sum, the width amounts to linewidth, or so I thought - I still get ...
0
votes
1
answer
80
views
Using \NewDocumentCommand to redefine a table rule [duplicate]
I was trying to redefine an old command \lightrule with the new syntax from xparse.
When I try to use \newlightrule unexpectedly it displays Misplaced \noalign error.
Minimal Working Example and ...
0
votes
1
answer
90
views
Command to create table of images
I have images like "1.png", "2.png"... And I have 1000-2000 those images and I need to create multiple tables of approximately 20-30 of them. I want to create the command to print ...
6
votes
1
answer
159
views
Macro to create entries in tabularray in user defined environment
I need a macro to create entries (rows) in a table. As proposed here I was successfully using the environ package together with the tabu one. Since tabu is not maintained, I decided to switch to ...
1
vote
0
answers
25
views
Add content in a global table located in the beginning of the document
I would like to generate a global table with entries that can be added with a command. I based myself on this post. The issue I have is that I can only display the table after I added all its entries. ...
2
votes
1
answer
45
views
How do I refer a table with custom numbering?
I have the following code that generates a table:
\documentclass[a4paper]{article}
\usepackage{booktabs}
\newcommand{\name}[4]{
\begin{table}[!htbp]
\centering
\begin{tabular}{p{\...
0
votes
1
answer
123
views
How to get gray background to top to bottom?
I really like this CV (the first screenshot) and the closest I have been able to find is this one (the second screenshot). The complete source code is here.
If I delete the first tcolorbox section and ...
1
vote
1
answer
67
views
How to write a table macro which ensures alignment of multiple tables on a page
I am trying to write a macro which will allow me to place work / educational experiences neatly on a page for a CV. To do this, I have designed a table, with three columns, and total width = \...
1
vote
1
answer
45
views
Defining a macro to automate putting Minted environments into tabular
I want to make a macro, \mintedInOutTable, that puts some code into a minted environment and then puts that in a tabular (for example, to show input and output to a REPL).
For this code,
\...
0
votes
1
answer
118
views
Defining a new environment/command to encapsulate a colorbox
I have the following working MWE file:
\documentclass{article}
\usepackage[rgb,dvipsnames,svgnames,table]{xcolor}
\usepackage{array}
\usepackage{booktabs}
%
\begin{document}
\begin{table}[!hbt]
\...