Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rules]

{rules} is about drawing lines (also called rules). Popular packages are {booktabs} (which provides high quality table rules) and {dashrule}.

1
vote
0answers
50 views

Mimicking Latex Style

I recently stumbled across the mathematics textbook Numerical Analysis 9th edition by Burden and Faires and I thoroughly enjoyed the style of it. I was able to find a link too here: https://fac.ksu....
2
votes
1answer
27 views

Incomplete side rule in beamer

This only happens with warsaw theme: \documentclass{beamer} \usetheme{warsaw} \author{diabonas} \title{Frame border} \setbeamertemplate{background canvas}{% {\color{black}\rule{3pt}{\paperheight}\...
2
votes
2answers
94 views

ConTeXt: Place rules above and below floating figure

I'm experimenting to place a rule above and below a floating figure to achieve the following design. But to no avail. I've tried to place a \blackrule before and after the \placefigure. But that's ...
-2
votes
1answer
50 views

Bottom and and top rule when box break using tcolorbox package

Here I want box breaking with continued text and top and bottom rule when its breaking to next pages. Could you please help in this case. Here I attached the required output image. \documentclass{...
1
vote
2answers
34 views

hrulefill vertical spacing

I want to reduce the vertical spacing that comes before and after \hrulefill. I have already tried different options with \hrule, which works fine except for the fact that the line doesn't end where ...
0
votes
0answers
21 views

Longtable - Custom column width and no white spaces between lines

I used an updated version of the code by Mico (https://tex.stackexchange.com/a/271559/146754) to create a long table. 1) How can I remove the white spaces between the black lines 2) How can I assign ...
1
vote
2answers
38 views

indenting or centering \hrule

I am trying to print two horizontal lines to look like a divider in an older book. Using \hrule with slightly different widths and lengths makes the lines look hand laid. But trying to use \moveleft ...
1
vote
1answer
18 views

Span vertical line through page with minipage

I have this code: \documentclass[11pt, showframe]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[margin=2.5cm]{geometry} \usepackage{setspace} \usepackage{tabularx} \...
0
votes
0answers
31 views

Put horizontal lines above and below tabbing and prohibit page breaks between the lines and the tabbing contents

I wish to put a horizontal line above tabbing and another one below it in such a way that there are no page breaks between the tabbing contents and the two lines. Here is what I tried so far: \...
1
vote
1answer
38 views

Tabularx: Reason why customized \hrule exceeds \textwidth?

Any ideas on why my self configured \hrule exceeds the specified \textwidth of my page layout? Minimum Working Example (MWE): \documentclass{article} \usepackage{xcolor,colortbl} \usepackage{...
0
votes
1answer
64 views

Align a \hrule with the right side of the page

\documentclass[12pt,a4paper]{report} \usepackage{titletoc} \begin{document} \hrule width 2cm height 3.5pt\relax \end{document} Given a test document such as the above, how does one align the \...
1
vote
2answers
71 views

How to center a line under a figure

I want to put a line to distinguish the graphics from the text in my document. I found a way to add the line but I want it to be at the same length as the caption and not \linewidth. Although, when I ...
4
votes
1answer
99 views

Adding toprule and bottomrule to the glossary

I figured out how to add the toprule to this glossary, but I failed to do the same for the bottomrule. So, for this MWE, I have two questions: How can I add a bottomrule at the end of the glossary? ...
4
votes
2answers
173 views

Vertical lines in table

I have the next code, but I want that the vertical line be complete (it's cut off near to horizontal line): \begin{table} [H] \footnotesize \sisetup{output-decimal-marker = {,}} \centering \caption{...
0
votes
1answer
43 views

How can I remove the gap that's appearing between a graphic and a rule?

I am trying to put together a title page with a graphic taking up the upper portion, and a block of colour immediately below it. The code in question currently looks as follows: \newgeometry{margin=...
0
votes
1answer
53 views

\hrule length inconsistent

I'm using the tufte-book document class. When I use \hrule, sometimes it extends the text width (which I want), and other times it extends the full page width, apparently randomly. How can I get it ...
1
vote
1answer
54 views

Insert small line above an item in a list without adding extra space (Continued)

This is a follow up to Insert small line above an item in a list without adding extra space. I would like to control the length of the horizontal line to be the same widths as the widest \item in the ...
0
votes
1answer
28 views

Align left margin note with displaystyle math

For one of the packages I'm making, I want to denote part problems in the left margin. I don't want to use e.g. \reversemarginpar since this is up to the user to define. Exercises are always going to ...
3
votes
1answer
139 views

Redefine \equation for grid typesetting

Please look at the following MWE: \documentclass[17pt, twocolumn, landscape]{extbook}% \baselineskip=22pt \newdimen\mathheight \newdimen\mathdepth % Redefine \equation for grid typesetting \...
3
votes
1answer
65 views

Ugly overlines on arXiv (and elsewhere)

I have observed that various horizontal and vertical lines look ugly on arXiv (and elsewhere). This includes \overline, \hrule, fraction line, end-of-proof square, lines drawn by xy-pic but not those ...
3
votes
1answer
907 views

How to change a thickness of a hrule?

I am searched for changing a thickness of a \hrule in my report document ? any idea?
2
votes
1answer
71 views

Only one Horizontal line below the Caption of Algorithm in latex

I want only one Horizontal line below the caption in latex algorithm but in my case it gives line below and above the caption as shown. How can I get the desired output ? \documentclass[12pt,a4paper, ...
1
vote
0answers
50 views

Same space between top and bottom rule minitoc

I want to have the exact same space between the top and bottom rule of minitoc. I know I can use : \mtcsetfeature{minitoc}{after}{\vspace{-10pt}} \mtcsetfeature{minitoc}{before}{\vspace{-10pt}} ...
0
votes
1answer
51 views

what is the correct value to move horizontal rule and join it with vertical rule between minipage?

I am redoing the logos (in word) used by my school, I have managed to align the images and the text, but, I can not find the correct value to move the horizontal rule and join it with the vertical ...
1
vote
1answer
157 views

Change colors of the rules in minitoc

I'm deseperatly trying to change the colors of the rules in minitoc. I tried differents things : Try 1 : Change all hrule colors with \makeatletter \let\old@rule\@rule \def\@rule[#1]#2#3{\...
2
votes
2answers
44 views

How to break a \rule over lines?

Is there an easy way to break a rule over multiple lines? I.e. for it to continue flowing just as text would, and not continuing straight through the page border? Specifically, I'm trying to typeset ...
1
vote
1answer
144 views

Writing the rule of three in math mode

When trying to get a nice rule of three in beamer documentclass, using align, I get: Now, I know numbered equations can be avoid with align* environment. Question Is it possible write a small rule ...
6
votes
2answers
193 views

How can I make a “vertical dotfill” environment?

Wanting to highlight parts of my text, intended to be read at second reading, by an inexpensive method in packages, I want to set up an environment that would put points at the beginning and end of ...
0
votes
3answers
42 views

Temporary vertical rule for equations' alignment purpose

How can I obtain a vertical rule like the red one in the figure? Here's the LaTeX code (without the rule): \begin{align}\label{62} \begin{split} \delta_{\chi} \theta_{A} & = \mathcal{...
2
votes
1answer
103 views

Adding Vertical line next to example environment

How would i go about adding a vertical line next to my example environment like in this post: Example environment?. The reason I have not just copied the environment from that post is that, it isn't ...
5
votes
2answers
295 views

Custom shaped horizontal rule spanning the entire document

I learned how to create a simple horizontal rule by reading the question: Horizontal line spanning the entire document in LaTeX I would like to create a chirp-shaped horizontal rule spanning the ...
1
vote
1answer
156 views

Remove top rule of `ruled` algorithm2e

I'd like to use similar styles for pseudocode/algorithms and listings using the algorithm2e package. Therefore I need a line above and below the algorithm but not above the caption. Haven't found any ...
1
vote
1answer
37 views

vrule align with top of the text using multicols

My MWE is: \documentclass{book} \usepackage{showframe} \usepackage{lipsum,multicol} \pagestyle{empty} \setlength{\columnseprule}{2pt} %\setlength{\multicolsep}{-10pt} \begin{document} \lipsum[1] \...
1
vote
1answer
98 views

Error with \hline and similar commands

I am a beginner of LaTex. TeXstudio informs me about this error: "I expect to see \noalign only after the \cr of an alignment. Proceed, and I'll ignore this case." My text is \documentclass{book} \...
0
votes
1answer
173 views

Adding left and top border to a section heading

I would like to have a top and a side border around my section heading like this I'm using titlesec \titleformat to define my sections. So far I've been able to add a top rule by putting a \...
1
vote
1answer
222 views

Create a section rule that is the same width as the section title

I would like to create something that looks like this: Now, I have seen a solution that works with the asker's example environment (using \predisplaysize). However, my desired solution is a little ...
1
vote
2answers
172 views

Problem drawing horizontal line above two columns, line runs through column

I'm somewhat of a beginner in LateX. I want to draw a horizontal line below my abstract to clearly separate it from the rest of the two-column text. When I do so however, the left column starts below ...
2
votes
2answers
163 views

Horizontal line in tabbing environment

I have a tabbing environment and I want next to some text lines a horizontal line up to the end of the page. \hrulefill won't work because of the tabbing. The \noindent\rule{x}{y} will put a line, but ...
2
votes
2answers
106 views

I need to draw a dotted line to divide a page, ignoring the margin

I can draw a rule across the entire pagewidth with the following command: \noindent\makebox[\linewidth]{\rule{\paperwidth}{1pt}} but I can't draw a dotted line. Any ideas? I need the line to divide ...
0
votes
1answer
344 views

Vertical line between aside and main text friggeri cv

For the Friggeri cv, has anyone had any luck to try and draw a vertical line between the aside bar and the main text? I tried using \rule and tikzpicture but to no avail. Tl;DR: I want a vertical ...
1
vote
2answers
118 views

How to make “rule with hooks”

I guess this is a very basic question but I didn't find anything. Also didn't know what to search for, sry for the stupid title. How can I make a "rule with hooks", be it horizontal or vertical, with ...
4
votes
2answers
4k views

How to change hline thickness in tabular?

I am just trying to get the table to look like the picture in the LaTeX Wiki book: In this example shown, the very top and bottom \hline are thicker and darker than the ones in the middle of the ...
6
votes
4answers
406 views

Center text between double horizontal rules

I'd like to do something like this: ==================== Text ==================== Where '===' represents two horizontal lines separated by 2pt. In other words, I'd like to center some text ...
4
votes
3answers
251 views

Typeset a piecewise matrix?

I need to typeset the following: But I cannot seem to get the dotted line or the centered r_{i, j}. Can anyone show a minimal working example?
6
votes
2answers
117 views

Horizontal line between text blocks that's omitted at pagebreak

I'm trying to define a command that adds a horizontal line after text blocks, but I'm struggling to find a way to omit the line at pagebreak – the text blocks should be separated by either the ...
3
votes
1answer
286 views

Breakable vertical rules like tcolorbox without TikZ

I'm looking for a way to have double vertical lines along the left side of a paragraph. It can be done by framed package, but I don't like its spacing (see picture.) The aim is that tcolorbox produces,...
0
votes
1answer
172 views

Change the length of footnote line?

I want to change the length of footnote line in different pages of a chapter. For example I want the length of footnote line is "4 in" in page 1 and it is "6 in" in page 2. I used the following codes ...
0
votes
0answers
208 views

How can I change the length of footnote line? [duplicate]

I need to change the length of the horizontal line that separates text body from footnotes. I want length of footnote line is as much as width of footnote text. I can the following codes: \def\...
1
vote
3answers
50 views

How to get free horizontal space width left in box

I have a box 6cm width, and I want to put there a label followed with underlined area which should fill all horizontal space left. How to make it properly? \makebox[6cm]{ Label: \underline{ \...
1
vote
1answer
81 views

\rule or \hrule extending into innerrightmargin of mdframed box

I have an mdframed box with a large innerrightmargin (which, in the place I use this, will contain various \marginpar entries, and I need this functionality to remain). I'd like to have a rule that ...