LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   couple latex questions: tabbing, vspace, horizontal lines (https://www.linuxquestions.org/questions/programming-9/couple-latex-questions-tabbing-vspace-horizontal-lines-478974/)

hedpe 08-30-2006 10:37 PM

couple latex questions: tabbing, vspace, horizontal lines
 
Hey guys,

I have a couple questions, feel free to tackle any/all of them :)

First off, I am using the "article" document type

########
# Problem 1
I have a special paragraph that I do not want indented, as in:
Code:

    Here is the indented style of
my paragraph.

This is what I want:
Code:

Here is the non-indented style
of my paragraph.

######

#########
# Problem 2
I need to indent a list of things, heres what I want:
Code:

Examples:
    req:        ADDUSER bob
    resp:        OK
    req:        ADDUSER alice
    resp:        OK

Here is my code for the section:
Code:

\textbf{Examples:}\\
\emph{req:}  ADDUSER bob\\
\emph{resp:}  OK\\
\emph{req:}  ADDUSER alice\\
\emph{resp:}  OK\\

When I try something like this, nothing changes:
Code:

\hspace{2pt} \emph{req:}  ADDUSER bob\\
###

########
# Problem 3
I want to add a horizontal line, 1pt thick, from the left margin to the right margin.
###

I'd greatly appreciate any help.

Thanks!
George

Flesym 08-31-2006 07:09 AM

Here is an example that should solve these problems:
Code:

\documentclass[a4paper, 11pt, a4paper]{article}

\begin{document}
The Default: New Paragraph with indention.\\

\noindent Use "$\backslash$noindent" for paragraphs with no indention\\

\parindent 0pt
Or set "$\backslash$parindent 0pt" to set the default indention to 0pt...\\

...and every new paragraph will no longer be indented.
\\
\\
Indent a "list of things" using the obvious "$\backslash$indent" command:\\
Examples:\\
\parindent 20pt
\indent
\begin{tabular}{ll}
  req: & ADDUSER bob\\
  resp: & OK \\
  req: & ADDUSER alice\\
  resp: & OK\\
\end{tabular}
\\
\\
And last but not least your 1pt line:\\
\rule{\textwidth}{1pt}

\end{document}



All times are GMT -5. The time now is 04:45 AM.