TeX - LaTeX Asked by cephlot on January 4, 2021
I have to write a report for school and I need to include a UML class diagram for a Java assignment. I am using the PlantUML integration within IntelliJ to create a beautiful diagram without any whitespace around it. But when I put it into my LaTeX report I get So much white space that it’s hard to read…
This is my code to include the .svg
figure:
begin{figure}[h]
includesvg[width=textwidth, inkscapelatex=false]{uml}
caption{Ett UML-diagram över klasserna i systemet.}
label{fig:uml}
end{figure}
MWE:
documentclass[11pt, titlepage, oneside, a4paper]{article}
usepackage{graphicx}
usepackage{svg}
usepackage{float}
begin{document}
begin{figure}[h]
fontsize{11}{13}selectfont
includesvg[width=columnwidth, inkscapelatex=false]{uml}
caption{Ett UML-diagram över klasserna i systemet.}
label{fig:uml}
end{figure}
end{document}
Result:
This is my goal. I’m using a .png
here, which is lower quality and doesn’t store vectors. As you can see the image doesn’t have unnecessary whitespace above the caption:
I would've added this as a comment but my reputation is too low to comment:
What I end up doing on such occasians is one of the following things:
I know that these are not the "best" solutions and there is probably a native LateX solution but I just wanted to give a little help.
Answered by Robin Schmidt on January 4, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP