The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
1answer
108 views

Make an index of historical time periods

I'm writing my thesis & I want to make an index with centuries, years, month, day, event & historical periods. So I try to build some commands, but unsatisfactory, I'm looking for your help. ...
8
votes
2answers
723 views

Format numbers as a fraction of pi with tikz \pgfmathprintnumber

I'd like to be able to output something like \frac{\pi}{2} for a input number like .5*pi automatically. I've played a bit with some of the number printing macros available with tikz (closely linked ...
3
votes
1answer
271 views

convert outcome of reference to regular number

Is it possible to transform the outcome of a reference (e.g., a line number) to a regular number that I can use in a calculation? I have this (and works fine): \FPeval{\result}{clip(5+6)} $\result$ ...
13
votes
2answers
165 views

Replacing dots with comma in `fp` result

I am using fp to add a few values in LaTeX. How can I replace the . in \erg with a comma (In Germany the comma is used as decimal mark). \documentclass{minimal} \usepackage{fp} \begin{document} ...
5
votes
2answers
140 views

Odd results using FP package inside table environment

I'm trying to create a number of running totals using the FP package. I define a macro for adding numbers to a running total and then I define a macro to output the final value. The problem I'm ...
3
votes
1answer
166 views

Issue with fp “missing number” macro

I write an fp macro that calculates the distance between frets on a guitar neck: \def\ScaleLength{25.5} \def\ScaleFactor{0.1} \def\FretDist#1{\FPmul\resulta{-1}{#1}% \FPdiv\resulta{\resulta}{12}% ...