{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
104 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: ...
4
votes
2answers
1k views

Colored tables and cline/hhline

How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line? Here are two solutions but neither of them works fine. \documentclass[a4paper,11pt]{article} ...
10
votes
3answers
255 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
56 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
45 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} ...
5
votes
2answers
6k views

Horizontal line in \moderncvtheme[…]{classic}

I have a question about moderncv. I want to work with the moderncv style classic. But I found out, that the theme casual produces a horizontal line underneath the name. Is it possible, to get the same ...
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!
6
votes
1answer
31 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} ...
9
votes
2answers
131 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
49 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
97 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
93 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{}, ...
5
votes
2answers
126 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?
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. ...
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
41 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 ...
26
votes
2answers
53k 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. ...
29
votes
3answers
8k views

Why not use vertical lines ('|') in a tabular?

My question is a follow-up to the answer to a follow-up question, to be found here. ;) I'd like to know why one would advise against using vertical lines (via |) in a tabular (i.e. in ...
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
42 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 ...
2
votes
2answers
360 views

Draw a line under the headertext in ConTeXt

Sometimes, in order to seperate the headertext from the text area, I need draw a line just under the headertext. \setuppagenumbering [location=, alternative=doublesided] \definepagebreak ...
2
votes
3answers
380 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 ...
14
votes
5answers
1k views

How can i add a “field” for handwritten text?

I need to add a bunch of fields for a handwritten text to my document that look like this: Your Name ___________ Your Age ___________ As an example, I can show you the form that I have to ...
4
votes
2answers
132 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 ...
5
votes
1answer
59 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
3answers
63 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
85 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 ...
8
votes
1answer
4k views

Vertical lines are being broken up (disrupted) by the horizontal booktabs lines

My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this? It's well and good to say use \hline but I also need a cmidrule that spans only the second two ...
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: ...
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 ...
4
votes
2answers
262 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} ...
5
votes
2answers
120 views

How to delete borders (rules) in a table defined with the cals package?

I recently discovered the less known cals package for defining tables HTML-style. Here is all documentation I found: http://www.ctan.org/tex-archive/macros/latex/contrib/cals (demo & doc) ...
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 ...
2
votes
0answers
97 views

ConTeXt: Set mixedcolumns maximum height for vertical rule

Background Looking to ensure that the height of a vertical rule for the first page of a section is the same as the subsequent sections. Code Minimum working example to illustrate the issue: ...
9
votes
2answers
230 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 ...
9
votes
4answers
2k views

Vertically centered horizontal rule filling the rest of a line?

I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \hrulefill and \leaders\hrule\hfill, but these draw a line that's flush with the ...
6
votes
1answer
118 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 ...
8
votes
1answer
234 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
2answers
95 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 ...
6
votes
4answers
139 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?
3
votes
2answers
964 views

How can I eliminate the epigraph rule?

I use the epigraph package to define the following declaration that looks as follows: \epigraph{This work has appeared in:}{Max Mustermann, How the Euro will crash.} That looks then as follows This ...
2
votes
1answer
1k views

How to separate columns with a line in beamer(poster)?

\setlength{\columnseprule}{0.4pt} with the multicol package does not work. The beamer guide does not discuss this case for their columns environment... To be clear this is what I want ###### | ...
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
370 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 ?
5
votes
4answers
5k views

How do I get that line that represents a repeating author in a bibliography or works cited page?

As I understand it, when there are several bibliographic entries from the same author, you represent all subsequent entries with a line, like this: \bibent Nietzsche, Friedrich, and Walter A. ...
3
votes
1answer
81 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 ...