{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
72 views

How to alter style of statement block line in algorithm environment of algorithm2e package?

I'd like to change the style of the line that runs along the side of a statement block in a pseudocode algorithm typeset using the algorithm environment of the algorithm2e package. Here's the initial ...
5
votes
2answers
170 views

Signature field with centred content underneath it

I am using \documentclass[a4paper,12pt,openany,leqno,footinclude=true]{memoir} and want some signature lines that have dotted lines; plus a designation below the line I have: ...
1
vote
1answer
104 views

Rule in Moderncv

How can one generate a line/rule and the corresponding spacing to the text similar to the \maketitle command within the moderncv (casual) class? What is the thickness and color of the rule in ...
5
votes
3answers
133 views

How to draw a box around something with the dimensions of something else?

I'm using plain TeX and I've lifted a macro \boxed from the TeXbook (where it is called \cstok and slightly different) to put boxes around things in math mode: ...
3
votes
2answers
78 views

Custom enumerate label with short horizontal rule [closed]

I'd like to make an enumerated list with a short line in front of the item label. Like this: _____ 1. Item #1 text _____ 2. Item #2 text _____ 3. Item #3 text My original idea was to use this ...
3
votes
2answers
84 views

Automatically scale vertical rule to fit the text height

I'm trying to modify the style of the sections in moderncv package. Specifically, I want sections to have a vertical rule on their right side of the height of the section text. Below is the ...
1
vote
1answer
41 views

Vertical bar/rule table alignment

Would anyone know how to set up a vertical bar in the table so it is proportional at both ends of the table? Code: \newcolumntype{L}{p{0.00\textwidth}} ...
1
vote
1answer
69 views

Rule at the end of chapter: vertical and horizontal aligning

I want to place in the end of the chapter a short horizontally centered line, aligned vertically in the proportions of 2:3. Everything works except of the horizontal alignment. MWE: ...
1
vote
0answers
129 views

miktex-makemf source file not found(subfont hbf2gf)

I was writing in TexMaker when an error suddenly occurred after i compiled. The error that shows up on every build is: Process started Running miktex-makemf.exe... miktex-makemf: The ...
4
votes
3answers
86 views

Creating rule inside environment that is same width as text

I have an environment which left and right skips are set to same value. Inside it I have a text and a rule below that text. I want rule to have exactly same width as text above it. (Similarly to what ...
3
votes
1answer
54 views

Create a heading with a horizontal bar interrupted by text

I'm trying to create a command that creates text to look like the image attached. Specifically, I want a develop a command, say we call it "CenterTextWithLine", such that I type: ...
4
votes
5answers
263 views

How to draw a rule without knowing its specific width?

I am trying to improve my CV which I am writing using LaTeX. I want to show section headings something like this But I do not know how to; Add white space next to the section title, which is ...
11
votes
1answer
1k views

How to colour \hrule

I am trying to display a coloured \hrule. This discussion implies wrapping the \hrule in a \textcolor should do, but that adds an ugly extra vertical space above the \hrule. Other questions on ...
1
vote
2answers
213 views

Overfull hbox in rule below chapter title

I am writing a report with the KOMA-Script class scrreprt. Below each chapter title, I am creating a rule which goes all the way to the end of the paper: This actually works fine, but creates an ...
3
votes
2answers
1k views

What is the default length of \hrule?

When used without parameters, what varfiable controls the length of \hrule? I.e., how can I change the default length of \hrule, other than adding parameters to each instance -- say, to affect ...
3
votes
1answer
38 views

Are there spaces between rules of the tables, how can I delete them?

\documentclass[a4paper,11pt,twoside,openright]{book} % \usepackage{geometry} % \geometry{ % a4paper, % total={210mm,297mm}, % left=20mm, % right=20mm, % top=20mm, % bottom=20mm, % } ...
3
votes
1answer
97 views

How to create a vertical line before a paragraph?

I want to make a formatting like the following in my document: | Remark: | This is my remark. I made an environment to encapsulate the remarks but i do not manage to create a vertical line that ...
2
votes
1answer
273 views

Adding line after section heading

I am trying to add a horizontal line (like \hrule) that starts just after each section's heading, fills the rest of the line, and is vertically aligned with the heading, as shown below. To do so, I ...
2
votes
1answer
102 views

Removing horizontal lines and adding page number to cover letter template

I would like to use Matthew Miller's LaTeX template for cover letters, but since my cover letter is about 2 pages long, I need to do the following: Remove the horizontal line at the end of each ...
4
votes
2answers
100 views

\hrulefill not working as expected in \newcommand

I'm trying to make a simple new command for that creates a break in the text for a "Question and Answer" block preceded and succeeded by a horizontal line. With the existing code (listed below) the ...
4
votes
1answer
44 views

Centering of content below cmidrule

I'm trying to figure out how I can center the columns below a multicolumn statement with a very long text because my current result does not look fine. I didn't find anything related but it is also ...
8
votes
4answers
277 views

drawing music staves with \rule loop

I want to draw blank music staves using nothing but \rule in a loop. (I know there is MusiXTeX and Lilypond, not to mention Tikz, but really, I just want some horizontal lines.) In this example, the ...
4
votes
1answer
105 views

long double line for title

How can I make a long double line for a title like the picture What I have at the moment is this: \documentclass{article} \usepackage{wasysym} \begin{document} \def\doubleunderline#1{% ...
3
votes
2answers
150 views

Add double hline in table below caption

I would like to insert a double \hline below the caption in my table. The caption is positioned at the top of my table. MWE is below. The %\hline \hline line is where I would like the double \hline ...
4
votes
1answer
31 views

Add more space after a dashed rule in biblatex

Following typographic conventions, I'm using a three-em rule in dashed entries in my bibliography. I feel, however, that there is too little space between the rule and the following period. As the ...
2
votes
1answer
38 views

if statement problem

I am having a problem with some code and I could use some help. I have been using this implementation for a long time now and no problems before. Here is how I store all my variables ...
3
votes
3answers
289 views

Draw horizontal lines like open and close brackets

I need to draw two horizontal lines which look like open and close brackets: ___________________________________________________________________ | ...
6
votes
2answers
299 views

Why does a \hrule need text around it to be drawn?

Why does a \hrule need text around it to work? Example that does not draw a line: \documentclass{article} \begin{document} %foo \hrule %bar \end{document} If one removes the % before %foo or %bar ...
2
votes
1answer
85 views

TabularX Vertical Border Missing

Why is my table missing a little bit of its vertical rule near the top/right (just below where it says "Sets")? Context: I'm making fractions worksheets for students, many of whom will have diverse ...
1
vote
1answer
62 views

Extending fullwidth into one margin

I'm working on a résumé which places section headers in a widened left margin. I'd like to use a fullwidth environment for the heading at the top of the page. Formally speaking, this would extend ...
2
votes
2answers
97 views

Formatting table lines in landscape using tabularx: they stop halfway through

The lines in the table somehow stop halfway through the table. Any advice would be much appreciated! \documentclass[11pt,a4paper]{book} \usepackage{booktabs} \usepackage{tabularx} ...
2
votes
1answer
366 views

\titleformat (in titlesec) doesn't show any horizontal line for chapter

I have been trying to get a simple thing working with titlesec: getting a horizontal line under each chapter. There are many tutorials, documents and questions on TeX that explain how this can be ...
2
votes
0answers
47 views

How do I make unruled footnotes within an environment?

I have a single environment, fancyfoot, in which I would like footnotes to have no rules. \documentclass{memoir} \usepackage{lipsum} \newenvironment{fancyfoot}{ \renewcommand{\footnoterule}{} ...
11
votes
2answers
211 views

Is it possible to define a dotted version of `\vrule`?

The \vrule primitive has a nice charcateristic: it has the ability of adapting itself to the height and depth of the enclosing box: \documentclass{article} ...
5
votes
2answers
122 views

Changing width of table lines

We know that by adding \setlength\arrayrulewidth{xpt} changes the thickness of all the table lines. If I wanted to change specific table lines, how to do it? \documentclass[11pt]{article} ...
2
votes
1answer
137 views

Horizontal line under header background

I made a function that displays a header background. However, there supposed to be a horizontal line right under the background image, that goes from very left to very right with no margins. This is ...
2
votes
2answers
452 views

scrbook - How to add one horizontal line above and one below the chapter-entry without (!) using titlesec?

I want to add one horizontal line above and one below the chapter-entry as well. Before using the scrbook-class, I used this simple solution made by titlesec-package: \newpagestyle{headrules}{ ...
3
votes
1answer
117 views

Is there an easy way to create a partial \toprule?

Is there a relatively simple equivalent to \cmidrule (a partial horisontal line in a table) but with the characteristics of a \toprule? It seems the booktabs package does not provide a \ctoprule ...
2
votes
1answer
189 views

Removing header line and page number

I'm writing an article, and it gives me a line at the top of the page on which there's a page number. I want to remove both the line and the page number. I tried this to remove the line but it didn't ...
6
votes
1answer
4k views

vertical and horizontal line in a matrix

I want to create a bmatrix on the right \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix}[c|c] _B[T]_B ...
3
votes
3answers
110 views

Vertical stacked parboxes: Spacing and Calculating

I need a table which will work in twocolumn mode and can span over multiple pages. Since I've given up with supertabular (too buggy, too less control), I wrote a simple solution for my purposes with ...
1
vote
0answers
172 views

Drawing footnote separator line

Footnotes have a horizontal line above them, separating them from the body text on the page. How can I draw this line in a different context? I also would like the to vary the length of the line.
2
votes
1answer
413 views

\hrule underlining of subsection titles

I want an underlining of my subsection titles - a horizontal line that extends the whole page width like a \hrule. I tried the answer from this question which is to add these lines: ...
8
votes
2answers
419 views

How to align a dashrule?

I've been playing around with the dashrule package. But easy as it's shown in the manual, I don't get a proper alignment or width from the dashlines. \documentclass{article} \usepackage{dashrule} ...
1
vote
1answer
87 views

Section title ruler on right side center-aligned

I want do exactly this: http://www.latex-community.org/forum/viewtopic.php?f=44&p=42626 But as a general command for all subsection titles. I have the feeling that I am going to use the ...
5
votes
2answers
285 views

How to make a fancy rule under a line of text in ConTeXt

I've (mis)used LaTeX on and off for the past 10 years and am now trying out ConTeXt, mostly because it allows alignment to a baseline grid. I'd like to produce a rule (line) below some text such that ...
3
votes
1answer
41 views

Tune rule height in ruled float

I'm using float package to get floating environment with rules. I want to tune height of rules in ruled style for floatings of the package. Namely, I want bottom rule to be as thick as top one (like ...
3
votes
2answers
172 views

horizontal line/rule in column vector

Trying to generate a column vector with a horizontal line/rule separating top half of the vector from the bottom half. Am starting from the following MWE: ...
1
vote
1answer
165 views

\rule + memoir in \title Paragraph ended before \reserved@a was complete

I'm trying to make my customized title, but error happen with memoir (and not with article). \documentclass{memoir} \makeatletter \def\printtitle{% {\centering ...
3
votes
1answer
206 views

How to trim the length of \toprule

I want to be able to trim the left and the right of a \toprule and \bottomrule as you can do with \cmidrule(lr){<column range>}. My attempted solution using \cmidrule[\heavyrulewidth]{<column ...