LaTeX forum ⇒ Theses, Books, Title pagescaption positioning

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

caption positioning

Postby rasepideh » Thu Mar 10, 2016 9:15 pm

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.
Thanks in advance for your help.
Sepideh

  1. \begin{figure}[h]
  2. \centering
  3. \includegraphics[width=\textwidth]{region}
  4. \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]. }
  5. \label{region}
  6. \end{figure}
Attachments
Screen Shot 2016-03-10 at 20.07.05.png
Screen Shot 2016-03-10 at 20.07.05.png (106.32 KiB) Viewed 4736 times

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Mar 11, 2016 9:25 am

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

Postby rasepideh » Mon Mar 14, 2016 12:30 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
  1. \RequirePackage[centerlast,small,sc]{caption} % Required for customising the captions
  2. \setlength{\captionmargin}{50pt}


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

Thanks in advance for help.
Sepideh

User avatar
Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Mar 14, 2016 1:58 pm

Add before \begin{document}:
  1. \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

Postby rasepideh » Mon Mar 14, 2016 2:22 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

User avatar
Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Mar 14, 2016 2:31 pm

I forgot one line, please test the following.

  1. \documentclass[
  2. english, % ngerman for German
  3. ]{MastersDoctoralThesis} % The class file specifying the document structure
  4. \setlength{\captionmargin}{0pt}
  5. \captionsetup{singlelinecheck=false,justification=raggedright,font=Large}
  6. \begin{document}
  7.  
  8. \begin{figure}
  9. \caption{This is\ a wombat test}
  10. \end{figure}
  11. \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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests