Questions tagged [rules]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

How to color a rule node in LuaTeX?

When I do something like this: % !TEX TS-program = lualatex \documentclass[english]{book} \usepackage{babel} \directlua{ COL = node.subtype ( "pdf_colorstack" ) WHAT = node.id ( &...
user avatar
  • 371
0 votes
1 answer
31 views

displaying \rule in title page

I have the following test document. I want to use \noindent\rule{19cm}{5pt} after the title and \noindent\rule{19cm}{3pt} after the author name. But the two rules are being displayed in another page. ...
user avatar
  • 29
1 vote
1 answer
17 views

Offset hrule while parskip=true

So what I'm trying to do is similar to this article, which is to surround the title and subtitle of the document with 2 similarly distanced \hrule. If i follow their description it works wonderful. ...
user avatar
  • 109
2 votes
2 answers
64 views

Cmidrule misplaced \noalign

I am using cmidrule as I have used it before, but it's giving me strange errors. Below the MWE reproduces them. What is going on? \documentclass{beamer} \usepackage{booktabs} \usepackage{multicol} \...
user avatar
  • 287
-1 votes
2 answers
25 views

Table of results of metrics does not appears well, cell not closed and lines divides horizontally and vertically

I ma trying to write a table to put my results on. But I am getting this error. The lines are not fulling designed. \begin{table} \centering \begin{tabular}{|c|S|S|S|S|S|S|S|S|} ...
user avatar
  • 101
1 vote
1 answer
34 views

Different effect of "height" arg in \vrule

\documentclass[a4paper]{article} \usepackage{xcolor} \usepackage{geometry} \geometry{showframe} \geometry{left=1cm,right=1cm,top=1cm,bottom=1cm} \begin{document} \parindent0pt \fboxsep0pt \...
user avatar
  • 2,189
2 votes
3 answers
61 views

Confused about \hrulefill vs. \rule and paragraph breaking

I've got a macro to insert a blank for fill-in-the-blank questions on my tests, but when it is at the beginning of a line, it breaks the paragraph right after the blank and the rest of the question ...
user avatar
  • 25
0 votes
0 answers
45 views

How to align horizontal lines with text?

I'm creating the cover page for my MSc thesis book. I want to vertically align the horizontal lines produced with \hrule environment with the text of the page, as shown in the following image. The ...
user avatar
  • 491
2 votes
0 answers
30 views

Can I have one footnote ruler for 2 or more series in reledmac?

When I have two ruler one for each footnote I have ruler, when i have only one series footnote on page. Question is is it possible to have just one ruler for A,B footnotes? No matter wat footnote i ...
user avatar
0 votes
0 answers
31 views

Underlining subsections / subsubsections in LaTeX with ulem?

I want to underline subsubsections in the way shown in the example below with the uwave method of the ulem package. Example of how it should look like This is what I got so far: \documentclass[12pt,...
user avatar
0 votes
1 answer
70 views

How to control the horizontal position of \hrule

Please see my questions in the following MWE. Thank you. \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{geometry} \geometry{showframe} \geometry{left=1cm,right=1cm,top=1cm,bottom=...
user avatar
  • 2,189
2 votes
1 answer
175 views

Change Tcolorbox title rule color and thickness on the left and right side of the title box

I want to have two distinct styles for my tcolorbox titles as illustrated here: These are coded in My Title Style Default and My Title Style Special, but use an entire tcolorbox (not just the title). ...
user avatar
4 votes
1 answer
47 views

Convert bash shell script call in arara rule from version 4 to version 6

I have the following rule in arara 4 that calls a bash shell and executes a command in this shell: !config identifier: OCbootstrap name: OCbootstrap commands: - <arara> bash -i -c OCbootstrap @{...
user avatar
6 votes
1 answer
73 views

How can I patch \hrule to print \hrule three times?

What I want to achieve is, that every second line in a fonttable is drawn thicker than the others. I achieved this by renewing the commands responsible for the output: \documentclass{article} \...
user avatar
  • 4,286
2 votes
0 answers
32 views

Add rows to a table with a macro after the table is shown [duplicate]

I'm trying to have a command to be executed at the begining of the document in order to append a value to a variable after it is being used. The idea is to combine it with Add Rows to Table With Macro ...
user avatar
  • 51
2 votes
1 answer
123 views

Nice output for examination

We currently have this MWE with classic Palatino font (or with Times NR). \documentclass[a4paper,12pt]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage{mathtools,amssymb,...
user avatar
  • 46.1k
1 vote
2 answers
62 views

Vertical and horizontal lines for whole page

I have a quick question regarding drawing lines. For practicing, I want to imitate the following CV: For that I would like to ask for some directions when it comes to drawing vertical and horizontal ...
user avatar
0 votes
1 answer
32 views

Messed up header / geometry - header line above text instead of below

I've messed something up in fancy header / geometry settings and I'm getting header line above the header text. Where is the mistake and how can I get the default behaviour of displaying the header ...
user avatar
  • 227
1 vote
1 answer
32 views

Deleting header rule on the first page

I would like to generate myself a standard, simple report template. In the attached example I would like to have different set of headers on the first page. I'm stuck with a problem trying to remove ...
user avatar
  • 227
1 vote
0 answers
125 views

Algorithm2e: Width of algorithm rules and text alignment

I have two questions linked to the algorithms environment that I am using in LaTeX. Example Let me start with an example file to illustrate what I'm looking for. Algorithm 1 in the MWE below does what ...
user avatar
0 votes
2 answers
72 views

How to write a text above a line created by \rule?

How to write my name under the line created by the following code? Name: \hspace{8pt} \rule{5cm}{1pt} Is this possible without any major alteration?
user avatar
2 votes
1 answer
46 views

Insert a mark at specified position at the external margin

I want to insert a rule in an exact position (2.4 in from the top, for instance) at the external margin of a given page interval (from page 2 to 4, or bigger). I don't have any idea how to do it, but ...
user avatar
1 vote
1 answer
51 views

Begin footnoterule above footnote text, not aligned with main text body

The footnoterule should follow the same left margin as the footnotetext, not the same margin as the main body. Here, it should start above the “T” in the footnote, not above the footnote mark “1”. \...
user avatar
  • 1,493
1 vote
2 answers
53 views

How to extend rule to cover entire table in landscape

I am trying to make a really wide table fit onto my table on latex, in doing so I used \makecell as well as turning it into \landscape mode to make it fit, but it seems the \rules (\toprule, \midrule ...
user avatar
2 votes
2 answers
234 views

Color of \hrule

I made this LaTeX function: \newcommand{\Hrule}[2]{\vspace{#1}\hrule\vspace{#2}} Now, I'd like to edit this function in this way: I want add a #3 in whose specify the color of this \Hrule. And I want ...
user avatar
  • 793
3 votes
1 answer
166 views

Fraction line with rounded corners

I want to make the rounded corners of the fraction line. Is it possible ? Update: Or you can add rounded corners to all parts of TeX. \documentclass{beamer} \usepackage{amsmath} \usepackage{graphicx} ...
user avatar
  • 584
2 votes
2 answers
97 views

Draw a horizontal line between row after utilizing makecell

In a table, how can I draw a horizontal line to separate every three smartphone models? I mean after LG, Samsung and Xiaomi there must be another line that separates it. Also I need to separate 25%, ...
user avatar
  • 75
3 votes
3 answers
88 views

How can I define a new table environment with custom rules and spacing?

Question I'm using the following manual code to create a table with custom rules and spacing. However, there are two problems with it: It is inconvenient to manually add the \topspace after every ...
user avatar
  • 861
0 votes
1 answer
38 views

Replace the usual fancy header rule with a custom horizontal line

The fancy package in LaTeX produces the usual horizontal rule Using the graphicx package and the code below, one can produce the following custom line using the command \EnglischeLinie: The color ...
user avatar
  • 27
2 votes
3 answers
357 views

NiceTabular: Vertical rules are being drawn through blocks

I am making a table with dotted vertical lines, so I am using the NiceTabular environment instead of the tabular environment. I expect the vertical lines not to be drawn within the \Block that I am ...
user avatar
  • 23
1 vote
2 answers
66 views

Multi line header does not play well with geometry headsep parameter

I would like to use the geometry package alongside fancyhdr. To control the distance between header and main text in my article documentclass, this question recommends use of the headsep parameter: \...
user avatar
  • 1,372
1 vote
1 answer
51 views

To Reproduce this Header in Latex

I wish to reproduce this header in Latex, but know not precisely how. So far, I have written: \documentclass{resume} \usepackage[left=0.4 in,top=0.4in,right=0.4 in,bottom=0.4in]{geometry} % Document ...
user avatar
1 vote
1 answer
57 views

How to remove vertical margins when opening an environment (`multicols`)?

When I compile \documentclass[a4paper]{article} \usepackage[a4paper, left=5mm, right=5mm, top=4mm]{geometry} \begin{document} \noindent\hfil\rule[0mm]{200mm}{.1pt}\hfil \leftskip4em\rule{.1pt}{150mm}...
user avatar
  • 867
1 vote
2 answers
126 views

How can I draw double lines only for some of the table cells?

There is a related question: How can I draw a horizontal line spanning only some of the table cells?, and I would like to do it for double lines. How can I fix my code to draw double lines only for ...
user avatar
  • 113
3 votes
0 answers
92 views

When should I use `\par` and when should I use `\hrule height 0pt`?

I commonly run into issues with controlling the exact amount of space between two environments. Recently, for example, I was trying to understand how to insert a horizontal rule between two boxes ...
user avatar
  • 3,914
2 votes
1 answer
49 views

Subequations and boxed with \hline

I've a trouble with this code: \newcommand{\Tonde}[1]{\left(#1\right)} \newcommand{\Quadre}[1]{\left[#1\right]} \begin{subequations} \begin{align} z^1=|z|^1\Tonde{\cos\theta+i\sin\theta}^1&=|z|\...
user avatar
  • 793
2 votes
2 answers
109 views

How to customize the horizontal rule which follows the section heading?

I am preparing my resume and want to customize the section headings. I want a horizontal rule to fill the empty space (linewidth) after the section heading. Following is what I have been able to do ...
user avatar
  • 329
0 votes
1 answer
62 views

Customized horizontal line

I am trying to attain the following style of customized horizontal rule for my document. I tried the following LATEX code. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[top=1cm, ...
user avatar
1 vote
2 answers
141 views

line numbering & vruler on middle of page

I want to add line numbering to a document. I can't use lineno because for one reason or another it does not detect all the lines of my document (I use a lot of math equations and this makes line ...
user avatar
  • 61
1 vote
1 answer
125 views

How can I set \vrule height to height of actual text, not \textheight?

I need to set the height of \vrule to the height of the actual text on the page, instead of to the full height of the text area. In the image below, the lines extend well beyond the text, but should ...
user avatar
  • 345
0 votes
1 answer
78 views

How to stop text from stretching between two rules in \titleformat{\chapter}

I have a specific way of displaying Chapter title headings, by placing the chapter title in between two rules. I use titlesec to achieve this. The issue is, the stretch that LaTeX does over each ...
user avatar
6 votes
3 answers
129 views

LaTeX dynamic \rule width depending on text length with titleformat

I have a section divider as below: \documentclass[a4paper,11pt]{article} \usepackage{xcolor} \usepackage{titlesec} \definecolor{pink}{HTML}{F8CBAD} \definecolor{grey}{HTML}{D9D9D9} \titleformat{\...
user avatar
  • 175
1 vote
1 answer
34 views

Increase spacing after footnotes' rule/line?

I know you can increase the spacing between the main text and the footnotes' line/ruler with \addtolength{\skip\footins}{} So I wonder if there's a command to increase the space between the line/...
user avatar
  • 37
1 vote
1 answer
33 views

Headers: double line after text

How can I create a header exactly like this?
user avatar
1 vote
1 answer
137 views

Combine \rule and \fbox to fill the width of a page

I'm trying to build a date separator, which spans the entire width of the page and has a boxed date on the right. This is what I've written so far: Test test test. \par\noindent\hfill\rule[3.4pt]{0.7\...
user avatar
  • 185
2 votes
1 answer
63 views

Redefine \hrule without affecting \hline

I can produce two versions from a single latex source. In one version I want to ignore the instances of \hrule. Simply redefining it produces a problem with \hline. Hence the MWE below throws an error,...
user avatar
  • 2,545
2 votes
1 answer
64 views

rule, colorbox, space

I have three questions about this table: The space between the \toprule and the description is greater than the space between the description and the \midrule. How Could I change this that both ...
user avatar
  • 471
1 vote
2 answers
77 views

Horizontal line spanning the page with asymmetric margins

I wish to draw a horizontal line spanning the entire page. Previously I've been using the method in this answer, but I just found that it doesn't work properly on pages with asymmetric margins (say ...
user avatar
  • 4,515
4 votes
1 answer
62 views

How can I fill a heading with a rule in KOMA classes?

I am customizing section headings for scrartcl and wanted to try adding a rule after the section title filling the line. As suggested in section 12.8. of the KOMA manual, instead of drawing the rule ...
user avatar
  • 2,989
1 vote
2 answers
79 views

Excess vertical space when using booktabs cmidrule in math align environment

I'm using booktabs cmidrule in a math align environment. It's working but it's producing too much vertical space. How can I reduce that vertical space. Here's a simple demo \documentclass{article} \...
user avatar
  • 303

1
2 3 4 5
17