LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2006, 10:37 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
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
 
Old 08-31-2006, 07:09 AM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
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}

Last edited by Flesym; 08-31-2006 at 08:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple horizontal lines crossing screen when I startx lobo78 Linux - Newbie 4 12-09-2007 10:54 PM
Horizontal Lines in Photos on HP 722c w/ CUPS rignes Linux - Hardware 0 10-11-2004 05:37 PM
Faint horizontal rolling lines sleepindawg Mandriva 2 07-05-2004 12:51 AM
horizontal lines on screen? svar Linux - General 8 07-12-2003 10:53 AM
Roving horizontal lines thomask Linux - Hardware 0 07-11-2003 03:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration