Questions tagged [function]
The function tag has no usage guidance.
53
questions
1
vote
1
answer
22
views
Error building a table row from comma separated list when using listofitems package
I am trying to build a table in which a row is built by a function/command call. I can get everything to work if I pass each cell as a separate argument to the command, but that is going to be tedious ...
0
votes
1
answer
45
views
what can be the code of this series which takes 3 values [duplicate]
I am typing my masters thesis in LaTeX and I am unable to write the code of this product which breaks into three different values
So, Sum $S$ breaks into
I know the code of $n$ Choose $k$ and $\...
0
votes
0
answers
27
views
Using TikZ to Plot the Fourier Transform with Magnitude and Argument Coloring
I would like to use TikZ to draw the function graph of the Fourier transform
πΉ(π) of π^π‘ sin(π‘)π’(π‘). The x-axis represents π, the y-axis represents the magnitude of πΉ(π), and different ...
2
votes
1
answer
47
views
Horizental gradient colored text with a function
I want to create this horizental gradient coloring for text
and here the code to do it for each letter but I want to have a function to do this. function should get text, and 2 colors. note it should ...
1
vote
2
answers
47
views
pass dimens or macros as parameters to a lua function
I have this Lua function:
-- ratio of dimensions
function ptLuaGetRatio(val1, val2)
local ratio = val1 / val2
tex.print(string.format("%0.5f", ratio))
end
In LuaTeX I want to call it ...
2
votes
1
answer
115
views
Is it possible to modify a \cs_new_protected:Nn function using hooks?
A user of one of my classes exceptionally wants to modify something that is hard-coded in a \cs_new_protected:Nn function. I can give her the means to redefine this function using \cs_set_protected:Nn ...
1
vote
1
answer
61
views
Fine tuning: TikZ, pgfplots and Lennard-Jones potential
I'm trying to recreate a faithful copy of the graph shown here.
I'm trying and trying again, but I would like to make the curve tend to infinity more quickly for x=0 and tend to 0 more quickly for x=...
1
vote
1
answer
77
views
Adding an arrow to the graph of a function
I'm making a thermodynamics PV graph to show how a cycle progresses and ideally I'd need to add arrows going along the blue line going left, the red going right and the green going up. But I cannot, ...
0
votes
0
answers
33
views
How can I add a 2nd picture on my cover page and have it slightly overlap the first?
I have been using and adapting my university's Latex template for a year now. I mostly manage by snooping around the code and reading the commented code. So far I've managed to adapt some shapes, ...
0
votes
1
answer
53
views
Plotting a PV function graph
I'm trying to plot the following graph in LaTeX, but I cannot, for the life of me, find mathematical functions that work.
This is my code and the following image is what I'm trying to achieve:
\...
0
votes
1
answer
41
views
Soft clip not working for shaded areas beween curves
I've been trying to find a way to shade the area between the curves, but when I try coding in LaTeX with softclip, everything shuts down. I don't know what to do.
This is my code :
\documentclass[tikz,...
-1
votes
1
answer
73
views
Plot the graph of sin-cos functions using PSTricks [duplicate]
I have the following codes in Miktex+Texmaker using the configurations LaTeX+dvips+ps2pdf+View PDF:
The following first figure (fig:cosine-plot) appears clearly:
\begin{figure}[H]
\centering
\...
1
vote
1
answer
43
views
Omit border of a variation table using the tkz-tab package
Is there a way to omit the border lines in a sign and variation table of a function in the tkz-tab package?
My Code:
\begin{tikzpicture}
\tikzset{h style/.style = {fill=red!50}}
\tkzTabInit[lgt=1,...
1
vote
1
answer
69
views
Graphical representation of a function in a well-chosen orthonormal frame of reference
I want to create this exact picture in latex but I do not manage to find the code to do so....
This is my attempt:
\begin{tikzpicture}
\begin{axis}\[
axis lines=middle,
axis line style={-...
1
vote
0
answers
63
views
How do I write the value of a function to a file?
What is the best way to write function values to a file from a tikz/pgf point of view?
I've been using native TeX macros like \immediate\write\file, but maybe there's a way at the pgf level to do it ...