0

I am creating an appendix in report format.

\documentclass[a4paper,12pt]{report}

\usepackage[titletoc]{appendix}
\include{chapter1} %chapter 1
\include{chapter2} %chapter 2
\include{chapter3} %chapter 3
\include{chapter4} %chapter 4
\include{chapter5} %chapter 5
\include{chapter6} %chapter 6
\include{chapter8} %chapter 8
\include{chapter9} %chapter 9
\include{chapter10}%chapter 10
\include{acknowledgement}
\bibliographystyle{IEEEtran}
 \bibliography{mybib2}
 \appendix
 \chapter{title}
 \include{chapter7} %chapter 7
\end{document}

However, output is showing flush right. enter image description here

Please suggest some solution. I tried writing \justifying in that chapter. I got error.

Thank you in advance.

6
  • 1
    Welcome to TeX.SX! I suspect something is wrong in the code in acknowledgement.tex
    – egreg
    Sep 8, 2016 at 9:40
  • \chapter{Mathematics for fractional calculus} \label{ch7} \section{{Gamma function}} The Gamma function is defined by the following equation, which is useful as factorial is not defined for all real numbers \cite{Milton1972}, \begin{equation} \Gamma (x)= \int_{0}^{\infty} t^{^{x-1}}e^{-t}dt, \Re(Z)>0 \end{equation} Some properties of gamma function Sep 8, 2016 at 9:52
  • If I include this appendix as chapter, there is no problem. Problem only during appendix. Sep 8, 2016 at 9:53
  • I mentioned acknowledgement.tex; can you show its contents by doing an edit to your question?
    – egreg
    Sep 8, 2016 at 9:56
  • Hi, It worked. I used flush right in acknowledgment. \flushright{\textbf{Pritesh Shah}}, I commented this line. Now, it is working. Thanks. How can I use flush right in acknowledgment? Sep 8, 2016 at 9:58

1 Answer 1

1

It's a common error to think that in order to flush right some words one does

\flushright{some words}

This is a very big mistake:

  1. flushright is an environment
  2. Even if \flushright by itself produces no error, it will set up ragged left typesetting forever

In your case, the bibliography stopped this because of how the thebibliography environment works, but as soon as the bibliography ends, ragged left typesetting as ordered by issuing \flushright resumes.

Solution: do

\begin{flushright}
\textbf{Pritesh Shah}
\end{flushright}

instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .