## LaTeX forum ⇒ Theses, Books, Title pages ⇒ caption positioning

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
rasepideh
Posts: 16
Joined: Wed Jan 27, 2016 2:09 pm

### caption positioning

Hi all,

I used this command to import my image inside the text but the problem is that the caption is in the center, so how should I define to start writing caption from left side?
I attached the what it looks like in my thesis.

I hope to hear from you.
Sepideh

\begin{figure}[h]\centering\includegraphics[width=\textwidth]{region}\caption{Location of river, ditch and observing piezometers within Pasture Meadow, [left figure]; The Digital Elevation Model (DEM) was prepared by applying the kriging method which used measured points from surveying in a 25*25m grid over a 7.5 ha surface area [right figure]. }\label{region}\end{figure}
Attachments
Screen Shot 2016-03-10 at 20.07.05.png (106.32 KiB) Viewed 4736 times

Tags:

Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm
You can load the caption package and use the option nooneline.
With the information given, hard to say if this works or if your class is incompatible.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

rasepideh
Posts: 16
Joined: Wed Jan 27, 2016 2:09 pm
Hi,

Thanks for reply. But, I've already installed and used "Caption" package and it didn't work, or at least I don't know how to use "noonline" option.
I am using "MasterDoctoralThesis.cls" and if I look inside this file then there is
\RequirePackage[centerlast,small,sc]{caption} % Required for customising the captions\setlength{\captionmargin}{50pt}

Could kindly let me know how is it possible to fix the captioning position, please?

Sepideh

Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm
Add before \begin{document}:
\captionsetup{singlelinecheck=false,justification=raggedright}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

rasepideh
Posts: 16
Joined: Wed Jan 27, 2016 2:09 pm
Hi,

I tried to put the command in "main.tex" before \begin{document}

but all of the captions are still in the center.

Should I write or change anything when I am writing the "Figure" command?

I am looking forward to hearing from you.
Best,
Sepideh

Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm
I forgot one line, please test the following.

\documentclass[english, % ngerman for German]{MastersDoctoralThesis} % The class file specifying the document structure\setlength{\captionmargin}{0pt}\captionsetup{singlelinecheck=false,justification=raggedright,font=Large}\begin{document} \begin{figure}\caption{This is\ a wombat test}\end{figure}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.