{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

7
votes
2answers
4k 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
879 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
858 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
916 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 ...
20
votes
3answers
15k 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
3k 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
1k 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} ...
5
votes
2answers
840 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
214 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
413 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
1k 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
572 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
290 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
935 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
622 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 ...
1
vote
1answer
829 views

Table vertical line [duplicate]

Possible Duplicate: Too long vertical lines in table In the following table, the first vertical line is higher than the second. How do I correct this? ...
4
votes
3answers
4k views

Too long vertical lines in table

Ok, I've looked at this code too long and need some fresh eyes and ideas. Question: Why do I get too long vertical lines on my LaTeX table? Please note that I've not experiencing any problems with ...
8
votes
1answer
3k views

Vertical line left out in tabular

The code \documentclass[a4paper]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|l|l|l|l|l|l|} \hline \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & ...
5
votes
1answer
4k views

Draw line below frame title in beamer

How can I draw a line just below the title of the frame using the beamer class? I want a clear separation between the title of the frame and the content of the frame. Also, I want the block ...
1
vote
1answer
233 views

Footnote separator for wrapped footnote, problems with Hebrew

In a previous question I asked how to format the footnote separator for wrapped footnotes. However, the provided solution unfortunately did not seem to work with my document. Now I have found that ...
39
votes
2answers
28k views

How can I reproduce this table with thick lines?

I'm trying to reproduce this table: (apologies for the terrible cameraphone pic) I don't know how to get the slightly thicker leftmost and topmost line. Here's a minimal example of what I have so ...
2
votes
1answer
426 views

Why the horizontal line behaves differently in supertabular and tabular?

I have a problem using the supertabular package. Basically the horizontal lines, instead of stopping at the end of the table, continue until the end of the page. This is a self-explaining ...
1
vote
1answer
254 views

why is GnuPlot .tex to .pdf, large compared with raster images?

Raster scanned articles tend to be quite a bit larger than vector graphics based articles. In practice when I make a plot with gnuplot, the resulting pdf is large compared for what it displays. I look ...
25
votes
2answers
22k views

How to change line color in tabular?

How can I change the color of the lines (the frame) in a tabular environment? In the following MWE: \begin{tabular}{c|c|c} a&b&c \\ \hline d&e&f \\ \hline g&h&i \end{tabular} ...
35
votes
3answers
17k 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 ...
7
votes
3answers
13k views

Horizontal line not working?

I am trying to add a horizontal line in my document. \documentclass{report} \begin{document} \begin{center} \Huge CV \end{center} \line(1,0){250} \end{document} For some reason, \line(1,0){250} ...
8
votes
1answer
5k views

How do I increase the spacing between header text and the 'headrule' line with fancyhdr?

This is going to be something so obvious that I'm almost embarrassed to ask! I've been using fancyhdr to put some fancy headers and footers in my thesis template – in fact, doing what it says on the ...
23
votes
3answers
957 views

What is the best way to draw two lines in LaTeX?

Bill Bryson's book, The lost continent: travels in small-town America  has an unusual first paragraph opening style. It has the equivalent of a long equal sign, followed by the first three words ...
2
votes
1answer
500 views

Footnote separator for wrapped footnote

In a text I am writing I have a couple of quite long footnotes which start on one page and continue on the next one. In order to comply with style requirements the line separating the body text and ...
7
votes
1answer
818 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
5
votes
2answers
4k views

\cline doesn't work

I'd like to draw a partial horizontal line just below of 'first second third' row, but \cline doesn't work. Any suggestion? \documentclass[table]{beamer} \usepackage[T1]{fontenc} ...
3
votes
2answers
545 views

How to just show a part of lines inside a tabular

I am drawing a matrix as follows: \[\begin{tabular}{l|lllll|ll} & 0 & i & j & k & $\ldots$ & x & y \\ \hline 0 & 0 & $\ldots$ & $\ldots$ & $\ldots$ ...
6
votes
4answers
9k 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. ...
10
votes
2answers
3k views

Horizontal line of custom length like an —

Is there a way to get a custom-length horizontal line that appears like a "longer em-dash", if you will?
6
votes
1answer
2k views

Memoir: removing headrule in chapter page

How to remove headrule in chapter page without remove of footrule, eg, rule only in foot page in all pages, but without on chapter page, but headrule in others pages. \documentclass[a4paper]{memoir} ...
8
votes
4answers
502 views

Long Underscore to Divide Sections of Text

Is there a way to write an underscore that extends along the full length of the page, to represent a break in sections? As of now, I'm using the \blank{?cm} command explained in this answer, but with ...
6
votes
3answers
2k views

Defining rules for line breaks in \newcommand

Thanks to the help of this answer, I've defined a command for creating a blank line: \newcommand{\blank}[1]{\rule{#1}{0.4pt}} However, because this is a user-defined command, LaTeX doesn't seem to ...
3
votes
2answers
2k views

Longtable and modified \footnoterule [duplicate]

Possible Duplicate: How can I change the footnote line (thickness, length) I want to modify the \footnoterule and still be able to use longtable but the following code doesn't compile: ...
5
votes
2answers
2k views

Horizontal lines touching the multicol column separator rule

Is there a possibility to put a horizontal line above and below a multicolumn output (using the multicol package) such that the horizontal lines touch the multicol column separator exactly at its ...
3
votes
1answer
5k views

tabular - \cline not working

I have this table \begin{tabular}{ | p{2cm} | p{4cm} | p{4cm} | p{4cm} | } \hline Název & \multicolumn{3}{ l }{vypsatZapojeniResiteluDoProjektu} \vline\\ \hline Popis & \multicolumn{3}{ l ...
5
votes
2answers
906 views

Anomalies and a question regarding a line-filling rule

I've created a command for filling a line with a black rectangle. It's called \fullrule, you can find it in the code below. I have several questions regarding this MWE: \documentclass[10pt]{article} ...
4
votes
1answer
149 views

Problem with LetLtxMacro

I'm trying to redefine \rule to make cleaner underscores, but my book file (in memoir class) is having problems with the following: \RequirePackage{letltxmacro} \LetLtxMacro{\oldrule}{\rule} ...
6
votes
0answers
125 views

Writing clean long underscores [duplicate]

Possible Duplicate: Long underscore in LaTeX I'm writing a document in which I encourage the reader to "fill in the blanks" in order to be actively engaged with the proof. Is there any way ...
7
votes
4answers
393 views

Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
22
votes
5answers
1k views

How to make continuous (but breakable) vertical rule along left side of paragraph?

I'm looking for a way in Plain TeX to make a continuous vertical rule along the left side of a paragraph (or arbitrary block of text), such that it observes normal page-break rules. I started with the ...
5
votes
1answer
930 views

How to disable pagebreak on \hline in supertabular?

This is similar to How to disable pagebreak on \hline in longtable? but for supertabular or xtab: With \tabularnewline\hline I get pagebreaks (or in my case columnbreaks) before the hline, i.e. the ...