の作成方法に独自のジャンル\字<float> コマンド
質問
私が使っているパッケージ subfigure
や float
を図ることをしていきたいと思作り出してしまおうというものを自分の環境 graph
独自のカウンターやキャプション解決しなけ, さて、皆さdmckee).今回のように作成 \subgraph
コマンドをまと全く同じ \subfigure
コマンドです。
また、自分でコマンドpropreateカウンター(この支援, は、アレク).で問題がありましたが、どれを使用 \ref
コマンドです。参照 \subfigure
を返します 2.1(a) が参照 \subgraph
を返します 1.
どうかこん subfig
マニュアルでは、がその場で発音を確認することが \newsubfloat
コマンドの例です。最初の誤った使用中の subfig
's"コマンド subfigure
とんこだわった。を利用した場合、 subfigure
アクセスできま \subfigure
ることができていない力 \subgraph
仕事利用の場合 subfig
できるアクセス \subfloat
に graph
な figure
や \ref
を返します 1.0a の代わりに 1.1(a).
定義による subfig
package:
\newfloat{graph2}{tbph}{lom}[chapter]
\restylefloat*{graph2}
\floatstyle{plain}
\floatname{grap2}{Graph2}
\captionsetup[graph2]{position=top}
\newcommand{\listofGraphs}{\listof{Graph2}{List of Graphs}}
\newsubfloat[position=bottom,listofformat=subsimple]{graph2}
定義を自分の \subgraph
\newfloat{graph1}{H}{lop}[chapter]
\floatname{graph1}{Graph1}
\newcounter{GraphOne}[graph1]
\def\theGraphOne{\alph{GraphOne}}
\newcommand{\subgraph}[2][]{
\captionof{subGraph}{#1} #2
}
\newfloat{subGraph}{H}{lop}[graph1]
\floatname{subGraph}{}
力を貸してください理解にどのよう \label
や \ref
コマンドを作るだろうと思液が崩れたので \label
前 \caption
)および/または強制力 subfig
パッケージとしています。
おうとする寄私の英語とします。
Crowley
改善:
を使用 caption
パッケージを作成します新しいカウンター(subGraph
び利用することその環境です。唯一の方法についてもカウンター(subgraph、グラフcorreclyとは \captionof{graph}
前 \subgraph
.
なので、私の質問は実行方法 \captionof{graph}
前究の対象とtypesetに示す。どのように力 \ref
表1.1-aの代わりに1.1.1
Atachements:
コード subfigure
:(返します <chapter>
.<figure>
(<subfigure>
)。
\begin{figure}
\subfigure[sub-caption]{\includegraphics{fig1}\label{fig:1}}
\caption{main caption}
\end{figure}
\ref{fig:1}
コード subfig
:(返します <chapter>
.<graph2>-1<subfigure>
)が間違っています。
\begin{graph2}
\subfloat[sub-caption]{\includegraphics{fig1}\label{fig:2}}
\caption{main caption}
\end{graph2}
\ref{fig:2}
私のコード:(返します <chapter>
.<graph1>
.<subgraph>
がキャプションの"場所")
\begin{graph1}
\captionof{graph1}{main caption}
\subgraph[sub-caption]{\includegraphics{fig1}\label{fig:3}}
\end{graph1}
\ref{fig:3}
解決
行きたいというニーズが subfig
液(subfigure
で推奨されていませんがとにかく).、、、間違った参考文献がない を使用 \label
誤.が必要です \label
コマンド 後 の \caption
, 又はその一環として:
\begin{figure}
\caption{A Figure}
\label{fig}
\end{figure}
または
\begin{figure}
\caption{A Figure%
\label{fig}}
\end{figure}
編集:以下の"作品になる。などを伝えるところから \label
後の \caption
:
\documentclass{report}
\usepackage{float}
\usepackage{subfig}
\newfloat{graph2}{tbph}{lom}[chapter]
\restylefloat*{graph2}
\floatstyle{plain}
\floatname{grap2}{Graph2}
\captionsetup[graph2]{position=top}
\newcommand{\listofGraphs}{\listof{Graph2}{List of Graphs}}
\newsubfloat[position=bottom,listofformat=subsimple]{graph2}
\begin{document}
\chapter{Test}
\section{Test s}
\begin{graph2}
\subfloat[sub-caption]{\fbox{Fig 1}}
\caption{main caption}
\label{fig:1}
\end{graph2}
\begin{graph2}
\subfloat[sub-caption]{\fbox{Fig 2}}
\caption{main caption}
\label{fig:2}
\end{graph2}
Graph~\ref{fig:1} is the first graph, and~\ref{fig:2} is the second.
\end{document}
この生産:
Graph 1.1 is the first graph, and 1.2 is the second.
他のヒント
できない凝らしがしたいりrefstepcounterくりaddtocounter.