{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

0
votes
2answers
27 views

What should i do to put dash along the question itself? [duplicate]

I need to give a answer line along the question. what should I do? That is if I have a question like this.. The value of $\sin^2\theta+\cos^2\theta=______________$ What should I do to put dash ...
1
vote
1answer
107 views

LyX command(s) to insert WYSIWYG horizontal line, for keyboard shortcut

Using the menu entry Insert > Formatting > Horizontal Line I can insert a WYSIWYG horizontal line into a LyX document. I want to figure out the internal command(s) used to do this so I can set up a ...
4
votes
3answers
2k views

Shift horizontal line to the left

I am using a horizontal rule to to separate texts, and I would like the rule to start to the left of the current left margin. I am using the following code, but apparently it is not the correct way to ...
5
votes
1answer
104 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
40 views

How to add a footnote separator rule

I'm using \documentclass{IEEEtran}. I've tried the following but it doesn't work. \usepackage{fancyhdr} \renewcommand{\footrulewidth}{0.4pt}
2
votes
2answers
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 ###### | ...
4
votes
1answer
63 views

Is there a way to reduce the gap between double hlines (\hline\hline) in the tabular environment?

\documentclass{article} \begin{document} \begin{tabular}{c | c} cell 1,1 & cell 1,2\\ \hline\hline cell 2,1 & cell 2,2\\ \end{tabular} \end{document} I would like to reduce ...
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 ...
3
votes
2answers
32 views

The vertical lines in my tabular environment are scattered

I'm using pdflatex and have some trouble: the vertical lines in my tabular environment are all scattered. \documentclass{article} \begin{document} \begin{tabular}{| l | c | l |} \hline ...
11
votes
3answers
408 views

How do I make a long underscore in Plain TeX?

I have looked at this question as well as here and here but I cannot figure out how to produce a long underscore in plain TeX, as in the following example. Date _____________________________ The ...
3
votes
1answer
85 views

Positioning of \hrule and \vrule

I try to construct a symbol from 4 rules, one horizontal and three vertical ones. \showoutput gives me the correct dimensions for all of them (see below). However, the horizontal one somehow ...
0
votes
1answer
88 views

i want the header line to reach over both the text and the marginnotes

I'm making a document with document class scrreprt, and used this to get the page numbering on the top of the pages, and a line on the top of the page \documentclass[11pt, twoside=semi, ...
3
votes
1answer
72 views

How do I make a very, VERY specific horizontal line?

I am having a lot of trouble while formatting my resume. Everything is done except for one last feather in my cap: I want to have a horizontal line (below the name title) that starts at the left side ...
5
votes
1answer
75 views

vspace gets extremely large

I'm just writing my bachelor thesis and i got into some problems with vspace. To seperate definitions, theorems and so on, from the rest of the text i defined the following environment: ...
5
votes
2answers
119 views

\midrule splits vertical lines in table

I realise that the booktabs package does not want me to use vertical lines in my tables. However, I like vertical lines in my tables. Therefore, I am hoping there is a workaround to a problem that ...
6
votes
1answer
58 views

Unboxing \hrule's?

How do you unbox \hrules such as in this code sample: \setbox0=\vbox{1\hrule2\hfil\break3} \unvbox0 \setbox0=\lastbox % line 3 \unskip % \baselineskip \unpenalty % \break ...
0
votes
3answers
73 views

header rule margin with boxes

I'm creating a document with a box in the header and an other one in the footer. But I would like to have the same space between the bottom of the top box and header rule and between the top of the ...
42
votes
4answers
94k 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. ...
0
votes
0answers
15 views

Length of horizontal footnote separator [duplicate]

I need to reduce the length of the horizontal line that separates text body from footnotes. I am a beginner, using report document class.
0
votes
3answers
50 views

lines above and below section

I'm currently using the code below for making section-like titles in a two-column document \newcommand{\titulo}[1] { \par\medskip \begin{noindent} \rule{\linewidth}{0.8pt} ...
5
votes
2answers
185 views

Beautify whitespace in math environment with aligned with hline

I'm kind of surprised I can't find this issue already addressed somewhere, it seems so basic: I want to typeset basic algebra solutions where you write an equation and then under it you write what ...
3
votes
1answer
109 views

How can I make a postcard template?

I would like to print some of my holiday photos as postcards. But sadly, all companies I have seen so far do not offer easy possibilities to create the back of the post card. So I want to make a ...
3
votes
3answers
79 views

move \footnoterule to right

I would like to move a \footnoterule to right, by 3cm, to be aligned with a footgroup moved to right by 3 cm. I know that footnote rule use a \hrule To move the rule, I should put it in a \vbox, and ...
2
votes
1answer
60 views

vertical line in tabular and size

In the code below, how do I add a vertical line to separate the second column from everything to the right of it? Also, the content of the table is too wide horizontally. I can see though that if ...
9
votes
2answers
227 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. I want to print this at the right of the section title too, just like this: My current code is as follows: ...
14
votes
3answers
519 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}} \]
3
votes
1answer
65 views

Getting \rule to automatically break across lines

I am currently using \rule to insert blank lines into paragraphs of text in a document though the lines often go past the document margins. I know I can use \hrulefill to stay within the margins, but ...
1
vote
1answer
59 views

Lower hrulefill inside tabu

I'm trying to make a paper form. I want to draw a horizontal line for people to write on. I want that line below the baseline. I found a TUGboat on making forms that defines an \xfill command that ...
2
votes
2answers
129 views

Double lines and centered stars in a table

I have a table, but I have a problem with formatting it: \begin{table}[H] \centering % used for centering table \begin{tabular}{p{5cm} c c c c} \\ Case & Entscheidungsbäume & Neuronale ...
2
votes
1answer
61 views

Extend vertical line in table

The following code: \documentclass[12pt]{article} \begin{document} \begin{table}[t] \centering \begin{tabular}{c|cccccccc} \hline id & \multicolumn{4}{c|}{Col1} & \multicolumn{4}{c}{Col2}\\ ...
2
votes
0answers
76 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 ...
12
votes
2answers
723 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?
4
votes
1answer
79 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
347 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
157 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 ...
21
votes
3answers
16k views

How can I make a horizontal dashed line?

How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.
6
votes
1answer
305 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
112 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, ...
2
votes
1answer
88 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
147 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
57 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 ...
7
votes
3answers
241 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, ...
2
votes
1answer
156 views

How to add vertical lines (rules) to the left of first column and right of last column using multicol package

When using the package multicol for say 2 columns, the output is ....|.... using the code below. I'd like a way to add a rule to the left of the first column and to the right of the last column, so ...
1
vote
1answer
53 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
63 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
768 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
88 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
46 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
76 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
357 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} ...