{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
4answers
41 views

Vertical line in the middle of the page

How can I get a vertical line in the middle of the page ? and I want also to write same text in the right and the left of the vertical bar (like this example) : I tried \rule but i don't know how to ...
1
vote
3answers
85 views

How to add vertical space after \hline without breaking vertical lines in a table

I have seen similar questions on the matter (Question 1, Question 2) of adding vertical space and not breaking vertical lines, the solutions suggested are to add space after the \\ using \\[0.1cm] for ...
1
vote
1answer
18 views

Horizontal line next to section heading

I have found good methods for adding a line over or under a section heading. A horizontal line that fills the whole width. Is it possible to add such a line extending the rest of the width placed ...
2
votes
2answers
64 views

Draw Dash-like midrule in table environment

I could draw most parts of this table. But I have no idea how to draw dash-liked midrule. Thanks a lot. \begin{table} \captionsetup{labelformat=empty}\ \centering \caption{REVENUE INTEREST}\ ...
2
votes
3answers
52 views

Center text between horizontal lines extending to the margin on either side

I'm wondering how to make something like this: ---------------------------------- Text ------------------------------------- In words: the text is centered. There is some space between the ...
1
vote
1answer
58 views

How do I create a header that has a colored box with page number, Chaptername, and also a line across the textwidth after it?

I would like to create a fancy header that looks like this. I am writing a two-sided book with a5paper.
2
votes
1answer
43 views

How to add separator between paragraphs (or minipages) on the same page?

I am trying to typeset a list of quotations in the following way: No quotation is split across pages. Between adjacent quotations on the same page, there is a separator (such as a fleuron or ...
4
votes
1answer
64 views

How to insert a symbol to the beginning of a line for which a word appears?

This is to indicate changes for a LaTeX file. Say, I wanted to add a vertical line to the beginning of a line whenever"word 1", "word 2", ...", or "word 100" appears. Manually this can be done in ...
2
votes
5answers
84 views

How to have a thorough horizontal line in tabular environment?

I want the horizontal lines to go across the second column; form start to the end of the second column. I found some suggestions to make a nested table, But couldn't understand those. This my code: ...
0
votes
2answers
49 views

Centered vertical rule in a displaymath

How would I place a centered vertical rule that separates two regions of text in a displaymath environoment? The effect I want is described below. Thanks! \[ 3x + 2 = 6 | x + 5 = 7 -2 = ...
4
votes
1answer
31 views

Algorithm environment, defining a custom style

I'm currently using the following mwe \documentclass{article} \usepackage{algpseudocode} \usepackage[plain]{algorithm} \begin{document} \begin{algorithm}[H] \hrule \vspace{0.5em} \caption{Euclide's ...
2
votes
1answer
39 views

Placing text between horizontal lines generated by \rule: equispacing

How to fix the vertical spacing between the text and the lines? In the following MWE the vertical space between the text and the line below it is much greater than the vertical space between the text ...
12
votes
4answers
799 views

Showing how to solve an equation in LaTeX

Is there a package that would allow me to draw a horizontal line in math mode, like what is suggested below? \begin{align*} x + 2 &= 3\\ % First equation -2 &= -2\\ % Second equation %% ...
3
votes
1answer
55 views

Vertical lines in LaTeX (tabular vs pgfplotstabletypeset)

Why don't these 2 tables have identical vertical lines? \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{pgfplotstable} \usepackage{pgfplots} \begin{document} ...
1
vote
1answer
35 views

Horizontal line in the middle (text alignment)

MWE: \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \begin{gather*} y=3x-6 --- {1}\\ y=-x+5 --- {2}\\ \end{gather*} \end{document} Picture: How do I join ...
3
votes
1answer
69 views

Listings: line number separator rule

Here I found a similar question with horizontal rule, which answer I don't understand to a degree I could use it to solve my problem: Adding a horizontal rule between caption and lstlisting inside a ...
4
votes
3answers
94 views

Underline a page head

I have the following code: \documentclass{article} \makeatletter \renewcommand\ps@headings{ \def\@evenhead{foo bar} \def\@oddhead{foo bar} } \makeatother \begin{document} \pagestyle{headings} ...
5
votes
1answer
66 views

\hrule with vertical margin

Is it possible to specify a vertical margin for \rule or \hrule? When I say abc \hrule def the line "touches" the text above and below, so I would like it to have a margin of about 1mm.
5
votes
2answers
70 views

hrule inside minipage refuses to show up

Inside a minipage, \hrule doesn't seem to do anything unless there is already some material inside the minipage. \documentclass{article} \begin{document} \hrule width\textwidth\relax \noindent ...
6
votes
3answers
120 views

How to change width of concrete \hline in table?

How can I change concrete \hline width? Maybe does anything exist like \hline[2mm]? PS: \setlength{\arrayrulewidth}{2mm} is inadequate in my situation because it changes all lines width in a table.
1
vote
0answers
15 views

Remove whitespace generated with \rule [duplicate]

I am trying to create a simple edge border to an a4 sheet using the \rule command \newgeometry{left=0cm,right=0cm, top=0cm, bottom=0cm} \hbox{ % Horizontal box %\hspace*{0.1\textwidth} % Whitespace ...
0
votes
1answer
33 views

Best way to include a line under title

I'm trying have a line that spans the width of the page after my name and title. Something that looks similar to this: I am hoping that there's a document class that will allow me to do it easily, ...
3
votes
1answer
53 views

Memoir: Change color of header rule when using a copied pagestyle

Using memoir class, I am trying to change the color of the header's rule as proposed in Set header and footer rule color in memoir. However, the following code won't change the rule's color: ...
1
vote
1answer
52 views

insert \hline in datatool importing .csv

I'm trying make a table with the datatool package and a .csv created from an Excel file. I'd like this code to be as generic as possible since I will have to import a lot of .csv in this document. ...
3
votes
2answers
132 views

Formatting a specific cell in a table

I am trying to format a table with no success. I basically trying to add a line after the case 3 (first set). There should basically be a separation between the first set of cases (after -7) with the ...
2
votes
2answers
62 views

Divide hline when double lines for columns appear, so to make separated columns

I want to create a table where for each cell, its lines do not cross the lines of other cells. Here is a minimal example \documentclass{article} \begin{document} \begin{tabular}{*{2}{|c|}}\hline ...
0
votes
0answers
36 views

Can I draw an end-of-proof box this way with \hrule and \vrule?

Does this end-of-proof box look all right? \documentclass{article} \newcommand{\proofbox}{\vbox{\hrule height0.75pt\hbox{\vrule height1ex width0.75pt\hskip0.5em\vrule width0.75pt}\hrule ...
0
votes
0answers
63 views

How to get row height in tabular?

I want to calculate row height that I could change tabular vertical rule. Everything is fine if I don't use superscript. But with superscript I don't get correct height of vertical line (\vline). ...
2
votes
1answer
62 views

Some logic for the epigraph length

In the beginning I wanted a way to specify the rule length for each \epigraph call. But after the suggestion given here, I ended up with some code that calculates the length of the rule like this: it ...
2
votes
1answer
41 views

Last column vertical rule missing

I'm dealing with the powerful tabularx environment. I was able to obtain a nice table, except for the last column. I need seven columns in total, but at the end I got another half column. I can't ...
3
votes
1answer
93 views

How can I draw a vertical line on a slide in beamer without affecting the positions of any other elements on the page?

Consider the following beamer frame \begin{frame} \frametitle{Foo Bar} \includegraphics[scale=0.18]{figures/Fig1.pdf} \includegraphics[scale=0.18]{figures/Fig2.pdf} \end{frame} Currently, they are ...
2
votes
3answers
68 views

Is it possible to produce a comparison network

Is it possible to produce a comparison network, similar to the one shown in the diagram here: I've looked at using \rule's, but I can't get them to produce lines in my code. Also how can I add a ...
2
votes
1answer
37 views

How to change the vruler font size and how to hide the particular page

I am using the vruler package for creating the line numbers. My need is to adjust the vruler fontsize slightly big. I don't know how to adjust the vruler font size. The second thing is I am creating ...
14
votes
2answers
374 views

Very slight discontinuities in table borders

Tables in LaTeX all seem to have slight discontinuities in the outside vertical borders - little notches that are only really visible if you zoom in. Example: \documentclass{article} ...
4
votes
1answer
62 views

Help understanding Rules and Leaders in a memoir chapter head

In another post I was given the code to create a header for my Memoir chapter. I wanted some text between a horizontal double-rule, like so: ========= Hello World======== Chapter Name (see ...
3
votes
1answer
88 views

How to use booktab or type this Table in REVTex4 / REVTex4-1

I wish to type this table in REVTex, however, the code below does not work for \documentclass{revtex4} but only for \documentclass{article}: \documentclass{revtex4} ...
6
votes
2answers
110 views

Redefining \toprule to default line thickness to use in tables

How can I change the width of a line in a table produced by \toprule to a default of 0.25em? I know it would be something along the lines of \renewcommand{\toprule}{??} but what would be in the ...
2
votes
1answer
46 views

Extending a line in the Table

I wish to have a Table setting like the following graph with an extra line inserted between a and b. Namely, I wish to extend the line separating 1, 4 and 2, 5 to the line separating a and b. The ...
3
votes
1answer
70 views

Conditional table construction with datatool

The following minimal example creates a 3-row table width a horizontal rule separating rows 2 and 3: \documentclass{article} \usepackage{filecontents,datatool,booktabs} \usepackage[table]{xcolor} ...
7
votes
4answers
174 views

How do I add text above a long underscore in Plain Tex?

This is a follow-up to this question and the requirement for Plain TeX is still in place. I am trying to create the effect of floating a string (date) above the long underscore I create using the ...
0
votes
2answers
35 views

What should i do to put dash along the question itself? [duplicate]

I need to give a answer line along the question. what should I do? That is if I have a question like this.. The value of $\sin^2\theta+\cos^2\theta=______________$ What should I do to put dash ...
2
votes
1answer
97 views

How to add a footnote separator rule

I'm using \documentclass{IEEEtran}. I've tried the following but it doesn't work. \usepackage{fancyhdr} \renewcommand{\footrulewidth}{0.4pt}
2
votes
1answer
218 views

How to use double line in LyX tables

I want to have double lines in the top row in my tables in lyx. I searched through the site but could not find how to do this.
4
votes
1answer
80 views

Is there a way to reduce the gap between double hlines (\hline\hline) in the tabular environment?

\documentclass{article} \begin{document} \begin{tabular}{c | c} cell 1,1 & cell 1,2\\ \hline\hline cell 2,1 & cell 2,2\\ \end{tabular} \end{document} I would like to reduce ...
3
votes
2answers
38 views

The vertical lines in my tabular environment are scattered

I'm using pdflatex and have some trouble: the vertical lines in my tabular environment are all scattered. \documentclass{article} \begin{document} \begin{tabular}{| l | c | l |} \hline ...
11
votes
3answers
470 views

How do I make a long underscore in Plain TeX?

I have looked at this question as well as here and here but I cannot figure out how to produce a long underscore in plain TeX, as in the following example. Date _____________________________ The ...
3
votes
1answer
230 views

Positioning of \hrule and \vrule

I try to construct a symbol from 4 rules, one horizontal and three vertical ones. \showoutput gives me the correct dimensions for all of them (see below). However, the horizontal one somehow ...
1
vote
2answers
154 views

i want the header line to reach over both the text and the marginnotes

I'm making a document with document class scrreprt, and used this to get the page numbering on the top of the pages, and a line on the top of the page \documentclass[11pt, twoside=semi, ...
3
votes
1answer
89 views

How do I make a very, VERY specific horizontal line?

I am having a lot of trouble while formatting my resume. Everything is done except for one last feather in my cap: I want to have a horizontal line (below the name title) that starts at the left side ...
1
vote
1answer
265 views

LyX command(s) to insert WYSIWYG horizontal line, for keyboard shortcut

Using the menu entry Insert > Formatting > Horizontal Line I can insert a WYSIWYG horizontal line into a LyX document. I want to figure out the internal command(s) used to do this so I can set up a ...