The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
3answers
163 views

logarithm, sine, cosine etc evaluated in tabular

I know that I can use spreadtab to make automatic calculations in a tabular. However, I only managed to do simple operations like +-*/, but I have no idea how to make more complex ones like log, ln, ...
3
votes
1answer
25 views

global variables and/or array of variables

I'm looking for a way to obtain (in tex/latex - still difficult for me to determine the difference - I guess it should state latex) run-time defineable global variables to be used with the fp package. ...
1
vote
1answer
56 views

FP commands inside math mode

I face a strange problem running fp macros inside tabenum (tablists package) environment. I use fp to generate some values that are presented with a personal list environment based on tabenum. The ...
1
vote
2answers
80 views

\num with parameters in siunitx table

I have a couple of different methods to solve a diven problem and I want to compare them in a table. My aim is it to automatically add the relative deviation. I got some problems using siunitx within ...
2
votes
1answer
60 views

Using a fp variable in a longtabu header

So, I am using the tabu package (which I need to use over tabular others for several reasons) to make a long table spanning several pages. This table contains currency amounts in a column, and I'd ...
5
votes
1answer
91 views

TikZ's fixed point arithmetic not happy with arrows.meta

When I try to combine using the features of arrows.meta in a context where I'm also using fixed point arithmetic, I'm getting an error message. MWE: \documentclass[border=8pt]{standalone} ...
5
votes
2answers
316 views

Convert hours (as decimals) to fractions for billable-time invoice

I'm creating an invoice in LaTeX and I've entered the hours I've worked as decimals (for example, 1, 1.5, 0.75, 2.25), but I want to display those decimals as fractions (1, 1½, ¾, 2¼). (The reason ...
14
votes
3answers
226 views

fixed point arithmetic is all wacky now [closed]

Prior to Tikz 3.0, the use of \usepackage{fp}\usetikzlibrary{fixedpointarithmetic} would increase the accuracy of calculations. I haven't used these packages since the update. However, I tried them ...
2
votes
0answers
105 views

Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? Edit Thanks to egreg the node are more in harmony. Still : Is it possible to ...
3
votes
0answers
88 views

TeX capacity exceeded with a 13 columns 18 rows spreadtab

Originally I had a spreadsheet with 13 columns and 18 rows. Applying pdflatex or xelatex to this sheet I got: ... cell K15 ! TeX capacity exceeded, sorry [save size=80000]. Then I reduced the ...
11
votes
1answer
131 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. ...
3
votes
1answer
443 views

fp calculation variable

I want to do some calculations in a LaTeX document; the result of the first is used in the next calculation. I figured out that the fp package should do the job. Here is an example: ...
6
votes
1answer
216 views

Multiplication to macro argument

Since the baselineskip parameter for fontsize should better be 1.2 times of the font size, I'd like to define a macro which accepts only one argument and deduces the baselineskip from the font size. ...
13
votes
2answers
200 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} ...
9
votes
2answers
386 views

Fixed Point Arithmetic: Why does the fp work sometimes but others it errors?

Why does fixed point arithmetic like to error on parts of the code that aren't doing any math? I am using the package to improve the calculation of some angles I have it printing out, but it is ...
3
votes
1answer
751 views

fp package documentation

Where can I find more information on the fp package? I have been to ctan and the author even has better documentation as a todo. http://www.ctan.org/tex-archive/macros/latex/contrib/fp/ The reason ...
5
votes
1answer
108 views

How to seed \FPseed with a value that is unique for every compilation?

How to seed \FPseed with a value that is unique for every compilation? Is there a LaTeX macro to get the CPU tick so I can use it to seed? \documentclass{article} \usepackage{fp} \begin{document} ...
0
votes
1answer
96 views

Error using tkz-euclide and \tkzIntersectionCC[R]

The tkz-euclide and \tkzIntersectionCC[R] produces: FP error #1: "Logarithm of negative value!" The code: \begin{tikzpicture} \tkzDefPoint(0,14.5){centerClip} ...
7
votes
3answers
268 views

