{rules} is about drawing lines (also called rules). Popular packages are {booktabs} (which provides high quality table rules) and {dashrule}.

learn more… | top users | synonyms

7
votes
2answers
1k views

Longtable does not break correctly when used with \specialrule instead of \hline

I'm writing an application that generate latex code, therefore the solution must be the most generic possible to ensure that it will generate clean pdf all the time. I would like to let my users ...
1
vote
1answer
616 views

Table vertical line [duplicate]

Possible Duplicate: Too long vertical lines in table In the following table, the first vertical line is higher than the second. How do I correct this? ...
4
votes
3answers
2k views

Too long vertical lines in table

Ok, I've looked at this code too long and need some fresh eyes and ideas. Question: Why do I get too long vertical lines on my LaTeX table? Please note that I've not experiencing any problems with ...
7
votes
1answer
2k views

Vertical line left out in tabular

The code \documentclass[a4paper]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|l|l|l|l|l|l|} \hline \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & ...
5
votes
1answer
3k views

Draw line below frame title in beamer

How can I draw a line just below the title of the frame using the beamer class? I want a clear separation between the title of the frame and the content of the frame. Also, I want the block ...
1
vote
1answer
192 views

Footnote separator for wrapped footnote, problems with Hebrew

In a previous question I asked how to format the footnote separator for wrapped footnotes. However, the provided solution unfortunately did not seem to work with my document. Now I have found that ...
29
votes
2answers
12k views

How can I reproduce this table with thick lines?

I'm trying to reproduce this table: (apologies for the terrible cameraphone pic) I don't know how to get the slightly thicker leftmost and topmost line. Here's a minimal example of what I have so ...
2
votes
1answer
284 views

Why the horizontal line behaves differently in supertabular and tabular?

I have a problem using the supertabular package. Basically the horizontal lines, instead of stopping at the end of the table, continue until the end of the page. This is a self-explaining ...
1
vote
1answer
223 views

why is GnuPlot .tex to .pdf, large compared with raster images?

Raster scanned articles tend to be quite a bit larger than vector graphics based articles. In practice when I make a plot with gnuplot, the resulting pdf is large compared for what it displays. I look ...
15
votes
2answers
11k views

How to change line color in tabular?

How can I change the color of the lines (the frame) in a tabular environment? In the following MWE: \begin{tabular}{c|c|c} a&b&c \\ \hline d&e&f \\ \hline g&h&i \end{tabular} ...
29
votes
3answers
8k views

Why not use vertical lines ('|') in a tabular?

My question is a follow-up to the answer to a follow-up question, to be found here. ;) I'd like to know why one would advise against using vertical lines (via |) in a tabular (i.e. in ...
7
votes
3answers
8k views

Horizontal line not working?

I am trying to add a horizontal line in my document. \documentclass{report} \begin{document} \begin{center} \Huge CV \end{center} \line(1,0){250} \end{document} For some reason, \line(1,0){250} ...
7
votes
1answer
3k views

How do I increase the spacing between header text and the 'headrule' line with fancyhdr?

This is going to be something so obvious that I'm almost embarrassed to ask! I've been using fancyhdr to put some fancy headers and footers in my thesis template – in fact, doing what it says on the ...
22
votes
3answers
765 views

What is the best way to draw two lines in LaTeX?

Bill Bryson's book, The lost continent: travels in small-town America  has an unusual first paragraph opening style. It has the equivalent of a long equal sign, followed by the first three words ...
2
votes
1answer
380 views

Footnote separator for wrapped footnote

In a text I am writing I have a couple of quite long footnotes which start on one page and continue on the next one. In order to comply with style requirements the line separating the body text and ...
7
votes
1answer
612 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
5
votes
2answers
3k views

\cline doesn't work

I'd like to draw a partial horizontal line just below of 'first second third' row, but \cline doesn't work. Any suggestion? \documentclass[table]{beamer} \usepackage[T1]{fontenc} ...
3
votes
2answers
401 views

