{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

4
votes
1answer
109 views

Horizontal line within a line of text

You may know that in moderncv there is a horizontal line at the left of each section. Now I want to print also at the right of the section title, just like this: My current code is as follows: ...
10
votes
3answers
278 views

How to create vertical and horizontal dotted lines in a matrix?

Similar to this question, I am trying to output a similar matrix with dotted line instead of dashed line. Is there anyway to do this? I also try to use these three packages: ...
0
votes
0answers
59 views

LaTeX table rules disappear when using Adobe Reader [duplicate]

I created a PDF document using LaTeX (TeXShop on a Mac) and used the LaTeX command \cellcolor to create colored cells in tables. When I view the document with the Adobe Reader some table rules of ...
6
votes
2answers
48 views

How to remove sep. rule from blank pages when using two-column mode?

In the following example: \documentclass[twocolumn]{memoir} \usepackage{lipsum} \setlength{\columnseprule}{0.4pt} \begin{document} \twocoltocetc \tableofcontents \chapter{test} ...
6
votes
1answer
33 views

Broken line between line numbers and code in lstinputlisting with setstretch<1

If I use \setspace{0.8} to tighten up my listings* I get a broken line between the line numbers and the code. \documentclass{article} \usepackage{listings} \usepackage{setspace} ...
0
votes
1answer
64 views

How to format semantic rules (picture attached)?

I am wondering how to type semantic rules shown in the following picture: Thanks!
9
votes
2answers
136 views

Overline thickness

Is there a way in latex to change the vertical thickness (height) of the line generated by the \overline command? \[ \overline{\overline{A \vee B}} = \overline{\overline{A} \wedge \overline{B}} \]
5
votes
1answer
52 views

Is there way to make horizontal line on the top of the page that contains only a page number

I tried to write a book of the following style: Is there a way to modify the upper horizontal line such that it does not have the word "Sisältö" or any other text except page numbers? ...
11
votes
1answer
98 views

Two rules between multicols

I'd like to add two rules between two columns of a multicols environment. For adding one I used \setlength{\columnseprule}{0.2pt} but how can I add two?
6
votes
2answers
99 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
3
votes
1answer
44 views

Reducing height of multicol separator line

I am bodging a table using multicol and rule so that I can have cells of dynamic sizes and populate it using a macro rather than manually. It mostly works, however I would like to reduce height of ...
1
vote
0answers
39 views

Add horizontal lines for selected shaded cells

I was trying to add a thicker horizontal line for columns 2-13 (above columns A, B, and C in the following example). My code did not not work for shaded columns. Any suggestions? Thanks in advance. ...
5
votes
2answers
132 views

Change Color, Pitch, Line Style of Showframe (Geometry Package)

How can one change the colour, pitch, line style, etc of the rules generated by the geometry package's showframe option?
4
votes
2answers
87 views

Do the different rules generated by booktabs have the same thickness?

I use the booktabs package and excel2latex to generate my tables. I work in TeXmaker. As I zoom in or zoom out on my table, I find that, sometimes the \toprule, sometimes \midrule and sometimes the ...
4
votes
1answer
45 views

Separating different kinds of footnotes with bigfoot

I am using the bigfoot package to create two sets of footnotes, one in para style and the other plain (in that order on the page). I have removed the line separating these footnotes from the body of ...
5
votes
2answers
64 views

How to remove the horizontal line below the image in the header

To add image in the header , I have written the code, basically the pagestyle modification. Now , just for a trial , I first modified only my plain page style. After the image gets inserted in the ...
0
votes
1answer
46 views

ConTeXt: Left-justify text to overlap hidden/disabled frame border

Background Looking to left- and right-align text in a footer. Problem The following image shows that the word "Betasec" is not left-aligned with the black horizontal line above it: I believe ...
5
votes
1answer
61 views

How can I place a vertical rule between subfigures?

I have implemeted a figure with subfigures by following the instructions here. Each subfigure is an image and some text beneath it. I would like to introduce a vertical rule between each subfigure ...
4
votes
2answers
142 views

LaTeX table adjustments

I am typing the following table in LaTeX: \begin{center} \setlength\extrarowheight{5pt} %\renewcommand{\arraystretch}{1.2} \begin{tabular*}{3.4in}{@{\extracolsep{\fill} } | c | c | c | c | c | c | c ...
4
votes
3answers
66 views

Changing height of vertical line in tabular

Is there any way of changing the height of the vertical lines of a tabular environment? Here is my MWE: \begin{tabular}{|c|c|} \multicolumn{2}{|c|}{Header 1}\\ Subheader 1 & Subheader 2 \\ ...
1
vote
2answers
88 views

Latex Recall and Precision Table [closed]

I want to draw follow table on a latex but I have spend over a day now but yet to get anything close to it. I am attaching a screen short it would be great if I can get latex command to build this ...
3
votes
1answer
39 views

Problem with hhline with tables having more than 9 columns

I found out that the hhline does not print lines when the argument is greater than 9 as in \hhline{|*14{-}|}. It works well when doing instead \hhline{|*9{-}*5{-}|} as the following file shows: ...
3
votes
2answers
44 views

How to apply \cftafterpnum to specific entries (and add labels for columns of the TOC)

I'm trying to make a 3 column table of contents, which includes chapter name, page number, and a blank line for grading for a homework assignment. A previous question gave me the answer as to how to ...
6
votes
1answer
55 views

How can I fill a line from the left?

I am fiddling with various ways of filling a line with a vertically centered line and experimenting with the answers here: http://stackoverflow.com/questions/2553392/latex-rule-filling-the-line and ...
4
votes
2answers
270 views

How to draw two \hline and two vertical line?

I want to draw a table with two \hline and two vertical line. But as shown in the figure, the first vertical line do not cross the two hline. How to solve this problem? \documentclass{article} ...
9
votes
2answers
233 views

Horizontal rule between lines that vertically takes up only its height and that doesn't close up to surrounding ascenders/descenders

I would like a command \lineseprule that appears as a horizontal line of customizable width. It should neither take up a full line's height (\linesepruleA below) nor close up the lines above and below ...
6
votes
1answer
120 views

Adding vertical rule into tabu

Community, :) I know it might sound like some noobish' question, but I have some trouble adding the last vertical rule into my tabu. I've retrieved the code from here: How to Create Comparison Tables ...
6
votes
2answers
99 views

\hrule with indents in Plain TeX

I am trying to learn the 'metal' of TeX after 20 years of using higher level packages, such as LaTeX. In my test document I have an indented block representing simple recipes. I've created this with ...
8
votes
1answer
237 views

How I can customize fbox and hrule?

I want to customization a sample exercises for a book. I like so much this style: I think that is possible with fbox and hrule, but I don't know how I can do it. No need to use fbox and hrule if ...
6
votes
4answers
143 views

How to draw one thin and one thick line next to each other

How can we draw line depicted below in LaTeX? That is, a thin line and thick line with gap of height of thin line in between? Can you please suggest recommended class for same?
5
votes
1answer
60 views

Bottom hline in a tabularx wrapper environment

I want to define a wrapper environment for a table where one of the columns stretches to fill the available width. I'm using the tabularx package and its X column for that. As mentioned here and in ...
12
votes
1answer
401 views

Use of \midrule in booktabs table

Are there any formal guidelines/suggestions on the use of \midrule inside a booktabs table with just rows of identically formatted data? The booktabs manual is very specific about vertical rules, ...
0
votes
2answers
50 views

Horinzontal Rule issues and help

I am almost done with my resume but the only issue is providing horizontal line to add spacing and a sense of cleanliness in the article. Here is the style that I am looking for- But if I use ...
4
votes
1answer
44 views

Generation of a simple title

How can i get the following result using a fixed-width right rule and a line-filling left rule ?
3
votes
1answer
84 views

Proof package: lines too short

The proof package's \infer command automatically sizes the lines it draws. However, it isn't always right (pdflatex output): The line is too short on the left. Is this a package ...
4
votes
2answers
101 views

Unwanted offset in title \rule

I was trying to make a custom title layout, but the initial rule was getting slightly indented in a way that was not nice. Here's a minimal example of what I was trying to do: ...
3
votes
1answer
65 views

\cline Not Working with Customized Column Padding

When I reduce the table's horizontal padding using @{}, the \cline command does not work properly anymore. It is shown in the MWE below. \documentclass{article} \begin{document} ...
5
votes
1answer
105 views

`hhline` adding a strange vertical line distortion

I am using horizontal and vertical lines in a longtable environment to create a kind of tree-like internal structure. Since I need to color some cells with the colortbl package, I can't use \cline, so ...
5
votes
1answer
138 views

Flexible rule length in titlesec

I'm trying to get a rule just after the label of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this: \titleformat{\chapter}[display]% ...
0
votes
1answer
112 views

Multiple rules for sign in sheet with automatic field generation

I am trying to make a sign in sheet with multiple rules that generates however many fields I need for different occasions. I've got a working solution but I can't figure out how to make it so that ...
1
vote
1answer
190 views

\hhline double line imperfection

Using the \hhline command i found some imperfection in the double line. How can i fix it? Imperfection Table \documentclass[11pt]{amsart} \usepackage{amssymb} \usepackage{hhline} ...
8
votes
2answers
276 views

How to shorten \hline in a matrix

I indicate blocks in a matrix using \hline: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b\\ \hline c & d ...
6
votes
2answers
172 views

color a column red in a table

When I try to color a column red, it seems that white lines begin to emerge. Additionally the \hline changes width depending on how you zoom into the document in pdf format. It look as if the color ...
6
votes
1answer
208 views

set the length of the column separation rule in multicols

I have trouble to make the line which separates two columns in a multicols environment reaching the bottom of the columns. \setlength{\columnseprule}{1pt} is managing the rule width. Is there ...
7
votes
3answers
452 views

Using vertical line column separator in tabular between JUST TWO cells

I'm trying to do long division using tabular environment. Here is the code: \documentclass[11pt]{book} \usepackage{multirow} \begin{document} \begin{center} \begin{tabular}{c@{} c@{} c@{} c@{} c@{} ...
4
votes
1answer
151 views

Horizontal Line in footer which ignores the margin

How can I add a horizontal line in the footer which spans the entire width of the page? \renewcommand{\footrulewidth}{0.4pt} is giving a line which is inside the margin only.
2
votes
3answers
386 views

How to I reduce space before and after HRule?

I have a command: \newcommand{\HRule}{\rule{\linewidth}{0.2mm}} and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my ...
6
votes
1answer
370 views

Tight horizontal lines around a block of text

I wish to create a block of text with tight horizontal lines above and below, e.g. This is a paragraph. The following example seems to produce more space between the paragraph and the horizontal ...
6
votes
1answer
423 views

fancyhdr - Header Line is removed on beginning of chapter

When compiling the code below, there is no line in the header in the beginning of the chapter. How do I change it such that the header looks the same on all pages? Thanks \documentclass{report} ...
4
votes
2answers
220 views

Tikz-timing table dashed vertlines

I'm in a tikztimingtable environment and want to include dashed vertical lines after every period width (the default number/spacing). What I currently have (code below) gives me solid gray lines, but ...