{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
1answer
286 views

tcolorbox Spanning Two Columns in {paracol} Environment

The paracol environment allows figures to span two columns by using an asterisk in the figure's environment declaration: \begin{figure*} ... \end{figure*}. I'm not familiar with the guts of why that ...
1
vote
1answer
79 views

Horizontal and vertical alignment of an element to the centre of a whole page

I am trying to place a code frame generated with listings package in the middle of a page both horizontal and vertical. How can I do it? Edit I: My code is this: \documentclass[12pt]{article} ...
5
votes
1answer
134 views

Put a {forest} tree inside a {philex} enviromnent

I use the forestpackage to draw linguistic trees, and the linguexpackage to create numeric examples. But there seems to be a problem when I combine the two. The tree is not aligned with the number of ...
1
vote
0answers
115 views

How to arrange/aligned the choices in MCQ type question?

This is my second time that I am asking your help. Last time I post one of my query regarding the nesting of files and sub files when I was preparing my book on a MCQ type for mathematics. And I got ...
3
votes
1answer
67 views

Fixed In-line Indentation [duplicate]

I want to align content that starts in the middle of a line and content that starts at the beginning of the next line (for a thesis Authorization to Submit page). E.g.: Major Professor: ...
4
votes
2answers
217 views

Memoir footnotes in margin with ragged2e

I would like to set up memoir so that when I use \footnote{foo}, foo is displayed in the margin with the proper label and preferably break over pages. There is an option \footnotesinmargin which ...
6
votes
2answers
73 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
112 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. ...
4
votes
1answer
366 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
87 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 ...
5
votes
3answers
1k 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
102 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
265 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
122 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
500 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
217 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
1k 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
142 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
226 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
61 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
87 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
305 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
236 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
93 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
157 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
63 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
143 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
52 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
43 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
75 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
97 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
67 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
110 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 ...
2
votes
1answer
156 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
168 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
333 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
259 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
172 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
190 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
331 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
106 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
98 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
48 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
151 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
81 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
301 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
83 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
84 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
198 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 ...
2
votes
0answers
29 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: ...