{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

33
votes
3answers
16k 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. ...
5
votes
2answers
2k 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 ...
18
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
1k 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
410 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
2answers
2k 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
3k 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 ...
59
votes
7answers
31k views

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______
8
votes
2answers
5k views

Horizontal rule with adjustable height behaving like \cline{n-m}

How can I produce \noalign{\hrule height 1pt} only through a certain number of columns just like with \cline{n-m} (or basically \cline with adjustable thickness)? Fig. 1: The approximate objective ...
21
votes
3answers
2k views

Can LaTeX be used to make a sheet of blank lines?

Specifically, a bunch of them; for a sign-in sheet, list of signatures for a petition or a worksheet with short answer essay style questions.
13
votes
2answers
10k views

How to show the vertical line between two columns?

Simply using \twocolumn changes my document to look like this: -----HEADER---- ###### ###### ###### ###### ###### ###### ###### ###### ###### ###### ###### ###### -----FOOTER---- But ...
4
votes
2answers
2k views

Setting caption/rule width in Algorithm2e algs

Many of the algorithms I have with the algorithm2e package do not extend across the page width. If I use the package's boxruled or ruled options, the result is a box or rule that extends the pagewidth ...
5
votes
1answer
6k views

Multirow and lines - how to draw line going through selected columns

I was wondering if it is possible to draw line which goes through some columns in table(not all columns). I have a table which looks like that \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|} ...
5
votes
1answer
646 views

longtable: how to avoid duplicated midrules below table title?

I want to typeset a longtable which is structured by midrules, as the rows are divided in groups. If it happens (which is in general desirable!) that a group is not split by a page break, in other ...
1
vote
2answers
335 views

Changing thinness and form of a vertical line in a table

I am trying to create a cover page, where in the middle of the page i use tabularx (tabular could have been just as well) to split the width of the page in to two parts. I would like to know how ...
1
vote
1answer
1k views

\fancypage border to surround header and footer

I am trying to create a page border that encapsulates the header and footer not just the body of a TeX document. Here is what i've got: \documentclass[a4paper]{article} ...
3
votes
2answers
2k views

Underlined blank that wraps

I'd like to create an "answer blank" in a document. It should basically look like an underline with nothing above it. I found a question about it ( How does one TeX a blank? ), but that doesn't deal ...
12
votes
3answers
12k views

How can I change the footnote line (thickness, length)

I am using pdflatex and just want to know how to change the footnote line (thickness, length). Besides that: How can I set the distance between text-lines in the text.
2
votes
1answer
214 views

longtable - strange lines at the end of table

I have strange problem with longtable package. Almost all my tables looks great but some of have strange lines at the end of tables. Please take a look at the picture I create the table like that ...
8
votes
4answers
2k views

Fraction with longer line

I'm trying to display some axioms and operational rules with LaTeX. Those are basically . They work quite well when used with frac, but it's not really nice, I'd like the fraction line to be a bit ...
9
votes
2answers
1k views

Signature in preface

I would like to make a signature field in the preface which looks like this: City(#1) \today ___________________ ______________________ ...
31
votes
1answer
27k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
4
votes
2answers
18k views

Drawing horizontal line same width as the page width

I've been trying to draw a line with width the same as the page width. I use fancyhdr and I have a line for my footer, and I want the their widths to be equal. I tried \line(1, 0){\textwidth} and ...
5
votes
1answer
1k views

Removing the borders from algorithm listings

I am relatively new to LaTeX. If I use standard algorithm and algorithmic environment for my algorithm listings I'm getting the borders displayed around the table with the pseudocode. How to remove ...
3
votes
1answer
201 views

Reduce vertical space at the bottom of a 'ruled' 'newfloat'

I have defined a custom float using the newfloat command from the float package. My custom float uses the ruled style, defined in the same package. This is a minimal example of what I'm doing: ...
64
votes
4answers
142k views

Horizontal line spanning the entire document in LaTeX

I have used the \hrulefill command to create a horizontal rule, along with some other commands. In each case I have the rules extended up to the margin. I want the rule width to be controllable, i.e. ...
4
votes
1answer
4k views

Hiding the column separator in multicols

By default, the multicol package produce a line between different columns. Is it possible to disable this line?
9
votes
1answer
7k views

Vertical lines are being broken up (disrupted) by the horizontal booktabs lines

My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this? It's well and good to say use \hline but I also need a cmidrule that spans only the second two ...
29
votes
3answers
24k views

What is the \rule equivalent to \hrule?

I've tried to put a rule long as the text in this way: \rule{\textwidth}{0.4mm} but I obtain a rule slightly smaller that the text width. How to obtain the same effect as \hrule?
1
vote
2answers
1k views

LaTeX table: line thickness varying and incorrect horizontal alignment

This LaTeX source ( http://pastebin.com/3HdpbQi5 ) yields two types of errors ( http://i.stack.imgur.com/4J87t.png ): The line thickness of the table borders in the primary header row varies and the ...
8
votes
3answers
2k views

How to make a ruler

In The TeXbook (Ch. 10, after exercise 10.3), DEK shows some nice rulers. But I couldn't figure out how he did them. I'm sure I could look it up from the texbook source, but for some reason I'm ...
12
votes
1answer
4k views

Horizontal line below figure caption

I would like to draw a horizontal line/rule beneath my multi-line caption to separate the caption more clearly from the rest of the text. A quick example: \begin{figure}[tb] \begin{center} ...
5
votes
1answer
1k views

Beamer - Modifying the headline

With beamer, I use the theme Montpellier, a sober theme giving basic navigational hints. \usetheme{Montpellier} \useinnertheme{default} \useoutertheme{default} ...
4
votes
1answer
583 views

Theorems and Definitions as quotes

Most standard styles highlight theorems and definitions using italics. Now this is something I really would like to avoid in my thesis (and generally). Unfortunately, if I just remove this "feature", ...
8
votes
3answers
2k views

Making a line-separated left-margin in LaTeX

I'm trying to write a user guide in LaTeX, and I want to layout my page in a way that I can put in a left margin for comments / notes on the corresponding lines of text in the main portion of the page ...
53
votes
1answer
32k views

How to remove the top horizontal bar in fancyhdr?

When using fancyhdr, how do you remove the top horizontal rule? I do not want a header at all, just a footer. This is what I do now: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} ...
3
votes
1answer
407 views

Color running over the doublerule separator in a table

I want to draw a simple colored table with 4 columns. First row is a multicolumn row which spans columns one and two. There is one doublespace between columns 2 and 3. When i apply color (blue in this ...
14
votes
1answer
9k views

How to add a horizontal line above the footer with fancyhdr?

How to add a horizontal line above the footer using fancyhdr, just like the line present below the header?
6
votes
1answer
717 views

Vertical sidebars

I'm trying to layout a text book where each page in a given chapter has a thin coloured sidebar that starts at the top of the page and is some fixed length long. Each chapter will have a differently ...
25
votes
3answers
19k views

How can I make a horizontal dashed line?

How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.
11
votes
1answer
4k views

Box border lines not showing properly on PDF

I have the following code that generate a box with text content: \documentclass{report} \usepackage{color} \usepackage{lipsum} \newcommand\tipbox[1]{% \begin{center}% ...
17
votes
4answers
5k views

Putting a bar in the margin

I sometimes want to give examples in a document I am writing. Because these examples are quite general it could be difficult for readers to see the difference between the examples and the theoretical ...
5
votes
3answers
3k views

Why are the lines around my multicolumn cell misaligned?

In the following table, why does the double line before the diff column not go through? I guess all the multicolumn{1} are wrong? How can I fix it? \begin{table} \centering ...
41
votes
3answers
52k views

How can I draw a horizontal line spanning only some of the table cells?

In a table, how can I draw a horizontal line that goes only through some of the cells? I mean a line like the one in the Foo and in the Bar area of this table: +----+-----+ |Foo |1 |2 | | |1 |2 | ...
7
votes
2answers
21k views

How to draw a vertical line of desired length in equations.

I am writing a big formula where a vertical line is needed. Instead of $\vline$ or $|$, does anyone know a way to draw this vertical line of desired length? The formula is something like $$ E\Bigg[ ...
4
votes
2answers
797 views

How to overlap two adjacent edges of 2 framed minipages placed side by side?

How to overlap the adjacent edges? In other words, the adjacent edges should be combined into one edge shared between to minipages such that all rules will have the same thickness. ...
5
votes
3answers
4k views

tabular* with rubber spacing and \cline

I'm using a tabular* with rubber spacing to fill the complete width of the page. This works fine, except that when I use \cline, the line is not complete. It seems that \cline does not cover the ...
5
votes
1answer
500 views

bottomrule not working in a self-made environment [duplicate]

Possible Duplicate: bottomrule not working in a self-made environment I have this environment for consistent tables in my latex documents: \newenvironment{defaultTable}[2] { ...
1
vote
1answer
553 views

Apply a vertical rule beside graphics within Algorithm floats

Background Using LyX to write a book. The source code listings shown in the book are graphics. The graphics should have a vertical rule beside them. But only graphics that are embedded within an ...
3
votes
2answers
1k views

How can I eliminate the epigraph rule?

I use the epigraph package to define the following declaration that looks as follows: \epigraph{This work has appeared in:}{Max Mustermann, How the Euro will crash.} That looks then as follows This ...