I'm trying to modify the inner workings of parcolumns. I'm starting to understand the TeX macro "programming" language a bit but I have some issues.
In paracolumns there are three issues I want to resolve:
- Remove vertical space between rows
- Remove extra column space at end of column
- Make the above optional.
I've narrowed down, I think the problem to the first to the following code:
\vsplit\csname pc@column@\number\count@\endcsname to \dp\strutbox%
\vbox{\unvbox\@tempboxa}%
I've tried everything to remove the space that \vsplit is suppose to add but I get any different results.
Does
\csname pc@column@\number\count@\endcsname to \dp\strutbox%
Create a simple macro name by concatenating pc@column with the value in number and count?
The parcolumns code loops over the columns then the rows. It uses a \repeat and also recursively calls \pc@placeboxes. It has some code to check if the loop is currently at the last column and adds some \hfill. I think it does it ad
\ifnum\count@<\pc@columncount%
\strut\hfill%
\ifpc@rulebetween\vrule\hfill\fi%
\fi%
but commenting all this out doesn't change much if anything. (These are the only lines of code that have \hfill them)
I see
\define@key{parcolumns}{distance}{%
\@tempdimc#1\relax%
}%
Creates a keyvalue pair used in the options. I've tried to duplicate this without luck
\define@key{parcolumns}{extratopspace}{%
\@tempdimq#1\relax%
}%
but I get errors about \tempdimq not existing or whatever. The code looks to simply be assigning \tempdimc to the first argument and I don't see anywhere where \tempdimc is being initalized or created so I figure it is a internal temp variable but then \tempdimq should work(unless there are only a,b,c, and d as I've tried e).
Any ideas or useful comments? One of the biggest issues I have with the code is there is no indentation. Is it ok to indent code or will the whitespace cause problems? BTW, I just stumbled on this reference which seems pretty good: