File: testclass.tex

package info (click to toggle)
tralics 2.14.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 17,152 kB
  • ctags: 8,260
  • sloc: cpp: 49,403; xml: 18,145; sh: 140; makefile: 118
file content (42 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\documentclass{Xarticle}
% The purpose of this file is to check  the following invocation
% tralics testclass -defaultclass=article
% Tralics DOCTYPE = std classes.dtd
\usepackage{subfigure}

\begin{document}

\makeatletter
\@ifclassloaded{Xarticle}{OK}{BAD}
\@ifclassloaded{article}{bad}{ok}
\ifx\appendix\relax bad \else ok\fi  % changed 9 may 2011

Reference to figure: \ref{fig:fig1}
Reference to first subfigure: \ref{fig:fig1a}
Reference to second subfigure: \ref{fig:fig1b}

\begin{figure}[htbp]
  \XMLaddatt{FOO}{BAR}
    \centering
    \subfigure[first subfigure caption]{
           \includegraphics{figure1a.eps}
       \label{fig:fig1a}
    }
    \hspace{2cm}
    \subfigure[second subfigure caption]{
           \includegraphics[width=3cm]{figure1b.eps}
       \label{fig:fig1b}
    }
\par
    \subfigure{\includegraphics{figure1c}}
    \caption{main figure caption}
    \label{fig:fig1}
\end{figure}

\chapter{foo}
\section[Sec]{sec$1$}
\chapter[chapter two]{foo$2$}
\section*{sec$2$}


\end{document}