# Tag Info

4

There is no problem in using ordinary latex counters to keep track of the total. Just use \addtocounter to add up marks and then print the total at the end. With your sliders there are two issues: First, tikz expects numerical coordinates yet your macro asks it to make (5cm,0) into a coordinate: just use (5,0). Secondly, you are trying to position the ...

3

I think there are a couple things going on here. The first, \zposy returns the vertical position as measured from the bottom of the page. In this next example, I dispense with using the calc package and use \dimexpr from e-TeX. I believe this will give you the results you want: \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{lipsum} ...

1

I'm confused as it seems that the red times at the end of the rows are just the durations that are added to \startTime and that the red entry at the bottom of the second column is just the initial start time...so all you need to do is remember these values. Assuming this is the case if you add these definitions to your preamble: \newcounter{top} ...

4

In the answers to the linked question, \textwidth is used, which is a length parameter for TeX, so the syntax rules allow 4\textwidth (or any decimal number instead of 4). When TeX is looking for a length, it expands tokens as it goes. Since it expects a length and it has seen -0.5 it expands the next token which might result in something that continues the ...

7

Prefixing a "variable" with a number, for example, 4\textwidth only works if the variable is a TeX dimension or skip or box dimension. This is consistent with usual TeX behaviour. As the latest PGF manual states (section 88.1 "Commands for Parsing Expressions") The parser will recognize TEX registers and box dimensions, so \mydimen, 0.5\mydimen, ...

Top 50 recent answers are included