4
votes
4answers
126 views

How to get a properly centred horizontal rule?

I'm trying to produce a horizontal rule 2/3 the textwidth and centred. It's much harder than expected, as it pulls to the left. I've tried putting noindent but that makes it worse, as this MNWE shows: ...
6
votes
1answer
66 views

How can I fill a line from the left?

I am fiddling with various ways of filling a line with a vertically centered line and experimenting with the answers here: http://stackoverflow.com/questions/2553392/latex-rule-filling-the-line and ...
3
votes
1answer
103 views

Proof package: lines too short

The proof package's \infer command automatically sizes the lines it draws. However, it isn't always right (pdflatex output): The line is too short on the left. Is this a package ...
4
votes
1answer
3k views

Center hrule in the middle of the page

I would like to center a horizontal line on my page and I would like the width of this line to be half \textwidth. Here is what I tried but it doesn't work : \documentclass[10pt,a4paper]{article} ...
11
votes
1answer
209 views

Alignment rules

I find myself quite frequently in the need to check whether some elements on my page are aligned exactly as intended. As a result, I usually end up magnifying the output 400% and using a rule over my ...
6
votes
3answers
1k views

Misalignment of \vrule

I have been writing my thesis and there is this one problem that I cant seem to figure out why it happens: The following is a segment of the code from my thesis style sheet. This defines the first ...
1
vote
1answer
727 views

\hrule screws up minipage right indent

\documentclass[12pt]{article} \usepackage[ top=0.75in, bottom=0.75in, left=0.75in, right=0.75in, textheight=8.75in ]{geometry} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} ...
4
votes
1answer
876 views

\rule command constructing line not extending far enough left

I am trying to put a horizontal line between homework problems, like this: \begin{description} %stuff . . . \rule{\linewidth}{0.4mm} \item[Exercise 1] %stuff \rule{\linewidth}{0.4mm} ...
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 ...
1
vote
2answers
1k views

LaTeX table: line thickness varying and incorrect horizontal alignment

This LaTeX source ( http://pastebin.com/3HdpbQi5 ) yields two types of errors ( http://i.stack.imgur.com/4J87t.png ): The line thickness of the table borders in the primary header row varies and the ...
5
votes
3answers
2k views

Why are the lines around my multicolumn cell misaligned?

In the following table, why does the double line before the diff column not go through? I guess all the multicolumn{1} are wrong? How can I fix it? \begin{table} \centering ...
4
votes
2answers
675 views

How to overlap two adjacent edges of 2 framed minipages placed side by side?

How to overlap the adjacent edges? In other words, the adjacent edges should be combined into one edge shared between to minipages such that all rules will have the same thickness. ...
15
votes
3answers
2k views

How can I put a line above a section heading and prevent a page break between?

We have designed a class for some journal. We wanted our section titles to be separated by a horizontal line from the previous line. Here is the code: \def\section{% \vskip 1.2\@bls% \hrule ...