write a composition by heart.
不可以用 in heart 或者 with heart...
in heart 指在心里,意思是在心里默默的写一篇....
with heart 带着你的心(灵),用的话,一般是指带着你的心去阅读一篇文章...用心去阅读.
write an article by heart
Write a composition with all your heart
you should do your homework by heart.
do sth. by heart 用心的意思
Write an article/composition by heart.
do sth. by heart 是词组
with 后面加使用的工具
in heart 是“在心里”的意思 e.g. put sth in heart
Write a article by your heart.
in绝对不能用
with勉强可用,但意思不如用by贴切