Great work so far. I'm happy to see that latex is slowly growing in different Cégep in Québec.
Here is my two cents.
First of all, every piece of text is within a
\textsf{}
. You could define it globaly by putting
\sffamily
inside the
titlepage
environment. It will clean your code and it scope will be limited to the
titlepage
environment.
Cham wrote:
The logo was placed by eye, so its top edge *apparently* touches the top margin.
Is there a better way to achieve this ?
The space was created by the indent. Your image start a new paragraph and this paragraph have an indent. The
\flushleft
command solve your problem, the
\vspace{-0.3in}
is useless.
Cham wrote:
The first table appears to be okay.
You could improve it with the tabularx package. The x column type allows to use the rest of the line. Thus your compétence text will go all the way to the margin.
Code: Select all
\begin{tabularx}{\linewidth}{l@{\hspace{1em}}Xl}
\textbf{Numéro du cours :} & 203-NYC-05 \\[12pt]
\textbf{Pondération :} & 3-2-3 \\[12pt]
\textbf{Compétence visée :} & 00UT - Analyser différentes situations ou phénomènes physiques reliés aux ondes, à l'optique et à la physique moderne à partir de principes fondamentaux. \\[12pt]
\textbf{Programme :} & Sciences de la nature (200.BO) \\[12pt]
\textbf{Département :} & Physique \\
& \emph{Une phrase idiote à écrire.} \\[12pt]
\textbf{Session :} & Hiver 2052 \\[12pt]
\textbf{Préalable :} & Mécanique (203-NYA-05)
\end{tabularx}
Cham wrote:
1. The second column should be closer to the last column.
Define a different
\extracolsep
between each column.
Cham wrote:
2. "Local" and "Poste téléphonique" should be centered on top of their content.
Use a c column type.
Cham wrote:
3. The horizontal rule need a better (symetrical) spacing above and under it.
This is cause by the
\\[6pt]
. To balance things , you could use a rule of 0pt width
\rule[depth]{width}{height}
. It wont appear and wont disrupt things. Placing
\rule{0pt}{20pt}
before John Doe will solve it. The 20pt might need to be adjusted.
Here is the complete modified code
Code: Select all
\documentclass[12pt,letterpaper,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage[dvipsnames,table]{xcolor}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{mdframed}
\definecolor{urlc}{RGB}{200,0,0}
\usepackage[unicode,colorlinks,urlcolor=urlc]{hyperref}
\usepackage{showframe}
\usepackage{mwe}
\usepackage{tabularx}
\begin{document}
\begin{titlepage}\sffamily
\flushleft{\vspace{-0.3in}\includegraphics[height=0.6in]{example-image-a}}
\vspace*{\fill}
\begin{mdframed}[
linecolor=gray,
backgroundcolor=gray!10,
linewidth=3pt,
leftmargin=0cm,
rightmargin=0cm,
topline=true,
bottomline=true,
leftline=false,
rightline=false
]
\center{\Large PLAN DE COURS} \\[18pt]
\center{\textbf{\Large Ondes et physique moderne}} \\[12pt]
\end{mdframed}
\medskip\medskip
\begin{tabularx}{\linewidth}{l@{\hspace{1em}}Xl}\sffamily
\textbf{Numéro du cours :} & 203-NYC-05 \\[12pt]
\textbf{Pondération :} & 3-2-3 \\[12pt]
\textbf{Compétence visée :} & 00UT - Analyser différentes situations ou phénomènes physiques reliés aux ondes, à l'optique et à la physique moderne à partir de principes fondamentaux. \\[12pt]
\textbf{Programme :} & Sciences de la nature (200.BO) \\[12pt]
\textbf{Département :} & Physique \\
& \emph{Une phrase idiote à écrire.} \\[12pt]
\textbf{Session :} & Hiver 2052 \\[12pt]
\textbf{Préalable :} & Mécanique (203-NYA-05)
\end{tabularx}
\medskip\medskip
\begin{mdframed}[
linecolor=gray,
backgroundcolor=gray!10,
linewidth=3pt,
leftmargin=0cm,
rightmargin=0cm,
topline=true,
bottomline=true,
leftline=false,
rightline=false
]
\small{
\begin{tabular*}{\columnwidth}{l@{\extracolsep{\stretch{2}}}c@{\extracolsep{\stretch{1}}}c@{}}
Professeur & Local & Poste téléphonique \\[6pt]
\midrule
\rule{0pt}{20pt}\textbf{John Doe} & C3510 & (514) 389-5921-3550 \\
\rlap{\href{mailto:john.doe@collegeahuntsic.qc.ca}{\texttt{john.doe@collegeahuntsic.qc.ca}}} \\[12pt]
\textbf{Bozo the Clown} & C3910 & (514) 389-5921-3630 \\
\rlap{\href{mailto:bozo.theclown@collegeahuntsic.qc.ca}{\texttt{bozo.theclown@collegeahuntsic.qc.ca}}} \\[12pt]
\textbf{Snow White} & C4010 & (514) 389-5921-4050 \\
\rlap{\href{mailto:snow.white@collegeahuntsic.qc.ca}{\texttt{snow.white@collegeahuntsic.qc.ca}}} \\[6pt]
\end{tabular*}
\centering{\footnotesize{\emph{Les heures de disponibilité du professeur sont affichées à son bureau et diffusées sur Omnivox.}}}
}
\end{mdframed}
\vspace*{\fill}
\end{titlepage}
\end{document}
One last comment, to avoid inconsistency between different plan de cours, your last table could use a
p{width}
column for the name (leaving out the extracolsep between the first and second column). Thus a plan de cours from class given only by Louis Cyr or one from a class given only by Apu Nahasapeemapetilon will have the "local" and "poste téléphonique" at exactly the same position.
Sorry for the long post and have a nice day
Alain Rémillard