{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

2
votes
0answers
38 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
4
votes
1answer
25 views

Resume header - format the line in the header

In resume class, when the file is created in the header is a long horizontal line. And this line appears on every page. How can I format the header to have the line only on the first page, but not on ...
3
votes
2answers
85 views

Colored horizontal line between two text

How I can get color horizontal line between two text ? I am using command \rule{16cm}{1mm}., Can any one suggest how to change the color of horizontal line.
2
votes
1answer
50 views

\arrayrulewidth does not work - different thickness

I´m using \arrayrulewidth to specify my rule´s width/thickness, e.g. in tables: \taburulecolor{title} \arrayrulewidth=1pt \setlength{\arrayrulewidth}{1pt} % Definiert die Liniendicke von Trennlinien ...
6
votes
1answer
296 views

How to slash number at the picture below?

How to slash numbers how it done at the picture? It's the part of equation: \usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} ... \[ \begin{Bmatrix} (000)\\ ...
5
votes
3answers
102 views

Adding a hrule between hboxes decreases their vertical distance

Using pdftex. Given two sample programs test0.tex \vbox{ \hbox{X} \hbox{Y} } \bye test1.tex \vbox{ \hbox{X} \hrule \hbox{Y} } \bye gives the following outputs. test0.png test1.png So, ...
4
votes
0answers
68 views

ConTeXt: How to prevent new paragraph after \hrule in section heading?

I'm using ConTeXt, and trying to setup my document's subsection headings to start with a colored rule. However, any way I've tried doing this results in a rule placed a line higher than the heading ...
2
votes
1answer
45 views

How to add horizontal line after references (biblatex) and glossary title?

I need to have horizontal lines after each title. For table of contents this works with: \renewcommand{\cftaftertoctitle}{\vskip 3em \auftaktvz} and ...
6
votes
2answers
51 views

Prevent page break after \midrule in \longtable

I'm trying to tell longtable to only issue a page break at one specific point (by using \\*. Putting a \midrule anywhere near that point causes a page break after the midrule, and not where I want it ...
0
votes
0answers
29 views

arara - How to see errors and pdf with in Texmaker Windows

How could we check the errors in texmaker and also generate the pdf automatically. I am unable to do it for the moment. Using the following as comments i followed the installation process correctly ...
6
votes
3answers
107 views

FancyHdr top rule that is not full width

By default, fancyhdr includes a headrule separator line that spans the text width at the top of the page. Is there a (simpler) way to get the headrule (or footrule, for that matter) to span only, ...
1
vote
1answer
24 views

Caption of algorithm2e to the upper left corner without ruled option

I don't want to use ruled option, but still, I want the caption of my algorithm to be at the upper left corner. I tried \renewcommand{\@algocf@capt@plain}{above} but it only moves the caption ...
4
votes
1answer
45 views

Inserting a colored box to page background leaves gap

I'd like to have a colored box in the upper part of every page. Even though it's a simple task, I cannot make it work. Having looked for answers here and in the eso-pic package discription does not ...
1
vote
1answer
83 views

Signature line with dots and name below

In my LaTeX report I want to include a dotted signature line and my name below that line. As in the image. Can someone help me with the LaTeX code for that?
3
votes
2answers
68 views

Homework solution x columns

I'm writing a book and in its end, I write the exercises solutions. To become with a better layout, I use multicols environment, like this: \begin{multicols}{2} \setlength{\columnseprule}{0.4pt} ...
2
votes
1answer
32 views

Horizontal margin over each section?

How can I draw a horizontal margin over each section? This is what I want to achieve (horizontal line respecting margins) Cheers
2
votes
1answer
54 views

Placement of rules at the top or bottom of a page [closed]

I am writing a two-column document and I use \hrule to separate different sections. Once the \hrule reaches the top or the bottom of the page it stays there. Shouldn't for aesthetic reasons be placed ...
6
votes
3answers
161 views

Multiple tikz path fading in multiple directions

I'd like to create a theorem decoration. Here's a quick take on one: \documentclass{article} \usepackage{tikz} \newcommand{\theoremname}{Theorem} \newcounter{theorem} ...
7
votes
2answers
194 views

How to make double lines to only one bold (thick) line

How to make the double lines to only one bold (thick) line ? \documentclass[french]{beamer} \usepackage{babel} \usepackage{adjustbox} \usepackage{array} ...
5
votes
1answer
69 views

leave gap before and after \hrule

I'm using \hrule to draw a line that has the width of the text. Is there a safe way to leave a gap before and after the line? The plain code is: blablabla \hrule blabla And produces: Coming ...
7
votes
2answers
84 views

algorithm with partial borders/frames

I use the algorithm float environment for pseudocode and want some algorithms to span two pages. That works fine with \algstore and \algrestore. However, I would like to omit these borders at the end ...
5
votes
3answers
109 views

\rule not aligned

The \rules not aligned. I want to be in parallel to be each other and start from the same position horizontally. Here is the code: \documentclass[12pt]{book} \begin{document} \begin{titlepage} ...
4
votes
2answers
89 views

Multirow with strike through?

Could somebody give me a hint, why the \multirow doesn't work as it should? \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{c|c|c|c|c|c|} \emph{step} & 0 & 1 ...
2
votes
3answers
68 views

I need help width \rule

Minimal example: \documentclass{memoir} \usepackage[utf8]{inputenc} \thispagestyle{empty} \begin{document} \begingroup \color{blue} \rule{\paperwidth}{7.5cm} \endgroup \end{document} I just want ...
4
votes
4answers
126 views

How to get a properly centred horizontal rule?

I'm trying to produce a horizontal rule 2/3 the textwidth and centred. It's much harder than expected, as it pulls to the left. I've tried putting noindent but that makes it worse, as this MNWE shows: ...
1
vote
2answers
73 views

Thick Lines on table

I've seen the answer someone posted and I implemented it, I would like to keep this configuration as I already based my word using this answer. Now, the question is, how can I make partial horizontal ...
5
votes
1answer
153 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
562 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
70 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
61 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
71 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
215 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
84 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
106 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
140 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
54 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
57 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. ...
6
votes
2answers
195 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
125 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
70 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
81 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
70 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
105 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
299 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
85 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
116 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
46 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
56 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
65 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 ...