Generalneed no Appendix numbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

need no Appendix numbering

Post by pallav »

I have a problem with my appendix. Actually, no numbering of appendix is needed and all of my equations of the appendix section should be numbered as (A.1), (A.2). The second is coming OK but Appendix section is numbered by 1, which I don't want. Note that \section*{Appendix} does not solve the issue (equation numbering is not desirable for it).

Note that I have one and only one Appendix section.

Please be kind enough to help me to solve the problem.

Code: Select all

 \documentclass[final,3p,times]{elsarticle}
 \usepackage{graphics}
\usepackage{epsfig}
\usepackage{amssymb,amsfonts,amsmath,amsthm}
\usepackage[titletoc,toc,title]{appendix}
\usepackage{hyperref}
\hypersetup{colorlinks = true,linkcolor = blue, anchorcolor = blue, citecolor = blue, pdfstartpage=1, filecolor = red,urlcolor = red}
\usepackage{hypcap}
 \usepackage{lineno}
%*******************************************************************
%NECESSARY TO OBTAIN THE SECTIONS, SUBSECTIONS, ETC. DEFINED AS 1.1., 2.1.3. FOR INSTANCE
%*******************************************************************
\renewcommand\thesection{\arabic{section}}
    \renewcommand\theequation{\thesection.\arabic{equation}}
       \renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}
       \renewcommand\theequation{\thesection.\arabic{equation}}
 \biboptions{comma,square,sort&compress}
\begin{document}
\section{Introduction}
\label{intro_a} 
 \noindent Study 
\begin{align}
        a=b+c
\end{align}

\section{abs}
Let
\begin{align}
        c=d+r
\end{align}
\appendix
\renewcommand\thesection{\arabic{section}}
%\chapter{Only Appendix}
\section{Appendix}
\noindent \textbf{Computation of A, B, C}
\label{appendix}
\vspace{2em}

\noindent Throughout this section,
\begin{align}
	A=a+b+c
\end{align}
\end{document}
Attachments
elsarticle.cls
(25.48 KiB) Downloaded 552 times
untitled.JPG
untitled.JPG (12.57 KiB) Viewed 16641 times
Last edited by pallav on Wed May 08, 2013 6:09 pm, edited 4 times in total.

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

need no Appendix numbering

Post by localghost »

pallav wrote:I need no numbering of appendix and I need all equations of the appendix section numbered as (A.1), (A.2).[…]
Don't you think that this is quite irritating for the reader?


Thorsten
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

need no Appendix numbering

Post by pallav »

Don't you think that this is quite irritating for the reader?
Yes, I understand the language problem. I have edited. Very sorry for the inconvenience caused due to the fact.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

need no Appendix numbering

Post by localghost »

pallav wrote:Yes, I understand the language problem. I have edited. Very sorry for the inconvenience caused due to the fact.
Of course I understood what you wanted to say. Actually I meant that it could be irritating for the reader of your document to have an unnumbered appendix but strangely numbered equations.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: need no Appendix numbering

Post by pallav »

Yes, I got your point.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

need no Appendix numbering

Post by localghost »

pallav wrote:Yes, I got your point.
And you want to keep that numbering or not?
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: need no Appendix numbering

Post by pallav »

Equation numbering in a presentable way is earnestly solicited. Also, as I have only one appendix section, I don't want to mention this section as appendix A. Please help me to solve this issue so that I can present the appendix along with its equation numbering in a most presentable way.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

need no Appendix numbering

Post by localghost »

Try this sample with a customization by titlesec. I ventured to optimize parts of the code. Furthermore I shortened the example by cutting irrelevant code (which is not needed at all) to make it more minimal.

Code: Select all

\documentclass[final,3p,times]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage{mathtools}  % loads »amsmath«
\usepackage{amssymb,amsfonts,amsthm}

\usepackage[raggedright]{titlesec}
\titleformat{\section}{\normalfont\bfseries}{\thesection.}{1em}{}

\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  linkcolor=blue,
  anchorcolor=blue,
  citecolor=blue,
  pdfstartpage=1,
  filecolor=red,
  urlcolor=red
}

\numberwithin{equation}{section}
\biboptions{comma,square,sort&compress}

\begin{document}
  \section{Introduction}\label{sec:intro} 
    \noindent Study 
    \begin{align}
      a=b+c
    \end{align}

  \section{abs}
    Let
    \begin{align}
      c=d+r
    \end{align}

  \titleformat{\section}{\normalfont\bfseries}{}{0em}{}
  \appendix
  \section{Appendix}
    \noindent \textbf{Computation of A, B, C}
    \vspace{2em}

    \noindent Throughout this section,
    \begin{align}
       A=a+b+c
    \end{align}
\end{document}
Remarks:
  • There will be a warning from titlesec which can be neglected as everything works as expected.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: need no Appendix numbering

Post by pallav »

Thanks a lot. Its works fine.
Post Reply