How to just show a part of lines inside a tabular

I am drawing a matrix as follows: \[\begin{tabular}{l|lllll|ll} & 0 & i & j & k & $\ldots$ & x & y \\ \hline 0 & 0 & $\ldots$ & $\ldots$ & $\ldots$ ...
5
votes
4answers
4k views

How do I get that line that represents a repeating author in a bibliography or works cited page?

As I understand it, when there are several bibliographic entries from the same author, you represent all subsequent entries with a line, like this: \bibent Nietzsche, Friedrich, and Walter A. ...
9
votes
2answers
1k views

Horizontal line of custom length like an —

Is there a way to get a custom-length horizontal line that appears like a "longer em-dash", if you will?
5
votes
1answer
1k views

Memoir: removing headrule in chapter page

How to remove headrule in chapter page without remove of footrule, eg, rule only in foot page in all pages, but without on chapter page, but headrule in others pages. \documentclass[a4paper]{memoir} ...
8
votes
4answers
395 views

Long Underscore to Divide Sections of Text

Is there a way to write an underscore that extends along the full length of the page, to represent a break in sections? As of now, I'm using the \blank{?cm} command explained in this answer, but with ...
5
votes
3answers
1k views

Defining rules for line breaks in \newcommand

Thanks to the help of this answer, I've defined a command for creating a blank line: \newcommand{\blank}[1]{\rule{#1}{0.4pt}} However, because this is a user-defined command, LaTeX doesn't seem to ...
3
votes
2answers
1k views

Longtable and modified \footnoterule [duplicate]

Possible Duplicate: How can I change the footnote line (thickness, length) I want to modify the \footnoterule and still be able to use longtable but the following code doesn't compile: ...
5
votes
2answers
2k views

Horizontal lines touching the multicol column separator rule

Is there a possibility to put a horizontal line above and below a multicolumn output (using the multicol package) such that the horizontal lines touch the multicol column separator exactly at its ...
3
votes
1answer
3k views

tabular - \cline not working

I have this table \begin{tabular}{ | p{2cm} | p{4cm} | p{4cm} | p{4cm} | } \hline Název & \multicolumn{3}{ l }{vypsatZapojeniResiteluDoProjektu} \vline\\ \hline Popis & \multicolumn{3}{ l ...
5
votes
2answers
653 views

Anomalies and a question regarding a line-filling rule

I've created a command for filling a line with a black rectangle. It's called \fullrule, you can find it in the code below. I have several questions regarding this MWE: \documentclass[10pt]{article} ...
4
votes
1answer
122 views

Problem with LetLtxMacro

I'm trying to redefine \rule to make cleaner underscores, but my book file (in memoir class) is having problems with the following: \RequirePackage{letltxmacro} \LetLtxMacro{\oldrule}{\rule} ...
6
votes
0answers
118 views

Writing clean long underscores [duplicate]

Possible Duplicate: Long underscore in LaTeX I'm writing a document in which I encourage the reader to "fill in the blanks" in order to be actively engaged with the proof. Is there any way ...
7
votes
4answers
330 views

Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
19
votes
3answers
1k views

How to make continuous (but breakable) vertical rule along left side of paragraph?

I'm looking for a way in Plain TeX to make a continuous vertical rule along the left side of a paragraph (or arbitrary block of text), such that it observes normal page-break rules. I started with the ...
5
votes
1answer
667 views

How to disable pagebreak on \hline in supertabular?

This is similar to How to disable pagebreak on \hline in longtable? but for supertabular or xtab: With \tabularnewline\hline I get pagebreaks (or in my case columnbreaks) before the hline, i.e. the ...
6
votes
1answer
827 views

Section heading, text embedded in horizontal rule

I would like to create section headings that look like this: -------------------- Some title -------------------- So a horizontal rule with text embedded in the middle. Should I use titlesec or ...
4
votes
1answer
479 views

Left-hand vertical rule applied to flalign environment with automatic pagebreak

I am referring to the coderule environment (see Override \centering to left justify an image) presented earlier by @TH as answer to the following question: Override \centering to left justify an image ...
9
votes
4answers
2k views

Vertically centered horizontal rule filling the rest of a line?

I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \hrulefill and \leaders\hrule\hfill, but these draw a line that's flush with the ...
6
votes
1answer
212 views

booktabs's horizontal rules aren't displayed with cifa document class

There seems to be a problem between the CIFA document class and the booktabs package. When I compile the following code, the horizontal lines are not displayed: \documentclass{cifa} ...
9
votes
2answers
245 views

Can I make some vertical material disappear if it occurs next to a page break?

I'd like to place a horizontal rule above each section title, to separate the new section from the text before it. But I don't want the rule to appear if the section begins on a new page, since that ...
10
votes
2answers
933 views

Extending the line drawn above footnotes

By default the line drawn where the footer begins is small in size. How can I make it bigger and make it match with the document text area size?
2
votes
1answer
179 views

Problem with putting an hrule in an subsubsection-like environment, when inside item environment?

I have made this command: \newcommand*{\example}[1]{% \needspace{3\baselineskip} \subsubsection{{\bf Example #1}{{\color{lightgray}\hrule width 22mm height 1.5pt}\hfill}}% } and it's working fine, ...
5
votes
3answers
2k views

How do I insert a border below text?

I want to emulate a feature from a few word processing programs (e.g. Microsoft Word, LibreOffice Writer) where I could (somewhat) arbitrarily insert a bottom border below any text/paragraph. How can ...
4
votes
2answers
3k views

Vertical space between horizontal lines

I have defined a macro for 2 closely spaced horizontal lines, \newcommand{\myline}{\par\noindent% \rule{\linewidth}{1.5pt} \\[-0.80\baselineskip]% \rule{\linewidth}{0.8pt}} Now I noticed that when ...
4
votes
3answers
1k views

Shift horizontal line to the left

I am using a horizontal rule to to separate texts, and I would like the rule to start to the left of the current left margin. I am using the following code, but apparently it is not the correct way to ...
22
votes
3answers
7k views

Is it normal for BibTeX to replace similar author names with “------”?

In my .bib file, I have two entries with exactly the same author names: @article{Seshadrinathan2010A-Subjective-St, Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. ...
4
votes
2answers
953 views

Is there a command similar to \cline{i-j} but works with vertical line? [duplicate]

Possible Duplicate: Create a vertical line in a table that spans a range of rows but not all rows The \cline command draws horizontal lines across the columns specified, beginning in column ...
17
votes
3answers
2k views

Can I have the \overfullrule rule colored in pdfLaTeX?

I know that I can use \overfullrule=5pt to get overfull lines marked with a black marker. I am using pdfLaTeX. Is there a way I can get this marker or something similar in magenta instead?
1
vote
2answers
868 views

Incomplete vertical line while creating a table

My code is as below. Last column line is splitted when I leave space between the rows. How can I get a solid vertical line? Please reply \begin{table}[h!] \caption{\textbf{$\alpha=10; U=1; ...
5
votes
1answer
330 views

How can I draw a line from margin to margin, if the text width has been adjusted using the changepage package?

I have a problem with drawing a line across the page (from margin to margin). I had to change default margins for title page (only for this page) and to do that I used changepage package. ...
2
votes
1answer
1k views

How to separate columns with a line in beamer(poster)?

\setlength{\columnseprule}{0.4pt} with the multicol package does not work. The beamer guide does not discuss this case for their columns environment... To be clear this is what I want ###### | ...
9
votes
2answers
2k views

Good Style of Creating a Signature all within LaTeX

I have a small task that involves trying to get a signature using LaTeX fonts. I want to be able to make the signature look as handwritten as possible (pen/marker) using the LaTeX fonts. Also like to ...
41
votes
7answers
17k views

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______