{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

4
votes
2answers
1k 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} ...
4
votes
1answer
537 views

How to 'shorten' \cline so that multiple groups in a table become visible?

I would like to construct a table which looks like a booktabs table (but without using the package booktabs). Instead of \cmidrule, I used \cline, which comes pretty close (see below), but the lines ...
5
votes
2answers
125 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) ...
2
votes
2answers
161 views

How to eliminate certain vertical lines in tables

I'd appreciate if somebody could help me with this. I'd like to eliminate the vertical lines of the 8th row. I haven't been able to get it. \begin{table} \footnotesize \begin{tabular}{| ...
19
votes
1answer
400 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 ...
2
votes
1answer
588 views

How to draw a horizontal line between middle of the page and one of the edges (in beamerposter)

I have a two column layout with beamerposter, where the columns are seperated by a vertical (thanks to egreg). Now I need the sections to be divided by horizontal lines that range from the edge of the ...
4
votes
1answer
762 views

How to draw a line between columns in beamerposter, reaching from header to bottom?

I am trying to make a poster using the beamerposter package and have a line below a header block (containing title, authors etc.). Now I want to draw a vertical line in the middle of the poster ...
6
votes
1answer
292 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 ...
3
votes
1answer
1k views

Changing properties of epigraphs using “epigraph” package

Please help me to figure out how to produce with that: I have the following code: \epigraph{«Теперь нам ясно, что вся структура теории чисел держится на одном основании, а именно, на алгоритме для ...
14
votes
1answer
765 views

How to draw a simple but beautiful decorative head-rule?

The picture shown below is the desired simple head-rule, but the rule width should be much thinner like 1pt. Real one: So how to use Tikz or other packages to draw this kind of line as a ...
0
votes
1answer
374 views

In a table how do I add vertical lines between each column?

I have this as my current table which is fine, but I would like there to be vertical lines too just to make it look that bit neater. I'd also like horizontal lines between each row but this would ...
10
votes
3answers
2k views

Width of epigraphs

How can I set the width of an epigraph for automatic fitting of text inside epigraph? I would like that the line between text and source have the same width of the above text. This in every epigraph! ...
6
votes
1answer
257 views

Multiple vertical rules along text – by using \leaders?

I want to draw individual vertical rules on the left side of consecutive paragraphs/vertical boxes covering the vertical skips. In my case for every paragraph/vertical box, there can be different ...
2
votes
2answers
2k views

Horizontal line in a pbox

While creating a quiz, I needed to format logical arguments, which our textbook presents as a list of premises, one per line, then a horizontal rule as wide as the widest premise, and the conclusion ...
3
votes
1answer
198 views

Style Parcolumns vertical bar

How can I style the vertical bar in parcolumns that appears when using rulebetween=true? I am trying to do something similar to what you can do with \vrule like the below: ...
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} ...
3
votes
1answer
256 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 ...
6
votes
2answers
7k 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 ...
0
votes
1answer
705 views

How to remove line in header?

I am using mdframed in header but line still appears as shown below. How can I remove that line?. Regards
2
votes
1answer
1k views

Two horizontal lines above and under chapter-entry [duplicate]

Possible Duplicate: Title between lines Can anybody please tell me how to get horizontal lines above and under the \chapter{MyChapter}? Here is an example:
1
vote
2answers
144 views

Add a hrule to only chapter not numbered

I am thinking of adding a hrule to only chapters that are not numbered, in other words the chapters created using chapter*{}. I thought of using the titlesec package- My problem is that I cannot find ...
0
votes
1answer
105 views

Rule between environments (no spacing!)

I want to place a rule between two centered tabulars like the following example. But I am not able to control the correct spacing of 2mm in between the rule. Can somebody maybe explain :-) what should ...
1
vote
0answers
86 views

Ruler below chapter heading [duplicate]

I am writing my thesis work using Lyx. Could anyone please help me with the code for positioning a ruler below the chapter title? The code I have doesn't display any ruler below the chapter title. ...
4
votes
2answers
5k 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 ...
24
votes
2answers
846 views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
14
votes
2answers
561 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?
3
votes
1answer
293 views

Problem with \hline and reference

I am trying to end my table with a \hline. My tex is as follows \begin{center} \begin{tabular}{ l | c || r } \hline 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7 & 8 & 9 \\ ...
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 ...
7
votes
2answers
5k views

