{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

0
votes
1answer
103 views

Why is it so difficult to generate a \midrule dashed in LaTeX?

I want to get the equivalent dashed version of \cmidule(lr){1-2}. Looks like the solution is not trivial. What is the easiest way you think of?
1
vote
2answers
36 views

How to remove the horizontal line from the chapter title in thatcher using memoir

I would like to remove the horizontal line between the Chapter Title and Number... Here is my customized MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes]{memoir} %Classe estilo memoir \...
3
votes
1answer
66 views

How to control the offset of hrules and spacing of the text following a hrule?

I have used Tex at a very low level but I now need to try to format something a little more complex than I know how to handle. I have a large set of text files that I need to add a hrule in above and ...
4
votes
2answers
102 views

Lighter midrule

I have a table that looks like \documentclass{article} \usepackage{booktabs} \begin{document} \begin{tabular}{cc} \toprule A & B \\ \midrule Q & M \\ W & N \\ E &...
1
vote
2answers
91 views

{booktabs}: What to do with tables like these?

OK, you all know that booktabs forbids the use of vertical rules. But what to do with tables like these? \begin{center} \begin{tabular}{c|c|c|c|c|c|c|c|c} $y$ & -2 & -1 & 0 & 1 & ...
1
vote
1answer
40 views

Customize the \columnseprule for one particular column in \multicols environment

I'm trying to do a poster presenting what the starting point of my thesis is about. For this, I'm using a \multicols environment composed of three columns. The problem is that I want a particular ...
4
votes
2answers
59 views

Rules across specific columns

I would like to create a table like which looks like this: I'm unable to insert the lines for headings properly still. Here is the code: \documentclass[10pt,conference]{IEEEtran} \begin{document} ...
0
votes
1answer
26 views

\titleformat: Rule the underline

I modified \section format to add an underline. How can I reduce the space between the section name and the underline? The code I used is the following. \usepackage{titlesec} % Allows creating custom ...
2
votes
1answer
34 views

Ruled Text Box with Lines

I'd like to have a function for a "letter". By letter I mean that it is a ruled paper, and the text looks justified, as if it would be without the "uline" function. Moreover, the ulem package is not ...
4
votes
1answer
57 views

Misplaced noalign when using rowcolor

I am trying to create a table with colored rows and colored hrules between the rows, but I am getting a "Misplaced \noalign. \rowcolor" error. The following example reproduces this problem: \...
2
votes
1answer
47 views

Double line in header

I need to have double line under the header of each page where the chapter title and page number are written (except first pages of each chapter). A sample is as the following picture: I assume it ...
0
votes
1answer
47 views

Remove line between caption and table

How I can remove line between caption and table? My code is: \begin{table}[h] \tables{360pt}{1.875pt} \caption{EG unit Characteristics for TPC and 201 bus distribution systems} \label{tab1} \begin{...
3
votes
1answer
134 views

homework sheet solution

I would like to create homework sheet solution to looks like the following image My code \documentclass{article} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{...
8
votes
3answers
121 views

Raise or lower \hrulefill

I am editing a questionnaire that uses \hrulefill as a text entry "field". I would like to lower the \hrulefill a bit to give participants more room to write. For a fixed-length rule I would use ...
1
vote
0answers
35 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 ...
0
votes
2answers
35 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
53 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 ...
3
votes
2answers
104 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
40 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) vspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. vspace(10mm) ...
3
votes
2answers
51 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} \...
4
votes
2answers
86 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 ...
1
vote
1answer
51 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} % ...
2
votes
1answer
28 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
66 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
70 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
73 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
14 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, 39,...
1
vote
1answer
40 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 ...
2
votes
1answer
59 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? \...
0
votes
2answers
54 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
63 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 ...
3
votes
2answers
92 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
73 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} \sectionfont{\sectionrule{0pt}...
2
votes
1answer
22 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
108 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
106 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 ...
5
votes
3answers
241 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
20 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
61 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
58 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
85 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
37 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
76 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
2answers
115 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, ...
1
vote
0answers
33 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. \newcommand{\Section}[1]{\section*{#1}\noindent\rule{...
1
vote
3answers
116 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
71 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
55 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
68 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
59 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: \...