\pagestyle{fancy}
\fancyhead{} \fancyfoot{}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\fancyhead[C]{
\footnotesize Quality Management System Manual \ ISO 9001:2015 \ Controllerate of Quality Assurance \ Armoured Vehicle Electronics\Avadi, Chennai – 600 054}
\fancyhead[R]{\footnotesize Document: Level 01\ Issue No: 01 \ Issue Date: 15 Sep 2019 \ Rev No/ Rev Date: --- \ Page: \thepage\ of \pageref{LastPage}}
\fancyfoot[L]{\footnotesize Prepared in \LaTeX\ Typeset By\ Colonel JS Bibra\ Joint Controller\ Management Representative }
\fancyfoot[R]{\footnotesize Verified \&\ Approved for Issue By\ S Satish Chandra Kumar\ Controller\ CQA(AVL) } %\fancyfoot[L]{\footnotesize Verified By\ %& should have \ %J Peter\ %PScO\ %Deputy Controller % }
\fancyhead[L]{\includegraphics{../../images/"dgqa logo".png} %\caption{DGQA Logo} \label{DGQA Logo} }
Asked
Active
Viewed 45 times
0
Alessandro Cuttin
- 6,963
js bibra
- 21,280
1 Answers
1
The horizontal alignment around the colon : is possible if you set the heading using a tabular:
\fancyhead[R]{%
\footnotesize
\begin{tabular}{@{} r @{:\ } l @{}}
Document & Level 01 \\
Issue No & 01 \\
Issue Date & 15 Sep 2019 \\
Rev No/ Rev Date & --- \\
Page & X of XX
\end{tabular}}
Werner
- 603,163
-
Thanks. Request breakdown the following line. \begin{tabular}{@{} r @{:\ } l @{}} – js bibra Sep 17 '19 at 05:16
-
-
why does the bracket start on the first line --\fancyhead[R]{%--and not on the second line? – js bibra Sep 17 '19 at 08:26
-
how is the alignment carried out for all the 4 lines while coding-- Document & Level 01 \ Issue No & 01 \ Issue Date & 15 Sep 2019 \ Rev No/ Rev Date & --- \ Page & X of XX – js bibra Sep 17 '19 at 08:28
-
-
@jsbibra. Put both the
Right andCheader in their owntabular. That way they'll be vertically aligned in the centre. – Werner Sep 17 '19 at 15:55 -
The alignment is done using two columns in the
tabular. The left column defined the "label" and the right the "value" associated with that label. You can change the alignment to beleft,right orcentre. The column separation is given by@{:\ }which prints a:followed by a space for each row. The outer@{}removes any column spacing, thereby pushing thetabularflush to theRight side of the page/header. – Werner Sep 17 '19 at 15:57 -
-
@jsbibra: The alignment is given in the column specification:
..r..l..means two columns; first isright-aligned and the second isleft-aligned. – Werner Sep 17 '19 at 16:48 -
sorry if i was not clear --i meant the code at the top in the grey area is very neatly aligned--how is it done--i did not mean the output part of the code but the code itself for example-- Document & Level 01 \--are all aligned in the four lines of code --how is it done--hope i am clear – js bibra Sep 17 '19 at 16:54
-
@jsbibra: Oh, I just spaced it out manually, because it made the code presentation clear; that is, the horizontal alignment in the output matched the code (input). It's just a preference. There is a package -
latexindent- that does this kind of thing, if you're interested. I don't think it'll perform an alignment that matches the output, but it'll align on your typical alignment characters, like&and\\. – Werner Sep 17 '19 at 17:22 -


\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Alessandro Cuttin Sep 17 '19 at 10:21