How to change the shaded color of the \rule{…}{…} command?

To change the shaded color of the \rule{...}{...} command, one solution is \textcolor‎{‎blue‎}{\rule{2cm}{2cm}}‎ but I want to know how can I directly change the color of this command globally?
10
votes
2answers
334 views

How to render a double bottom border on a single table cell?

How to render a double bottom border on a single table cell? In the example table, \begin{table}[htbp] \begin{tabular}{|l|r|r|} \hline Item & Sales & Total \\ \hline Item 1 & 10 & ...
23
votes
2answers
653 views

Add a rule underneath “Figure 1”

I want to add a line beneath the figure caption such as Figure 1 Figure caption text here.... I managed to include a newline, change the color and look of the caption via caption package: ...
7
votes
2answers
2k views

How can I supress horizontal rules in newlfm letterhead?

I'm trying to use the newlfm package to put together a LaTeX letterhead. (Thankfully, my college's letterhead is text-only, so I don't have to worry about fancy logos or the like.) I've gotten ...
6
votes
1answer
561 views

Title between lines

So I want to have one line above and one under the title of a chapter in scrreprt, like: _________________________________________________ 1. Introduction ...
10
votes
1answer
215 views

fbox drawn incorrectly after \noindent

What's going on here that the first and last \fbox are not getting drawn correctly when immediately following \noindent? \documentclass{article} \usepackage{pst-node} \pagestyle{empty} ...
4
votes
2answers
2k views

Adjusting the height of \vline

Is there a way to adjust the height of \vline?
4
votes
1answer
76 views

How to add rule under content

I would add a rule under CONTENTS like this: How can I do? I have to use some particular package?
6
votes
3answers
1k views

Misalignment of \vrule

I have been writing my thesis and there is this one problem that I cant seem to figure out why it happens: The following is a segment of the code from my thesis style sheet. This defines the first ...
3
votes
1answer
197 views

Page number in outer margin affects vertical ruler

I adapted the idea from here to place the page numbers in the outer margin. However, by doing so, the vertical ruler disappears. I first thought that adjusting the horizontal spacing parameters for ...
6
votes
2answers
235 views

Generate a square and line

how should i write a command to automatically place a box on the left side wherein this box can contain text and beside the box are lines which depends on an argument.
6
votes
2answers
236 views

How to place a center aligned rule on the left of a section title?

How can I achieve this effect? I have tried the following code: \parbox[c]{3.5cm}{\color{NavyBlue}{\rule{90px}{7px}}} \parbox[c]{6cm}{\section*{Section Title}} But the rule is not center ...
17
votes
1answer
2k views

How can I make a bold horizontal rule under each section title?

I want to place a long bold \hrule-type line under the \section to make it more distinctive. How can I do that?
11
votes
4answers
442 views

How to construct a logic argument with colored hline with length under control?

How to construct a logic argument like this one? I can construct it like this: Latex of my argument: \documentclass[10pt]{article} \usepackage{newtxtext} \usepackage{newtxmath} ...
3
votes
1answer
403 views

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

Possible Duplicate: Long underscore in LaTeX a sample output would be like: __________ hello __________ hello
4
votes
1answer
197 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. ...
10
votes
3answers
419 views

Retrieve length of a character

I'm creating a custom command which basically prints an horizontal line, a character and another horizontal line. The code would be ...
5
votes
3answers
4k views

Formatting table border and text alignment in LaTeX table

I have the following table in the .tex file: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Distribution of Number of Injured ...
6
votes
2answers
226 views

Adding borders to an entire row in a table

I have a table with multiple rows (a regression table). I would like to add a coloured border highlighting one particular variable. I have found a way to border one cell at a time but is there a way ...
12
votes
1answer
3k views

A Matrix with labels, dashed lines

I'm trying to TeX the following matrix, from Guillemin and Pollack (1.4 #13) The best I've been able to do is get the dashed lines with \[ \left( \begin{array}{c:c} B & C \\ \hdashline D ...
3
votes
2answers
115 views

How to include a long underscore before the \question command?

i am working with a simple question but i can't include underline before the \question. Code documentclass{myclass} \newcommand{\line}{\begin{tabular}{p{2cm}} \\[-.35em] \hline \end{tabular} } ...
2
votes
1answer
518 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 ...