Please explain the operator of rput command in the following code:











up vote
5
down vote

favorite












begin{pspicture}
psgrid[gridcolor=gray,subgridcolor=lightgray](0,0)(5,5)
rput[bl](0,1){bottom left (0,1)}
rput[tr](5,1){top right (5,1)}
rput[t](2,2){stuff1}
end{pspicture}


I think it :



enter image description here










share|improve this question
























  • Where can we find definitions for rputbl, rputtr and rputt?
    – Werner
    2 days ago










  • I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
    – Trong Vuong
    2 days ago










  • Editted code. sorry
    – Trong Vuong
    2 days ago















up vote
5
down vote

favorite












begin{pspicture}
psgrid[gridcolor=gray,subgridcolor=lightgray](0,0)(5,5)
rput[bl](0,1){bottom left (0,1)}
rput[tr](5,1){top right (5,1)}
rput[t](2,2){stuff1}
end{pspicture}


I think it :



enter image description here










share|improve this question
























  • Where can we find definitions for rputbl, rputtr and rputt?
    – Werner
    2 days ago










  • I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
    – Trong Vuong
    2 days ago










  • Editted code. sorry
    – Trong Vuong
    2 days ago













up vote
5
down vote

favorite









up vote
5
down vote

favorite











begin{pspicture}
psgrid[gridcolor=gray,subgridcolor=lightgray](0,0)(5,5)
rput[bl](0,1){bottom left (0,1)}
rput[tr](5,1){top right (5,1)}
rput[t](2,2){stuff1}
end{pspicture}


I think it :



enter image description here










share|improve this question















begin{pspicture}
psgrid[gridcolor=gray,subgridcolor=lightgray](0,0)(5,5)
rput[bl](0,1){bottom left (0,1)}
rput[tr](5,1){top right (5,1)}
rput[t](2,2){stuff1}
end{pspicture}


I think it :



enter image description here







pstricks pspicture






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Werner

430k599451622




430k599451622










asked 2 days ago









Trong Vuong

948




948












  • Where can we find definitions for rputbl, rputtr and rputt?
    – Werner
    2 days ago










  • I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
    – Trong Vuong
    2 days ago










  • Editted code. sorry
    – Trong Vuong
    2 days ago


















  • Where can we find definitions for rputbl, rputtr and rputt?
    – Werner
    2 days ago










  • I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
    – Trong Vuong
    2 days ago










  • Editted code. sorry
    – Trong Vuong
    2 days ago
















Where can we find definitions for rputbl, rputtr and rputt?
– Werner
2 days ago




Where can we find definitions for rputbl, rputtr and rputt?
– Werner
2 days ago












I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
– Trong Vuong
2 days ago




I have read rput 's turtorial in Pstrick user's guide but i don't think result of its code as such.
– Trong Vuong
2 days ago












Editted code. sorry
– Trong Vuong
2 days ago




Editted code. sorry
– Trong Vuong
2 days ago










3 Answers
3






active

oldest

votes

















up vote
3
down vote



accepted










The optional argument for rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y). Similarly for rput[bl] and rput[t] (and any of the possible combinations listed in the pstricks documentation.



enter image description here






share|improve this answer





















  • Thank you for your anwser.
    – Trong Vuong
    2 days ago










  • ""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
    – Trong Vuong
    2 days ago




















up vote
4
down vote













documentclass{article}
usepackage{pstricks}
begin{document}

begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
rput[bl](0,1){psframebox{bottom left (0,1)}}
rput[tr](5,1){psframebox{top right (5,1)}}
rput[t](2,2){psframebox{stuff1}}
end{pspicture}

bigskip
begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
uput{0}[45](0,1){psframebox{bottom left (0,1)}}
uput{0}[-135](5,1){psframebox{top right (5,1)}}
uput{0}[-90](2,2){psframebox{stuff1}}
end{pspicture}

end{document}


enter image description here



In the following example we need 'rput` to put stuff centered to a point:



begin{pspicture}[showgrid,framesep=0pt](5,5)
psdots(2.5,2.5)
multido{iA=0+10}{36}{uput{10mm}[iA](2.5,2.5){psframebox{some text}}}
rput(2.5,2.5){Center}
end{pspicture}


enter image description here






share|improve this answer























  • rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
    – Trong Vuong
    2 days ago










  • They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
    – Herbert
    2 days ago










  • As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
    – Trong Vuong
    2 days ago












  • again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
    – Herbert
    2 days ago












  • :((, so i will choose uput for my code in the future. Thank you a lots for your answer.
    – Trong Vuong
    2 days ago


















up vote
1
down vote













Warning!



The refpoint optional argument only works for "boxed" objects as follows.



documentclass[pstricks,border=1cm]{standalone}

defunboxedObject{psframe(2,1)}
defboxedObject{psframebox{Huge "Age}}

begin{document}
foreach i in{t,tl,l,bl,b,br,r,tr,t,Bl,B,Br}{%
begin{pspicture}[showgrid,dimen=m](4,3)
rput[b](2,0.1){bf i}
rput[i](2,2){boxedObject}
%rput[i](2,2){unboxedObject}
pscircle*[linecolor=red](2,2){2pt}
end{pspicture}}
end{document}


enter image description here



For "unboxed" objects, the argument refpoint does not affect. The terminologies "boxed" and "unboxed" used here have nothing to do with the same terms used in C# or Java programming languages.






share|improve this answer



















  • 1




    It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
    – Herbert
    2 days ago










  • If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
    – Trong Vuong
    yesterday










  • @TrongVuong: I don't use Rput so I don't know its behavior. :-)
    – Artificial Stupidity
    yesterday










  • I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
    – Trong Vuong
    yesterday













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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459734%2fplease-explain-the-operator-of-rput-command-in-the-following-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










The optional argument for rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y). Similarly for rput[bl] and rput[t] (and any of the possible combinations listed in the pstricks documentation.



enter image description here






share|improve this answer





















  • Thank you for your anwser.
    – Trong Vuong
    2 days ago










  • ""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
    – Trong Vuong
    2 days ago

















up vote
3
down vote



accepted










The optional argument for rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y). Similarly for rput[bl] and rput[t] (and any of the possible combinations listed in the pstricks documentation.



enter image description here






share|improve this answer





















  • Thank you for your anwser.
    – Trong Vuong
    2 days ago










  • ""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
    – Trong Vuong
    2 days ago















up vote
3
down vote



accepted







up vote
3
down vote



accepted






The optional argument for rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y). Similarly for rput[bl] and rput[t] (and any of the possible combinations listed in the pstricks documentation.



enter image description here






share|improve this answer












The optional argument for rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y). Similarly for rput[bl] and rput[t] (and any of the possible combinations listed in the pstricks documentation.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Werner

430k599451622




430k599451622












  • Thank you for your anwser.
    – Trong Vuong
    2 days ago










  • ""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
    – Trong Vuong
    2 days ago




















  • Thank you for your anwser.
    – Trong Vuong
    2 days ago










  • ""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
    – Trong Vuong
    2 days ago


















Thank you for your anwser.
– Trong Vuong
2 days ago




Thank you for your anwser.
– Trong Vuong
2 days ago












""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
– Trong Vuong
2 days ago






""So, using rput[tl](x,y){<stuff>} puts the top left corner of <stuff> at (x,y) """ in your answer. It is the key to my question. Again, thanks a lot
– Trong Vuong
2 days ago












up vote
4
down vote













documentclass{article}
usepackage{pstricks}
begin{document}

begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
rput[bl](0,1){psframebox{bottom left (0,1)}}
rput[tr](5,1){psframebox{top right (5,1)}}
rput[t](2,2){psframebox{stuff1}}
end{pspicture}

bigskip
begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
uput{0}[45](0,1){psframebox{bottom left (0,1)}}
uput{0}[-135](5,1){psframebox{top right (5,1)}}
uput{0}[-90](2,2){psframebox{stuff1}}
end{pspicture}

end{document}


enter image description here



In the following example we need 'rput` to put stuff centered to a point:



begin{pspicture}[showgrid,framesep=0pt](5,5)
psdots(2.5,2.5)
multido{iA=0+10}{36}{uput{10mm}[iA](2.5,2.5){psframebox{some text}}}
rput(2.5,2.5){Center}
end{pspicture}


enter image description here






share|improve this answer























  • rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
    – Trong Vuong
    2 days ago










  • They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
    – Herbert
    2 days ago










  • As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
    – Trong Vuong
    2 days ago












  • again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
    – Herbert
    2 days ago












  • :((, so i will choose uput for my code in the future. Thank you a lots for your answer.
    – Trong Vuong
    2 days ago















up vote
4
down vote













documentclass{article}
usepackage{pstricks}
begin{document}

begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
rput[bl](0,1){psframebox{bottom left (0,1)}}
rput[tr](5,1){psframebox{top right (5,1)}}
rput[t](2,2){psframebox{stuff1}}
end{pspicture}

bigskip
begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
uput{0}[45](0,1){psframebox{bottom left (0,1)}}
uput{0}[-135](5,1){psframebox{top right (5,1)}}
uput{0}[-90](2,2){psframebox{stuff1}}
end{pspicture}

end{document}


enter image description here



In the following example we need 'rput` to put stuff centered to a point:



begin{pspicture}[showgrid,framesep=0pt](5,5)
psdots(2.5,2.5)
multido{iA=0+10}{36}{uput{10mm}[iA](2.5,2.5){psframebox{some text}}}
rput(2.5,2.5){Center}
end{pspicture}


enter image description here






share|improve this answer























  • rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
    – Trong Vuong
    2 days ago










  • They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
    – Herbert
    2 days ago










  • As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
    – Trong Vuong
    2 days ago












  • again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
    – Herbert
    2 days ago












  • :((, so i will choose uput for my code in the future. Thank you a lots for your answer.
    – Trong Vuong
    2 days ago













up vote
4
down vote










up vote
4
down vote









documentclass{article}
usepackage{pstricks}
begin{document}

begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
rput[bl](0,1){psframebox{bottom left (0,1)}}
rput[tr](5,1){psframebox{top right (5,1)}}
rput[t](2,2){psframebox{stuff1}}
end{pspicture}

bigskip
begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
uput{0}[45](0,1){psframebox{bottom left (0,1)}}
uput{0}[-135](5,1){psframebox{top right (5,1)}}
uput{0}[-90](2,2){psframebox{stuff1}}
end{pspicture}

end{document}


enter image description here



In the following example we need 'rput` to put stuff centered to a point:



begin{pspicture}[showgrid,framesep=0pt](5,5)
psdots(2.5,2.5)
multido{iA=0+10}{36}{uput{10mm}[iA](2.5,2.5){psframebox{some text}}}
rput(2.5,2.5){Center}
end{pspicture}


enter image description here






share|improve this answer














documentclass{article}
usepackage{pstricks}
begin{document}

begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
rput[bl](0,1){psframebox{bottom left (0,1)}}
rput[tr](5,1){psframebox{top right (5,1)}}
rput[t](2,2){psframebox{stuff1}}
end{pspicture}

bigskip
begin{pspicture}[showgrid,framesep=0pt](6,3)
psdots(0,1)(5,1)(2,2)
uput{0}[45](0,1){psframebox{bottom left (0,1)}}
uput{0}[-135](5,1){psframebox{top right (5,1)}}
uput{0}[-90](2,2){psframebox{stuff1}}
end{pspicture}

end{document}


enter image description here



In the following example we need 'rput` to put stuff centered to a point:



begin{pspicture}[showgrid,framesep=0pt](5,5)
psdots(2.5,2.5)
multido{iA=0+10}{36}{uput{10mm}[iA](2.5,2.5){psframebox{some text}}}
rput(2.5,2.5){Center}
end{pspicture}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









Herbert

264k23400712




264k23400712












  • rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
    – Trong Vuong
    2 days ago










  • They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
    – Herbert
    2 days ago










  • As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
    – Trong Vuong
    2 days ago












  • again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
    – Herbert
    2 days ago












  • :((, so i will choose uput for my code in the future. Thank you a lots for your answer.
    – Trong Vuong
    2 days ago


















  • rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
    – Trong Vuong
    2 days ago










  • They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
    – Herbert
    2 days ago










  • As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
    – Trong Vuong
    2 days ago












  • again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
    – Herbert
    2 days ago












  • :((, so i will choose uput for my code in the future. Thank you a lots for your answer.
    – Trong Vuong
    2 days ago
















rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
– Trong Vuong
2 days ago




rput[bl]=uput{0}[45],rput[tr]=uput{0}[-135],rput[t]=uput{0}[-90]. They are equivalent. So, in your opinion, which should be used? :((
– Trong Vuong
2 days ago












They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
– Herbert
2 days ago




They can be the same! With uput you can rotate the label around the given point. However, it depends on what you want. A label right beside is easier with `uput[0](x,y){foo}'
– Herbert
2 days ago












As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
– Trong Vuong
2 days ago






As my think, "bottom left" is must be {0}[-135].... I want to know my think is not right or Pstricks code is wrong! according to book , "bl" lie that position! :((
– Trong Vuong
2 days ago














again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
– Herbert
2 days ago






again: rput and uput can be the same but only for the positions which rput allows (see image on Werners answer). With uput you can place it at any angle, e.g. 100, which is not possible with rput
– Herbert
2 days ago














:((, so i will choose uput for my code in the future. Thank you a lots for your answer.
– Trong Vuong
2 days ago




:((, so i will choose uput for my code in the future. Thank you a lots for your answer.
– Trong Vuong
2 days ago










up vote
1
down vote













Warning!



The refpoint optional argument only works for "boxed" objects as follows.



documentclass[pstricks,border=1cm]{standalone}

defunboxedObject{psframe(2,1)}
defboxedObject{psframebox{Huge "Age}}

begin{document}
foreach i in{t,tl,l,bl,b,br,r,tr,t,Bl,B,Br}{%
begin{pspicture}[showgrid,dimen=m](4,3)
rput[b](2,0.1){bf i}
rput[i](2,2){boxedObject}
%rput[i](2,2){unboxedObject}
pscircle*[linecolor=red](2,2){2pt}
end{pspicture}}
end{document}


enter image description here



For "unboxed" objects, the argument refpoint does not affect. The terminologies "boxed" and "unboxed" used here have nothing to do with the same terms used in C# or Java programming languages.






share|improve this answer



















  • 1




    It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
    – Herbert
    2 days ago










  • If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
    – Trong Vuong
    yesterday










  • @TrongVuong: I don't use Rput so I don't know its behavior. :-)
    – Artificial Stupidity
    yesterday










  • I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
    – Trong Vuong
    yesterday

















up vote
1
down vote













Warning!



The refpoint optional argument only works for "boxed" objects as follows.



documentclass[pstricks,border=1cm]{standalone}

defunboxedObject{psframe(2,1)}
defboxedObject{psframebox{Huge "Age}}

begin{document}
foreach i in{t,tl,l,bl,b,br,r,tr,t,Bl,B,Br}{%
begin{pspicture}[showgrid,dimen=m](4,3)
rput[b](2,0.1){bf i}
rput[i](2,2){boxedObject}
%rput[i](2,2){unboxedObject}
pscircle*[linecolor=red](2,2){2pt}
end{pspicture}}
end{document}


enter image description here



For "unboxed" objects, the argument refpoint does not affect. The terminologies "boxed" and "unboxed" used here have nothing to do with the same terms used in C# or Java programming languages.






share|improve this answer



















  • 1




    It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
    – Herbert
    2 days ago










  • If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
    – Trong Vuong
    yesterday










  • @TrongVuong: I don't use Rput so I don't know its behavior. :-)
    – Artificial Stupidity
    yesterday










  • I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
    – Trong Vuong
    yesterday















up vote
1
down vote










up vote
1
down vote









Warning!



The refpoint optional argument only works for "boxed" objects as follows.



documentclass[pstricks,border=1cm]{standalone}

defunboxedObject{psframe(2,1)}
defboxedObject{psframebox{Huge "Age}}

begin{document}
foreach i in{t,tl,l,bl,b,br,r,tr,t,Bl,B,Br}{%
begin{pspicture}[showgrid,dimen=m](4,3)
rput[b](2,0.1){bf i}
rput[i](2,2){boxedObject}
%rput[i](2,2){unboxedObject}
pscircle*[linecolor=red](2,2){2pt}
end{pspicture}}
end{document}


enter image description here



For "unboxed" objects, the argument refpoint does not affect. The terminologies "boxed" and "unboxed" used here have nothing to do with the same terms used in C# or Java programming languages.






share|improve this answer














Warning!



The refpoint optional argument only works for "boxed" objects as follows.



documentclass[pstricks,border=1cm]{standalone}

defunboxedObject{psframe(2,1)}
defboxedObject{psframebox{Huge "Age}}

begin{document}
foreach i in{t,tl,l,bl,b,br,r,tr,t,Bl,B,Br}{%
begin{pspicture}[showgrid,dimen=m](4,3)
rput[b](2,0.1){bf i}
rput[i](2,2){boxedObject}
%rput[i](2,2){unboxedObject}
pscircle*[linecolor=red](2,2){2pt}
end{pspicture}}
end{document}


enter image description here



For "unboxed" objects, the argument refpoint does not affect. The terminologies "boxed" and "unboxed" used here have nothing to do with the same terms used in C# or Java programming languages.







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









Artificial Stupidity

4,0801829




4,0801829








  • 1




    It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
    – Herbert
    2 days ago










  • If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
    – Trong Vuong
    yesterday










  • @TrongVuong: I don't use Rput so I don't know its behavior. :-)
    – Artificial Stupidity
    yesterday










  • I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
    – Trong Vuong
    yesterday
















  • 1




    It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
    – Herbert
    2 days ago










  • If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
    – Trong Vuong
    yesterday










  • @TrongVuong: I don't use Rput so I don't know its behavior. :-)
    – Artificial Stupidity
    yesterday










  • I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
    – Trong Vuong
    yesterday










1




1




It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
– Herbert
2 days ago




It works for "boxes"! psframe alone is not a box! inside pspicture environment it is like a box.
– Herbert
2 days ago












If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
– Trong Vuong
yesterday




If we replace "rput" as "Rput (an obsolete command)" ,the refpoint optional argument works normally without psframebox. Is that true?? :-) (in Pstricks User’s Guide p.45)
– Trong Vuong
yesterday












@TrongVuong: I don't use Rput so I don't know its behavior. :-)
– Artificial Stupidity
yesterday




@TrongVuong: I don't use Rput so I don't know its behavior. :-)
– Artificial Stupidity
yesterday












I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
– Trong Vuong
yesterday






I have also just known ! :-)) (My english not so good, i usualy use google translate) :))
– Trong Vuong
yesterday




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459734%2fplease-explain-the-operator-of-rput-command-in-the-following-code%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix