## LaTeX forum ⇒ Text Formatting ⇒ Header Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Georg
Posts: 29
Joined: Mon Jan 29, 2018 4:25 pm

Hi all,
How to move \chead position to the left side for 1-3 cm?
Thank you

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
Quick hack:

\chead{\hspace{-3cm}Text}

Stefan

Georg
Posts: 29
Joined: Mon Jan 29, 2018 4:25 pm
Thanks, how to move \chead itself?

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
Well, the content is starting shifted to the right, that is moving...

Another way would be using a box of a certain width: the box is centered by \chead (as that's the purpose of it) but the box can be wider than the content, left-aligned, so all is shifted to the left:

\chead{\makebox[6cm][l]{Text}}

Stefan

Georg
Posts: 29
Joined: Mon Jan 29, 2018 4:25 pm
Can you please combine makebox with hspace?

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
It can be done either this way, moving the whole box:

\chead{\hspace{-3cm}\makebox[6cm][l]{Text}}

or that way, moving the content in the box:

\chead{\makebox[6cm][l]{\hspace{-3cm}Text}}

The 3cm and 6cm are of course just samples, adjust as needed.

Stefan

Georg
Posts: 29
Joined: Mon Jan 29, 2018 4:25 pm
Thank you very much Stefan.

reyaz
Posts: 12
Joined: Sun Apr 22, 2018 6:05 am
How to add footer line and text below it in MasterDoctorialThesis template Please reply if anybody know
Last edited by reyaz on Wed Apr 25, 2018 7:02 am, edited 1 time in total.

Johannes_B
Site Moderator
Posts: 3725
Joined: Thu Nov 01, 2012 4:08 pm
https://github.com/johannesbottcher/MDT-Quick-Manual
https://en.wikibooks.org/wiki/LaTeX/Cus ... er-scrpage

Global option footsepline, and \cfoot{Your name} in the preamble.

I can only guess, as your questions are not very clear and lack a minimal working example. See How to get help
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.