\def function with arithmetic macro

I have been writing multiple equations to use for exam writing. I have made some new macros that display a positive sign in front of an expression for positive numbers and display no sign for ...
2
votes
0answers
46 views

How to throw an error and abort the compilation for the following scenario? [duplicate]

Objectives: I want to throw exceptions (or error messages) when the following illegal code is invoked. \const[c,any]{temp}{\f[\i]} \const[others]{temp}{\f[\i]} Minimal Working Example: I cannot ...
7
votes
2answers
188 views

How to parse optional arguments without keyval?

The current implementation only supports rounding with the specified digits in the optional arguments. \documentclass{beamer} \usepackage{multido} \usepackage{pstricks} \usepackage[nomessages]{fp} % ...
1
vote
1answer
133 views

What causes this error? [closed]

After seeing Herbert's answer, apparently this problem should not occur if I realized the first row of the following code should be \documentclass{beamer}. Problems often come from not knowing what I ...
4
votes
2answers
364 views

Is there a smart way to get a consistent accuracy with fp package?

Is there a smart way to get a consistent accuracy with fp package? I don't want to use round for sure! \documentclass[preview,border=12pt]{standalone} \usepackage[nomessages]{fp} ...
4
votes
1answer
109 views

How to implement a constant declarating macro to behave differently in preamble and pspicture?

The example below is extremely trivial just to illustrate the problem in the simplest way. \documentclass{beamer} \usepackage[nomessages]{fp} % constants declarator \def\LoadConstants{}% to load ...
3
votes
1answer
191 views

passing random variable to fp function

I am trying to create a command that will display a "+" sign for positive numbers and no sign for numbers within the esami package. I believe that the issue is the format of the random variable that ...
9
votes
1answer
244 views

What makes my line get shifted to the left when I invoke \LoadConstants?

In the beginning I use the following code. So far so good. \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} \usepackage[nomessages]{fp} \def\LoadConstants{} ...
10
votes
5answers
501 views

How to create a “delay expansion” environment?

I don't want to use the following \begingroup \edef\next{\endgroup \noexpand\const{Xp}{\X(tp)} \noexpand\const{Yp}{\Y(tp)} \noexpand\const{Xf}{\X(tf)} \noexpand\const{Yf}{\Y(tf)} ...
5
votes
2answers
160 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 ...
2
votes
1answer
215 views

Updating floating point number in animation

I'm trying to have an animated tikz graph with floating point values. While I can use floating point values as parameters for the graph, I can't seem to find a way to do so for displayed equations. ...
2
votes
1answer
358 views

How to pass a macro output to \FPeval?

How to pass a macro output \X{Tpeak} to \FPeval\Ypeak as shown in the following code? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \usepackage[nomessages]{fp} ...
-2
votes
1answer
240 views

Data conversion (datatool, fp) [closed]

Ich bin auf der Suche nach einer Möglichkeit aus einer Datei folgender Struktur 1,a 2,a 2,a 2,a 3,a 3,a 4,a 4,a 4,a 4,a 5,a 5,a 6,a 6,a 7,a folgendes zu machen 1 1 2 3 3 2 4 4 5 2 6 2 7 1 (Das A ...
3
votes
1answer
343 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$ ...
2
votes
3answers
751 views

macros that won't accept other macros as arguments

I'm trying to pass a counter to a macro that uses macros from the fp package. I can pass hard coded values and \results from the fp package BUT if I pass the counter it complains that it is not a ...
3
votes
1answer
179 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}% ...
8
votes
2answers
767 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 ...
4
votes
2answers
427 views

Strange expansion of a macro inside an environment

I'm, I should confess, a total newbie. I'm trying to generate invoices with LaTeX, so I'm using the fp package. But the strange thing is that calculations occur many times when they should only ...
6
votes
2answers
316 views

Name scoping issue (probably)

I'm trying to solve what is clearly a name scoping problem and don't know how to do it. (This discussion is extracted from a poorly-formed question about the same code that I posted yesterday; I've ...