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

6
votes
2answers
37 views

Relational Operator spacing problem with alignat

I have not asked a really embarrassing question in a while, so thought it was time :-). I am stumped as to why the spacing around the = on the third line is incorrect: Notes: I realize I am ...
2
votes
4answers
59 views

Aligned \description

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage[utf8]{inputenc} \begin{document} \noindent Let us define: \begin{description} \item[$C_{DEP}$] (\euro) depreciation of the machine. ...
2
votes
1answer
58 views

How to change author alignment in Beamer?

It appears that different classes set up author layouts using tables. I would like to render one of these outputs: Equivalent to \begin{tabular}{rl}: Joe Schmoe My Boss Jane Doe His Boss or, ...
4
votes
1answer
30 views

Using \multispan in plain tex to give a caption to an array

I am trying to modify some code that WeBWorK uses to generate pdf hard copies of students' online math assignments. My aim is to improve WeBWorK's accessibility. My task at the moment is to endow ...
4
votes
3answers
133 views

Indenting Text in Beamer

I am attempting to indent text, as below. To get the alignment right (and it's far from perfect right now), I've been using trial and error with a linebreak \\ and \hspace{3.1cm}. Is there a ...
2
votes
1answer
54 views

How to center text in a schemabox?

I would like the text in the nodes between the arrows to be centered rather than left aligned. Using \centering or \begin{center} ... \end{center} around the minipage or setting text align=center in ...
9
votes
4answers
152 views

How to start a new line in \boxed{}?

I have: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{dsfont} ...
3
votes
1answer
38 views

Reduce size and justify font of caption using memoir

I try to reduce and better align my caption text (and not the automatic label "figure.") text with memoir. I try this this without success, and i search in the memoir documentation, and try some ...
1
vote
1answer
53 views

textsuperscript and hash symbol [duplicate]

How can I get a text superscript of the hash (#) symbol in Latex to work? I tried \textsuperscript{\#} to no avail. I should have been more specific in my question. I am using \usepackage{fontspec} ...
0
votes
1answer
63 views

How to have an image on the left-hand side and text (with mathematics) on the right-hand side which are horizontally aligned in beamer?

Doing a presentation with an image of a graph on the left-hand side and the mathematics behind the graph on the right-hand side and I want them horizontally aligned. Thanks.
3
votes
1answer
35 views

Align horizontally side by side equations [duplicate]

I would like to align these two side by side systems of equations horizontally. I tried to do this like this \documentclass[12pt,letterpaper]{article} \usepackage{amsmath} \begin{document} ...
5
votes
2answers
79 views

Bump right-aligned text to next line iff no room within a \savebox

This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a \savebox. In my actual use case, ...
2
votes
2answers
63 views

How to left align items in itemize that contains columns environment on beamer

I need to automatically left align all my items. The problem is that I must have a columns environment in the middle. But that environment shifts the items to the left. I tried setting ...
4
votes
1answer
48 views

Trouble Indenting Portion of document

This is my first time giving LaTeX a try, and I decided to have my go at it with my week's math homework. Though most of the document could probably be done in a more efficient manner, I've gone about ...
1
vote
1answer
46 views

Unwanted right indent in document

Super noob here, so please forgive any blunders! :) My problem is that in my document (example below), the paragraph starting from the second dingbat is getting indented automatically. I don't want ...
7
votes
1answer
199 views

Overlay two .tikz files from input

I have some plots generated from matlab2tikz which I would like to overlay. Each plot is a seperate .tikz file which I input using \input. My code currently is: \pgfplotsset{ every axis/.append ...
5
votes
1answer
115 views

What causes this beamer block to be slightly offset to the right?

I'm facing a problem with the block environment in beamer. Adding a tikzpicture seems to offset the following block slightly to the right. What is causing that behaviour and how can I prevent it? ...
2
votes
1answer
43 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
124 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
48 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
62 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
38 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
37 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
45 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
65 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
62 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
61 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
48 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
110 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
312 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
86 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
58 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
110 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
77 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
78 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
77 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
41 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
69 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
64 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
103 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
43 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
42 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
127 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
23 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
59 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
92 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 ...
8
votes
2answers
103 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
134 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
92 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 ...