5
votes
3answers
106 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, ...
5
votes
1answer
73 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 ...
9
votes
2answers
272 views

Horizontal rule between lines that vertically takes up only its height and that doesn't close up to surrounding ascenders/descenders

I would like a command \lineseprule that appears as a horizontal line of customizable width. It should neither take up a full line's height (\linesepruleA below) nor close up the lines above and below ...
8
votes
2answers
426 views

How to shorten \hline in a matrix

I indicate blocks in a matrix using \hline: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b\\ \hline c & d ...
2
votes
3answers
528 views

How to I reduce space before and after HRule?

I have a command: \newcommand{\HRule}{\rule{\linewidth}{0.2mm}} and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my ...
6
votes
1answer
490 views

Tight horizontal lines around a block of text

I wish to create a block of text with tight horizontal lines above and below, e.g. This is a paragraph. The following example seems to produce more space between the paragraph and the horizontal ...
2
votes
0answers
109 views

ConTeXt: Set mixedcolumns maximum height for vertical rule

Background Looking to ensure that the height of a vertical rule for the first page of a section is the same as the subsequent sections. Code Minimum working example to illustrate the issue: ...
3
votes
2answers
136 views

Switch off booktabs for one table only

I am using the booktabs package in basically all my papers to present tables with results or descriptive statistics. However, I need to show a schematic choice in a table, and for that I need a proper ...
4
votes
3answers
173 views

Make a horizontal line from the current indented location to the right margin

I want to be able to do something like: \hspace{2cm} \hrule and have LaTeX give me a line that goes from 2cm past the left margin, to the right margin. I've looked around and as a LaTeX newbie it ...
11
votes
1answer
456 views

Two-column layout with thick vertical rule in ConTeXt

Background I would like to add a thick rule centered between two columns. Example Code A minimum working example that illustrates the issue: \setupcolors[state=start] ...
25
votes
1answer
347 views

Using elastic lengths — when do they work?

I was wondering why elastic lengths like \fill seem to work only under certain conditions. For instance if I write A \hspace{\fill} B I get A left aligned, B right aligned as wanted. If however ...
2
votes
4answers
187 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
4
votes
1answer
265 views

Fill empty vertical space with a single diagonal line

I'm currently writing a document with the book class. At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of ...
3
votes
1answer
1k views

Changing properties of epigraphs using “epigraph” package

Please help me to figure out how to produce with that: I have the following code: \epigraph{«Теперь нам ясно, что вся структура теории чисел держится на одном основании, а именно, на алгоритме для ...
0
votes
1answer
108 views

Rule between environments (no spacing!)

I want to place a rule between two centered tabulars like the following example. But I am not able to control the correct spacing of 2mm in between the rule. Can somebody maybe explain :-) what should ...
24
votes
2answers
884 views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
7
votes
1answer
569 views

Vertical line in longtable

I would like my vertical line to be slightly detached from the horizontal lines. I am using \usepackage{longtable}. \footnotesize \begin{longtable}{r | p{10cm}} \caption{My caption 1\label{1}}\\ ...
6
votes
2answers
3k views

Extra vertical space after \hline causes a gap in the right border of an array

I wanted to put a bit of space after an \hline in an array; the main suggestion floating round the Internet seems to be to use \hline \\ [-1.5ex] Unfortunately, this causes a gap in the line on the ...
8
votes
1answer
886 views

Amount of space between text and a line containing a \rule

If a \rule is placed below a line of text, some space is inserted between the line and the rule. Usually, the amount of space appears to precisely add the difference to the height of the current font ...
15
votes
3answers
8k views

Dynamic signature/date line

I'm trying to create a signature and date line in a document. I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as: ...
6
votes
3answers
1k views

Center-justify with hrule above and below

On my title page, I have something like this: \rule{\linewidth}{0.25mm}\\[0.25cm] \huge \textbf{This is my title, it is somewhat long and split over two lines!}\\[0.25cm] \normalsize ...
7
votes
1answer
4k views

How do I increase the spacing between header text and the 'headrule' line with fancyhdr?

This is going to be something so obvious that I'm almost embarrassed to ask! I've been using fancyhdr to put some fancy headers and footers in my thesis template – in fact, doing what it says on the ...
5
votes
2answers
3k views

Vertical space between horizontal lines

I have defined a macro for 2 closely spaced horizontal lines, \newcommand{\myline}{\par\noindent% \rule{\linewidth}{1.5pt} \\[-0.80\baselineskip]% \rule{\linewidth}{0.8pt}} Now I noticed that when ...
3
votes
1answer
175 views

Reduce vertical space at the bottom of a 'ruled' 'newfloat'

I have defined a custom float using the newfloat command from the float package. My custom float uses the ruled style, defined in the same package. This is a minimal example of what I'm doing: ...
4
votes
1answer
459 views

Theorems and Definitions as quotes

Most standard styles highlight theorems and definitions using italics. Now this is something I really would like to avoid in my thesis (and generally). Unfortunately, if I just remove this "feature", ...
5
votes
3answers
3k views

tabular* with rubber spacing and \cline

I'm using a tabular* with rubber spacing to fill the complete width of the page. This works fine, except that when I use \cline, the line is not complete. It seems that \cline does not cover the ...