Text Formattingposition and alignment of the paragraph number

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

position and alignment of the paragraph number

Post by jsbibra »

Code: Select all

My paragraph number is not aligned with the addressee vertically
I need to move the para number left for proper alignment
How would I do it?
Related to the same issue of positioning in the letter, the figure in the center of the header
 is slightly below the address in the righthead
How do I raise the figure so that it is about 1 or 2 points above the righthead?

``````````````````````````````````````````````````latex

        \documentclass[11pt]{report}
    \usepackage[
      height=8in,      % height of the text block
      width=6.2in,       % width of the text block
      top=78pt,        % distance of the text block from the top of the page
      headheight=60pt, % height for the header block
      headsep=12pt,    % distance from the header block to the text block
      heightrounded,   % ensure an integer number of lines
    %  showframe,       % show the main blocks
      showcrop=true,
      verbose,         % show the values of the parameters in the log file
    ]{geometry}
    \usepackage[utf8]{inputenc}
    \usepackage{url}
    \usepackage{graphicx}
    \usepackage{multirow}
    \usepackage{array}
    \usepackage{datetime}
    \usepackage{ragged2e}
    \usepackage{lipsum}
    \usepackage[T1]{fontenc}%-----------font ttdefault
    % \renewcommand*\familydefault{\ttdefault} %-----------------font
    \renewcommand*\familydefault{\sfdefault}
    
    %-----------------------header and footerdetails
    \usepackage{fancyhdr}
    \setlength{\headheight}{82pt}
    \pagestyle{fancy}
    \fancyhf{}
    \renewcommand{\headrulewidth}{0.1pt}
    \renewcommand{\footrulewidth}{0.1pt}
    \fancyhead[L]{\begin{tabular}{lll@{\hspace{1cm}}l@{\hspace{1.6cm}}l}%
                        & &                                 & \multirow{6}{*}{{\includegraphics[scale=.2]{example-image-a}} } &  Governement of India \\
                Web     &:& \url=www.dgqadefence.gov.in=                    & & Ministry of Defence(DGQA)\\
                E-mail  &:& \url=cqaavl-dgqa@nic.in=                        & & Controllerate of Quality Assurance\\
                Phone   &:& 044-26841773                                    & & (Armoured Vehicle Electronics)\\
                Fax     &:& 044-26841881                                    & &  HVF Campus, Avadi\\
                        & &                                                 & & Chennai -- 600 054
                \end{tabular}}
    \fancyfoot[L]{%
                \footnotesize 
                     Typeset in \textrm{\LaTeX}}
    %------shortcut for adgqal address
    \newcommand{\adgqaladd}{To,\\
    The ADGQA(L)\\
    HQ DQA(L)/ DGQA(L-2)\\
    "G" Block, P.O. Nirman Bhavan\\
    New Delhi -- 110 011\\} 
    %------shortcut for adgqal address
    \newcommand{\peteradd}{To,\\
    Shri Peter J, PScO\\
    Dy Controller\\
    CQA(AVL)\\
    Avadi, Chennai -- 600 054\\} 
    %-----------------EME trg
    \newcommand{\emetrgadd}{To,\\
    Dte Gen of EME (Trg)\\MGO’s Branch, `B' Block\\IHQ Of MOD(Army)\\DHQ PO, New Delhi --110 105\\
    }
    %---------shortcut for signature block
    \newcommand{\signature}{\begin{tabbing}\\
    xxxxxxxxxxx\=:\=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\=xxxxxxxxxxxxxxxxxxxx \kill\\
    \>\>\> (JS Bibra)\\
    \>\>\> Colonel \\
        \end{tabbing}}
    %----------shortcut for subject heading--replace 1 with the \subject{xxxx}
    \newcommand{\subject}[1]{\centerline{\underline{\MakeUppercase{\textbf{#1}}}}}
    %------------------------------------------------------------------------
    %----------shortcut for file number
    \newcommand{\filenumber}[2]{xxxxxxxxxxxx\=:\=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\=xxxxxxxxxxxxxxxxxxxx \kill\\
    File No: #1\>\>\> #2 \datemy\today\\
    }
    
    
    %-----------shortcut for copy to-------
    \newcommand{\copyto}{\underline{\textbf Copy to:}\\*[2pt]}
    %---------------------------------------------------------
    \newsavebox{\mybox}
    \newlength{\restofline}
    
    %---------------------------------datetime-----------
    \newdateformat{datemy}{%
        \monthname[\THEMONTH] \THEYEAR}
    %---------------------------------------------------------
    \begin{document}
    \begin{tabbing}
        \filenumber{20211/JC/SA}{04}\\                                  
        \emetrgadd\\                                    
        \subject{technical}
        \end{tabbing}
        \begin{enumerate}
    \item \lipsum 
    \end{enumerate}
    % 
    \end{document}

``````````````````````````````````````````````````````
Attachments
ScreenClip.png
ScreenClip.png (76.47 KiB) Viewed 2003 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

position and alignment of the paragraph number

Post by Stefan Kottwitz »

Hi,

I suggest to make a top aligned tabular for the header with 3 columns, such as

Code: Select all

\begin{tabular}[t]{lll}
...
\end{tabular}
and within that first column/cell you can have a table (again tabular) for the details, the next cell is for the image, the last cell is for the address.

Stefan
LaTeX.org admin
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

position and alignment of the paragraph number

Post by jsbibra »

Will give it a shot
Anything regards the second part--indenting the para numbers and alignment with the addressee
Post Reply