Document Classesreferencing a post calculated value...

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
GuntherReissig
Posts: 2
Joined: Fri Mar 18, 2022 12:50 pm

referencing a post calculated value...

Post by GuntherReissig »

This is a follow up question to https://latex.org/forum/viewtopic.php?t=20826.

I would like to modify the solution proposed by cgnieder (Tue Jul 03, 2012 11:09 pm) so that I can use the result of \getlastvalue{mycounter} further. I would like to be able to assign this number to a counter, and to use it to define the number of columns in a table as in \begin{tabular}{*\getlastvalue{mycounter}{c}} ... and so on.

How to do that?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply