I used xelatex and the asymptote package for the asy pictures inside the tex file, which both worked just fine. But when I install the Miktex and asymptote on my new computer (the OS is the same as the old one), I find the asy picture would turn out to be on a full size of A4paper instead of a small picture which just contain its content as it should be whenever I put a label in that asy picture.
What can I do to fix this? Many thanks.
texpreamble("\usepackage[nosetpagesize]{color,graphicx}");
to your.asy
file.texpreamble("\usepackage[nosetpagesize]{color,graphicx}");
really works!