{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

1
vote
0answers
18 views

Only print footnote rules for certain streams when they're alone on the page

I'm using the reledmac package, along with the reledpar package, and I'd like to modify how the footnote rules appear. But, being a novice, I can only get so far. (See MWE). The document contains ...
2
votes
1answer
35 views

Horizontal line without vertical gap

I'm trying to create a underlined heading like this, without space between John Smith and the underline I tried this command, but it adds a vertical gap between the name and the underline ...
2
votes
1answer
23 views

How to have different head & footer rule widths on odd and even pages using fancyhdr?

I am trying to create a document that has just a footer on odd pages and just a header on even pages. On the odd pages, there should be a head rule width of 0pt and a foot rule width of 0.4pt. On the ...
2
votes
2answers
35 views

Problem with newlfm package

I am downloading an sample of a cover letter and I need to modify it. Here is the code : %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Long Lined Cover Letter % LaTeX Template % Version 1.0 (1/6/13) % ...
0
votes
1answer
31 views

Custom header rules

Lately I've become a big fan of using header rules in my works, but sometimes I feel like I could be more "stylish" if I could make slightly fancier rules. As an example of what I would like to be ...
3
votes
2answers
40 views

Add a headrule to the page style in a document class

I'm writing a thesis using the thesis.cls document class supplied by my own university. The university's own guidelines state that headers may be used in the thesis ''as long as there is a line across ...
1
vote
0answers
30 views

Line thickness varies based on titlespacing settings. Behavior change based on content

I am trying to format the section of the document article class a little differently. To achieve this, I have defined a command Section as below. ...
1
vote
3answers
56 views

Underline aligned math addition [duplicate]

I have found several answers to this question. But the answer often lead to modification codes. I wonder if there is simple package for this. I want to align equations and underline or draw a line ...
2
votes
1answer
40 views

Adding signature in pdf (jpeg or png) format with a bottom border

I currently have this layout: \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{multicol} \begin{document} \begin{multicols}{2} \textbf{Position} \par \medskip ...
5
votes
1answer
26 views

\hrule\hskip stretchability

This \documentclass[12pt]{report} \def\usrf{\leavevmode\leaders\hrule\hskip 0pt plus 1em minus 0pt\kern 0sp} \begin{document} \noindent A\usrf{}B C\linebreak DEFGH \end{document} results in that ...
2
votes
1answer
27 views

Vertical/Horizontal Rules in TabularX

I am trying to help kids identify whole numbers vs mixed numbers vs proper fractions vs improper fractions. I am having them practice using this table which needs two fixes. Vertical rules between ...
1
vote
1answer
36 views

Double line rule in memoir header

I need like this header ____________________________________ (this smaller height) ____________________________________ (this bigger height) I guess i need to redefine this from memoir class: ...
3
votes
1answer
44 views

Is it possible to change the box rule thickness of algorithm2e

Is it possible to customize the boxing rule width and color of an algorithm2e float? \documentclass{article} \usepackage{algorithm2e} \begin{document} % \RestyleAlgo{boxed} \RestyleAlgo{boxruled} ...
2
votes
1answer
38 views

Texts, lines and length

It is possible to set the width of the lines depending to text length (text aab's in MWE). Total length text aab's + line should be an equal. And I need also the "Text inside" on the same height as ...
2
votes
1answer
46 views

Drawing a double line

I went to create a horizontal double line that fills the page after some words. The code \newcommand{\raisedrule}[2][0em]{\leaders\hbox{\rule[#1]{1pt}{#2}}\hfill} obtain from LaTeX rule filling ...
4
votes
2answers
252 views

Draw a line halfway down a page

Is there a way to draw a horizontal line across a page at the halfway mark, without changing the text at all? I've got to write a document that is one and a half pages long. I've been trying to ...
3
votes
1answer
36 views

Personalized floatstyle

I would like to personalize some floatstyle. Here is my MWE: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
3
votes
2answers
75 views

Disable the last line at the end of algorithm

If I use the algorithm package as such \begin{algorithm}[h!] ...insert algorithm here... \end{algorithm} I find a line at the end of my algorithm. Without going into detail, I want a algorithm ...
2
votes
1answer
54 views

Remove spaces above and below cmidrule [duplicate]

I'm using booktabs to create table and use cmidrule to span a line across a few columns. The problem is when the cells have background color, the spaces around cmidrule makes it look really bad. ...
3
votes
3answers
101 views

How can I center a set of equations and make a line under one of them?

This is something I need to achieve, I have a problem with the last equation. How can I underline this the same way as above? I've tried writing it as one fraction, but the other fraction in ...
3
votes
1answer
83 views

\fbox thickness different for different size

The thickness of \fbox in LaTeX can be changed by using \fboxrule. But I want different thickness for different sides. Basically I want to write a text with only a border in top and no where. So I am ...
2
votes
1answer
33 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
122 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
71 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
121 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
66 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
64 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
39 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
47 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
94 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
67 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
45 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
242 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 ...
7
votes
1answer
341 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 LaTeX ...
1
vote
2answers
145 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
366 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
34 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
70 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
151 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
70 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
68 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
29 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
262 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
80 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
101 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
27 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
34 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
274 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
288 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
68 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 ...