문제
사진은 헤더 위치에 있습니다.http://dl.getdropbox.com/u/175564/%20latex1.png
암호:
\begin{figure}
\subfloat[A gull]{\label{fig:gull}\includegraphics[width=0.15\textwidth]{p1.png}}
\subfloat[A tiger]{\label{fig:tiger}\includegraphics[width=0.15\textwidth]{p2.png}}
\caption{Pictures of animals}
\label{fig:animals}
\end{figure}
begin {document} 전에 코드 :
\documentclass[12pt,a4paper, notitlepage]{article}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{fancyhdr}
\usepackage{verbatim} % by \begin{comment}---\end{comment}
\usepackage{subfig}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{subfig}
\floatstyle{ruled}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
\cfoot{\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\title{Applying a}
문제의 원인은 무엇입니까?
해결책
인물 뜨다.
즉, Tex는 조판 요구를 수용하기 위해 그들을 움직입니다. Tex를 원하는 장소의 유형을 지정할 수있는 옵션이 있습니다. 노력하다 그것들을 사용하기 위해 :
\begin{figure}[htpb]
...
\end{figure}
옵션이 의미하는 경우 :
h -- here
t -- top
b -- bottom
p -- page (on a page-o-floats)
H -- Absolutely right here (but requires the `float` package)
사용 !
옵션에서 Tex에게 시도하라고 말할 것입니다 딱딱한 소스 파일에 인접한 것들 근처에 그것을 넣으려면. 기본 위치는입니다 tbp
, "여기"는 당신이 그것을 요구하지 않는 한 옵션조차 없습니다. 또한 옵션의 순서는 관련이 없으므로 [p!bh]
동일한 결과를 제공합니다 [!hbp]
.
그래서 시도하십시오 \begin{figure}[h!]
(또는 \begin{figure}[H]
이미 한 경우 \usepackage{float}
)
테이블에 대해 동일한 옵션을 사용할 수 있으며 정의하는 다른 부유물에 사용할 수 있습니다.
제휴하지 않습니다 StackOverflow