{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

3
votes
1answer
1k views

How to create a dashed line in tabularx environment

I've been looking into this, and I have encountered two main "solutions": \usepackage{arydshln} As decribed here. And this one: \usepackage{dashrule} As described in this other post. However, ...
2
votes
1answer
341 views

footnote rule on cover page

I have a document with a cover page and foonote. I would like to add a rule above the foonote. What is the way to do this? \documentclass[english,titlepage]{article} \begin{document} \title{ddd} ...
7
votes
1answer
273 views

vertical dotfill

How can I make vertical dotfill? In other words, I need vertical (dashed) line which will fill all available vertical space. (I tried to make it via rules, but not successfully.)
14
votes
1answer
913 views

\cmidrule with booktabs in beamer does not show up

I am trying to use a coloured \cmidrule in a table in beamer - however, it does not show up. I have read Strange disappearing colored rules in beamer which indicates that this is a bug and discusses ...
2
votes
1answer
912 views

Remove line from Header

I am using \usepackage{fancyhdr} \pagestyle{fancy} ........ \lhead{My Name} This setup creates header with a horizontal line. How can I remove line appearing in header? When I convert this ...
2
votes
2answers
1k views

\hhline doesnt work

I wonder you can help me why LaTeX can't draw a \hhline in my table?? (I would put a picture but I need at least 10 reputation...) Here is the code: \documentclass[12pt,titlepage]{report} ...
1
vote
1answer
516 views

Horizontal line through table cell

I have a very long, thin table that I'm folding onto itself to make a wider, shorter version. The table has a couple horizontal rules to separate data categories. For example, the original table is ...
5
votes
1answer
653 views

How to trim the length of \toprule? [duplicate]

How to trim \toprule (from booktabs package)? It is probably something basic I'm missing, but I need it and it's nowhere to be found.
7
votes
2answers
352 views

Redefining \hrule to do nothing

Discl.: I have been using LaTeX for many years, but I am a beginner on the more advanced macro stuff. For a specific hack of a latex document of mine, I want to override the use of \hrule within a ...
0
votes
0answers
27 views

Why Horizontal Line in LaTex->dvi->ps->pdf is Thicker than LaTex->dvi->pdf? [duplicate]

I try to use this line in both chains of compiling: \rule{6 cm}{0.02 cm} but in LaTex->dvi->ps->pdf is thick even if I make 0.02cm lower while in LaTex->dvi->pdf is a nice slim line which I need. ...
3
votes
0answers
1k views

Missing vertical line in table [closed]

I'm new to LaTeX and learning quite quickly thanks to this site, among others that teach me quick fixes for my mistakes, but I can't seem to find a fix for this, I'm not able to draw the right border ...
2
votes
1answer
603 views

Top aligned tabular: \cline equivalent of \firsthline

When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so: ...
2
votes
1answer
300 views

Creating a particular environment with a left-side rule

I don't have much experience in creating environments, and my understanding of them allows me to create environments which do something at the beginning and at the end (like for instance, in a "proof" ...
5
votes
2answers
3k 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
1answer
1k 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
137 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
194 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
491 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
739 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
1k 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 ...
7
votes
1answer
350 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
2k 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
1k 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
552 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 ...
13
votes
3answers
3k 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
336 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
3k 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
256 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: ...
8
votes
1answer
6k 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
360 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 ...
8
votes
2answers
14k 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
2k 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
2k 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
159 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
123 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
10k 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 ...
25
votes
2answers
2k 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
802 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
397 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 \\ ...
14
votes
2answers
5k 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 ...
10
votes
2answers
8k 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
610 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
992 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
4k 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
834 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
278 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
3k views

Adjusting the height of \vline

Is there a way to adjust the height of \vline?
4
votes
1answer
82 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
2k 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 ...