LaTeX forum ⇒ Text Formattingposition and alignment of the paragraph number

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

position and alignment of the paragraph number

Postby jsbibra » Mon Nov 04, 2019 3:23 pm

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. My paragraph number is not aligned with the addressee vertically
  2. I need to move the para number left for proper alignment
  3. How would I do it?
  4. Related to the same issue of positioning in the letter, the figure in the center of the header
  5. is slightly below the address in the righthead
  6. How do I raise the figure so that it is about 1 or 2 points above the righthead?
  7.  
  8. ``````````````````````````````````````````````````latex
  9.  
  10. \documentclass[11pt]{report}
  11. \usepackage[
  12. height=8in, % height of the text block
  13. width=6.2in, % width of the text block
  14. top=78pt, % distance of the text block from the top of the page
  15. headheight=60pt, % height for the header block
  16. headsep=12pt, % distance from the header block to the text block
  17. heightrounded, % ensure an integer number of lines
  18. % showframe, % show the main blocks
  19. showcrop=true,
  20. verbose, % show the values of the parameters in the log file
  21. ]{geometry}
  22. \usepackage[utf8]{inputenc}
  23. \usepackage{url}
  24. \usepackage{graphicx}
  25. \usepackage{multirow}
  26. \usepackage{array}
  27. \usepackage{datetime}
  28. \usepackage{ragged2e}
  29. \usepackage{lipsum}
  30. \usepackage[T1]{fontenc}%-----------font ttdefault
  31. % \renewcommand*\familydefault{\ttdefault} %-----------------font
  32. \renewcommand*\familydefault{\sfdefault}
  33.  
  34. %-----------------------header and footerdetails
  35. \usepackage{fancyhdr}
  36. \setlength{\headheight}{82pt}
  37. \pagestyle{fancy}
  38. \fancyhf{}
  39. \renewcommand{\headrulewidth}{0.1pt}
  40. \renewcommand{\footrulewidth}{0.1pt}
  41. \fancyhead[L]{\begin{tabular}{lll@{\hspace{1cm}}l@{\hspace{1.6cm}}l}%
  42. & & & \multirow{6}{*}{{\includegraphics[scale=.2]{example-image-a}} } & Governement of India \\
  43. Web &:& \url=www.dgqadefence.gov.in= & & Ministry of Defence(DGQA)\\
  44. E-mail &:& \url=cqaavl-dgqa@nic.in= & & Controllerate of Quality Assurance\\
  45. Phone &:& 044-26841773 & & (Armoured Vehicle Electronics)\\
  46. Fax &:& 044-26841881 & & HVF Campus, Avadi\\
  47. & & & & Chennai -- 600 054
  48. \end{tabular}}
  49. \fancyfoot[L]{%
  50. \footnotesize
  51. Typeset in \textrm{\LaTeX}}
  52. %------shortcut for adgqal address
  53. \newcommand{\adgqaladd}{To,\\
  54. The ADGQA(L)\\
  55. HQ DQA(L)/ DGQA(L-2)\\
  56. "G" Block, P.O. Nirman Bhavan\\
  57. New Delhi -- 110 011\\}
  58. %------shortcut for adgqal address
  59. \newcommand{\peteradd}{To,\\
  60. Shri Peter J, PScO\\
  61. Dy Controller\\
  62. CQA(AVL)\\
  63. Avadi, Chennai -- 600 054\\}
  64. %-----------------EME trg
  65. \newcommand{\emetrgadd}{To,\\
  66. Dte Gen of EME (Trg)\\MGO’s Branch, `B' Block\\IHQ Of MOD(Army)\\DHQ PO, New Delhi --110 105\\
  67. }
  68. %---------shortcut for signature block
  69. \newcommand{\signature}{\begin{tabbing}\\
  70. xxxxxxxxxxx\=:\=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\=xxxxxxxxxxxxxxxxxxxx \kill\\
  71. \>\>\> (JS Bibra)\\
  72. \>\>\> Colonel \\
  73. \end{tabbing}}
  74. %----------shortcut for subject heading--replace 1 with the \subject{xxxx}
  75. \newcommand{\subject}[1]{\centerline{\underline{\MakeUppercase{\textbf{#1}}}}}
  76. %------------------------------------------------------------------------
  77. %----------shortcut for file number
  78. \newcommand{\filenumber}[2]{xxxxxxxxxxxx\=:\=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\=xxxxxxxxxxxxxxxxxxxx \kill\\
  79. File No: #1\>\>\> #2 \datemy\today\\
  80. }
  81.  
  82.  
  83. %-----------shortcut for copy to-------
  84. \newcommand{\copyto}{\underline{\textbf Copy to:}\\*[2pt]}
  85. %---------------------------------------------------------
  86. \newsavebox{\mybox}
  87. \newlength{\restofline}
  88.  
  89. %---------------------------------datetime-----------
  90. \newdateformat{datemy}{%
  91. \monthname[\THEMONTH] \THEYEAR}
  92. %---------------------------------------------------------
  93. \begin{document}
  94. \begin{tabbing}
  95. \filenumber{20211/JC/SA}{04}\\
  96. \emetrgadd\\
  97. \subject{technical}
  98. \end{tabbing}
  99. \begin{enumerate}
  100. \item \lipsum
  101. \end{enumerate}
  102. %
  103. \end{document}
  104.  
  105. ``````````````````````````````````````````````````````
Attachments
ScreenClip.png
ScreenClip.png (76.47 KiB) Viewed 201 times

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

Postby Stefan Kottwitz » Thu Nov 07, 2019 8:37 am

Hi,

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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{tabular}[t]{lll}
  2. ...
  3. \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
Site admin

jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

Postby jsbibra » Thu Nov 07, 2019 5:11 pm

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


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests