{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
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} & ...
6
votes
2answers
8k views

Problems with \toprule and \midrule in a table

Having the following siunitx table code in LyX, for each occurrence of \toprule and \midrule I obtain an error message: The control sequence at the end of the top line of your error message was ...
5
votes
1answer
789 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
287 views

Custom vertical page border

I wanted to have a vertical colored bar running on all my pages, to the left of the page, in between the beginning of the sheet and the beginning of the text. Something like: |\| text | |\| text ...
3
votes
1answer
447 views

How to create long underscore before the text? [duplicate]

Possible Duplicate: Long underscore in LaTeX a sample output would be like: __________ hello __________ hello
2
votes
1answer
192 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 ...
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 ...
25
votes
3answers
2k views

Best way to insert a horizontal cut line with a scissor symbol

What's the best way to insert a horizonal dashed line with a scissor symbol to indicate that the paper should be cut with a scissor along this line? If you have multiple layout alternatives without ...
10
votes
2answers
2k views

Alternatives to the horizontal line in fancyhdr

I'm looking for a more fancy alternative to the default (read boring) horizontal line produced under the fancyhdr package. How creative can we get?
8
votes
1answer
279 views

How I can customize fbox and hrule?

I want to customization a sample exercises for a book. I like so much this style: I think that is possible with fbox and hrule, but I don't know how I can do it. No need to use fbox and hrule if ...
6
votes
2answers
4k views

Horizontal line in Algorithmic Environment

I'd like to separate two sections in an algorithmic environment with a horizontal line, like: ------------- Algorithm 1: MyAlgorithm ------------- Part 1: Do some stuff ------------- Part 2: ...
10
votes
1answer
423 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
8
votes
2answers
6k views

\cellcolor overwrites table lines

I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post). While the table without any ...
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 ...
8
votes
4answers
6k views

How to draw a line between two paragraphs of my text?

Its just as the title sys. Thanks.
6
votes
1answer
192 views

Adding vertical rule into tabu

Community, :) I know it might sound like some noobish' question, but I have some trouble adding the last vertical rule into my tabu. I've retrieved the code from here: How to Create Comparison Tables ...
5
votes
1answer
4k views

How to separate beamer columns with vertical lines

I am using the columns environment with beamer. \begin{columns}[c] \begin{column}{0.5\textwidth} \includegraphics<1>[width=0.35\textwidth]{dictmat-4.png} \end{column} \hspace{-50pt} ...
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 ...
4
votes
2answers
6k views

Custom header/footer rules (fancyhdr?)

I want to be able to customize my header/footer so far that I can change the rules that separate it from the document. Look for example at http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf ...
4
votes
1answer
209 views

Double vertical bars alongside statements of theorems

Prof. Hatcher describes a way to produce them in TeX here: http://www.math.cornell.edu/~hatcher/AT/typography.html I would like to know if any of you guys knows of a way to generate them in LaTeX. ...
2
votes
1answer
535 views

How Can I Draw a Horizontal Rule on a Beamer Handout?

I have a beamer handout with a 16-on-1 layout via \pgfpagesuselayout{16 on 1}. I would like to draw a horizontal rule beneath each row of slides so that the viewer is more easily led to read left to ...
19
votes
1answer
420 views

Strange disappearing colored rules in beamer

I have received a booktabs bug report of \cmidrules that disappear when coloured rules are used inside beamer (together with colortbl). The problem can be illustrated with the following simple code ...
11
votes
2answers
649 views

Creating lists with items separated by a rule

How can I create a list in which a rule is automatically inserted between each pair of items?
10
votes
1answer
2k views

Vertical table lines are discontinuous with booktabs

I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one ...
9
votes
2answers
4k views

\hhline adds white line where no line is intended

In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
9
votes
2answers
2k 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?
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 ___________________ ______________________ ...
8
votes
1answer
4k 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 ...
7
votes
1answer
600 views

A thicker wave underline

I have found \uwave in the ulem package, and its definition in ulem.sty: % Now define various special underlines. All the definitions go like % \def \command {\bgroup \markoverwith{something} \ULon} ...
7
votes
4answers
358 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} ...
6
votes
1answer
302 views

Nice-looking tables with thick rules

I want to make a table with rules that are thicker than the default. It's pretty straightforward to do, however the result looks bad: the lines have gaps in them (see image below). There must be a ...
5
votes
2answers
143 views

Border-top display

I need to display border on the very top of a page and I can't figure out how to do that. If it helps in CSS it would be: border-top: 5px solid blue; Thanks in advance for any help.
5
votes
2answers
129 views

How to delete borders (rules) in a table defined with the cals package?

I recently discovered the less known cals package for defining tables HTML-style. Here is all documentation I found: http://www.ctan.org/tex-archive/macros/latex/contrib/cals (demo & doc) ...
5
votes
1answer
737 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 ...
4
votes
3answers
2k 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 ...
2
votes
4answers
189 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
13
votes
2answers
580 views

How to draw horizontal line with rubber length?

The \hrulefill command could draw rubber length underlines, like abc___def. I just want to draw line in the vertical centre of a text, like abc---def. Thanks.
11
votes
1answer
477 views

Two-column layout with thick vertical rule in ConTeXt

Background I would like to add a thick rule centered between two columns. Example Code A minimum working example that illustrates the issue: \setupcolors[state=start] ...
7
votes
2answers
100 views

algorithm with partial borders/frames

I use the algorithm float environment for pseudocode and want some algorithms to span two pages. That works fine with \algstore and \algrestore. However, I would like to omit these borders at the end ...
7
votes
2answers
640 views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
7
votes
2answers
737 views

Linux Biolinum O messes up moderncv Package

Take the template.tex example file from http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples and add these two lines: \usepackage{fontspec} \setsansfont{Linux Biolinum O} Then run ...
7
votes
1answer
678 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} ...
6
votes
2answers
155 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
6
votes
1answer
73 views

How can I fill a line from the left?

I am fiddling with various ways of filling a line with a vertically centered line and experimenting with the answers here: http://stackoverflow.com/questions/2553392/latex-rule-filling-the-line and ...
6
votes
0answers
123 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 ...
5
votes
2answers
382 views

Tabular with automatic \hline

Is there a package or simple command that will insert an \hline after every line in a tabular environment? It is rather annoying to do it all manually, and it seems like there should be a simple way ...
5
votes
2answers
2k views

Colored tables and cline/hhline

How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line? Here are two solutions but neither of them works fine. \documentclass[a4paper,11pt]{article} ...
5
votes
3answers
3k 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 ...
4
votes
2answers
387 views

LaTeX table adjustments

I am typing the following table in LaTeX: \begin{center} \setlength\extrarowheight{5pt} %\renewcommand{\arraystretch}{1.2} \begin{tabular*}{3.4in}{@{\extracolsep{\fill} } | c | c | c | c | c | c | c ...
4
votes
1answer
48 views

Generation of a simple title

How can i get the following result using a fixed-width right rule and a line-filling left rule ?