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

What is the right way to remove the thin space that appears between adjacent rules when viewed in a PDF viewer?

When rules are placed next to each other, a thin space appears between them. I'd like to remove the space. What is the best method to do so? Minimal example: \setbox0=\hbox{\vrule height10pt ...
2
votes
2answers
69 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) % ...
7
votes
1answer
908 views

Vertical line in longtable

I would like my vertical line to be slightly detached from the horizontal lines. I am using \usepackage{longtable}. \footnotesize \begin{longtable}{r | p{10cm}} \caption{My caption 1\label{1}}\\ ...
13
votes
4answers
21k views
0
votes
2answers
28 views

vertical rule in tabular cell over part of its height

I want to insert a vertical line in a tabular cell which doesn't run over the full height of the cell, but only 90% of it. I tried: \vrule height 0.45\height depth 0.45\height, but \height throws ...
4
votes
1answer
25 views

\hrulefill with customized rule

I created a new command to generate doubled rules. How can I use or create a new command similar to \hrulefill in order to force my doubled rules to fill the rest of the line. So far I have tried this ...
8
votes
1answer
485 views

Vertical line enclosing items in itemize

I want to LaTeX some notes. The result should look like this: The numbers are fine with me. The problem is how to draw those vertical lines (with the hook), particularly inside the itemize ...
3
votes
2answers
102 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
1
vote
2answers
27 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) hspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. hspace(10mm) ...
2
votes
1answer
29 views

Colored horizontal lines in algorithm2e

I'm trying to colorize the 3 horizontal lines appearing at the top and bottom of the algorithm below. I haven't been able to find similar issues in the internet. Could you please advise? ...
3
votes
2answers
46 views

Creation of vertical blue line doesn't work

I want to draw a a line like that in blue. In my code snippet, i use the variable color1 which is given by moderncv itself. \documentclass[11pt,a4paper,sans]{moderncv} \usepackage{fontenc} ...
11
votes
1answer
820 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
1answer
31 views

Can't change the colour of the line in the header (fancyhdr)

I'm trying to change the colour of the line in my header to the grey, and I don't know how to do it correctly. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % ...
4
votes
2answers
55 views

centered hrule (plain tex)

As my nick suggests, I am just starting out with tex. Using plain tex, I am trying to create a document where certain paragraphs are separated by a centered horizontal line. I would like the ...
2
votes
1answer
24 views

Suppress custom line numbers with vertical rules on a particular page

I use the following snippet to create legal pleading paper -- lines 1 to 28 on the left with two vertical lines, and one vertical line on the right. Q: How can I suppress these vertical lines and ...
2
votes
1answer
36 views

Define space between footsepline and footer

How to push footer text (red rectangle) down from footsepline (green rectangle)? Position of the footer (as a whole) on the page is not relavant. MWE: (\setlength\footheight{1.5\baselineskip} is ...
3
votes
1answer
893 views

\arrayrulewidth does not work - different thickness

I'm using \arrayrulewidth to specify my rule's width/thickness, e.g. in tables: \taburulecolor{title} \arrayrulewidth=1pt \setlength{\arrayrulewidth}{1pt} % Definiert die Liniendicke von Trennlinien ...
3
votes
1answer
32 views

Length of Titlerule

I have a picture on the right side of the title. For the title I'm using the underlining with \titlerule. Is it possible to adjust the line in length? I would like to have the line only go to the ...
3
votes
2answers
61 views

Adding vertical line (equal sign) to augmented bmatrix WITHOUT using array

Is there a way to add a vertical line (equal sign) to an augmented bmatrix (4x4) WITHOUT using array? Any help provided would be greatly appreciated.
1
vote
1answer
13 views

Argument to get margin width for line

I am typing up a homework assignment and am trying to separate the problem from the solution using a line. For example right now I have by using \textbf{Problem 1 -} Chapter 5: 31, 35, 36, 38, ...
1
vote
1answer
34 views

Center align after horizontal line inside an align environment?

I am trying to add a horizontal line in an align environment using the macro provided in this questiion and Package amsmath . The horziontal line looks okay with the equation but the contents below ...
0
votes
2answers
44 views

How to have row lines in table span only some given percent of each column?

I'm trying to make a table where the row lines only span a percentage of each column (say 75% centered on the middle of the cell). In other words instead of connecting column lines like this "H" they ...
3
votes
1answer
32 views

Footnote Horizontal Line

I am using a the IOP (Institute of Physics) LaTeX class/templates, I am trying to add a footnote but it is not showing a horizontal line. Is there a way to force this or define a new rule to make sure ...
1
vote
2answers
108 views

draw a line on a given page #

I am writing a conference paper and want to have a big black line drawn across the bottom of page 12 (the conference has a 12-page limit). Is there any way to do that, and specify it at the beginning, ...
41
votes
4answers
22k views

Is it normal for BibTeX to replace similar author names with “------”?

In my .bib file, I have two entries with exactly the same author names: @article{Seshadrinathan2010A-Subjective-St, Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. ...
3
votes
2answers
74 views

\hrulefill, just vertically

The command \hrulefill fills the rest of the line with a rule. Now, I would like to create a vertical line to the bottom of the page, starting from the last paragraph on that page. Is this possible? ...
2
votes
1answer
30 views

coloring section rule using sectsty package

I would like to change the color of section rule, as it obtained using sectsty package. Here is what I have: \documentclass{article} \usepackage{xcolor,sectsty,lipsum} ...
2
votes
1answer
21 views

page numbering with braces and lines

Here is a MWE: \documentclass{article} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{lipsum} \fancyfoot[C]{ \hrulefill \{ \thepage\ of \pageref{LastPage} \} \hrulefill } \pagestyle{fancy} ...
3
votes
2answers
76 views

Thickness control on vertical and horizontal lines

Regarding this example, having now: \documentclass[10pt]{article} \begin{document} \arrayrulewidth=0.7pt \begin{tabular}{|c|c|l|c|c|c|l|} \cline{1-3}\cline{5-7} & & & & & ...
3
votes
1answer
69 views

How do I draw a vertical line beside an item in enumerate

I would like to draw some (colored) vertical lines along side an item in the enumerate environment like the following does. The problem is that what I do is really hacky. Rather than having a bunch ...
19
votes
6answers
6k views

Putting a bar in the margin

I sometimes want to give examples in a document I am writing. Because these examples are quite general it could be difficult for readers to see the difference between the examples and the theoretical ...
4
votes
3answers
132 views

Booktabs table, multicolumn header underline

I have a table for a regression, which has two main parts ("Immigrants" and "Locals"). I would like to put a small line underneath Immigrants that goes from where the first model starts ("Disability") ...
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
56 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
41 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 ...
0
votes
1answer
33 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
50 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
32 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. ...
20
votes
3answers
9k views

Vertical table lines are discontinuous with booktabs

I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one ...
96
votes
5answers
215k views

Horizontal line spanning the entire document in LaTeX

I have used the \hrulefill command to create a horizontal rule, along with some other commands. In each case I have the rules extended up to the margin. I want the rule width to be controllable, i.e. ...
1
vote
1answer
97 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 ...
28
votes
1answer
829 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 ...
1
vote
3answers
82 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
54 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 ...
2
votes
1answer
736 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
5
votes
1answer
44 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
46 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
49 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
74 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
39 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 ...