Theses, Books, Title pagescaption positioning

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

caption positioning

Post by rasepideh »

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

Code: Select all

\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
Screen Shot 2016-03-10 at 20.07.05.png (106.32 KiB) Viewed 19444 times

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

caption positioning

Post by Johannes_B »

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

caption positioning

Post by rasepideh »

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

Code: Select all

\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?

Thanks in advance for help.
Sepideh
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

caption positioning

Post by Johannes_B »

Add before \begin{document}:

Code: Select all

\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

Re: caption positioning

Post by rasepideh »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

caption positioning

Post by Johannes_B »

I forgot one line, please test the following.

Code: Select all

\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.
Post Reply