图书馆要闭馆惹(逃了逃了)...略微匆忙地用resizebox
给了一种缩放&对齐的方法...
\documentclass{book}
\usepackage{amsfonts}
\usepackage{amsmath,amsthm,amssymb,amscd}
\usepackage{graphicx}
\usepackage{ctex}%使用此包可输入中文
\usepackage{tikz}
\usetikzlibrary{patterns}%条纹
\allowdisplaybreaks
\newtheorem{theorem}{\indent 定理}[section]
\newtheorem{remark}[theorem]{\indent 注记}
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\begin{document}
\begin{figure}[htbp]
\begin{minipage}{.49\textwidth}
\centering
\label{tu1}
\resizebox{\textwidth}{4cm}{%
\begin{tikzpicture}
\draw [very thick,-] (-2.8,3.5) -- (5.8,3.5);
\draw [very thick,-] (-2.8,-1.5) -- (5.8,-1.5);
\path [draw, very thick, ->] node at (-.2,-.2) {$o$} (0,0) -- (2.5,0) node at (2.7,0.2) {$\vec{v}$};
\path [draw, very thick, ->](0,0) -- (0,1.7) node[right] {$\vec{u}$};
\path [draw, very thick, color=blue, ->] (0,0) -- (2,1.5)
node at (2.2,1.2) {$x$};
\node at (6.5,2.5) {$\mathbb{R}^{2}$};
\node at (-1.5,1.5) {{\color{red}$O$}};
\draw [very thick, color=red,dashed,-] (-2.5,-1) .. controls (-1,-1.5) and (1.5,1)..(5.5,-1.2);
\draw [very thick, color=red,dashed,-] (-2.5,2) .. controls (-1,1.5) and (1.5,3)..(5.5,2.2);
\end{tikzpicture}%
}
\caption{$\mathbb{R}^{2}$ 上带状示意图}
\end{minipage}\qquad
\begin{minipage}{.49\textwidth}
\centering
\label{tu2}
\resizebox{\textwidth}{4cm}{%
\begin{tikzpicture}
\path [draw, very thick, ->] node at (-.2,-.2) {$O$} (-0.5,0) -- (8,0) node[anchor=north] {$x$};
\path [draw,very thick, ->](0,-0.5) -- (0,6.1) node[anchor=east] {$y$};
\node at (7.5,5.5) {$\mathbb{R}^{2}$};
\draw[very thick,blue,dashed,-] (0.5,0.5) -- (6.5,0.5) -- (6.5,5) --(0.5,5)--(0.5,0.5);
\draw[pattern=north west lines] (3,3) circle (1.5);
\draw [color=red] (3,3) circle (1.5);
\node [fill=white,rounded corners,below of=3] at (2.5,4) {$B$};
\node at (2,1.3) {$ {\color{red}\partial B=B_{0}}$};
\draw (5,3) circle (1.2);
\node at (6.2,1) {$\Lambda$};
\node at (5.5,3) {$S$};
\end{tikzpicture}
}
\caption{$\mathbb{R}^{2}$ 上环绕示意图}
\end{minipage}
\end{figure}
\end{document}
问 latex图片排版问题如何将两幅tikzpicture图片并列居中排版