{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

9
votes
1answer
5k views

Remove border of top left table cell

I want to remove the border of the top left table cell (top-border and left border of this cell). My table looks like this: \begin{table}[!ht] \centering \begin{tabular}{|c|c|c|c|} ...
14
votes
2answers
793 views

How to draw horizontal line with rubber length?

The \hrulefill command could draw rubber length underlines, like abc___def. I just want to draw line in the vertical centre of a text, like abc---def. Thanks.
5
votes
1answer
409 views

Add indent to \footnoterule

I would like to show the footnote rule with the same indentation as the footnote. I have tried with something like \renewcommand\footnoterule{% \kern-3\p@ \rule{.4\columnwidth}{0.4pt} ...
3
votes
1answer
579 views

colortbl stepping on midrules in booktabs

I'm using booktabs and colortbl. I'm get a very annoying problem of the color table overlapping a horizontal rule. Maybe pixel snapping problem or something, but I can't make it go away. And I ...
1
vote
1answer
887 views

colored rule and reference current column width in vwcol

I would like to have colored vertical rules separating columns in the vwcol package and some method of referring to the current column width in the vwcol package. We show a vwcol example and then ...
3
votes
2answers
207 views

How can set \rule after \section if \section is renew?

How can I set \rule after \section if \section is renewed? This doesn't work: \let\oldsection\section \renewcommand{\section}{% \newpage% \oldsection% ...
5
votes
2answers
7k 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 ...
4
votes
1answer
250 views

Weird imperfect table, horizontal line overflow

I've this weird problem where the horizontal lines in a table are overflowing. It might be due to one of the many packages, I'm not sure. Is there a way to forcefully fix the table border. The latex ...
18
votes
2answers
406 views

prevent “action” if top of page

I have a manual list of stuff that are sometimes separated by an hrule(or my own custom ruler) for visual purposes. Sometimes the hrule ends at the top or bottom of a page which makes it useless. Is ...
4
votes
2answers
253 views

pdfpages doesn't allow me to draw a thick horizontal line in “tabular”

I have the following code: \documentclass{article} \usepackage{amssymb} \usepackage{caption,sansmath} \usepackage{array} \DeclareCaptionFont{sansmath}{\sansmath} \captionsetup{textfont={sf,sansmath}} ...
1
vote
1answer
470 views

How to remove horizontal lines around figures for htlatex output

htlatex adds horizontal lines around figures floats. For instance, the HTML output for the following tex: \begin{figure} \begin{centering} \includegraphics{photo.png} \end{centering} \end{figure} ...
6
votes
2answers
580 views

Fancy style section titles for a resume

I'm wondering if exists a way in LaTeX to create a section title style (for a resume) like this: --------------------Education------------------- There's for sure a wrong way, simply adding - sign ...
5
votes
1answer
911 views

Create separator lines for algorithm captions in algorithm2e

How I can generate separator lines for captions as follows in algorithm2e? Algorithm 1: Generate Separator Line
2
votes
1answer
207 views

How to place text between two columns and which breaks the rule dividing them in ConTeXt?

I have two paragraphs of instructions and I need to indicate to readers that they have a choice of one or another. I am using this code, to put the data into different columns, with a line between: ...
1
vote
0answers
49 views

How to remove header bar in fancyhdr's \pagestyle{fancy} [duplicate]

Possible Duplicate: How to remove the top horizontal bar in fancyhdr? I am working on my report and found one example. \documentclass{report} \usepackage{fancyhdr} ...
1
vote
0answers
70 views

Table with horizontal line that doesn't span all columns [duplicate]

Possible Duplicate: How can I draw a horizontal line spanning only some of the table cells? I need to recreate table 12 of this document manually (because unfortunately this automatic ...
8
votes
1answer
1k views

Amount of space between text and a line containing a \rule

If a \rule is placed below a line of text, some space is inserted between the line and the rule. Usually, the amount of space appears to precisely add the difference to the height of the current font ...
10
votes
1answer
429 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
2
votes
1answer
495 views

Tabular: set a line between each row in \newenvironment

I have created a particular table with 3 columns using \newenvironment. Now I want to put a line between each row and from the 2th to the 3th column. I know it is possible to add \cmidrule{2-3} at the ...
11
votes
3answers
9k views

Headrule length in fancyhdr

Using the fancyhdr package, is it possible to change(increase or decrease) the headrule length without changing the header length? In the picture related, one can see that the headrule rectangle(in ...
5
votes
2answers
428 views

Leftbar in align environment

We have to mark lines in a LaTeX document by vertical lines in the left margin of the site. An excellent solution outside of align environments is the leftbar environment (framed package): ...
1
vote
0answers
87 views

\hline spacing warning [duplicate]

Possible Duplicate: What is the \rule equivalent for \hrule? How do I get spacing after a hline without an error? Here is what I currently have: End of content\\[5pt] \hline\\[5pt] But ...
8
votes
2answers
2k views

How to make horizontal lines thicker?

I am customizing the section module following the tutorial here http://blog.scribtex.com/how-to-write-a-latex-class-file-and-design-yo How do I make the [\titlerule] % Inserts a ...
1
vote
1answer
766 views

\hrule screws up minipage right indent

\documentclass[12pt]{article} \usepackage[ top=0.75in, bottom=0.75in, left=0.75in, right=0.75in, textheight=8.75in ]{geometry} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} ...
6
votes
2answers
820 views

How to add a line between chapter number and chapter title

I was wondering if there was a way to add a line between chapter number and chapter title. As in, what I am getting now is this: What I want is a horizontal line as shown: of the same color ...
6
votes
2answers
4k views

Horizontal line in Algorithmic Environment

I'd like to separate two sections in an algorithmic environment with a horizontal line, like: ------------- Algorithm 1: MyAlgorithm ------------- Part 1: Do some stuff ------------- Part 2: ...
8
votes
1answer
551 views

Inconsistent appearance of white \hline on black background

Are there known issues with the appearance of white text on black background? When I use several \hline in a table I get different appearances for the lines. It could appear as normal or weak or ...
4
votes
1answer
549 views

Formatting chapter in memoir

I'm trying to reproduce this chapter heading (Styling my section/chapter) in memoir. This is more or less working with the following code: \documentclass[11pt,oneside]{memoir} \usepackage{blindtext} ...
1
vote
1answer
287 views

LaTeX Expert in the World [closed]

Who knows LaTeX the best in the whole world? I'm just a newbie to the wonderful world of LaTeX and I'm wondering who's the go-to-guy (or girl) for help.
2
votes
2answers
3k views

Bold \hlines for longtable

I've searched the topic and found the following two answers. Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)? The best answer suggests to use booktabs. However ...
4
votes
1answer
763 views

algorithm2e-Drawing vertical dashed rules

In the following code, I would like to produce dashes lines instead of normal ones. The three HERE indicate where the code draws the lines. \documentclass{article} \usepackage[utf8]{inputenc} ...
6
votes
2answers
3k views

Horizontal and Dashed lines in caption

What I'm looking to do is caption a graph with something like "It can be seen from x (solid line) and y (dashed line)" Where "solid line" and "dashed line" are replaced by two solid and dashed ...
1
vote
2answers
786 views

custom header text and headrule

Using mweclass LaTeX class (report based) is writing a document as follows: \documentclass{mweclass} \title{MWE} \author{J. Doe} \begin{document} \thispagestyle{mwetest} \maketitle ...
7
votes
2answers
774 views

Linux Biolinum O messes up moderncv Package

Take the template.tex example file from http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples and add these two lines: \usepackage{fontspec} \setsansfont{Linux Biolinum O} Then run ...
8
votes
1answer
785 views

Dashed draw with a node including a fraction

Is this intended behavior (with plain XeTeX): \input tikz \tikz\draw[dashed] node {$3T\over4$}; \bye It renders as: !? The fraction line is dashed, too! Is this intentional? Is there something I ...
15
votes
3answers
10k views

Dynamic signature/date line

I'm trying to create a signature and date line in a document. I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as: ...
16
votes
4answers
2k views

Draw a line through one column of a matrix

I'd like to "cancel" (draw a line through) a column of a matrix (using \begin{pmatrix}..\end{pmatrix}). How can I do this?
4
votes
1answer
937 views

\rule command constructing line not extending far enough left

I am trying to put a horizontal line between homework problems, like this: \begin{description} %stuff . . . \rule{\linewidth}{0.4mm} \item[Exercise 1] %stuff \rule{\linewidth}{0.4mm} ...
4
votes
1answer
682 views

Listings with rule above caption to look like \floatstyle{ruled}

I am using the listings package. I would like my listings to have a heavy rule above the caption, so it looks like the \floatstyle{ruled}. So it would look like: a bold line === caption ...
0
votes
0answers
51 views

How to leave underscored white space? [duplicate]

Possible Duplicate: Long underscore in LaTeX I am not even sure if there isn't a proper typographical term for this thing. I use it for a questionnaire, where I have questions like: I ...
0
votes
1answer
211 views

Is there any way to change the design of a line?

I'm using \line(){} to generate a line for sort of decoration purposes, like having the title, such as Problem Set 1, and then separating it from the rest of the document by a line. I'm wondering if ...
4
votes
1answer
1k views

Rule in the header

How can I insert a rule in the header of all pages without the fancyhdr package? Is it necessary to use the fancyhdr package?
6
votes
1answer
358 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 ...
10
votes
2answers
843 views

Can TeX/LaTeX draw lines at precise positions?

I need to draw lines at specific distances (in mm). For example: ---- line 0 ---- line 1 at 35.64 mm below line 0 ---- line 2 at 33.64 mm below line 1 The macro I'm using is as follows (I don't ...
10
votes
1answer
458 views

algorithm2e with ruled but with customized rule thickness

I would like to present an algorithm in my work and I used the package algorithm2e. I wonder if there is a way to control hrule thickness with ruled option, so one can use thicker line pre-caption or ...
2
votes
1answer
270 views

Overprint \hlines

How can I set \hline\endhead for longtable, that this line would overprint on \hline , when such present after \\ in row, which transmitted on next page? When I just type \hline\endhead, I receive ...
12
votes
2answers
726 views

Creating lists with items separated by a rule

How can I create a list in which a rule is automatically inserted between each pair of items?
6
votes
3answers
1k views

Center-justify with hrule above and below

On my title page, I have something like this: \rule{\linewidth}{0.25mm}\\[0.25cm] \huge \textbf{This is my title, it is somewhat long and split over two lines!}\\[0.25cm] \normalsize ...
6
votes
1answer
596 views

Vertical rule at the left of a listing

I would like to draw vertical rules at a specific location in the left margin of a listing in a listings environment. Is it possible ? ======= PSEUDO EXAMPLE ======= for i in range(5): # One comment ...
7
votes
2answers
2k views

Longtable does not break correctly when used with \specialrule instead of \hline

I'm writing an application that generate latex code, therefore the solution must be the most generic possible to ensure that it will generate clean pdf all the time. I would like to let my users ...