Skip to main content

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
3 votes
1 answer
41 views

GregorioTex doesn't let me change the color of the separating line between columns

I'm using the paracol package to set up a bilingual text in a document in which I'm using the gregoriotex package. I want to change the color of the separating vertical line, but I can't. By my tests, ...
Limatus's user avatar
  • 51
2 votes
1 answer
33 views

S.th. like \leaders\hbox{..}\hfill/\vfill that in alignments/tables behaves like \hrule/\vrule? [closed]

TeXbook says in "Chapter 21: Making boxes" that when with a \hrule you don't specify the width or with a \vrule you don't specify height and/or depth, the rule will extend to the boundary of ...
user avatar
5 votes
0 answers
76 views

unable to use \cmidrule in lualatex-dev (2024)

I am encountering the following error when using the \cmidrule and \DocumentMetadata{testphase={phase-III,table}} commands within my document while using lualatex-dev (2024). It's working fine when I ...
murugan anbu's user avatar
2 votes
2 answers
95 views

How to define a "vnodash" command?

I would like to typeset the following sequent: A | Γ ⊢ B. I have tried, \documentclass{article} \begin{document} $A \mid \Gamma \vdash B$ \end{document} but \mid has a much greater height that \vdash....
user avatar
3 votes
0 answers
55 views

Interaction between microtype and rules

I've had a code for years to make the main title for handouts. Here's a MWE: \documentclass{article} \usepackage{microtype} \newcommand{\myline}{\rule[0ex]{\textwidth}{.5ex}\\} \begin{document} \...
Sverre's user avatar
  • 20.8k
0 votes
2 answers
47 views

Making horizontal lines (rules) meet at a specific y-position

I am working on an exam paper. It requests that students write multiple things (Name, grade, school, city, as shown), and horizontal lines are given for details to be written above them. I want to ...
Bakr Al-Rawi's user avatar
4 votes
4 answers
291 views

Text beside horizontal line

This question is similar to this one. I also want to write some text beside horizontal lines. The difference is that the content of the cells are commutative diagrams. The solution provided by David ...
Luis Turcio's user avatar
  • 2,759
1 vote
1 answer
72 views

Can I write a rule for table containing tens, ones, tenths, hundredths and thousands

I am wondering if I can write a rule for this? Is a rule even a good idea for this or is it better if I keep doing the table. Happy to hear any thoughts. Also trying to create that red arrow and the ...
user292225's user avatar
2 votes
2 answers
86 views

How to automate a table for using the distributive law

I am trying to do the following. I thought I should use a new post since the last one very unclear. I am very grateful for all the help. Thank you I am starting with this suggestion and am trying to ...
user292225's user avatar
4 votes
2 answers
380 views

The distributive law in a square

I am trying to do the following but I am not sure how to go about it. Should I just go with a table and make the lines thicker? I am also trying to make the lines around the box blue and thicker. Can ...
user292225's user avatar
0 votes
1 answer
57 views

Using tcolorbox within an algorithm Environment

I want to have a colored box within an algorithm environment. I use tcolorbox within an algorithm environment. The result is shown below. I use the before skip balanced=-0.075cm and after skip ...
Hosein Rahnama's user avatar
3 votes
2 answers
42 views

Adjust the vertical distance between \sectionrule (package sectsty) and the following text

Given the package sectsty and the following code: \documentclass[english]{article} \usepackage{lipsum} \usepackage{sectsty} \sectionfont{\sectionrule{0ex}{0pt}{-1ex}{0.2pt}} \begin{document} \...
Ommo's user avatar
  • 849
2 votes
2 answers
82 views

Table with multiple column (hierarchical table)

I am trying to draw a table like the following figure . I found a nearest to the solution of my query is the following question. What I found difficult is to add the left most column of my proposed ...
Cantor_Set's user avatar
5 votes
4 answers
972 views

LaTeX tables lines are not connected

The lines of my table are not connected. I need a table where every lines should be connected. The LaTeX code for the table is as follows: \begin{table}[] \centering \resizebox{\textwidth}{!}{% \begin{...
Tine's user avatar
  • 53
0 votes
1 answer
46 views

Rulling the page with 3cm distance

This is very introductory question. I want to draw two lines with 3 cm distance. But the code \noindent\rule{\linewidth}{2pt} \vspace{3.1cm} \noindent\rule{\linewidth}{2pt} does not give 3 cm ...
Tanmoy Pati's user avatar
0 votes
0 answers
43 views

\cmidrule instead of \cline error [duplicate]

I am using sn-jnl class for journal submission. unfortunately it does not recognize \cline in muticolum table. Also tried \Requirespackage{bookstab} but still errors. Therfore used \cmidrule but the ...
user3696623's user avatar
3 votes
2 answers
348 views

How can I connect adjacent == for drawing a double rule and filling rest of a line?

I want to connect =================================== in order to form a solid line. How can I do it? There is a word before the equal signs, like word ============================== Hence having ...
Leon's user avatar
  • 525
3 votes
2 answers
190 views

Multi column table with continuous vertical lines

I want to create this type of table in the latex. What I did is the following \begin{tabular}{c|ccccc|ccccc|ccccc} \toprule &&& Edge count &&&&& Wedge count &&...
ann's user avatar
  • 33
0 votes
2 answers
60 views

longtblr returning errors if anything inserted (addlinespace, bottomrule, etc) between last row in table and \end{longtblr}

I have a wide table that needs to go across multiple pages in landscape mode. The format of my document is that the table caption goes underneath the table. This is causing me problems such as I'm not ...
Michelle's user avatar
  • 529
0 votes
1 answer
46 views

How do I avoid overlapping header and first sentence of the page while using fancyhdr?

I am using fancyhdr to put some header and footnote in my document but from second page onward, the first line of the page and the header are overlapping like the following. How can I resolve this? I ...
melatonin15's user avatar
3 votes
3 answers
130 views

\vbox of the fixed height with leaders is not filled whole

I am trying some samples. They make a frame around the text. I know there are already realized commands for it but I want to practice leaders, rules and boxes in LaTeX. So the examples below are kind ...
Vladimir's user avatar
  • 589
1 vote
2 answers
176 views

simple alternatives to \hrulefill or \rule{\textwidth}{0.5px}

I am trying to insert horizontal lines for students to write answers. If I use \hrulefill, it only inserts the horizontal line from the end of text to the right margin. I want this horizontal line ...
larryjb's user avatar
  • 45
2 votes
2 answers
88 views

Adding a horizontal rule over the text

I would like to insert a rule without affecting the text format. Here is what I attempt to obtain: The source code is: \documentclass[a4paper,12pt]{article} \usepackage{parskip} \begin{document} The ...
Richard's user avatar
  • 164
0 votes
0 answers
36 views

Tables with multicolumn lines

I'm trying to format a table with many columns such that the empty cells on each row have a continuous, coloured line through them. I've tried adapting a multicolumn command with a rule command in it, ...
TheorVHP's user avatar
1 vote
2 answers
96 views

How to get a dotted rule below every subsection title in scrartcl?

I am currently doing the following in order to obtain a rule below each section title in a KOMA Article. \documentclass[]{scrartcl} % RULE BELOW SECTION TITLES \makeatletter \renewcommand{\...
EoDmnFOr3q's user avatar
  • 2,343
4 votes
5 answers
334 views

\midrule, \bottomrule, etc do not extend until last columns of my table

I am observing strange behaviour in which toprule, midrule, bottomrule fail to extend until the last columns of my table. In the MWE below, I reproduce the issue using toprule, & bottomrule %%% ...
arilwan's user avatar
  • 389
3 votes
1 answer
215 views

Draw lines to divide pages in 2, 3, 4, .... equal parts

Following the topic to divide a page in two equal parts, I can't figure out how to draw a line at the quarter of the page. My goal is to create some multiple short tests on the same page that I'm able ...
Piroooh's user avatar
  • 1,207
1 vote
1 answer
37 views

How to extend rule until the end of beamer slide?

I want to include a rule from a logo in a beamer slide until the right margin of the slide. However, when I increase the width of rule, the rule is sent to below the image instead of continuing toward ...
Andre's user avatar
  • 1,011
2 votes
1 answer
65 views

How to center text-boxes and draw a rule from each box

I know my headline sounds highly confusing so let me provide you my MWE \documentclass{article} \usepackage{tikz} \usepackage[most]{tcolorbox} \newtcolorbox{frameGray}{enhanced, colframe=black,...
Leon's user avatar
  • 525
0 votes
2 answers
43 views

rule at middle of text hight

ich have the following code: \begin{center} \rule{0.2\linewidth}{0.1mm}\hspace{0.5em} \textbf{\large Analytische Aufgaben}\hspace{0.5em} \rule{0.2\linewidth}{0.1mm} \end{...
BukkitDEV's user avatar
3 votes
2 answers
210 views

Lines inside Array

I want to create a line inside an array (for a matrix), among which what I have created is as shown below. (I used \usepackage{hhline} and \usepackage{arydshln}) \[\small{\left [\begin{array}{cc|c} ...
Wildan B. W.'s user avatar
4 votes
1 answer
77 views

Vertical space in table (not arraystretch)

I want a vertical space in one row of a table without stretching out all rows of the table. The suggestions I see all involve \arraystretch{}, but I want the text-only row to still be small. \...
user26305's user avatar
  • 142
-2 votes
1 answer
64 views

Strange black bar in booktabs table doesn't go away [closed]

First of all, the following problem cannot be replicated on other machines. Creating a MWE solves the problem, but I have to solve it within the context of my thesis, which includes a preamble that is ...
Serendipity's user avatar
1 vote
1 answer
87 views

Extend vline slightly beyond surrounding box?

Is there a way to extend a \vline slightly beyond the boundary of the surrounding box? In the case I have in mind, I'm attempting to have a continuous vertical line between several items in an ...
joshisanonymous's user avatar
0 votes
1 answer
191 views

Dotted lines in the exam class

I am using the exam document class and am using \fillwithlines{xcm} command to add lines. However, I want to recreate the lines as in the photograph below. Can I also make the middle two lines dotted? ...
user292225's user avatar
0 votes
0 answers
22 views

latex+dvips+gv: the left vertical bar of the frame of mdframe vanishes at certain magnifications [duplicate]

Feeding \documentclass{article} \usepackage{mdframed} \begin{document} \begin{mdframed} Test \end{mdframed} \end{document} to latex followed by dvips results in the left vertical bar (and, with ...
user avatar
0 votes
1 answer
176 views

How to apply hrule at bottom of each page's text body

I am working on a twosided article layout where the footnotes are enclosed by two \textwidth lines above and below and on pages without a footnote a single h-line is spanning across \textwidth at the ...
lukeflo's user avatar
  • 1,597
1 vote
0 answers
30 views

Horizontal rule below the image, except when it is the last item on the page

I am using the following setup to get a horizontal line below the images in my document. \documentclass[12pt,twoside,openright]{book} \usepackage[table,xcdraw]{xcolor} \definecolor{mygray}{gray}{0.8} ...
Yogesh Yadav's user avatar
2 votes
2 answers
56 views

How do I get a horizontal rule below the table that spans the full text width?

I want a horizontal rule below the table which spans the full text width. I have tried the following approach, however, the rule only spans the table width and not the text width. \documentclass[12pt,...
Yogesh Yadav's user avatar
1 vote
1 answer
53 views

Why is there a gap between top titlerule line and the contents of chapter and section? Also why is the thickness of these rules not equal in Chapter?

I am attempting to learn the commands associated with the titlesec package. It appears that the parskip value is added before the chapter/section content. As a result, the content is not vertically ...
AAYUSH K.C.'s user avatar
1 vote
1 answer
59 views

Parskip is shifting my footer down

Why is the footer (containing the bank information) shifted down by parskip? \documentclass[fontsize=12pt, DIN, A4, parskip=full, % removing this prevents the shift ...
mrCarnivore's user avatar
  • 1,505
1 vote
1 answer
227 views

How to manage a customized title style for CV?

I particularly appreciate a style of title used for a CV got online (see following image) and I am trying to reproduce it in my LaTeX CV. Here follows my MWE (it's the actual version of my first page ...
g_don's user avatar
  • 799
1 vote
1 answer
106 views

Half-cell reactions and sum reaction below horizontal rule with chemmacros?

I would like to write two half-cell equations (reduction and oxidation) each on their own row, each with their own label of type reactions and entry with RxnDesc (reaction description) in the List of ...
solarchemist's user avatar
2 votes
2 answers
889 views

Change thickness of cmidrule

How can I change thickness of \cmidrule because I need it in my report.
Kaniky's user avatar
  • 69
1 vote
1 answer
120 views

How to determine the space between a `hrule` and the next baseline?

I would like to draw a hrule and have a precise control on the vertical space bewteen the line and the baseline of the text under the line. On the following image, one can see that the space between ...
Colas's user avatar
  • 6,832
0 votes
0 answers
47 views

Add vertical line and figures on cover page

I was reading this post How to add a vertical line and figures on the titlepage?, and I need to do like this image (3 images: one on the left side of the vertical line, one on the right side and one ...
cdcarrion's user avatar
  • 103
0 votes
1 answer
77 views

Package boldline: need some more space between the horizontal rule and the top line of text below it

My symptoms are: As you can see the header text is too close to the topmost rule. How can I add some vertical space between that rule and the top line of header text? My code: \usepackage{boldline} . ...
coderodde's user avatar
  • 549
3 votes
1 answer
127 views

Adding a rule to a theorem environment

I have a document full of examples that I created with a simple theorem. The problem now is that I try to modify the examples' appearance by adding rules at beginning and end. This turned to be harder ...
aaragon's user avatar
  • 3,051
3 votes
1 answer
114 views

How to achieve line above right-aligned caption in floating figure in ConTeXt?

I would like to achieve, what in Adobe InDesign is called a paragraph rule over a figure's caption, i.e a line on top of the caption, while keeping the caption itself right-aligned (actually aligned ...
Marcus C.'s user avatar
  • 755
0 votes
1 answer
83 views

How can I get section title between 2 horizontal lines, within same line

I am quite new to LaTeX, and I am trying to make the section title centered between 2 horizontal lines, all within the same line. What I have now is this. However, I'd like the rules to be longer, but ...
Mateo's user avatar
  • 3

1
2 3 4 5
19