Advertisement
Guest User

Untitled

a guest
Jul 14th, 2017
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{longtable}
  3. begin{document}
  4. begin{longtable}{|c|c|c|}
  5. hline
  6. Name & Affliation & Email \
  7. hline
  8. endhead
  9. & & \
  10. hline
  11. & & \
  12. hline
  13. & & \
  14. hline
  15. & & \
  16. hline
  17. & & \
  18. hline
  19. end{longtable}
  20. end{document}
  21.  
  22. documentclass[12pt]{article}
  23. usepackage{textcomp}
  24. usepackage{array}
  25. usepackage{ltablex,booktabs}
  26. usepackage{microtype}
  27. usepackage[linkbordercolor={0 0 0},colorlinks=true]{hyperref}
  28. usepackage[a4paper,margin=1in,heightrounded,showframe]{geometry} %% remove showframe
  29. usepackage{filecontents}
  30. begin{filecontents*}{participants.csv}
  31. Name,address,email
  32. Ms. Veena Saraf,"Some address goes here, Some street, Some place", vena_saf03@yahoo.com
  33. Ms. Roopa Chanachetty,"Some address goes here, Some street, Some place", ropa_vc3@yahoo.co.in
  34. Mr. Richard Rathnam,"Some address goes here, Some street, Some place", richard_ratam@rediffmail.com
  35. end{filecontents*}
  36. newcounter{rowno}
  37. setcounter{rowno}{0}
  38. usepackage{datatool}
  39. DTLloaddb{names}{participants.csv}
  40. renewcommand*{arraystretch}{1.5}
  41. %==================================================================
  42. begin{document}
  43. begin{center}
  44. Largebfseries List of participants
  45. end{center}
  46. begin{tabularx}{textwidth}{>{stepcounter{rowno}therowno.}c
  47. >{setlength{hsize}{8hsize}raggedrightarraybackslash}X %% adjust 8hsize suitably
  48. >{setlength{hsize}{13hsize}raggedrightarraybackslash}X %% adjust 13hsize suitably
  49. >{setlength{hsize}{12hsize}raggedrightarraybackslash}X} %% adjust 12hsize suitably
  50. multicolumn{1}{c}{textnumero} & multicolumn{1}{c}{Name} & multicolumn{1}{c}{Address} & multicolumn{1}{c}{e-mail}\ toprule
  51. endfirsthead
  52. multicolumn{1}{c}{textnumero} & multicolumn{1}{c}{Name} & multicolumn{1}{c}{Address} & multicolumn{1}{c}{e-mail}\ toprule
  53. endhead
  54.  
  55. DTLforeach{names}{
  56. name=Name, place=address, email=email}{%
  57. DTLiffirstrow{}{\}
  58. & name & place & url{email}
  59. }
  60. end{tabularx}%
  61. %===============================================================
  62. end{document}
  63.  
  64. documentclass[12pt]{article}
  65. usepackage{tabularx,array,textcomp}
  66. usepackage[a4paper,margin=2cm,heightrounded]{geometry}
  67. %
  68. begin{document}
  69. pagestyle{empty}
  70. null
  71. vspace{1.3baselineskip}
  72. begin{center}
  73. Largebfseries Some details\[-.5baselineskip]
  74. rule{textwidth}{2pt}
  75. end{center}
  76. begin{tabularx}{textwidth}{|l|XX|XX|XX|}hline
  77. multicolumn{1}{|c|}{textnumero} & multicolumn{2}{c|}{Name} & multicolumn{2}{c|}{Address} & multicolumn{2}{c|}{email}\hline
  78. & & & & & & \[3baselineskip]hline
  79. & & & & & & \[3baselineskip]hline
  80. & & & & & & \[3baselineskip]hline
  81. & & & & & & \[3baselineskip]hline
  82. & & & & & & \[3baselineskip]hline
  83. & & & & & & \[3baselineskip]hline
  84. & & & & & & \[3baselineskip]hline
  85. & & & & & & \[3baselineskip]hline
  86. & & & & & & \[3baselineskip]hline
  87. & & & & & & \[3baselineskip]hline
  88. & & & & & & \[3baselineskip]hline
  89. end{tabularx}
  90.  
  91. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement