i want to resize and move Notepad from link: poster-layout: background and boxes and link Change width, height of Notepad
Minimal working example:
\documentclass{article}
\usepackage[most]{tcolorbox}
\usetikzlibrary{shadows,shapes.geometric}
\usepackage{lipsum}
\definecolor{mybrown}{RGB}{33,34,28}
\definecolor{myyellow}{RGB}{242,226,149}
\definecolor{mygreen}{RGB}{176,232,145}
\definecolor{myblue}{RGB}{61,139,189}
\definecolor{myorange}{RGB}{245,156,74}
\definecolor{mypurple}{RGB}{230,111,148}
\definecolor{myred}{RGB}{215,80,50}
\newtcolorbox{NotePad}[2][]{%
enhanced,
frame code=empty,
boxsep=0.5cm,
top=0.6cm,
interior code={
\fill[#2,drop shadow]
(interior.south west) {[rounded corners=1.5cm]--
(interior.south east)} --
(interior.north east) --
(interior.north west) --
cycle;
\fill[#2!80!black]
([shift={(-0.9cm,0.5ex)}]interior.south east) to[out=30,in=-70]
([shift={(-0.55cm,0.7cm)}]interior.south east) to[out=-10,in=220]
([shift={(-0.7ex,0.9cm)}]interior.south east) to[out=250,in=30]
cycle;
\fill[mybrown]
([yshift=-10pt]interior.north) circle [radius=0.23cm];
\fill[mybrown!40]
([yshift=-10pt]interior.north) circle [radius=0.175cm];
\node[
cylinder,
cylinder uses custom fill,
cylinder end fill=mybrown!60,
cylinder body fill=mybrown,
rotate=115,
minimum width=9pt,
minimum height=16pt
]
at ([shift={(-0.2pt,-9.8pt)}]interior.north) {};
},
#1
}
\begin{document}
%\column{.5\textwidth}
\tikz[overlay, remember picture]
\node[anchor=south east,xshift=5.5cm, yshift=-3cm]
{
\begin{NotePad}[width=10cm,height =4cm]{myyellow}
Some test text for this block
\end{NotePad}
}
\tikz[overlay, remember picture]
\node[anchor=south east,xshift=7.5cm, yshift=-10cm]
{
\begin{NotePad}[width=5cm,height=10cm]{myblue}
test text
\end{NotePad}
}
\end{document}
Please see attachment, this button of Notepad display wrong. Thanks



tikzpictures, which should be avoided, and leads to these effects. It is quite possible that, if you either use a\saveboxfor the cylinder or draw it with more basic methods, the problem will disappear, but as long as you nesttikzpictures you will never have full control. – Mar 27 '19 at 14:29tcolorboxusestikzso by usingtcolorboxinside atikzenvironment you're nestingtikzinsidetikz.– JPi Mar 27 '19 at 14:34tcolorboxin a node it is always a gamble. – Mar 27 '19 at 14:49