{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
2answers
900 views

Problems with bottom margin and alignment of text

1.) The space between the page number and the text margin is too small and I'd like to adjust it. Somebody recommended, the geometry package, e.g. \usepackage[ top = 2.75cm, bottom = 5.50cm, left ...
1
vote
0answers
521 views

Vertical/Horizontal alignment for multi-line header [closed]

I have the following code to create my header \documentclass[english]{scrreprt} %%% PAGE DIMENSIONS \usepackage{geometry} \geometry{verbose,a4paper,tmargin=3.5cm,bmargin=2.5cm,lmargin=2.6cm,rmargin=...
2
votes
2answers
4k views

Multiline formula with each column left-aligned

I am using LyX and I want a multiline and multicolumn display formula with each column aligned to the left. But when I add a formula and add columns, some are aligned to the right and some are ...
5
votes
1answer
2k views

Alignment in algorithmic environment

I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I ...
2
votes
3answers
3k views

How to center align the whole table?

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
0
votes
2answers
205 views

How to center align the whole table? [duplicate]

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
1
vote
1answer
118 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...
13
votes
4answers
5k views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
4
votes
2answers
290 views

How to change ledmac's paragraph footnotes from justified to ragged

How to change ledmac's paragraph footnotes from justified to ragged ? They seem to be justified by default, but I need them ragged left. Probably needs a redefinition of \parafootfmt, but I don't know ...
1
vote
1answer
337 views

Aligning Decimal Points in Columns [duplicate]

I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
5
votes
2answers
2k views

Nomenclature not aligned

I have a nomenclature section in my paper where I defined my symbols. For example: \documentclass[twocolumn,10pt]{asme2e} \addtolength{\textwidth}{-1pt} \usepackage{graphicx} \usepackage{amsmath} \...
3
votes
1answer
223 views

Globally set the justification in a framed box

I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
4
votes
1answer
867 views

No correct centering when a line break is used

I have a centering environment inside a figure. In this environment, I have a text written in a footnotesize style. If I make a line break (\\) in the text, then the text is not centered correctly ...
2
votes
1answer
573 views

Text Alignment in paragraph box

I'm writing graphic application to generate latex tex. I'm making to generate text box with all it's features. Rotation alignment so on. I generated following cording but It was not Right aligned ...
2
votes
1answer
156 views

Make the titles centered using the titlesec package

I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
9
votes
1answer
2k views

One-line equation with two columns

I try to write an equation with two similar formulas, i.e. \begin{equation} \qquad A_1 = B + C \qquad A_2 = D + E \qquad \end{equation} Of course, instead of \qquads I want to use something like \...
2
votes
1answer
375 views

Spacing in flalign affected by mathpazo

I got the following (partly shorted) equation: I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side. \documentclass[ a4paper, ...
1
vote
2answers
1k views

Caption format changing

I want my captions of figures to be formated like this: 1 pav. First Caption 2 pav. Second Caption Furthermore, I need my captions to be centered. How can I redefine this?
3
votes
1answer
650 views

Remove indent from table environment, and center-set the resulting table

How can I center my table if I'd like it to be ´1.5\textwidth´? \documentclass{amsart} \usepackage{graphicx} \usepackage{booktabs} \usepackage{ctable} \usepackage{tabularx} \usepackage{rotating} \...
2
votes
2answers
199 views

Problems with centering

I define the command \newcommand{\rec}[2]{\begin{center} {\fboxsep 8pt \fcolorbox{RoyalBlue4}{LightYellow2}{ \begin{minipage}[t]{15cm} \textcolor{RoyalBlue4}{\large{\textsf{\bf #1}}}\\ #2 \end{...
2
votes
2answers
2k views

How to horizontally top-align multiple \tikzpicture's without using \hspace?

The use case I'm having is the following: \documentclass{article} \usepackage{amsmath} \usepackage[showframe]{geometry} \usepackage{qtree} \begin{document} \Tree [.A B C [.D E ] ] \Tree [.F [.G H ]...
6
votes
0answers
748 views

Overlapping label and text in description environment [closed]

I'm relatively new to LaTeX, and I am having this problem with the description environment: \documentclass{article} \usepackage{amsmath} \usepackage{bm} \usepackage{IEEEtrantools} \usepackage{amsthm} ...
4
votes
3answers
2k views

New environment with center and parsep

I want to make a new environment where the content is centered and where I can specify a local parsep value. My attempt to make this work is the following: \documentclass{article} ...
3
votes
1answer
106 views

Alignment spacing for negatives - Why am I unable to properly align my equations?

Although I searched the Web and indeed found an answer here, I still seem unable to address my issue of aligning two rows in my step-by-step process for solving a very basic equation. Just in case it ...
1
vote
2answers
2k views

How to right align content of pbox?

Lets have simple \pbox example like this: \documentclass[twoside]{book} \usepackage{pbox, calc} \begin{document} \noindent\fbox{\pbox{\textwidth}{Some text\\Text}} \end{document} Here is printed ...
11
votes
2answers
353 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
5
votes
1answer
306 views

How to modify the package 'newspaper' so that the heading is perfectly centered? And how to change the heading's font?

This is the newspaper package that I've modified to remove the quote and location at the beginning of the title page and I have modified the side margins so the left side's margin is (roughly) equal ...
10
votes
3answers
11k views

Centering figure captions in IEEEtran

I am working on a paper using the IEEEtran template in LyX. I have run into a problem: While the contents (in this case, a table) of the figure float are centered, the caption is aligned to the left (...
5
votes
3answers
270 views

How can I do this without the cases?

How can I do this without the cases? $\begin{cases} \dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\ \dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial v(x,y)}...
9
votes
3answers
363 views

Nicer alignment of x^*/2

I'm trying to typeset $\frac{x^*}{2}$, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following: \documentclass{article} \begin{document} \begin{equation} \...
2
votes
1answer
227 views

Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?

\documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage{qtree} \declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example} \declaretheorem[name=...
6
votes
1answer
703 views

Centering a dirtree

I would like to center a directory tree produced by the package dirtree but the following code fails. Just look at the 2nd tree... All the texts are centered. :-( M(not)WE \documentclass{scrartcl} ...
1
vote
1answer
356 views

Problem with sizing side-by-side minipages

I've been writing up my resume in LaTeX (for the flashiness and also to get better with LaTeX), and I've been having some trouble with one of the macros I wrote, called \nrccolstring. \nrccolstring ...
2
votes
1answer
315 views

Horizontal margincaption alignment using floatrow

I want to switch from sidecap to floatrow in putting figure captions in the margin. When using sidecapthe text is perfectly positoned within the margin. When i use floatrow there is a slight shift. ...
4
votes
1answer
1k views

Center subfigure using floatrow

I'm working with caption and subcaption to style my (sub)figure captions and especially with floatrow to center my figures. However, this does not work for subfigures, as the following nMWE (nearly ...
3
votes
1answer
5k views

How to adjust the space between pictures using minipage?

I use minipages to place three graphs, however the spaces between each two is not with the same width. Here is the code, may someone help me? and how to locate the (a) (b) (c) above the each of the ...
3
votes
1answer
184 views

Problems with horizontal aligment of figures using subcaption package

The subfigures do not align horizontally, the (a) subfigure is placed approx. 3 cm lower then the (b)-figure. Can you please see what I'm doing wrong. \documentclass[english]{article} \usepackage{...
3
votes
1answer
170 views

How to left-align particular equations using own environment?

I'm trying to left align particular equations. To do that I created a new environment (because I need it a few times). Now, I found that there are various options to do that: using the fleqn option ...
4
votes
1answer
287 views

Center alignment of tikzpicture outside figure environment without vertical space [duplicate]

How to align tikzpicture outside figure environment without introducing vertical space? I'm aware of related questions, such as What is the correct way to center a \tikzpicture? and Should I use ...
3
votes
1answer
357 views

Aligning verses differently

Is there a way to create the following layout using the verse package? \documentclass{article} \usepackage{verse} \usepackage[utf8]{inputenc} \usepackage[margin=1.3in]{geometry} \newcommand{\attrib}[...
4
votes
2answers
2k views

Right aligning a quote with extra indentation

I want to insert a quote into a document, have it aligned to the right, italic, with some extra indentation from the right margin, this is what i've managed so far: \documentclass{book} \usepackage{...
10
votes
2answers
355 views

Math Spacing in the presence of a trailing/non-trailing comma

I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
4
votes
2answers
755 views

Over wide figure with caption of the same width that both spill out of the right margin and are aligned flush left

This question is similar to that question, but instead I want to place a figure caption flush left aligned to an overwide figure so that it spills out of the right margin. MWE \documentclass{...
2
votes
1answer
1k views

How to align text without two column?

I want to have the following text alignment and I don't want to use any "two column" and table because an environment I use doesn't support them. :( The text format looks like the picture below. ...
0
votes
0answers
26 views

How can I get vdots align horizontally in my equations? [duplicate]

I'm trying to make vertical dots align as in the following picture: But the best one I could get is this: Here is my LaTex code: \begin{align*} x_{t} &= \phi x_{t-1} + \epsilon_{t} = \phi(\...
1
vote
1answer
50 views

Custom parameters for formatting images

I am a LaTeX newbie working on creating my first custom LaTeX class. I would like to know if it's possible to define parameters for \includegraphics such as width, height, center/right align etc in ...
8
votes
2answers
22k views

center and \centering both add space above; \centerline does not

The nag package suggests I use the center environment in LaTeX, rather than the TeX \centerline command. When I do that, however, I find that the former inserts a blank line above the line (in my ...
4
votes
1answer
682 views

Alignment horizontal subcaption and TikZ

I have a problem with the alignment of 2 plots. The Problem is I want the captions to be horizontal aligned. Also the x-axis should be horizontal aligned! Is there a way to do that? \begin{figure}[!...
5
votes
3answers
206 views

Aligning items inside a list

I'm trying to recreate a list in some work I'm doing and struggling to get all of the component parts to align. The list in the middle there is what I'm trying to replicate. Does anyone have any ...
2
votes
2answers
219 views

Table alignment

I'm not an expert with the tabular environment...I have some problems: I got an error "Extra alignment tab has been changed to \cr." I would like to have the professor name completely to the right....