O*O 发帖数: 2284 | 1 我按下面的做的
可是图不是居中
而是靠左
另外如何不用\\来实现多图竖排列(一排一个图)
\begin{figure}
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig1.eps}
\centerline{(a)}
\end{minipage}\\
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig2.eps}
\centerline{(b)}
\end{minipage}\\
\begin{minipage}[t]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{fig3.eps}
\centerline{(c)}
\end{minipage}\\
\caption{}
\label{fig:myfig}
\end{figure} |
|
G****A 发帖数: 4160 | 2 想给每个minipage都加上caption,但是老不对,把每个minipage都识别成一个Fig了,而
且加上的caption格式不对.大家帮忙看看: |
|
s***a 发帖数: 1676 | 3 用subfigure吧
想给每个minipage都加上caption,但是老不对,把每个minipage都识别成一个Fig了,而
且加上的caption格式不对.大家帮忙看看: |
|
g******9 发帖数: 44 | 4 minipage有什么option能让他横跨两页?
比如从第一页的中间开始,到第二页的中间结束?
page 1
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
begin of minipage |
|
T*******n 发帖数: 493 | 5 You are including a figure of width \textwidth inside a
minipage of width 0.5\textwidth!
Try something simpler:
\documentclass{article}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=\textwidth]{fig1.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig2.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig3.eps}}
\caption{Caption}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=\textwidth]{fig1.eps} \\ (a)\par\bigski |
|
b*********n 发帖数: 173 | 6 Seems it is not possible. Please refer to the replies to the following post:
http://www.mail-archive.com/l*******[email protected]/msg48775.html
What is in the minipage? Is there another way to present the same material
using another environment? e.g., tables and figures can span multiple pages. |
|
i***g 发帖数: 551 | 7 用subfig这个package,大概是这个样子的:
\begin{figure}
\subfloat[][]{
\label{fig:xxx:a}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}
\hfill
%
\subfloat[][]{
\label{fig:xxx:b}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}\\
%
\subfloat[][]{
\label{fig:xxx:c}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}
\hfill
%
\subfloat[][]{
\ |
|
n*s 发帖数: 752 | 8 i tried this, seems to work:
\begin{minipage}[t]{\linewidth}
\parbox[t]{0.6\linewidth}{what i want to say........... }
\hfill
\begin{minipage}[t]{0.3\linewidth}
\mbox{\includegraphics[width=3cm]{mpe.eps}}
\end{minipage}
\end{minipage} |
|
b*********n 发帖数: 173 | 9 \begin{figure}
\begin{minipage}[b]{0.45\linewidth}
{My Text and Equations goes here}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=6cm]{abc}
\caption{En liten bild till}
\end{minipage}
\end{figure}
reference: http://www.tug.org/pipermail/tugindia/2005-November/003689.html |
|
a**e 发帖数: 5794 | 10 \begin{figure}[htb]
\begin{minipage}[b]{0.5\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{graphic}
\caption{This is a Figure by a Table}
\label{fig:by:table}
\end{minipage}%
\begin{minipage}[b]{0.5\linewidth}
\centering
\begin{tabular}{|c|c|} \hline
Day & Data \\ \hline\hline
Monday & 14.6 \\
Tuesday & 14.3 \\
Wednesday & 14.2 \\
Thursday & 14.5 \\
Friday & 14.9 \\ \hline
\end{tabular}
\captionof{table}{This is a Table by a Figure}
\label{table:by:fig}
\end{minipage}
\end{figure} |
|
y**b 发帖数: 10166 | 11 下面代码画figure,里面有两幅图片,形成上下布局,但是之间靠得太近。
怎么加大距离呢?
\begin{figure}[!htbp]
\centering
\begin{minipage}[t]{0.80\linewidth}
\begin{center}
\includegraphics[angle=0,width=0.95\linewidth]{../figures/friction_compare.
eps}\\
(a)
\end{center}
\end{minipage}\hfill
\begin{minipage}[t]{0.80\linewidth}
\begin{center}
\includegraphics[angle=0,width=0.95\linewidth]{../figures/positionz_compare.
eps}\\
(b)
\end{center}
\end{minipage}\hfill
\caption{Effect of mass proportional damping: (a) horizontal friction force, |
|
k**f 发帖数: 372 | 12 using the graphicx package, then
\begin{figure}
\centering
%%----start of first figure----
\begin{minipage}[t]{0.4\linewidth}
\centering
\includegraphics[width=1in]{graphic}
\caption{Small Box} \label{fig:side:a}
\end{minipage}%
\hspace{1cm}%
%%----start of second figure----
\begin{minipage}[t]{0.4\linewidth}
\centering
\includegraphics[width=1.5in]{graphic}
\caption{Big Box} \label{fig:side:b}
\end{minipage}
\end{figure}
Example extracted from Part V, section 28 of this document
http://tug.ctan |
|
m******i 发帖数: 32 | 13 this code outputs "Figure 1: Small Box"
is it possible to get "Fig.1. Small Box"?
using the graphicx package, then
\begin{figure}
\centering
%%----start of first figure----
\begin{minipage}[t]{0.4\linewidth}
\centering
\includegraphics[width=1in]{graphic}
\caption{Small Box} \label{fig:side:a}
\end{minipage}%
\hspace{1cm}%
%%----start of second figure----
\begin{minipage}[t]{0.4\linewidth}
\centering
\includegraphics[width=1.5in]{graphic}
\caption{Big Box} \label{fig:side:b}
\end{minipage}
\end |
|
g*********r 发帖数: 124 | 14 \begin{figure}[!htb]
\centering
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1a}
\includegraphics[width=1.0\textwidth]{1a.eps}}% 左边大图
\end{minipage}\hfill
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1b}\includegraphics[width=1.0\textwidth]
{1b.eps}}\ % 右上小图
\subfloat[\footnotesize]{\label{fig:1c}\includegraphics[width=1.0\textwidth]
{1c.eps}} % 右下小图
\end{minipage}
\caption{...}
\label{fig:1}
\end{figure}
如果想达到两边图形高度相等的效果,两个小页的宽度需要作适当调整。
c) |
|
w****h 发帖数: 212 | 15 我定义2副图片如下,结果都无法显示,虽然编译没报错。
如果只加载一副图片,就没问题。不知道如何修改,多谢。
as Fig.\ref{fig:rate1} shows.
as Fig.\ref{fig:simptop} shows.
....................................
\begin{figure}[hbtp]
\centering
\begin{minipage}[b]{3.4in}
\includegraphics[scale=0.3]{simnettop1.eps}
\caption{Network Topology}
\label{fig:simptop}
\end{minipage}
\vspace{-0.7cm}
\end{figure}
%\begin{figure}[hbtp]
% \centering
% \begin{minipage}[b]{3.4in}
% \includegraphics[scale=0.3]{rate1.eps}
% \caption{N |
|
t******y 发帖数: 147 | 16 update一下,我改用
begin{theorem}
..............................
begin{minipage}[t]{linewidth}
begin{itemize}
item ........................
end{itemize}
end{minipage}
..............................
end{theorem}
这下iteminze中的文字和公式都没有超过rightmargin,但是minipage之前的文字被
stretch到整行了。有什么命令可以防止文字被full stretch吗? |
|
d**********o 发帖数: 1321 | 17 第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖 |
|
d**********o 发帖数: 1321 | 18 第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖 |
|
T*******n 发帖数: 493 | 19
Try the minipage environment (you can optionally specify the
height), followed by a \clearpage if needed.
Try either minipage or \parbox, or define your own environment
using something like the following to make the special paragraph
indented 0.5 inch on both left and right sides (negative length will
make the paragraph wider than normal text width):
\newenvironment{specialpar}%
{\list{}{\setlength{\leftmargin}{0.5in}\setlength{\rightmargin}{0.5in}}\item
}%
{\endlist}
\begin{specialpar}
tex |
|
p******n 发帖数: 12 | 20 How about this?
\begin{tabular}{cc}
abc & \begin{minipage}{2.0in}
\begin{itemize}
\item asdfs
\item asdfds
\end{itemize}
\end{minipage} \\
\end{tabular} |
|
N**D 发帖数: 10322 | 21 try
\begin{minipage}
\end{minipage}
(I didn't try it) |
|
T*******n 发帖数: 493 | 22 \begin{document}
\begin{itemize}
\item a
\item b
\end{itemize}
\begin{tabular}{|c|}
\hline
\begin{minipage}{1in}
\begin{itemize}
\item \strut a
\item b
\strut
\end{itemize}
\end{minipage}
\\\hline
\end{tabular}
\end{document} |
|
l*********t 发帖数: 165 | 23 \newcommand{\makeheading}[1]%
{\hspace*{-\marginparsep minus \marginparwidth}%
\begin{minipage}[t]{\textwidth+\marginparwidth+\marginparsep}%
{\large \bfseries #1}\\[-0.15\baselineskip]%
\rule{\columnwidth}{1pt}%
\end{minipage}}
............
\makeheading{\center\Large Chapter}
这是个模版来的,就是在chapter 下加了一个下划线,长度可变的,
\center 命令就不起作用了,
要怎么办才能把"chapter" 居中呢?
谢谢 |
|
a**e 发帖数: 5794 | 24 我看不懂你的例子,就自己写了一个。
\documentclass{article}
\usepackage{color,calc}
\definecolor{demo@bgcolor}{gray}{.8}
\let\oldfboxsep\fboxsep
\newsavebox{\mybox}
\newenvironment{shadedbox}{
\noindent
\begin{lrbox}{\mybox}
\begin{minipage}[c]{.945\textwidth}
}{
\end{minipage}
\end{lrbox}%
\setlength{\fboxsep}{8pt}
\colorbox{demo@bgcolor}{\usebox{\mybox}}
\setlength{\fboxsep}{\oldfboxsep}
}
\begin{document}
\begin{shadedbox}
blar
\end{shadedbox}
\end{document} |
|
a****9 发帖数: 418 | 25 如果你table可以不要caption的话
可以这样
\begin{figure}
\begin{tabular}
here goes your table
\end{tabular}\\
\includegraphics{fig.eps}
\caption{the table and the figure}
\end{figure}
这样就是一个figure环境里放了一个tabular和一个图片, 他们share一个caption
如果两个都需要caption
我觉得最好用minipage环境, 然后把两个都放到minipage里面 |
|
y***a 发帖数: 840 | 26 I have a 2X2 graph which contains 4 subfigures in my latex file as follows.
The problem is that this 2X2 graph is not big enough for one page (I estimate
that it only occupies 50% of the page), but latex doesnot put the neighboring
text in the same page with this graph. Anybody knows how to force latex to
squeeze some text into the same page with the graph? thanks.
\begin{figure}[htbp]
\centering
\begin{minipage}{6.5cm}
\subfigure[situation1.]{
\includegraphics[width=6.55cm]{experiments/1.eps} |
|
T*******e 发帖数: 47 | 27 no. It was clearly stated that wrapfig cannot work together with list
environment.
I just gave it up :(
Maybe somehow combine with minipage will be a more robust way. |
|
J*******r 发帖数: 379 | 28 如果你知道,文字和图的长度,可以简单的用minipage完成这个功能.
如果你希望更灵活一些,可以用wrapfig package.好像还有一两个其他的
工具包也能实现相同的功能. |
|
|
|
T*******n 发帖数: 493 | 31 Wrap \framebox around a \parbox or a minipage environment. |
|
|
b****t 发帖数: 29 | 33 通过minipage,找到有人用columns解决这个问题。谢谢。下面是我的code,既可以插入
图片,也能插入list.
\begin{columns}
\begin{column}{0.3\textwidth}
\includegraphics[width = 20mm]{CTMC-non-disruption}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}
\item Possion demand
\item No Leadtime
\item No Supply Disruption
\end{itemize}
\end{column}
\end{columns} |
|
A**********e 发帖数: 3102 | 34 need to use an environment, like minipage |
|
|
E*****d 发帖数: 238 | 36 像word里那样,图片一边还是文字,
现在一张图片插入后,左右空的太多了(用的是single column)
是不是用minipage能行?具体不知道怎么样,有人知道嘛? |
|
|
|
s******e 发帖数: 285 | 39 or simply tabular
minipage. |
|
h******s 发帖数: 176 | 40 your code can be simplified and there is no need for minipage
\begin{figure}[htbp]
\centering
\subfloat[][]{\label{fig1a}%
\includegraphics[height=x.yin]{fig1a}}%
\subfloat[][]{\label{fig1b}%
\includegraphics[height=x.yin]{fig1b}}%
\\
\subfloat[][]{\label{fig1c}%
\includegraphics[height=x.yin]{fig1c}}%
\subfloat[][]{\label{fig1d}%
\includegraphics[height=x.yin]{fig1d}}%
\caption{your caption.}\label{fig1}%
\end{figure} |
|
m*********g 发帖数: 273 | 41 我需要在thesis中加一些示例,本来是用minipage和fbox,parbox来做,但是我觉得框
不够简洁,所以我想用下面的样子:
Example:whatever |
|
u******s 发帖数: 316 | 42 Thanks a lot....I did it yesterday ..minipage too ,but using 'overpic'
package .. |
|
Y*Y 发帖数: 694 | 43 我用过minipage来实现这一功能。但不知是否有更好的方法。 |
|
Y*Y 发帖数: 694 | 44 我用过minipage来实现这一功能。但不知是否有更好的方法。 |
|
a***n 发帖数: 3633 | 45 比如把一些东西放到minipage里,然后要求用原尺寸65%的scale来
显示? |
|
S**I 发帖数: 15689 | 46 add command to change the font size within minipage |
|
|
a**e 发帖数: 5794 | 48 \mbox 对应 \fbox
\makebox 对应 \framebox
\parbox 没有对应的box,可以用\fbox 里面嵌套 minipage 实现。 |
|