Reputation
4,012
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
6 18 57
Impact
~164k people reached

1d
comment Double backslash or \cr in \newcommand to be used in a table
@DavidCarlisle Yes, you are right, should have looken more carefully to the logs. See my comment on the accepted answer what the actual problem was.
1d
comment Double backslash or \cr in \newcommand to be used in a table
Thanks, The problem was not the \\ or \cr, but in my real world code I need more than 10 parameters and did not realize that only 9 are allowed... I found solutions there: tex.stackexchange.com/questions/2132/…
1d
accepted Double backslash or \cr in \newcommand to be used in a table
1d
asked Double backslash or \cr in \newcommand to be used in a table
1d
accepted How to sequentially “feed” a LaTeX document from external data source?
Jun
27
awarded  Good Question
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
@Alexey This was an option I also thought about. And it seems that it will be this or hardcoding LaTeX in the C source (or a mixture of both). The main reason for the original question was to find out if there's any LaTeX-own technology that one could use to make life easier. For example something like using \foreach \foo in KEYWORDS (where KEYWORDS gets replaced by C program), so that I can control the LaTeX source parameters from the C code, to make the "sequential" (sorry for this term) data input easier.
Jun
26
revised How to sequentially “feed” a LaTeX document from external data source?
more clear about the background
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
The C program in my case does quite a lot and is not simple. It originated 20 years or so ago and is in a production environment since then. I can't throw it away or exchange it by something else, only change the part that does the output to the text file.
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
@Alexey I have a termplate tex file, that has keywords in it. My C program does this: copy the template to a new name, subsitute the keywords with real data, and finally run pdflatex. The next time the C program runs, it does the same (copy template to working copy, replace Keywords with data, run pdflatex). Now, the problem is that some tables are not fixed-length, so I can not define 10 keywords, I need to define X keywords (variable). This is obviusoly not possible without using control structures somewhere in the LaTeX document.
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
The LaTeX compiler will run after the "feeding" is finished in my case. I feed the .tex file sequentially and after this is done, I run pdflatex on the complete .tex file. The question is how to repeat / feed LaTeX commands without hardcoding them outside of the .tex file? I think about using (La)TeX own control mechanisms somehow (loops, if-else), I'm just not sure on how to do this efficiently.
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
There is a very fundamental difference between (La)TeX and HTML: (La)TeX itself is a programming language, while HTML is not (HTML is a plain markup language). So, I can "assist" this wrapping process from within LaTeX with control structures (if-else), loops and so on. I could "feed" these programmatical parts also with keyword-subsitutions.
Jun
26
revised How to sequentially “feed” a LaTeX document from external data source?
added 355 characters in body
Jun
26
comment How to sequentially “feed” a LaTeX document from external data source?
@Alexey Currently the program produces space-separated raw text columns with a variable number of rows. I need to get this into LaTeX code without hardcoding LaTeX commands into my C program source. Updated question with a basic example.
Jun
26
asked How to sequentially “feed” a LaTeX document from external data source?
Jun
5
awarded  Famous Question
May
22
awarded  Nice Question
May
2
awarded  Nice Question
Apr
18
awarded  Nice Question
Mar
25
awarded  Nice Answer