Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to make a list of technical specifications like this:

example of list of specifications

It looks like description but I would like to have numbers flushed right like in my example, how could I do that ?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

Here is an idea; getting left alignment of both columns is easier with tabular & friends than with description.

\documentclass{article} 
\usepackage[french]{babel}
\usepackage{array}
\usepackage{siunitx}
\DeclareSIUnit{\cheval}{ch}                                                 
\DeclareSIUnit{\tour}{tr}                                                 

\newcommand\myheading[1]{\hspace{-1em}\textbf{#1}\\}

\begin{document} 
  {
    \itshape La moto que nous allons analyser est une Suzuki GSX-R750
    dont les caract\'{e}ristiques principales sont reprises ci-dessous:\\[1em]
  }
  \noindent
  \begin{tabular}{>{\hspace{1em}}l l}
    Masse                     & \SI{163}{\kilo\gram}                                        \\
    Empattement               & \SI{1350}{\milli\meter}                                     \\
    Longueur                  & \SI{2040}{\milli\meter}                                     \\
    Hauteur de selle          & \SI{810}{\milli\meter}                                      \\
    Garde au sol              & \SI{130}{\milli\meter}                                      \\
    \myheading{Moteur}
    Puissance                 & \SI{106}{\cheval} \SI{12500}{\tour\per\minute}             \\
    Couple                    & \SI{7.42}{\meter\kilo\gram} \`a \SI{9500}{\tour\per\minute} \\
    \myheading{Suspension}
    Raideur avant             & \SI{10}{\kilo\newton\per\meter}                             \\
    Amortissement avant       & \SI{1}{\kilo\newton\second\per\meter}                       \\
    Raideur arri\`{e}re       & \SI{15}{\kilo\newton\per\meter}                             \\
    Amortissement arri\`{e}re & \SI{2}{\kilo\newton\second\per\meter}                       \\
    \end{tabular}
\end{document}

screenshot of output

share|improve this answer
1  
if you're going to use a tabular then siunitx would almost certainly be mandatory here... –  cmhughes May 9 '13 at 20:31
    
@cmhughes Yes, sorry. I'm completely new to siunitx. –  Jubobs May 9 '13 at 21:00
    
no problem- I edited your example- one of the reasons to use siunitx is so that you can type the units in a way that makes sense; for example \kilo\newton\per\meter. I wasn't sure what ch and tr represent, but presumably someone will :) feel free to role back if you disagree –  cmhughes May 9 '13 at 21:23
    
Thanks. I'm definitely going to look into the siunitx manual after this. By the way, "tr" stands for "tour", the French term for "rotation". –  Jubobs May 9 '13 at 21:32
    
ah, in which case you might like to use \DeclareSIUnit{\tour}{tr} and then change all \tr to \tour. Similarly if you find what ch stands for, you should change that too :) –  cmhughes May 9 '13 at 21:35
show 3 more comments

You might use \hfill or \dotfill, (Lamport, p96)

\begin{itemize}
\item{Engine \hfill \$1000.00}
\item{Clutch \hfill \$400.00}
\end{itemize}
share|improve this answer
1  
Welcome to TeX.SX! You may have a look on our starter guide. –  Jubobs May 9 '13 at 20:17
2  
A small note: the braces around the item text isn't necessary, as \item isn't a command that takes a mandatory argument. You can do just \item Engine\hfill\$1000.00. –  Torbjørn T. May 9 '13 at 20:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.