How to evaluate an expression before printing it?Define a variable in TikZCan LaTeX perform calculation like...
Wanted: 5.25 floppy to usb adapter
Where was Karl Mordo in Infinity War?
Is Draco canonically good-looking?
How can I mix up weapons for large groups of similar monsters/characters?
Is the theory of the category of topological spaces computable?
Eww, those bytes are gross
Meth dealer reference in Family Guy
Crystal compensation for temp and voltage
What is the purpose of easy combat scenarios that don't need resource expenditure?
How should I state my MS degree in my CV when it was in practice a joint-program?
Finding ratio of the area of triangles
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
What is the wife of a henpecked husband called?
Sometimes a banana is just a banana
It took me a lot of time to make this, pls like. (YouTube Comments #1)
ip vs ifconfig commands pros and cons
Table enclosed in curly brackets
Criticizing long fiction. How is it different from short?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
Could quantum mechanics be necessary to analyze some biology scenarios?
What happens if a wizard reaches level 20 but has no 3rd-level spells that they can use with the Signature Spells feature?
How to satisfy a player character's curiosity about another player character?
Why is this code uniquely decodable?
What is Crew Dragon approaching in this picture?
How to evaluate an expression before printing it?
Define a variable in TikZCan LaTeX perform calculation like Excel formula table?How to evaluate tikz expression before printing as text?Placing items before documentclassPrinting stamp albumsReplacing text using regular expression before compilation without texteditorEvaluate strings of key-value option in custom package by using a switch-case environment.sty file allowing a maximum number of characters/pages before compilingHow to install TeX Live only with selected package before installation begins?I'm getting the following error paragraph ended before gin@iii was complete would please help meBabel before or after fontspec?Is there a way to measure demand/interest in a new package before releasing it?
Start of Edit
In response to the comments I have added the following mwe
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}.
end{document}
Unfortunately the output is just: "Let's see if this prints: ."
End of Edit
I wanted to populate a table with entries calculated on the basis of constants depending on experiment parameters (like room temperature, pressure and humidity). Instead of hand-calculating the entries each time I make the table, I wanted to code the LaTeX table in the form of expressions that can be evaluated. This way, just by changing the experiment parameters, I can populate the new tables.
Somewhat similar questions have been asked before, e.g. example 1, example 2, and example 3. Sage
, calc
and fp
are some of the solutions that have been suggested.
Submission to journals forms a very important factor in my consideration. Many journals these days accept the TeX
files and I am reluctant to make submissions that involve heavy packages. Sage
in spite of being able to evaluate expression the way I intend them to be, is ruled out for the same reason. I found calc
too cumbersome. Somehow I am not able to find the documentation for fp
.
All recommendations are welcome. If the TikZ
package can be somehow employed, that would be perfect. I use it in almost all of my manuscripts.
packages
|
show 7 more comments
Start of Edit
In response to the comments I have added the following mwe
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}.
end{document}
Unfortunately the output is just: "Let's see if this prints: ."
End of Edit
I wanted to populate a table with entries calculated on the basis of constants depending on experiment parameters (like room temperature, pressure and humidity). Instead of hand-calculating the entries each time I make the table, I wanted to code the LaTeX table in the form of expressions that can be evaluated. This way, just by changing the experiment parameters, I can populate the new tables.
Somewhat similar questions have been asked before, e.g. example 1, example 2, and example 3. Sage
, calc
and fp
are some of the solutions that have been suggested.
Submission to journals forms a very important factor in my consideration. Many journals these days accept the TeX
files and I am reluctant to make submissions that involve heavy packages. Sage
in spite of being able to evaluate expression the way I intend them to be, is ruled out for the same reason. I found calc
too cumbersome. Somehow I am not able to find the documentation for fp
.
All recommendations are welcome. If the TikZ
package can be somehow employed, that would be perfect. I use it in almost all of my manuscripts.
packages
1
The one I would recommend is to usepgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE includingdocumentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.
– Peter Grill
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. ThereforeSageTex
is rejected because it requires the user to installSage
.
– Shashank Sawant
Nov 21 '12 at 23:34
1
@ShashankSawant (Re-Comment:)pgfmathparse{<arg>}
only parses the argument.pgfmathresult
gives back the result. (PGF manual says topgfmathparse
: “This macro parses<arg>
and returns the result without units in the macropgfmathresult
.” | MWE:Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49
|
show 7 more comments
Start of Edit
In response to the comments I have added the following mwe
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}.
end{document}
Unfortunately the output is just: "Let's see if this prints: ."
End of Edit
I wanted to populate a table with entries calculated on the basis of constants depending on experiment parameters (like room temperature, pressure and humidity). Instead of hand-calculating the entries each time I make the table, I wanted to code the LaTeX table in the form of expressions that can be evaluated. This way, just by changing the experiment parameters, I can populate the new tables.
Somewhat similar questions have been asked before, e.g. example 1, example 2, and example 3. Sage
, calc
and fp
are some of the solutions that have been suggested.
Submission to journals forms a very important factor in my consideration. Many journals these days accept the TeX
files and I am reluctant to make submissions that involve heavy packages. Sage
in spite of being able to evaluate expression the way I intend them to be, is ruled out for the same reason. I found calc
too cumbersome. Somehow I am not able to find the documentation for fp
.
All recommendations are welcome. If the TikZ
package can be somehow employed, that would be perfect. I use it in almost all of my manuscripts.
packages
Start of Edit
In response to the comments I have added the following mwe
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}.
end{document}
Unfortunately the output is just: "Let's see if this prints: ."
End of Edit
I wanted to populate a table with entries calculated on the basis of constants depending on experiment parameters (like room temperature, pressure and humidity). Instead of hand-calculating the entries each time I make the table, I wanted to code the LaTeX table in the form of expressions that can be evaluated. This way, just by changing the experiment parameters, I can populate the new tables.
Somewhat similar questions have been asked before, e.g. example 1, example 2, and example 3. Sage
, calc
and fp
are some of the solutions that have been suggested.
Submission to journals forms a very important factor in my consideration. Many journals these days accept the TeX
files and I am reluctant to make submissions that involve heavy packages. Sage
in spite of being able to evaluate expression the way I intend them to be, is ruled out for the same reason. I found calc
too cumbersome. Somehow I am not able to find the documentation for fp
.
All recommendations are welcome. If the TikZ
package can be somehow employed, that would be perfect. I use it in almost all of my manuscripts.
packages
packages
edited May 23 '17 at 12:39
Community♦
1
1
asked Nov 21 '12 at 22:37
Shashank SawantShashank Sawant
2,51572944
2,51572944
1
The one I would recommend is to usepgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE includingdocumentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.
– Peter Grill
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. ThereforeSageTex
is rejected because it requires the user to installSage
.
– Shashank Sawant
Nov 21 '12 at 23:34
1
@ShashankSawant (Re-Comment:)pgfmathparse{<arg>}
only parses the argument.pgfmathresult
gives back the result. (PGF manual says topgfmathparse
: “This macro parses<arg>
and returns the result without units in the macropgfmathresult
.” | MWE:Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49
|
show 7 more comments
1
The one I would recommend is to usepgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE includingdocumentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.
– Peter Grill
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. ThereforeSageTex
is rejected because it requires the user to installSage
.
– Shashank Sawant
Nov 21 '12 at 23:34
1
@ShashankSawant (Re-Comment:)pgfmathparse{<arg>}
only parses the argument.pgfmathresult
gives back the result. (PGF manual says topgfmathparse
: “This macro parses<arg>
and returns the result without units in the macropgfmathresult
.” | MWE:Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49
1
1
The one I would recommend is to use
pgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE including documentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.– Peter Grill
Nov 21 '12 at 22:43
The one I would recommend is to use
pgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE including documentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.– Peter Grill
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. Therefore
SageTex
is rejected because it requires the user to install Sage
.– Shashank Sawant
Nov 21 '12 at 23:34
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. Therefore
SageTex
is rejected because it requires the user to install Sage
.– Shashank Sawant
Nov 21 '12 at 23:34
1
1
@ShashankSawant (Re-Comment:)
pgfmathparse{<arg>}
only parses the argument. pgfmathresult
gives back the result. (PGF manual says to pgfmathparse
: “This macro parses <arg>
and returns the result without units in the macro pgfmathresult
.” | MWE: Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49
@ShashankSawant (Re-Comment:)
pgfmathparse{<arg>}
only parses the argument. pgfmathresult
gives back the result. (PGF manual says to pgfmathparse
: “This macro parses <arg>
and returns the result without units in the macro pgfmathresult
.” | MWE: Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49
|
show 7 more comments
1 Answer
1
active
oldest
votes
You just forgot to return the result of pgfmathparse
by calling pgfmathresult
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
end{document}
In the pgfmanual
you find more information in section 93.1 Parsing Expressions (as of pgfmanual Version 3.1.1; 2019-03-03).
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variablea=2
and if you wish to see it in the control you sayprint(a)
. What is parsing in this context?
– Shashank Sawant
Nov 22 '12 at 2:15
1
Hello. I am not a geek either. I would say that the author ofpgf
just designed it that way:pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known topgf
. If you want to use the result in the document then the commandspgfmathresult
is used to get the last calculated value.
– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f83731%2fhow-to-evaluate-an-expression-before-printing-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You just forgot to return the result of pgfmathparse
by calling pgfmathresult
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
end{document}
In the pgfmanual
you find more information in section 93.1 Parsing Expressions (as of pgfmanual Version 3.1.1; 2019-03-03).
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variablea=2
and if you wish to see it in the control you sayprint(a)
. What is parsing in this context?
– Shashank Sawant
Nov 22 '12 at 2:15
1
Hello. I am not a geek either. I would say that the author ofpgf
just designed it that way:pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known topgf
. If you want to use the result in the document then the commandspgfmathresult
is used to get the last calculated value.
– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
add a comment |
You just forgot to return the result of pgfmathparse
by calling pgfmathresult
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
end{document}
In the pgfmanual
you find more information in section 93.1 Parsing Expressions (as of pgfmanual Version 3.1.1; 2019-03-03).
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variablea=2
and if you wish to see it in the control you sayprint(a)
. What is parsing in this context?
– Shashank Sawant
Nov 22 '12 at 2:15
1
Hello. I am not a geek either. I would say that the author ofpgf
just designed it that way:pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known topgf
. If you want to use the result in the document then the commandspgfmathresult
is used to get the last calculated value.
– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
add a comment |
You just forgot to return the result of pgfmathparse
by calling pgfmathresult
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
end{document}
In the pgfmanual
you find more information in section 93.1 Parsing Expressions (as of pgfmanual Version 3.1.1; 2019-03-03).
You just forgot to return the result of pgfmathparse
by calling pgfmathresult
:
documentclass{article}
usepackage{tikz}
begin{document}
Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
end{document}
In the pgfmanual
you find more information in section 93.1 Parsing Expressions (as of pgfmanual Version 3.1.1; 2019-03-03).
edited 11 hours ago
answered Nov 22 '12 at 0:09
Dr. Manuel KuehnerDr. Manuel Kuehner
9,19732769
9,19732769
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variablea=2
and if you wish to see it in the control you sayprint(a)
. What is parsing in this context?
– Shashank Sawant
Nov 22 '12 at 2:15
1
Hello. I am not a geek either. I would say that the author ofpgf
just designed it that way:pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known topgf
. If you want to use the result in the document then the commandspgfmathresult
is used to get the last calculated value.
– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
add a comment |
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variablea=2
and if you wish to see it in the control you sayprint(a)
. What is parsing in this context?
– Shashank Sawant
Nov 22 '12 at 2:15
1
Hello. I am not a geek either. I would say that the author ofpgf
just designed it that way:pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known topgf
. If you want to use the result in the document then the commandspgfmathresult
is used to get the last calculated value.
– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variable
a=2
and if you wish to see it in the control you say print(a)
. What is parsing in this context?– Shashank Sawant
Nov 22 '12 at 2:15
Thanks for the answer! But I guess most of you are computer science/engg guys. I have no clue as to what parsing is. I do understand the basics of programming. But in the basics it is simple. Say in python (for that matter any language) you define a variable
a=2
and if you wish to see it in the control you say print(a)
. What is parsing in this context?– Shashank Sawant
Nov 22 '12 at 2:15
1
1
Hello. I am not a geek either. I would say that the author of
pgf
just designed it that way: pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known to pgf
. If you want to use the result in the document then the commands pgfmathresult
is used to get the last calculated value.– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
Hello. I am not a geek either. I would say that the author of
pgf
just designed it that way: pgfmathparse
reads the expression and evaluates (calculates) it. The result is now known to pgf
. If you want to use the result in the document then the commands pgfmathresult
is used to get the last calculated value.– Dr. Manuel Kuehner
Nov 22 '12 at 8:27
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
The link is now broken.
– Ruslan
Feb 24 '16 at 18:35
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f83731%2fhow-to-evaluate-an-expression-before-printing-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
The one I would recommend is to use
pgfmathparse
/pgfmathsetmacro
. If you put together a fully compilable MWE includingdocumentclass
and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.– Peter Grill
Nov 21 '12 at 22:43
related tex.stackexchange.com/questions/70860/…
– user11232
Nov 21 '12 at 22:43
I am reluctant to make submissions that involve heavy packages.... If the TikZ package can be somehow employed, that would be perfect. They seem to be somewhat in contradiction, Tikz is a good package but it is massively heavyweight and probably more code than all the other packages that you mention combined. I wonder what are your criterion for acceptable packages in solutions?
– David Carlisle
Nov 21 '12 at 23:31
@DavidCarlisle Sorry for my ignorance. My criterion for now is that packages which do not depend on other software are alright. Therefore
SageTex
is rejected because it requires the user to installSage
.– Shashank Sawant
Nov 21 '12 at 23:34
1
@ShashankSawant (Re-Comment:)
pgfmathparse{<arg>}
only parses the argument.pgfmathresult
gives back the result. (PGF manual says topgfmathparse
: “This macro parses<arg>
and returns the result without units in the macropgfmathresult
.” | MWE:Let's see if this prints: pgfmathparse{sin(60)}pgfmathresult.
– Qrrbrbirlbel
Nov 21 '12 at 23:49