LaTeX forum ⇒ Text FormattingHeader Topic is solved

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

Header

Postby Georg » Mon Feb 05, 2018 1:29 am

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Feb 05, 2018 1:41 am

Quick hack:

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

Stefan
Site admin

Georg
Posts: 58
Joined: Mon Jan 29, 2018 4:25 pm

Postby Georg » Mon Feb 05, 2018 1:48 am

Thanks, how to move \chead itself?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Feb 05, 2018 1:57 am

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
Site admin

Georg
Posts: 58
Joined: Mon Jan 29, 2018 4:25 pm

Postby Georg » Mon Feb 05, 2018 2:27 am

Can you please combine makebox with hspace?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Feb 05, 2018 9:03 am

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
Site admin

Georg
Posts: 58
Joined: Mon Jan 29, 2018 4:25 pm

Postby Georg » Mon Feb 05, 2018 12:08 pm

Thank you very much Stefan.

reyaz
Posts: 12
Joined: Sun Apr 22, 2018 6:05 am

Postby reyaz » Wed Apr 25, 2018 6:36 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.

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

Postby Johannes_B » Wed Apr 25, 2018 6:45 am

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.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 2 guests