Generaldegree and appendix

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

degree and appendix

Post by itb1000 »

Hi,
I would like to write the degree symbol (circle).
I use: $^\circ$. The pdf file does not show a space between the degree circle and the next word. How can I solve this problem?

Next question:
My thesis has five chapters and I would like to include figures in an Appendix.
How can I create an Appendix and refer to the Appendix figure numbering in an other chapter?

I tried the following but it does not work:

The main Thesis:

\documentclass[a4paper,12pt]{report}
\begin{document}
\pagenumbering{roman}
\tableofcontents

\pagenumbering{arabic}
\include{chapter1}
\include{AppendixA}
\end{document}

In chapter 1:
\typeout{CHAPTER 1}
\chapter[blabla] {blabla}
\section{Introblabla}
text is shown in Appendix A (Fig.\ref{FigA1}).
more text
vfill


In Appendix A:

\begin{figure}[htbp]
\begin{center}
\includegraphics{pic_chap2/FigA1.jpg}
\end{center}
\caption{text.}\label{FigA1}
\end{figure}
\vfill


Can somebody help me?
Thanks,
Thierry

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

degree and appendix

Post by localghost »

itb1000 wrote:[…] I use: $^\circ$. The pdf file does not show a space between the degree circle and the next word. […]
Include the textcomp package and use \textdegree\ to get the right output.
itb1000 wrote:[…] How can I create an Appendix and refer to the Appendix figure numbering in an other chapter? […]
You have to process your source at least twice to get all references right.


Best regards
Thorsten¹
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

Re: degree and appendix

Post by itb1000 »

Hi Thorsten,
The degree symbol works well m\now. Thanks.

For the Appendix references:
I processed the source several time, the numbering of the figures included in the chapter works fine but I still get Fig.?? for the ones that I included in the Appendix.
Do you think that
In chapter 1:
\typeout{CHAPTER 1}
\chapter[blabla] {blabla}
\section{Introblabla}
Figure is shown in Appendix A (Fig.\ref{FigA1}).
more text
\vfill

In Appendix A:

\begin{figure}[htbp]
\begin{center}
\includegraphics{folder/FigA1.jpg}
\end{center}
\caption{text.}\label{FigA1}
\end{figure}
\vfill

Do you think that it is right?
Thierry
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

degree and appendix

Post by localghost »

Since I don't know what you are relly doing, I can only give an example that works fine for me.

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage[centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{lmodern}
\usepackage{blindtext}

\setlength{\parindent}{0em}
\setlength{\parskip}{\medskipamount}

\begin{document}
  \tableofcontents
  \chapter{One}
    \blindtext

    \begin{figure}[!ht]
      \centering
      \rule{4cm}{3cm}
      \caption{Dummy figure}\label{fig:dummy-1}
    \end{figure}
  \chapter{Two}
    \blindtext

    \begin{figure}[!ht]
      \centering
      \rule{4cm}{3cm}
      \caption{Dummy figure}\label{fig:dummy-2}
    \end{figure}
 
   Reference to Figure~\ref{fig:dummy-a1} and Figure~\ref{fig:dummy-a2}.

  \appendix
  \chapter{One}
    \blindtext

    \begin{figure}[!ht]
      \centering
      \rule{4cm}{3cm}
      \caption{Dummy figure}\label{fig:dummy-a1}
    \end{figure}

  \chapter{Two}
    \blindtext

    \begin{figure}[!ht]
      \centering
      \rule{4cm}{3cm}
      \caption{Dummy figure}\label{fig:dummy-a2}
    \end{figure}
\end{document}
If the references in your document are missing, please post a minimal working example (MWE) that shows the effect.
Attachments
appref-xmpl.pdf
References to the Appendix within the text.
(83.45 KiB) Downloaded 182 times
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

Re: degree and appendix

Post by itb1000 »

Thanks.
Now it works.

I have several chapter and I wouldlike to label the figure with Fig A1 in Appendix A of chapter 1 and Fig B1 Appendix B of chapter 2.
It is possible?

Thanks for your help,

Thierry
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: degree and appendix

Post by localghost »

I'm not sure if you only mean the figure name or its counter or both.
Post Reply