I want to change the size of the page as same as the image size. Here is the link:


  • My suggestion: compiling standalone image, then insert into main.tex with \includegraphics[width=\textwidth]{image}
    – Black Mild
    Aug 15, 2019 at 6:23
  • Use package incgraph. Some examples here: tex.stackexchange.com/a/287054/1952, tex.stackexchange.com/a/405960/1952
    – Ignasi
    Aug 15, 2019 at 8:55
  • My previous comment is valid if you want to get a physical page as large as an included image, but after looking at your example, I'm not sure about your question. Please make it clearer. By the way, you should clean your preamble, a lot of packages are loaded two or more and a lot of packages are not necessary to get the figure.
    – Ignasi
    Aug 15, 2019 at 9:01
  • See tex.stackexchange.com/questions/6834/…. You can determine the image size using a savebox. Aug 15, 2019 at 12:42


You must log in to answer this question.

Browse other questions tagged .