{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

10
votes
2answers
282 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 ...
8
votes
1answer
782 views

Dashed draw with a node including a fraction

Is this intended behavior (with plain XeTeX): \input tikz \tikz\draw[dashed] node {$3T\over4$}; \bye It renders as: !? The fraction line is dashed, too! Is this intentional? Is there something I ...
7
votes
2answers
10k 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 ...
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
863 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
328 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 ...
2
votes
1answer
193 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 ...
11
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?
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 ...
14
votes
2answers
676 views

Inserting a line to separate the text and the margin note

How can I insert a vertical line through a whole page to separate the text and the margin notes?
8
votes
1answer
317 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
429 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
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
7k views

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

Its just as the title sys. Thanks.
6
votes
1answer
256 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
2answers
1k views

How to draw two \hline and two vertical line?

I want to draw a table with two \hline and two vertical line. But as shown in the figure, the first vertical line do not cross the two hline. How to solve this problem? \documentclass{article} ...
5
votes
1answer
5k 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
8k 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
239 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
552 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
456 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 ...
12
votes
2answers
725 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?
11
votes
1answer
3k 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 ...
11
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 ...
10
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
683 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
366 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
323 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
154 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
130 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
786 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
199 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} ...
14
votes
2answers
793 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
537 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
128 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
728 views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
7
votes
2answers
774 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
713 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
197 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
86 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
124 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
1answer
5k views

Getting strange misplaced \noalign error

I'm trying to add a horizontal line to my document, like so: \documentclass[10pt]{article} \usepackage{fullpage, graphicx, url} \usepackage{dsfont} \begin{document} $ \mathds{C}$ \hline ...
5
votes
2answers
479 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} ...