Tagged Questions

{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

8
votes
2answers
367 views

Place chapter title between two lines

I want to place a chapter title between two lines. The lines shall be on the left and the right side of the centered title like in this screenshot: Note that the lines are slightly overhanging the ...
4
votes
3answers
231 views

Make a horizontal line from the current indented location to the right margin

I want to be able to do something like: \hspace{2cm} \hrule and have LaTeX give me a line that goes from 2cm past the left margin, to the right margin. I've looked around and as a LaTeX newbie it ...
3
votes
0answers
43 views

How can I change the thickness of \hrulefill [duplicate]

I am writing a worksheet for a math ed class. I am asking questions and would like the answer lines to start as soon as the question ends, and not the next line. This is partly because I want to start ...
4
votes
1answer
85 views

Adding dashed line below element in matrix

Consider the following code: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{pdfpages} \usepackage{easybmat} \title{Test} \author{Bob} \date{} \begin{document} ...
2
votes
1answer
3k views

Is it possible to use \cline multiple times when using multirow?

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|}\cline{3-8} ...
3
votes
1answer
709 views

how can I draw a vertical line between two specific columns in multicol environment

Trying to have a vertical line between the 4th and the 5th column in a multicol environment. \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{multicol} ...
10
votes
1answer
8k views

How to draw a double \hline in a table without interrupting vertical lines

I need to draw a double line after the first row in a table, but when using \hline twice, this interrupts the vertical lines: \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|} \hline ...
11
votes
1answer
526 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] ...
5
votes
2answers
150 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.
4
votes
1answer
5k views

Center hrule in the middle of the page

I would like to center a horizontal line on my page and I would like the width of this line to be half \textwidth. Here is what I tried but it doesn't work : \documentclass[10pt,a4paper]{article} ...
2
votes
1answer
450 views

Double line for header/footer rules

I want to create a fancy header/footer rule in Exam document class. I have tried what is at http://tex.stackexchange.com/questions/89569/custom-header-footer-rules-fancyhdr and Custom header/footer ...
2
votes
1answer
172 views

titleps multiple headers does not accept rule changes

I want to use several different headers and footers in a document. After a lot of trying I have decided to use titleps as the way to go, as I in any case redefine the sections, subsections, etc. ...
3
votes
1answer
52 views

Use the content of a counter in cline

consider the following example: \newcounter{cnt} \setcounter{cnt}{3} \begin{tabular}{l|l|l|} \cline{2-3} a & b & c \end{tabular} I have a package that generates tables with a ...
4
votes
1answer
373 views

How to create this table for multi-line rotated text and thick vertical lines?

I want to create the table below and I am not sure how to do it. I also want the lines that say, "Long line of text really long" to be wrapped, and take up 2 instead of 1 so that the table isn't as ...
8
votes
1answer
731 views

chapter style latex horizontal line

I want a chapter style like this: 1 ------chapter name------------- text text text text tex t text text text text t I have come this far: ...
25
votes
1answer
408 views

Using elastic lengths — when do they work?

I was wondering why elastic lengths like \fill seem to work only under certain conditions. For instance if I write A \hspace{\fill} B I get A left aligned, B right aligned as wanted. If however ...
9
votes
1answer
152 views

Enable footnote rule only for split footnotes

I am using \usepackage[norule]{footmisc} to disable the horizontal rule separating my footnotes from the bodytext of my document. However, I would like to keep this rule in the case that the top line ...
8
votes
1answer
510 views

Customizing the `\columnseprule` in a `\multicols` environment

In OpenOffice and LibreOffice, one can specify the height (depth?) of the column separator rule in a multi-column section. It can be e.g. 50% of the columns’ height. I would like to be able to do the ...
6
votes
1answer
122 views

No horizontal bar in table for space between column

I'm trying to create a table with underlined column groupings. I have an extra space between the groupings using @{\hskip 1cm}, but I don't want the underlining to extend over this extra space. Is ...
8
votes
2answers
3k views

Variable-width horizontal rules with \cline intrude cell text

I have come to learn how to make a variable-width horizontal rule with \hline from the LaTeX companion and with \cline from Horizontal rule with adjustable height behaving like \cline{n-m}. But the ...
4
votes
3answers
623 views

two horizontal lines in header

I need to reproduce the following header format: \documentclass{book} \usepackage{fancyhdr} \pagestyle{fancy} \cfoot{} \lhead{\thepage}
2
votes
1answer
151 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
237 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
263 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
196 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
131 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
698 views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
0
votes
1answer
117 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
160 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
112 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
90 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
224 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
702 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
332 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
449 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
1k 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
389 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
88 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
228 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
219 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 ...
5
votes
1answer
4k 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 ...
6
votes
1answer
1k 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
346 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
416 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
280 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
119 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 ...
5
votes
2answers
454 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
288 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
220 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 ...