{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

2
votes
1answer
133 views

How to add vertical lines (rules) to the left of first column and right of last column using multicol package

When using the package multicol for say 2 columns, the output is ....|.... using the code below. I'd like a way to add a rule to the left of the first column and to the right of the last column, so ...
5
votes
1answer
162 views

split a horizontal line into serveral lines in a table

I know \cline{i-j} to span a line from column i to j. But if in one line, I want a line only spanning from {1-1} and then {3-3} for example, how can I make it? | a | b | c | -- -- |d | e | f | ...
4
votes
2answers
238 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
2
votes
4answers
184 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} ...
2
votes
1answer
119 views

Changing whether the footer rule is present

I would like the footer to be different after the first page of my problem sheet document I have implemented the following: \fancypagestyle{questions} { \fancyhf{}% Delete the current section ...
7
votes
2answers
599 views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
0
votes
1answer
106 views

overfull hbox when I insert hline

I've got an issue related to table of contents. I want a horizontal line before each section, so I put \renewcommand{\cftsecfont}{ \hline %other stuff that I need } This is perfect in terms of ...
4
votes
1answer
123 views

How to put label on top of an inference rule (bussproofs package)?

I use bussproofs (instead of mathpartir) to layout inference rules. bussproofs can place labels to the left and to the right of a rule, but not on top of a rule (like mathpartir can do). Is there an ...
0
votes
0answers
93 views

nopagebreak between rule and custom theorem env

I'm making a custom theorem environment. Here's a minimal example of my problem, with some filler text borrowed from the GPL: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} ...
1
vote
2answers
84 views

What is the code for creating a space for the name and date for a child's worksheet?

For example I want my worksheet to look like this: Name: ____________ Date: ____________ Vowels and Consonants
3
votes
1answer
170 views

Horizontal line under chapters in a multicolumn ToC

I have a document that contains a multicolumn ToC made with \usepackage[toc]{multitoc} \renewcommand*{\multicolumntoc}{3} I use the following command to make chapters and add them to the ToC, as I ...
8
votes
4answers
488 views

How to add partial horizontal lines in horizontally aligned math environments

I'm having trouble writing a proof of a theorem in LaTeX, where I need to sum a set of inequalities and continue the proof with this sum. The problem I have is that I'd like to introduce this step ...
7
votes
1answer
302 views

How to set a new clean arara rule that circumvents Dropbox interference in Windows?

arara is a cool tool for LaTeX automation, it works by setting your directives (i.e., a code line in tex document) to tell arara what to run next in a specific order that best suits your LaTeX ...
3
votes
1answer
336 views

Table with different rule widths

I wish to typeset a table with specific borders, where the the column rule separators are thicker, and also the first, second and last horizontal rules. I've tried using the tabu package and it ...
11
votes
1answer
929 views

how to change the color of the rule (vertical line) in twocolumn document?

I'd like to make the rule between the 2 columns very thin. I found that no matter how small of width I made it, the line was not thin enough for my liking (unless I make it zero, then it will ...
3
votes
1answer
238 views

Line under one column

Simple question that I couldn't find an answer to anywhere: I am using \cline to create discontinued lines in my tables. Sometimes I want to have a line just spanning over one column rather than ...
0
votes
1answer
86 views

Drawing the following table

How can i produce the above table in latex? The first column width i want to be small. The second and third and fourth i want to be of desired size. Is it possible to do it. Also I want thick lines ...
4
votes
1answer
175 views

Exam Lines (not with the exam package)

I'm a newbie to LaTeX as of a couple days ago, and was delighted to hear of an exam package that would ease my pain. However, I've worked out that the exam paper I am trying to emulate definitely did ...
7
votes
1answer
183 views

Separator in middle of table of contents

How can I put some kind of separator, (say horizontal line or tikz edge), mid way through the table of contents to break the Table of Contents into distinct blocks for frontmatter, mainmatter and ...
4
votes
1answer
3k 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 ...
4
votes
1answer
867 views

Midrule that extends only over some of the columns in booktabs

I hope this isn't a silly question, the thing is that I want to create a table with a midrule applied in just some cells, I mean something like that (just between Item, Animal and Description): ...
4
votes
1answer
279 views

Graphics with bottom border for signature capture

I am generating PDF documents using pdflatex with signature images which are pre-converted with Inkscape to pdf. The current template looks like this ({{ tags }} are django template tags): ...
3
votes
1answer
363 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 ...
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?
3
votes
1answer
259 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 ...
5
votes
2answers
109 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
346 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
256 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 ...
11
votes
1answer
209 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 ...
2
votes
2answers
418 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 ...
8
votes
3answers
288 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
127 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
4k views

How to add horizontal line after header and before footer?

How can I add horizontal line after header and before footer? header --------- --------- footer
3
votes
1answer
854 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
87 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
191 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
258 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 ...
3
votes
1answer
493 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
242 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
200 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
612 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
280 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
708 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
301 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
402 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
298 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. ...
1
vote
0answers
608 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
388 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
193 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" ...