Code: Select all
Code, edit and compile here:
\documentclass[12pt,letterpaper,twoside]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage[french]{babel}\usepackage{graphicx}\usepackage{lmodern}\usepackage{textcomp}\usepackage[dvipsnames,table]{xcolor}\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}\usepackage{mdframed}\usepackage[]{hyperref}\begin{document}\begin{titlepage}\begin{mdframed}[linecolor=gray,backgroundcolor=gray!10,linewidth=3pt,leftmargin=0cm,rightmargin=0cm,topline=true,bottomline=true,leftline=false,rightline=false]\small{\begin{tabular}{l@{\hspace{3em}}p{0.3\textwidth}c@{\hspace{3em}}p{0.3\textwidth}}\textsf{Professeur} & \textsf{Local} & \textsf{Poste téléphonique} \\[12pt]\hline \\\textsf{\textbf{John Doe}} & \textsf{C3510} & \textsf{(514) 389-5921-3550} \\\rlap{\href{mailto:john.doe@collegeahuntsic.qc.ca}{\texttt{john.doe@collegeahuntsic.qc.ca}}} \\[12pt]\textsf{\textbf{Bozo the Clown}} & \textsf{C3910} & \textsf{(514) 389-5921-3630} \\\rlap{\href{mailto:bozo.theclown@collegeahuntsic.qc.ca}{\texttt{bozo.theclown@collegeahuntsic.qc.ca}}} \\[12pt]\textsf{\textbf{Snow White}} & \textsf{C4010} & \textsf{(514) 389-5921-4050} \\
Why is it so complicated ? I don't understand how the tabular parameters are working. It just don't make any sense to me. I hate Word, but at least it's much easier to use.
And the horizontal line is terrible. It should look like this (the table below was made "by hand", using the tabto package, and the horizontal line was defined with
\medskip \hrule \medskip\medskip
, which doesn't work inside the tabular environment) :