{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

3
votes
2answers
118 views

How to include a long underscore before the \question command?

i am working with a simple question but i can't include underline before the \question. Code documentclass{myclass} \newcommand{\line}{\begin{tabular}{p{2cm}} \\[-.35em] \hline \end{tabular} } ...
2
votes
1answer
590 views

How Can I Draw a Horizontal Rule on a Beamer Handout?

I have a beamer handout with a 16-on-1 layout via \pgfpagesuselayout{16 on 1}. I would like to draw a horizontal rule beneath each row of slides so that the viewer is more easily led to read left to ...
2
votes
1answer
483 views

Multiple lines one below the other [duplicate]

Possible Duplicate: Can LaTeX be used to make a sheet of blank lines? I try to create horizontal lines so that students exercise book to write the answer. I can not understand why the ...
9
votes
2answers
2k views

insert text into hrulefill

Is there a simple way to have text that looks like this? --- text --- where the --- fills a certain width? I've tried \centerline{\rule{2cm}{.4pt}text\rule{2cm}{.4pt}} but here if "text" is ...
1
vote
1answer
454 views

Bold fraction line

I would like to use a "bold style" for the fraction line in a math formula. I've seen it in some PDFs, but I do not know the proper command.
4
votes
1answer
111 views

Remove horizontal line from parrun

The parrun package places a horizontal line between its two blocks of text (fframe and sframe). There’s an example in this answer: How to use the parrun package. How can I suppress this line? The ...
1
vote
1answer
118 views

How to avoid a continuous fraction line going through the equals sign in MathJaX? [closed]

When I use Math.SE, and I type a equation such as: I get this continuous line. Is there a way to avoid this?
25
votes
3answers
3k views

Best way to insert a horizontal cut line with a scissor symbol

What's the best way to insert a horizonal dashed line with a scissor symbol to indicate that the paper should be cut with a scissor along this line? If you have multiple layout alternatives without ...
6
votes
2answers
1k views

Footnote rule in beamer showing too early with overlays

Consider the following MWE : \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize}[<+->] \item item \item item\footnote<.->{footnote} \item item \end{itemize} ...
6
votes
2answers
219 views

create a horizonal line having the length of the text

I would insert two horizontal line here an example: ------- Foo ------- I had used hrulefill but the line has the length of the page.
6
votes
1answer
1k views

How to set headsepline length?

I'm writing a document using scrbook document class and while I was able to set up all header and footer apparence, I can't find a way to set headsepline length (seems to follow \textwidth settings, ...
4
votes
1answer
2k views

Add a rule after chapter title using titlesec

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline ...
3
votes
2answers
325 views

Vertical line from top margin of page to current positon

I'm struggling with this really simple (vanilla plainTeX) trick, which I'm not able to crack... How does one draw a vertical (i.e. perpendicular to the horizon) line that leads from the top (or top ...
4
votes
1answer
345 views

Four panel, image with borders

I am trying to make a landscape PDF with borders (4) where I will place 4 figures. Ideally the line would be 3 point in width...I have attached a JPG of what I am thinking. I would like to place ...
9
votes
1answer
856 views

How to format an email conversation?

I am currently writing my thesis and need to include a bunch of email conversions. I am using classicthesis. I wonder, how you would format stacked conversions. Moreover, how would you deal with the ...
1
vote
1answer
2k views

Frame line width within DefineVerbatimEnvironment

I am trying to define an environment which requires a frame line as wide as \textwidth \DefineVerbatimEnvironment% {code}{Verbatim}{...,frame=lines,% xleftmargin=7pt,fontsize=...} I ...
11
votes
2answers
3k views

Highlight table cells using thick, colored border

I'd like to highlight certain cells of my table. In particular, I'd like to set the border of these sells colored and thick. These cells should also have a background color. Here's a minimal example ...
7
votes
1answer
787 views

A thicker wave underline

I have found \uwave in the ulem package, and its definition in ulem.sty: % Now define various special underlines. All the definitions go like % \def \command {\bgroup \markoverwith{something} \ULon} ...
4
votes
0answers
140 views

Avoiding bottomrule to go to next page [duplicate]

Sometimes my longtable bottom rules end up in the following page. How do I avoid that?
5
votes
1answer
843 views

Vertical alignment in multicol

In the following code the horizontal rules on the right don't line up in all cases with the horizontal rules on the left. It seems to be related to the text content. How can I fix this in such a way ...
18
votes
3answers
2k views

How can I know the default PGF line width?

Is there some macro that will tell me what the default PGF line width is? I have tried creating my own macro by cloning \pgflinewidth before it has been modified, i.e. ...
18
votes
1answer
9k views

What is the thickness of \hrulefill

This seems like a simple question ... I know from this question that \hrule and presumably \hrulefill have a thickness of 0.4pt. I think \hrule is a primitive, so does that mean that you cannot ...
11
votes
2answers
5k views

\hhline adds white line where no line is intended

In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
7
votes
1answer
695 views

Vertical line in longtable

I would like my vertical line to be slightly detached from the horizontal lines. I am using \usepackage{longtable}. \footnotesize \begin{longtable}{r | p{10cm}} \caption{My caption 1\label{1}}\\ ...
8
votes
2answers
9k views

\cellcolor overwrites table lines

I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post). While the table without any ...
7
votes
2answers
333 views

Length of the rule (twocolumn)

When \documentclass[a4paper, twocolumn] is declared, is there a way to change the size of the vertical rule created by LaTeX? (I need to increase it) Any ideas?
8
votes
2answers
4k views

Extra vertical space after \hline causes a gap in the right border of an array

I wanted to put a bit of space after an \hline in an array; the main suggestion floating round the Internet seems to be to use \hline \\ [-1.5ex] Unfortunately, this causes a gap in the line on the ...
5
votes
2answers
361 views

Long vertical bar on titlepage with rotated text

Is there a nice and easy way to include a vertical colored bar on the titlepage with some rotated text? I would like to have something similar to ERDC sample, but covering the left 5cm of the page ...
10
votes
1answer
2k views

Table of Contents horizontal lines

How can I put horizontal lines before and after my Table of Contents entries? To illustrate the look and feel I am after, please take a look at this image: I would like to understand how to do the ...
10
votes
1answer
6k 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|} ...
15
votes
2answers
957 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
431 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
612 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 ...
2
votes
1answer
989 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
213 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
8k 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
259 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
442 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
270 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
509 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
597 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
1k 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
214 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
50 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
73 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
448 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
545 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
10k 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
440 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): ...