{rules} is about drawing lines (also called rules). Popular packages are {booktabs} (which provides high quality table rules) and {dashrule}.
8
votes
3answers
943 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 ...
2
votes
1answer
91 views
Horizontal dashed line on page break in listings environment
Well, the title says it all. I have code scripts that span over multiple pages. Is it possible to display a dashed line at the bottom and/or top of the page in which the listings environment ...
6
votes
2answers
127 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?
13
votes
1answer
122 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 ...
6
votes
2answers
147 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.
3
votes
1answer
86 views
Manually made folding marks in article don't appear as intended
I am writing a letter in the article documentclass in LyX. I tried Koma-script v2, and found it nice, but not quite fulfilling with customization, at any rate not within LyX.
Most of my letter works ...
4
votes
1answer
2k 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 a cmidrule that spans only the second two columns ...
3
votes
2answers
1k 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 ...
4
votes
3answers
1k 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
...
5
votes
2answers
61 views
Automatic \rule width
Suppose I have some title text that I format as follows:
\begin{center}
{\small Brief Notes on}\\[-0.2em]
Some Topic of Questionable Interest\\[-0.6em]
\rule{12em}{0.75pt}
\end{center}
This ...
4
votes
2answers
60 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 ...
4
votes
1answer
92 views
Fill empty vertical space with a single diagonal line
I'm currently writing a document with the book class.
At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of ...
1
vote
1answer
72 views
Draw a line under the headertext in ConTeXt
Sometimes, in order to seperate the headertext from the text area, I need draw a line just under the headertext.
\setuppagenumbering
[location=,
alternative=doublesided]
\definepagebreak
...
6
votes
1answer
57 views
Alignment rules
I find myself quite frequently in the need to check whether some elements on my page are aligned exactly as intended. As a result, I usually end up magnifying the output 400% and using a rule over my ...
8
votes
3answers
149 views
How to draw a horizontal line at the end of proofs?
How can I draw a horizontal line at the end of proofs? I use \begin{proof}....\end{proof}.
I use amsthm package without any modification.
1
vote
1answer
62 views
summation line for multiple rows
Is there a way to add multiple lines of numbers using a "summation line"? Specifically, I want to create something like the below, only better looking.
\documentclass{article}
...
4
votes
2answers
138 views
How to add horizontal line after header and before footer?
How can I add horizontal line after header and before footer?
header
---------
---------
footer
2
votes
1answer
73 views
\hline with \only (or \onslide) in Beamer
In a table in beamer, I would like to remove \hline after X number of slides using
\only<1>{\hline}
But this always results in an error message:
Misplaced \noalign
What can I do to ...
1
vote
2answers
72 views
Table Line above?
\begin{center}
\captionof{table}{Register Table} \label{tab:title}
\begin{tabulary}{1.2\textwidth}{| p{3cm} || C | p{3cm} | C | C p{1cm} | }
Procedure & Expected Outcome & Pass ...
3
votes
1answer
45 views
Breaking Horizontal Rule Running Across Adjacent Columns in a Table
Is there any way to force a break in the horizontal rule running across two adjacent cells of a table. To be more precise, here is what I'm looking for:
Notice how I wish the lines to fall short of ...
5
votes
1answer
49 views
Table - remove row lines in column to furthest right
How do I remove row lines in the column to furthest to the right.
I have seen examples where they do it the left. I would like the "powers" from the table here to be on the right side instead of the ...
1
vote
1answer
92 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
53 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
67 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.)
1
vote
1answer
104 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 ...
2
votes
1answer
52 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
95 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}
...
15
votes
3answers
9k 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.
30
votes
7answers
9k views
Long underscore in LaTeX
In LaTeX, how would I make a long underscore?
For example,
Name _______ Signature _______
5
votes
1answer
102 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.
16
votes
1answer
7k 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 ...
7
votes
2answers
149 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 ...
12
votes
5answers
927 views
How can i add a “field” for handwritten text?
I need to add a bunch of fields for a handwritten text
to my document that look like this:
Your Name ___________
Your Age ___________
As an example, I can show you the form that I have to ...
0
votes
0answers
25 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. ...
1
vote
0answers
101 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
91 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
82 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" ...
3
votes
1answer
173 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
86 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 ...
6
votes
1answer
567 views
Section heading, text embedded in horizontal rule
I would like to create section headings that look like this:
-------------------- Some title --------------------
So a horizontal rule with text embedded in the middle. Should I use titlesec or ...
7
votes
2answers
195 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 ...
2
votes
2answers
90 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}{| ...
18
votes
5answers
25k views
LaTeX tables: How do I make bold horizontal lines (typically \hline)?
The title says it all:
In LaTeX tables: How do I make bold horizontal lines (typically \hline)?
2
votes
1answer
44 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)
...
18
votes
1answer
202 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
155 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 ...
3
votes
1answer
171 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 ...
25
votes
2answers
5k views
How can I reproduce this table with thick lines?
I'm trying to reproduce this table:
(apologies for the terrible cameraphone pic)
I don't know how to get the slightly thicker leftmost and topmost line.
Here's a minimal example of what I have so ...
6
votes
1answer
159 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 ...
1
vote
0answers
83 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.
...
