{horizontal-alignment} is about aligning document elements horizontally, e.g. typesetting paragraphs using \centering or \raggedright or adjusting the horizontal position of several equation or table components. If your question is generally about (horizontal) white space, use {spacing} instead.

learn more… | top users | synonyms (6)

3
votes
2answers
327 views

Figure with long list of predicates and conjunctions (\wedge)

I have a figure with a long list of predicates connected with \wedge, here is the code: \begin{figure}[h] \small{ $ Defined\_in(subject\_state, concrete\_subject) ...
1
vote
2answers
176 views

How to align some lines under tabular?

I am using tabular, and I would like to realize something like that: word1 word2 word3 word4 longerword5 word6 word7 word8 So word1,2,3,4,6,7,8 are well aligned, and I do not ...
5
votes
1answer
566 views

CurVe document class: alignment issue with subrubrics

I have the following issue with the alignment of subrubric titles in a résumé written with the CurVe class by Didier Verna. When the rubric & subrubric titles are aligned left via options in the ...
2
votes
1answer
362 views

How do I make the text in the following figure white and center the figure?

How do I make the text in the following figure white and center the figure? %% LyX 1.6.9 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you ...
7
votes
2answers
16k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
3
votes
1answer
647 views

How to make pgfplots to center a text in a xticklabel

In pgfplots I've used the text width option in the definition of xticklabel style and I wonder how to center the labels text?
2
votes
1answer
906 views

Format caption in figure

I have a question which concerns text formatting in captions and also in sections. For example when I type: \begin{figure} something \caption{this is some caption text and it probably may be quite ...
3
votes
1answer
113 views

alignment of symbols [duplicate]

I tried to align the equation and have some text on the equal sign. But it turns out that the equal sign that has text over it is no longer aligned to previous one anymore (I believe it is the text ...
9
votes
1answer
1k views

How to have a figure touch the edge of the page?

How can I position a figure (picture) so that it: is aligned on the left-hand side with the text (this is in two column page) touches (or exceeds) the right-hand side of the page? An example can ...
6
votes
1answer
1k views

Centering a gnuplot figure properly

I use gnuplot and its epslatex terminal. When I include a gnuplot-generated figure in my document and center it as usual, it often appears shifted right — because the labels on the left contribute to ...
3
votes
1answer
156 views

Wrong display when I have more than 9 chapters in ToC

I'm in a really bad situation with my ToC in the book that I write. Everything is fine until the 9th chapter. There's the "9", some space and then the name of the chapter. But on the 10th (or more) ...
1
vote
2answers
2k views

Centering an image and a two-column layout.

Here's what I'd like to do. Place a centered image, and then have two columns of text centered below it. I did the following: \begin{center} \includegraphics{image} \begin{multicols}{2} lots of text ...
1
vote
3answers
2k views

Center-align text in columns in tabular environment in multicol environment

I need the text in the second two columns to be center-aligned. I also need someone to please help me clean up this table. It looks ugly. Notice it is inside a multicolumn (2-column) environment, ...
2
votes
2answers
793 views

bibtex large spacing

I couldn't find a solution to my problem searching. Apologies if it has been asked before. My problem is: on a few of my bibliography entries, there are massive spaces in the text to pad out the ...
7
votes
2answers
2k views

Line break in the table item

I am creating table in LaTeX and I need to get the text to perform line break automaticaly when it's too long. And if possible, I'd like to get the text alignment to the left. Is it possible to handle ...
8
votes
1answer
947 views

Align siunitx numbers in a tabu table

The minimal example below gives me a strange offset in numbers with exponential numbers. I think tabu and siunitx are getting in each others way. Is anyone aware of a workaround? ...
8
votes
2answers
1k views

ragged2e: “newcommands” option produces “underfull \hbox” warnings

The ragged2e package provides the commands \Centering, \RaggedRight and \RaggedLeft for setting ragged text while allowing hyphenation. The package offers a newcommands option that sets the standard ...
2
votes
5answers
586 views

inline bracket, similar to a permutation and binomial, but aligned

I'm often experiencing instances, when I need to define a function on two sets in a domain. I'd like to create a command \newcommand{\func}[4]{...}, which makes an inline bracket, that shows how the ...
2
votes
1answer
1k views

Aligning bmatrix-matrices next to each other?

I have this code: \[ \begin{bmatrix} Pagerank&Sidnummer\\ 0.068945&2\\ 0.068945&3\\ 0.076517&1\\ 0.076517&4\\ 0.11536&7\\ 0.11536&8\\ ...
2
votes
1answer
1k views

Table Cell Alignment - Last Column 'Misbehaving' - Simultaneous Vertical and Horizontal Alignment Problems

I am going a little crazy with alignment in the tabular environment. In the following code I would like both the top-left cell 'Green Die', and the last cell in the 2nd row '6' to be aligned ...
7
votes
2answers
2k views

Centering a TikZ picture around an area

I often find myself in the following situation: A tikzpicture of mine consists of a main area and some outer material like text labels which are hardly symmetric around the main area. If such a ...
15
votes
3answers
1k views

Is there a way to measure the remaining space of a line of text?

I'd like to write the following: Some long paragraph of text \measureremainder{\whatsleft}\begin{mimipage}{\whatsleft} stuff \end{minipage} so that the minipage takes up exactly the remaining ...
2
votes
1answer
246 views

How can I build a box with multiple lines of content with two anchors?

I'm trying to create a macro \AST (or an environment, if that helps) that will let me typeset abstract syntax trees, in the following way: \AST{A}{\AST{B}{C\comma D}\comma E\comma \AST{F}{G}} should ...
2
votes
3answers
271 views

How to align some lines under {align*}

I usually use \begin{align*} and \end{align*} to align some texts. Here is a special case I would like to realize: abcdefghijklmn hijklmn opqrstuvwxyz hijklmn There are 2 rules: 1) I want to ...
2
votes
1answer
484 views

right-aligned table from csv

I have a csv file formatted like this one: "","head 1","head 2","head 3" "count 1","23","24","25" "percentage 1","23%","24%","25%" "count 2","53","54","55" "percentage 2","53%","54%","55%" I'm ...
6
votes
2answers
5k views

Left-alignment like Fleqn-option only for specific equations

I want to left-align some equations. (Note: I want to align the equations themselves, not code inside of the equations.) I have the following example code: \documentclass{scrartcl} ...
3
votes
4answers
1k views

How do I align a pgfplots graph?

I'm trying to draw a graph with the associated table of data using pgfplots. It works great, but the graph itself isn't aligned with the table. This is what it looks like: I don't like the ...
1
vote
2answers
1k views

Right Align Equation Number with hfill in Custom Environment

I have a couple of custom environments that I want to be able to use \hfill to right align the last column (similar to what {align} environment does with equation labels}. I attempted to use \hfill ...
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 ...
62
votes
3answers
21k views

Center figure that is wider than \textwidth

I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the ...
19
votes
3answers
1k views

LaTeX word wrapping poorly

LaTeX is not word wrapping this anything close to sanely: \documentclass{article} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{geometry} \usepackage{lipsum} \geometry{margin=1in} ...
2
votes
1answer
932 views

Aligning multiple tables

I have several tables I'd like to align, but it comes out messed up. I'm using revtex4 for my general layout (two column), and I have this: \begin{tabular}{|c||@{\hspace{12pt}} c ...
14
votes
2answers
10k views

\hfill after linebreak

I have a simple text. Right after the end of the text I use \hfill to get some words right aligned. \documentclass[11pt]{article} \begin{document} Lorem ipsum dolor sit amet, consetetur ...
5
votes
1answer
339 views

Test if text fits on one line

I have a boxed text that is justified, but I would like to make it centered if it takes only one line. Currently, once the text is rendered, I add a \filcenter as an option to my box macro, but I'm ...
1
vote
1answer
1k views

Figure caption indent problem

The last lines of my figure captions are indented too much or centered. I use floatrow package which usually doesn't conflict with LaTeX. Is it possible to fix this? My preambles are as follows: ...
3
votes
1answer
297 views

Problem with babel, ragged2e and parbox

I have the following code: \documentclass{minimal} \usepackage[french]{babel} \usepackage[newcommands]{ragged2e} \begin{document} \begin{center} \parbox{9cm}{ \textsc{ Jesus a dit~: \og ...
11
votes
2answers
10k views

How to force to center the table captions?

i want to center the table captions.
6
votes
2answers
954 views

Underfull hbox with \hbox to <dimen> but not with \halign

When using the \halign primitive, cells in the same column all have the same width. Hence, if one entry is very large (abcdefg below), the others will be stretched to the same size. If an entry ...
3
votes
1answer
889 views

line-breaking in longtable

I'm using the longtable environment with the field p{0.5\textwidth}. The text on that field is set with very odd spacing, because latex attempts to justify it both for the left and right column ...
4
votes
1answer
726 views

Exact position of a node in a rectangle

This question led to a new package: fancytabs I have a node positioned in a shaded rectangle with: \newcommand{\tabstyle}{\Large\scshape} \newcommand{\tabheight}{4cm} ...
3
votes
2answers
838 views

Centered-justified style

Is there a text style that is centered and places words on lines in such a way that it looks justified on the left and right sides? I'm not looking for a fixed justified text, but kind of boxing whose ...
24
votes
2answers
9k views

Line breaking of URLs in bibliographies

I have a problem with the line break of an URL. The URL can´t break correct and extends into the border. I´ve tried some things. Amongst others I loaded the package breakurl, but without any success. ...
5
votes
2answers
369 views

Is it possible to tweak the alignment of an equation when it is broken using breqn?

I have a looooooooong displaymath that I'm using breqn to break into smaller chunks. As there are no actual relation symbols, I've manually added \allowbreak everywhere I'd be happy for one to occur ...
4
votes
2answers
1k views

Alignment accross multiple arrays/vectors

I want to align multiple vectors (horizontal arrays), each on a separate line. Specifically, some values are negative and some positive, and some have a decimal part and some not. I want to align ...
1
vote
1answer
617 views

Pagenumbers aligned raggedleft in scrartcl with tocstyle?

When trying to typeset a table of contents with KOMAscriptand tocstyle(alpha 0.2d), I finally managed to change the font of the pagenumbers (like the rest of the document to CMSS) with ...
5
votes
2answers
347 views

Creating a table that uses all available space

Is there a way to use tabular or some other method to create a table that expands to use the entire available space? So if I created a table with 4 rows, each row would use 25% of the space. Thanks! ...
5
votes
2answers
2k views

Draw horizontal line left and right of some text (a single line)

I want a horizontal line to the left and right of some text, that is at most one line wide. The lines should be equally sized such that they fill the remaining horizontal space (like two \hfills in a ...
2
votes
1answer
4k views

Centering Text using multirow that overflows onto multiple lines

I am trying to create a table where one column has multiple rows. This is very easy to do using the multirow package. However, if I specify a width for this \multirow and my text overflows, the second ...
3
votes
1answer
804 views

Changing the alignment of chapter headings and quotes in quotchap

How can I change the alignment of chapter headings and quotes in quotchap without modifying the .sty file? More specifically, I would like left-align the chapter headings and right-align the quotes.
3
votes
2answers
362 views

Macro to allow for alignment points within its argument

I would like to have a macro that allows for alignment points inside it. As a specific example, I would like to be able to say: \begin{align*} a &= b\\ \bracr{c &= d} \end{align*} ...