如何让图片整体左移、或者右移若干个单位,如何让图片局部左移、或者右移若干个单位,node{如何换行}

2020-04-06 22:53发布

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex,thick,xshi...

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex,thick,xshift=-50cm] %\begin{scope}[xshift=-5cm] \node[draw](F)at(-1.7,0){Optimization}; \draw[->](-5,0)--node[above]{inputs}node[below]{$x$}(F); \node[draw](I)at(2.5,-2){Global Optimization}; \draw(F)--(F|-I); \draw[->](F|-I)--node[above]{Input sets}(I); %\begin{scope}[xshift=1cm] \node[draw](T)at(5.5,0){Output sets}; \draw(I)--node[above]{Output value}(I-|T); \draw[->](I-|T)--(T); \node[draw](D)at(5.5,1){Optimization}; \draw[->](T)--(D); \draw[->](T)--node[above]{Output optimal set}node[below]{T1 FS}(10.2,0); \draw[->](D)--node[above]{Solution outputs}node[below]{$u$}(10.2,1); \draw[dashed](4.2,-0.6)rectangle(6.8,1.5); \node at(5.5,1.8){Output processing}; %\end{scope} \node[draw](R)at(2.5,1){Rules}; \draw[->](R)--(I); \draw[dashed](-4.8,-2.5)rectangle(9.9,2.3); \node at(2.5,-2.85){$u=f(x)$}; \node at(8.9,2.65){Optimization}; %\end{scope} \end{tikzpicture} \end{document}
2条回答
```tex \documentclass[tikz]{standalone} \usepackage{ctex} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle (1,1); \begin{scope}[xshift=4cm] \draw (0,0) rectangle (1,1) node [below right] {\parbox{2em}{我要换行}}; \end{scope} \end{tikzpicture} \end{document} ```

一周热门 更多>