{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)

2
votes
1answer
50 views

Minitoc numeration overlaps with subsection titles

I have long minitoc numeration depth \setcounter{minitocdepth}{3}. I have a problem with it: \documentclass{report} \usepackage{newcent} \usepackage{minitoc} \setcounter{tocdepth}{1} ...
9
votes
1answer
139 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
5
votes
1answer
52 views

How do I maintain structure in structured output?

I am trying to ensure output from a Linux command - which looks like: Into a LaTeX document with the same column structure with the output headers lined up with the output sections on the next ...
1
vote
1answer
75 views

Putting a number on the right hand side without using the equation or align environment? [closed]

I have a couple of lines which I wish to number and I'm hoping for something like: Text... \alignright{1} or something like that if it exists to produce Text... (1)
0
votes
0answers
46 views

Using the semantic package. How can I properly align proof derivations?

I am using the package semantics to write logic derivations, such as the following: $$ \inference{\neg \phi \vee \neg \psi& \inference{\inference{\inference{}{\phi \wedge \psi}[2]}{\phi} & ...
3
votes
2answers
39 views

How to place tabs [duplicate]

I want to generate these lines: GREATER(x,y)=true =false If i itemize it i get : GREATER(x,y)=true =false
3
votes
2answers
58 views

How to align terms in alignat environment (follow-up)

This is follow-up on the similar question. I still cannot figure out where to put ampersands on alignat environments. :( Here is what I generated. To enhace the readability, I want to customize ...
6
votes
2answers
75 views

Tabbing/horizontal placement with labeled equations

I have a string of equations, each with a label that I would like to format nicely. I want the equation labels to be at the same horizontal position and the start of the equation to be at the same ...
3
votes
1answer
64 views

Placing an object at the end of the line

I'm new in LaTeX and I'm currently faced with a problem of placing an object at the end of the line. E.g. {equation} (1.1) I wish to place (1.1) at the end of the line, and I've searched around ...
3
votes
2answers
77 views

Tikz aligning text in nodes

I am working on a Tikz picture of a calendar. The headings of the calendar are the months and I add them with nodes. But they aren't aligned. \begin{tikzpicture}[scale = 1.3] \path (0,0)node[minimum ...
0
votes
0answers
37 views

How to align equations left? [duplicate]

Today,I want to make my equations align left. My trial:I use the commandflushleft \documentclass[a4paper,cs4size,UTF8]{ctexart} \usepackage{amsmath} \begin{document} \end{flushleft} ...
2
votes
1answer
70 views

Center chapter name in the table of contents

I am adding chapter name for a set of sections with the following code: \addcontentsline{toc}{section}{\protect\numberline{}Chapter I} However, Chapter I is left-sided. What I want is something ...
5
votes
3answers
121 views

Centering an asymmetric tabular

I'm trying to center a payoff table asymmetrically but I give up and I ask to you. The problem is that this type of table appears different than how LaTeX sees it. In fact, the first column should not ...
9
votes
4answers
324 views

Center table by end of cell

I want to be able to center my table, but align the center by the end of the first cell. Currently just using the \begin{center} command i am able to center the table but i would rather the table be ...
6
votes
2answers
135 views

Small (half width) framed table of contents

I am writing a 4-5 pages article document, and a full-width, traditional table of contents really feels over the top and would take up too much space, but I still feel a toc is really great to show ...
1
vote
1answer
92 views

Centering Xcircuit Figure

Hi I am using a program called xcircuit to make circuit diagrams and I cant seem to get the figure centered. I have tried \begin{center}, \centering. I have tried messing with \flushleft but it needs ...
6
votes
3answers
144 views

LaTeX errors in Formatting

I want to print this text : make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg But I feel because of the underscore , LaTeX generates an error missing $ inserted and it doesn't print it as well. ...
4
votes
2answers
114 views

How to make a minted code listing centered on a page?

So, I am writing a report with Prolog code listings in it. I have been using lstlisting to make my listings and I made my code centered on the page, such as this: \renewcommand{\figurename}{Listing} ...
5
votes
2answers
81 views

Tabbed enumerate that is aligned with previous line

I would like to be able to replicate the following image. I am not sure how to force the enumerate to align after $M_2 =$. Could anyone provide an example replicating this?
7
votes
4answers
89 views

How can I reuse the same table alignment specifications in many tables?

\documentclass{article} \usepackage{array} \begin{document} \begin{table} \begin{tabular}{|>{$}c<{$}|>{$}c<{$}|} 1 & 2 \\ \end{tabular} \end{table} \begin{table} ...
3
votes
0answers
42 views

Right alignment issue [closed]

While writing my thesis, I see that if a mathematical formula or equation does not fit in the current line, LaTeX automatically shifts the whole formula or the equation to the new line instead of ...
3
votes
4answers
94 views

Alignment of entries in matrix

I have this pmatrix (amsmath package): \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} \frac{a}{b} & \frac{a}{b} & 0 & ...
4
votes
3answers
71 views

How can I make a single-aligned row under two double-aligned rows in an equation?

I have an equation that I would like to align like this (the x is actually \times): A = BBBBB CCCCCCC x DDDDD = EEEEEEE FFFFF I have tried the align environment, align with nested ...
7
votes
1answer
167 views

Table not wider than text, same columns' width, decimal alignment

I'd like to get the same width of columns labeled 1-10 (all except the first one ~ Name of X) be able to adjust the position of "name of Y" (have it centered or on the left. Right now, it's ...
2
votes
1answer
55 views

How can I center Flashcards vertically, but not horizontally?

I'm currently experimenting with flashcards (the learning technique as well as the LaTeX document class) and flashcards seems to be pretty nice. But I could not find an option to center my ...
2
votes
2answers
53 views

Centering just one line in a multi-line caption

There are multiple questions already answered for centering an entire caption, but my problem is that I wish to just \centerline or \begin{center} ... \end{center} just one line in a multi-line ...
3
votes
3answers
148 views

How do I horizontally align equations with graphical calculus?

I have a graphical proof in category theory that I wrote with TikZ and the align environment (Thanks to Henri's answer in this question). The diagrams on each line have a recurring feature, a vertical ...
1
vote
0answers
25 views

Indentation in verse environment [duplicate]

I have to typeset a bit of verse in which certain lines are indented to approximately the length of the preceding line, as in these lines from Romeo and Juliet. I tried to use \phantom, like so: ...
2
votes
1answer
66 views

Problem with indentation and alignment [closed]

I am writing my thesis in book document class. The command \indent is not working. Also, the lines are not aligned on the right side. What could be the problem?
4
votes
2answers
205 views

Align an equation box found inside an algorithm

I'm writing an algorithm that has an \begin{equation} inside it. I want the whole equation to be aligned to the left, as any typical text block would be aligned if written inside the algorithm ...
9
votes
2answers
119 views

Preventing line shrinking with raggedright

Sometimes with \raggedright, if a line is too long, but only slighly so, it will be shrunk instead of broken up. Here is an example: \documentclass{article} \raggedright \begin{document} This is a ...
4
votes
1answer
160 views

How can I horizontally align checkmarks in a table column?

In my table I use different combinations of a checkmark standing alone, in parentheses, or with an asterisk. I would like to have a centered column in which the checkmarks align. By using the package ...
2
votes
1answer
262 views

How to center column values in a table?

How can I center the column values in this code? \documentclass[conference]{IEEEtran} \begin{document} \begin{table} \centering \begin{tabular}{|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline ...
1
vote
0answers
59 views

Number-Alignment with siunitx in tables [closed]

Update... after a update to recent version of siunitx, everything is fine now. Thanks a lot @daleif and @crissov :-) \documentclass[ngerman,a4paper]{scrartcl} \usepackage[utf8]{inputenc} ...
3
votes
2answers
87 views

How to left align text in two column itemize

When I use following MWE for getting itemized text in two columns, the item in the list sometimes take a "justified" formatting and thus there is significant space in between two words. This produces ...
1
vote
1answer
53 views

subfloatrow: centering single subfigure

In the example below, how can I center the third figure (C)? \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usepackage{floatrow} \usepackage{subfig} \begin{document} \begin{figure}[htbp] ...
3
votes
1answer
79 views

How do I centre my title properly

The title "NAME" seems to be shifted slightly to the right when I use this code, is there a fix to this? \documentclass[11pt]{res} %Sets the default text size to 11pt and class to article. ...
4
votes
1answer
554 views

Putting Figures Side-By-Side Using Minipage

I am trying to put two figures next to each other. However, it is not working. Here is my code: \begin{figure}[h] \centering \begin{minipage}{1.0\textwidth} \centering ...
2
votes
2answers
41 views

Trouble aligning partial header in table

I want the "n" to be centered over the 50? How can I achieve this? \begin{tabular}{lccc} \hline \multicolumn{4}{c}{Condition Numbers} \\ \multicolumn{3}{r}{n} \\ Correlation ...
7
votes
4answers
315 views

left position math formula

I try to write down the following equation: \begin{equation} \begin{flalign*} \left \| \vec{r}_1 - \vec{r}_2 \right \| = \\ \sqrt{( r_{1,x}-r_{2,x} )^2 + ( r_{1,y} - r_{2,y} )^2 } = \\ \sqrt{( ...
2
votes
1answer
63 views

Center narrow columns under wider caption in ctable

I have a narrow table but a long-ish caption. Rather than run the caption to several lines, I have set the ctable width to 0.5\textwidth. However, the two narrow table columns are now set to the ...
4
votes
1answer
76 views

Centering numbers in table

I would like to generate table which looks approximately (not necessarily) like If you have any suggestion for this sort of data representation, don't hesitate to tell. So far I have come up with ...
7
votes
1answer
159 views

Center over-long equations between both margins

I understand the reasoning behind the fairly narrow textwidth in a default LaTeX article. 60-80 characters per line and all that. However, I am preparing a document that features many lengthy ...
7
votes
2answers
203 views

Number alignment in tables with some values in partial boldface (all but the decimal point)

I want to align decimal values in a table with some values printed in bold. Just by itself, this is no problem. We can use the siunitx package and \robustify\bfseries to do the trick as described, ...
2
votes
2answers
222 views

Horizontal text alignment in captions for subfigures

Captions in subfigures are justified by default, which does not always look pretty: \documentclass[]{tGIS2e} % http://www.tandf.co.uk/journals/authors/tgislatex.zip \begin{document} ...
3
votes
3answers
82 views

Fixing alignment in equations

I wish to get a more typical alignment (I hope this obvious) than what I am getting with the following code: \[ ...
1
vote
1answer
105 views

Align table side by side with graph

I'm trying to get my csv table aligned to the left of my graph. The graph is appearing below (and indented) the table. Any ideas? \begin{minipage}{0.5\textwidth} \pgfplotstabletypeset[col sep=comma, ...
2
votes
1answer
131 views

Split lines, keep a table/aligned text within textwidth and span several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to span ...
15
votes
2answers
933 views

Placing TikZ drawings in a minipage side by side

I've some problems with aligning some drawings I made with TikZ: I want these two TikZ pictured below to be displayed side by side with the two captions being on the same horizontal level. ...
5
votes
2answers
100 views

Align glosses in more than one language with gb4e

I'm using the package gb4e to gloss my linguistic examples. It nicely aligns the words in the original language with its glosses. But this alignment does not extend beyond the first line of glosses. ...