LyXBrand spanking new to LaTeX/LyX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
jtor14
Posts: 1
Joined: Wed Jul 06, 2011 8:13 pm

Brand spanking new to LaTeX/LyX

Post by jtor14 »

Hi,
I'm real new to latex and am already in over my head!

I'm using R, Sweave and Lyx to complicate things.

My first question is a doozie (I think).

I am making a auto generated monthly report with a bunch of R plots. I've gotten Sweave working but... month to month the title and type of plots will vary. Is there a way (using a for loop?) to dynamically assign the section/subsection headings based on the plots that I will generate? Say if I have R return a vector of plot titles to be used as section names?

Sorry I didn't give any reproducible code... but I haven't the foggiest as to where I would start!


Thanks for your help,
Justin

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Brand spanking new to LaTeX/LyX

Post by 5gon12eder »

Tough generally possible, doing such things inside LaTeX will almost certainly not be the first and also not the second way to go. My advise would be not to use LyX but write you a little script that produces the *.tex file.

Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply