Dynamic length nameUse pgfplots and a custom length to define global width when inputing the plotOther than...
What are the potential pitfalls when using metals as a currency?
Is there really no use for MD5 anymore?
Why was primality test thought to be NP?
How to creep the reader out with what seems like a normal person?
Map of water taps to fill bottles
Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?
Why isn't the definition of absolute value applied when squaring a radical containing a variable?
To say I met a person for the first time
Which big number is bigger?
What term is being referred to with "reflected-sound-of-underground-spirits"?
How to write a column outside the braces in a matrix?
Are Boeing 737-800’s grounded?
Don’t seats that recline flat defeat the purpose of having seatbelts?
A Note on N!
How exactly does Hawking radiation decrease the mass of black holes?
Do I have an "anti-research" personality?
Minor Revision with suggestion of an alternative proof by reviewer
As an international instructor, should I openly talk about my accent?
How did Captain America manage to do this?
Can i spend a night at Vancouver then take a flight to my college in Toronto as an international student?
Is this homebrew Wind Wave spell balanced?
Does holding a wand and speaking its command word count as V/S/M spell components?
If a planet has 3 moons, is it possible to have triple Full/New Moons at once?
Is there an official tutorial for installing Ubuntu 18.04+ on a device with an SSD and an additional internal hard drive?
Dynamic length name
Use pgfplots and a custom length to define global width when inputing the plotOther than syntax what is the difference between dimen0= and setlength{}{}?Changing options based on generated document lengthSet a length that will adopt tikz's global lengthsA reusable newlength (no stop/break if length already defined)Dynamic length variable with argument? (like “setlength{foo}[1]{0.5+#1*0.5}”)Trim size as fundamental TeX valueHow to link 2 lengthsHow can I get all the defined lengths in a document?Newenvironment - find the length of input
I want to create something like in object, that saves it's own location in latex. Because I don't know how to create a objec in latex, I want to create a length with seperating name for each object. Like that: (Dont worry umlPositionX and umlPositionY is defined before)
newcommand{umlClass}[1]{
newlength{umlPositionX#1}
setlength{umlPositionX#1}{umlPositionX}
newlength{umlPositionY#1}
setlength{umlPositionY#1}{umlPositionY}
}
Now I want to get the position of the object like that:
newcommand{umlXPositionOf}[1]{setlength{umlPositionX}{umlPositionX#1}
newcommand{umlYPositionOf}[1]{setlength{umlPositionY}{umlPositionY#1}
But it is not possible, to create a length with dynamic name like that. I always get the error:
Command umlPositionX already defined.
I think it is because the #1 does not belong to the name of the length.
lengths
add a comment |
I want to create something like in object, that saves it's own location in latex. Because I don't know how to create a objec in latex, I want to create a length with seperating name for each object. Like that: (Dont worry umlPositionX and umlPositionY is defined before)
newcommand{umlClass}[1]{
newlength{umlPositionX#1}
setlength{umlPositionX#1}{umlPositionX}
newlength{umlPositionY#1}
setlength{umlPositionY#1}{umlPositionY}
}
Now I want to get the position of the object like that:
newcommand{umlXPositionOf}[1]{setlength{umlPositionX}{umlPositionX#1}
newcommand{umlYPositionOf}[1]{setlength{umlPositionY}{umlPositionY#1}
But it is not possible, to create a length with dynamic name like that. I always get the error:
Command umlPositionX already defined.
I think it is because the #1 does not belong to the name of the length.
lengths
add a comment |
I want to create something like in object, that saves it's own location in latex. Because I don't know how to create a objec in latex, I want to create a length with seperating name for each object. Like that: (Dont worry umlPositionX and umlPositionY is defined before)
newcommand{umlClass}[1]{
newlength{umlPositionX#1}
setlength{umlPositionX#1}{umlPositionX}
newlength{umlPositionY#1}
setlength{umlPositionY#1}{umlPositionY}
}
Now I want to get the position of the object like that:
newcommand{umlXPositionOf}[1]{setlength{umlPositionX}{umlPositionX#1}
newcommand{umlYPositionOf}[1]{setlength{umlPositionY}{umlPositionY#1}
But it is not possible, to create a length with dynamic name like that. I always get the error:
Command umlPositionX already defined.
I think it is because the #1 does not belong to the name of the length.
lengths
I want to create something like in object, that saves it's own location in latex. Because I don't know how to create a objec in latex, I want to create a length with seperating name for each object. Like that: (Dont worry umlPositionX and umlPositionY is defined before)
newcommand{umlClass}[1]{
newlength{umlPositionX#1}
setlength{umlPositionX#1}{umlPositionX}
newlength{umlPositionY#1}
setlength{umlPositionY#1}{umlPositionY}
}
Now I want to get the position of the object like that:
newcommand{umlXPositionOf}[1]{setlength{umlPositionX}{umlPositionX#1}
newcommand{umlYPositionOf}[1]{setlength{umlPositionY}{umlPositionY#1}
But it is not possible, to create a length with dynamic name like that. I always get the error:
Command umlPositionX already defined.
I think it is because the #1 does not belong to the name of the length.
lengths
lengths
asked 9 mins ago
AhrtalerAhrtaler
26616
26616
add a comment |
add a comment |
0
active
oldest
votes
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%2f487945%2fdynamic-length-name%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f487945%2fdynamic-length-name%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