我画了一个智能图,但编译时它超出了页边距。请指导我完成此操作。如果可能的话,将其分成两行也很有帮助。我的代码是
%%%<
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[12pt, a4paper]{report}
\setlength{\headheight}{110pt}
\setlength{\voffset}{5pt}
\setlength{\hoffset}{10pt}
\setlength{\footskip}{30pt}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{verbatim}
%%%>
\usepackage{smartdiagram}
\begin{document}
\smartdiagramset{back arrow disabled=true}
\smartdiagram[flow diagram:horizontal]{Material sources for system,
Input conditioning of system, sub-system model, Material Source for second system, first Output/second system Input condition,system Synthesis sub-system, system Synthesis Output condition}
\end{document}\\
答案1
使用 -
\scalebox{0.7}{
\smartdiagram[...]{.....}}
\documentclass[12pt, a4paper]{report}
\setlength{\headheight}{110pt}
\setlength{\voffset}{5pt}
\setlength{\hoffset}{10pt}
\setlength{\footskip}{30pt}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{verbatim}
%%%>
\usepackage{smartdiagram}
\begin{document}
\smartdiagramset{back arrow disabled=true}
\scalebox{0.7}{
\smartdiagram[flow diagram:horizontal]{Material sources for system,
Input conditioning of system, sub-system model, Material Source for second system, first Output/second system Input condition,system Synthesis sub-system, system Synthesis Output condition}}
\end{document}
答案2
快速技巧,无需减小图表大小。通过使用 将图表向左移动\hspace{-3.5cm}
。
\documentclass[12pt, a4paper]{report}
\setlength{\headheight}{110pt}
\setlength{\voffset}{5pt}
\setlength{\hoffset}{10pt}
\setlength{\footskip}{30pt}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{verbatim}
%%%>
\usepackage{showframe}% <-- To see the margins of the page
\usepackage{smartdiagram}
\begin{document}
\smartdiagramset{back arrow disabled=true}
\hspace{-3.5cm}\smartdiagram[flow diagram:horizontal]{Material sources for system,
Input conditioning of system, sub-system model, Material Source for second system, first Output/second system Input condition,system Synthesis sub-system, system Synthesis Output condition}
\end{document}
答案3
您可以简单地使用adjustbox
来自adjustbox
包会自动缩放图表以适应\textwidth
。我还添加了module minimum height=3.5cm
使所有框高度相同的选项。
\documentclass[12pt, a4paper]{report}
\setlength{\headheight}{110pt}
\setlength{\voffset}{5pt}
\setlength{\hoffset}{10pt}
\setlength{\footskip}{30pt}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{showframe}
\usepackage{verbatim}
\usepackage{adjustbox} % Added!
\usepackage{smartdiagram}
\begin{document}
\begin{adjustbox}{width = \textwidth}
\smartdiagramset{back arrow disabled=true, module minimum height=3.5cm}
\smartdiagram[flow diagram:horizontal]{
Material sources for system,
Input conditioning of system,
sub-system model,
Material Source for second system,
first Output/ second system Input condition,
system Synthesis sub-system,
system Synthesis Output condition
}
\end{adjustbox}
\end{document}