Questions tagged [xint]
The xint package provides a powerful suite of expandable macros for (integer) calculations
13 questions
3
votes
3
answers
107
views
Macro with mandatory argument in xint (xintexpr)
This is my first time using of xint.sty; therefore, I have a few questions:
(1) Is \NewDocumentCommand{\sn}{m}{ subsn(expr, var1=value1; var2=#1) } the correct way to define a macro with a mandatory ...
9
votes
3
answers
131
views
Calculate values of standard normal distribution table as macro
I calc values of the Standard normal table (with 5-digit accuracy).
So I wrote a calculation with numerica.sty (using approximate values of the error function).
This works so far;
if I put in a ...
1
vote
0
answers
125
views
Help with xinttools
xinttools package allows to plot function summation. Given a function f(x,n), these curves
f(x,1)
f(x,1) + f(x,2)
f(x,1) + f(x,2) + f(x,3)
will be plotted using
\def\myterm#1{#1*x + 7}
...
\...
4
votes
1
answer
178
views
What does \xint_bye do?
According to the xint packages source code, the definition of \xint_bye is
\long\def\xint_bye #1\xint_bye {}%.
Somehow it invokes itself, but I do not understand it.
What does \xint_bye do?
0
votes
1
answer
72
views
non rectangular body geometry with xintools failed when verse used
I use the solution suggested in “Non-rectangular body geometry” by the (deleted) user @user4686 but the render failed when it reached a verse environment in the body:
The MWE
As I need the non-...
1
vote
1
answer
186
views
pgffor loop with arithmetic expression
I've grown fond of this xintexpr package for its nice syntax. I'd like to repeat a command M times and another one 5-M = N times. I'm getting an error due to the arithmetic expression of the latter ...
1
vote
1
answer
166
views
Simplifying square roots of fractions
I found this page giving macros for simplifying the square roots of integers:
Simplifying square roots
Can we generalize this method to simplify the square roots of fractions, for example \sqrt{4/3}=...
7
votes
3
answers
467
views
Clever setup of \multiframe with diverse conditions within animate package
I'm trying to setup an animated counter with PSTricks predefined digits. Got it to work up to 18 frames. However when increasing the number of frames, I can't handle it clever enough. No problem for ...
3
votes
2
answers
605
views
Multicolumn and xintfor
This is my first time asking a question on Stack Exchange, although I'm a frequent reader.
I tried to build a tabular that generates a sort of array, with indexes displayed above. This is the code:
$...
2
votes
1
answer
643
views
Traceability Matrix
My aim is to build an automatic Traceability Matrix at the end of my document. For that, I define all requirements to be validated at first and after, in different sections which one is tested.
The ...
1
vote
3
answers
352
views
Sort a list of numbers in different representations with a macro in l3
I want to use a macro to sort numbers that have different representations. For example 3.5%, 0.321, 17/5, ...
If possible, the output of the sorted list should be in the same format again, or 17/5 ...
2
votes
1
answer
118
views
Is there a table package which automatically calculates the needed number of columns?
Is there a table package which automatically calculates the needed number of columns? Take for example this:
\documentclass{article}
\usepackage{pgf}
\usepackage{siunitx}
\usepackage{xinttools}
\...
2
votes
1
answer
1k
views
Calculating descriptive statistics
I'm writing a paper that involves many values. In order to be consistent in all the papers, I'm using \def and xint to assign and calculate these values. However, in part of this paper I have to ...