Text FormattingShort appendix question

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Nardo
Posts: 9
Joined: Sun Nov 21, 2010 5:22 pm

Short appendix question

Post by Nardo »

Hi guys,

I have a short question about the appendix. My code is the following:

Code: Select all

\newpage
\addcontentsline{toc}{section}{Appendix}
\appendix
\section*{Appendix}
\subsection{Graph 1}
Now the content gives my the followiwing expression .1 Graph 1. How can I change this to A.1 or A1 Graph 1?


Thank you!!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Short appendix question

Post by frabjous »

Without knowing what document class you're using and other settings, it's not entirely clear what the best way to handle this would be, but you could try something like:

Code: Select all

\newpage
\addcontentsline{toc}{section}{Appendix}
\appendix
\section*{Appendix}
\renewcommand{\thesubsection}{A.\arabic{subsection}}
\subsection{Graph 1}
Nardo
Posts: 9
Joined: Sun Nov 21, 2010 5:22 pm

Short appendix question

Post by Nardo »

Hi,

my setting is like this:

Code: Select all

\documentclass[12pt]{article}
%\usepackage[ngerman]{babel}
%\usepackage{a4wide}
\usepackage{setspace}
\usepackage{geometry}
\geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=25mm}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{float}
\usepackage{lscape}
\usepackage{color}
\newcommand{\WichtigFarbe}{\color{blue}}%
\newcommand{\magenta}{\color{magenta}}%
\newcommand{\TextFarbe}{\color{black}}%
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{darkred}{rgb}{0.5,0,0}
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=darkred,
            citecolor=darkblue, urlcolor=red]{hyperref}
\usepackage{appendix}
\usepackage[round]{natbib}
%\usepackage{chicago}
%\usepackage{harvard}
\usepackage[hang,small,bf]{caption}
\usepackage{amsmath, amssymb}
\usepackage[ansinew]{inputenc}
\usepackage{longtable}
\usepackage[hang,small,bf]{caption}
\usepackage{url}
\usepackage{booktabs}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage[T1]{fontenc}
%\usepackage{setspace} %\onehalfspacing
%\usepackage{vmargin}
\usepackage{fancyhdr}
\usepackage{threeparttable}


\begin{document}

\pagenumbering{Roman}
\begin{titlepage}
\vspace*{-2cm} \vspace{-1cm}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Short appendix question

Post by frabjous »

Really? Take me halfway through the title page and leave me there? I assume at least that you have and \end{titlepage} and perhaps a \pagenumbering{arabic} after that...?

Anyway, I think my suggestion above should be fine. If not, what's wrong? Please provide an actual minimal working example.
Nardo
Posts: 9
Joined: Sun Nov 21, 2010 5:22 pm

Re: Short appendix question

Post by Nardo »

Hi frabjous,

it worked.
Thank you very much for the help!!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Short appendix question

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply