GeneralAccessing LaTeX counters within R Code

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
blukomski
Posts: 1
Joined: Tue Jul 20, 2021 7:26 pm

Accessing LaTeX counters within R Code

Post by blukomski »

Hello!

I'm looking to access a LaTeX counter within an R chunk. This chunk is within a forloop, with the counter increasing by one after each iteration. Is there any way to do this, or does anyone know of a workaround?

Thanks!

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Accessing LaTeX counters within R Code

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

I don't know how R should be able to do it. But perhaps it could be done within LaTeX itself? Perhaps show (with code) what you would like to achieve.

Stefan
LaTeX.org admin
Post Reply