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.

A small piece of code after equation

  \begin{tabbing}    
    where \= $fTTsc$:~  traveling time (office to site and back to office).\\
           \>$fTIsc$:~time to get safety instructions (this is specially true in \\
          \>\; industrial environment)\\
           \>$fSNETtsc$:~setting up survey network.\\                   
    \end{tabbing}

about code

How can I use tab or something else so that (line 1 traveling,line 2 time,line 3 setting)comes in one vertical line.

where   
     fTTsc:     traveling time (office to site and back to office).

     fTIsc:     time to get safety instructions (this is specially true in 
                industrial environment)

     fSNETtsc:  setting up survey network. 

I 'm breaking manually (which took a lot of time for 15 sentences) but how to do it automatically so that it looks perfect and nice.

time to get safety instructions (this is specially true in \\
          \>\; industrial environment)\\
share|improve this question
    
    

2 Answers 2

up vote 2 down vote accepted

Silently stolen from this answer (click).

\documentclass[preview,border=12pt,12pt]{standalone} % change it back to your own document class
%\documentclass[12pt]{article}
\usepackage{array,tabularx}

\newenvironment{conditions*}
  {\par\vspace{\abovedisplayskip}\noindent
   \tabularx{\columnwidth}{>{$}l<{$} @{${}={}$} >{\raggedright\arraybackslash}X}}
  {\endtabularx\par\vspace{\belowdisplayskip}}

\begin{document}

An equation just to start
\begin{equation}
        fTTsc+ fTIsc + fSNEtsc = 0
\end{equation}
where:
\begin{conditions*}
        fTTsc       &   traveling time (office to site and back to office)\\
        fTIsc       &   time to get safety instructions (this is specially true in industrial environment) \\
        fSNETtsc    &   setting up survey network
\end{conditions*}

\end{document}

enter image description here

share|improve this answer
    
By the way, I think you need to selectively choose the correct font for the variables, which one should be regarded as text subscript with normal text font, etc, etc. –  Oh my ghost Jul 19 at 15:32

Here are two ways to do — to be adjusted according to the real data, equations, &c.

        \documentclass[ a4paper]{article}

        \usepackage[utf8]{inputenc}
        \usepackage[T1]{fontenc}
        \usepackage{lmodern}
        \usepackage[showframe, nomarginpar]{geometry} 
        \usepackage{array, mathtools}

        \begin{document}
        \[ \text{Some more or less complex equation, } \]%
        where:  \begin{tabular}[t]{!{\vrule width0.8pt}>{$ }l<{$}@{\ }l@{}}
        fTTsc:  & traveling time (office to site and back to office).\\
         fTIsc:   &    \parbox[t]{0.5\textwidth}{time to get safety instructions (this is specially true in
                    industrial environment)}\\
         fSNETtsc: &   setting up survey network.
         \end{tabular}
         \vskip 2ex

         \begin{align*}
         \text{Some}  & \enspace \text{more or less complex equation} \\
           \text{where: } &\mathrlap{ \begin{alignedat}[t]{2}
         fTTsc: & \   & &  \text{traveling time (office to site and back to office) }\\
         fTIsc:   & &    &     \parbox[t]{0.42\textwidth}{time to get safety instructions (this is specially true in industrial environment)} \\
          fSNETtsc: & &    &   \text{setting up survey network.}
         \end{alignedat}}\\
         \text{Another} &\quad\text{somewhat more complex equation}
         \end{align*}

        \end{document}​

enter image description here

share|improve this answer

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.