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

0
votes
0answers
45 views

How to fix the space between “Figure” and “5” in “Figure 5:” in figure caption?

I use this solution to get captions for my figures at the side, which works really fine. But sometimes, if the word behind "Figure xyz:" is too long for the line, I get something like this: How can ...
3
votes
1answer
24 views

Alignment of minted line numbers

I'm using the minted package for code highlighting. The below is just a minimal example. What I find annoying about this package is that line numbers appear in the margin. This causes several ...
2
votes
2answers
43 views

Center in a table if the result has at maximum two lines, otherwise try harder to squeze it on two lines (and then maybe center)

This has the second cell span over three lines: \documentclass[12pt,landscape,a4paper]{article} \usepackage{microtype} \usepackage{multirow} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
1
vote
2answers
53 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
2
votes
1answer
61 views

Centering a figure with caption (\centering not working)

I am having problems with centering my picture in a LaTeX document. I want to center the following picture: \documentclass[10pt]{article} \usepackage{pgf,tikz,geometry} \geometry{a4paper} ...
2
votes
1answer
40 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
2
votes
2answers
21 views

Putting a letter between minipages

I'm using: \begin{minipage}[t]{0.4\columnwidth} \begin{eqnarray*} x&=&{{x}_{0}} \\ y&=&{{y}_{0}}+t\\ z&=&{{z}_{0}}+{{x}_{0}}t \end{eqnarray*} \end{minipage} ...
3
votes
2answers
52 views

item tabulator same line

I want to put the item in the same line as the tab. Please have a look on my screenshot, how i actually want it to have. \item Bewertung: \begin{tabular}{l l c } & TestTest: & Test \\ ...
1
vote
1answer
33 views

Centering numprint-formatted table columns

Consider the code \documentclass{standalone} \usepackage{array, numprint} \npstyleenglish \begin{document} \begin{tabular}{n{3}{0} n{3}{0} >{{\npunit{\%}}}n{2}{1}} {{\# successful}} & {{\# ...
0
votes
0answers
21 views

How to outline theorem properly

First of all, sorry about the layout of this question, I don't know how to render a LaTeX line on this site. As for my question, I have defined various new commands, like \property, \axiom and ...
1
vote
1answer
53 views

How to center the numbers?

\begin{table}[h] \resizebox{\columnwidth}{!}{ \begin{tabular}{lcccccccc} & $U^{MMM}$ & $U^{MMB}$ & $U^{MBM}$ & $U^{MBB}$ & $U^{BBB}$ & $U^{BBM}$ & $U^{BMB}$ & ...
0
votes
0answers
24 views

Latest MiKTeX update breaks XeLaTeX + fleqn [duplicate]

I updated the MiKTeX on my system two days ago. After that, compiling my codes using XeLaTeX gives the following error: ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fleqn.clo" File: fleqn.clo ...
2
votes
1answer
70 views

Centering in a table

\documentclass{article} \begin{document} \begin{center} \begin{tabular}{ | p{5cm} | p{5cm} | p{7cm} |}\hline \centering{A} & \centering{B} & \centering{C} \\ \hline ...
0
votes
1answer
45 views

Flushright, Allignment

I want to align text as in the picture above. Starting from supervisor till Patiala. I used flushright but it aligned the text from the right hand side as in the picture below. How can I correct ...
1
vote
1answer
34 views

Two column document, 2X1 figure placement

I need to place 3 figures in a two-column document, wherein the 3rd figure at the bottom needs to be centred! How can I do this? I want something like this: To do the same for 4 figures I have ...
0
votes
1answer
36 views

How to aligned text in graffito to the left?

I'm using graffito for sidenotes in my thesis, is there a way to align all text to the left? (currently a comment on the left side of the page is aligned to the right for some reason...) Graffito is ...
2
votes
4answers
214 views

How to center horizontally tikzpicture in beamer frame using a specific node?

The following MWE centers my tikzpicture into the frame: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \setbeamertemplate{frametitle}[default][center] \begin{document} ...
2
votes
1answer
29 views

How to NOT report overfull hboxes from a personal command?

I create a command to display some symbol in the right margins in a twoside document. The point is that they always bring an overfull hbox warning in my logs whereas it obfuscates the real overfull ...
4
votes
3answers
154 views

Multiple alignment in math mode - a math equivalent to `\multicolumn`?

I have some quite long lines of maths I have to put into a two-colum document format, so the maths often needs to be split between multiple lines. In the example below, I'd like to align the open ...
1
vote
1answer
43 views

Glossary like Two column supertabular problem

First thing first, my code, \documentclass[11pt,a4paper]{article} \usepackage{supertabular} \usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.2in, bottom=0.15in, ...
5
votes
2answers
148 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...
2
votes
2answers
72 views

Title page rendering incorrectly

I'm using a standard template for my title page of my document as found at the latex wikibook However, for some reason, the minipage on the right, with my supervisor's information, renders about one ...
1
vote
1answer
53 views

Having problem in alignment in the resume document class

I am using the document class "res" for making my CV and I have some problems in aligning the sections. Like in the below image, the Address Lines are not aligned with the Test in the Research ...
1
vote
2answers
85 views

Formatting data dictionaries in LaTeX

I would like to write out some data dictionaries for a program design document in LaTeX, and I am looking for an efficient way to do this. I want to write snippets that look like: Name = ...
2
votes
2answers
76 views

Horizontally and vertically center a figure and scale to fill the whole page in landspape orientation

I want to have an image that fills a landscape page. I have tried: \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{pdflscape} %Gives us landscape pages with ...
2
votes
5answers
123 views

Centering not working?

I have a wide table that I wish to center, caption and label. \documentclass{amsart} \usepackage{graphicx,amsmath,gensymb} \usepackage[nobysame,lite,short-months]{amsrefs} \begin{document} ...
3
votes
2answers
94 views

How to center a label inside a closed path in Asymptote?

I am new to Asymptote and I need a little help. I would like to place a label exactly in the center of a closed path, for example in a triangle: unitsize(1cm); size(4cm); draw((0, 0) -- (0, 3) -- (3, ...
0
votes
1answer
37 views

Align first letters of chapter titles in Table of Contents

I am trying to create table of contents for starred version of chapter. My goal is to align all first letters of the titles to the same position. I was able to achieve that separately for single digit ...
2
votes
1answer
24 views

Shrink equations in align to fit page width

I read several similar questions, but none was on align environment. Here is my example. \documentclass{article} \usepackage{amsfonts} \usepackage{amsmath} \begin{document} \noindent where $B(a, ...
1
vote
1answer
38 views

indentation within the text

While preparing a report, I want to write the text (below the equations) similar to attached figure. I tried using \begin{align},\, commands (even after knowing that the align command is using for ...
0
votes
1answer
24 views

Table columns out of sync in tabularx

I asked a very similar question yesterday that I thought I would be able to abstract into this problem but I can't. Here's an image of the table : Here's the code : \documentclass{article} ...
3
votes
2answers
34 views

Table cells are out of line / sync with each other, itemize

I'm trying to have a tabular section that has bullet points next to it. There might be a better way to go about this, but currently it seems as though the cells are out of sync (though this might be ...
15
votes
2answers
331 views

typographically is ragged-right better than fully-justified text?

It seems that some people naturally prefer ragged right documents and some, like me, prefer fully-justified text blocks (using microtype for even better results). I understand that part of the issue ...
0
votes
0answers
38 views

Itemize Not ending at New Line beginning

I am using itemize to list few bullet points. When it ends my new line begins from the same left side margin as the itemize items. I have to get the Solutions line begin from the orginal left ...
0
votes
3answers
39 views

overfull and under-full errors. Not able to correct them, please help out [duplicate]

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} Similarly, the state-space averaging is used to described the ...
7
votes
4answers
166 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
0
votes
1answer
22 views

If a matrix equation is too long, how do I put a portion of it aligned in another line without changing the label of the equaion

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} The load current is assumed continuous because of an ...
3
votes
1answer
78 views

Having Overfull and underfull box warnings. Please help out as there are many matrices and equations

\documentclass[11pt]{article} \begin{document} The above equations on application of Laplace Transform become: $$sL_1\hat{i}_{L1}(s) = D\cdot \hat{v}_{C1}(s) + D\cdot \hat{v}_{C2}(s) - D\prime ...
0
votes
1answer
35 views

Centering only a part of a presentation

I have the following code \begin{itemize} \item Optimal Effort:\\ $DPV{\Pi}_1(e)=-\psi(e)+(I+pe)\delta \longrightarrow \overline{e}=p\delta$ \\[0.2cm] \item Participation ...
4
votes
1answer
69 views

Can I get the effect of \halign to \hsize using a LaTeX tabular environment?

I'd like to get the effect of doing \halign to \hsize ... while retaining all the convenience of LaTeX's tabular environment. The particular problem I am trying to solve is to use \tabskip to set a ...
2
votes
2answers
74 views

Different column widths under a multicolumn prevent appropriate centering

How can I center the two columns inside the multicolumn? MWE \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{input-ignore={,}, ...
3
votes
2answers
111 views

How to float right but align left

I'm typesetting a formal letter within a much larger document (hundreds of pages). I'd like to produce something along the lines of what you get with the letter document class, but without actually ...
0
votes
1answer
71 views

In nested tables, how can I make an inner table stretch to fit its column?

I'm trying to design a layout that has tables nested within tables, and I'm having trouble getting things to line up. The question is quite similar to How to make width of an inner table use full ...
6
votes
1answer
71 views

Better way to achieve TikZ label offset

In the following diagram, which is generated by the following TikZ code, \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture}[scale=2, % ...
6
votes
3answers
64 views

Center a line of two words on the space separating them

I have this document \documentclass{article} \begin{document} \centerline{onlyoneword} \centerline{sveeeeeeeeeerylongword \qquad shortword} \end{document} I want to center the line on the ...
1
vote
4answers
65 views

Centered captionlabel above justified caption text

I'd like to have the captionlabel (e.g. Figure 1) centered on a single line with the actual caption justified below. Something like this As you can see, I've achieved what I want with the help of ...
6
votes
2answers
87 views

Slight misalignment using hphantom equals sign in align

I am attempting to align the integral signs precisely, whilst still retaining the correct spacing around the equals signs. Why doesn't the following code get it exactly right? \begin{align} & ...
0
votes
1answer
43 views

Alignment within tex groups

Please consider the following snippet: \documentclass{minimal} \begin{document} %\begingroup \centering Text \begin{tabular}{ll} A & B \\ C & D \end{tabular} %\endgroup \end{document} I ...
2
votes
1answer
102 views

Left align location using Koma script

Is it possible to left align the place variable using the Koma script Latex class? I am using scrlttr2 for letter creation. I managed to make the date left aligned using ...
2
votes
1answer
24 views

Is it possible to flushright the right-hand side with systeme without \hphantom?

I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides. Now, I wonder if there is a way to flushright also the right-hand side ...