# Tag Info

0

Probably the following results in the desired output. Due to the use of [t] at the tabular and valign=t at the \includegraphics command, image and table are top aligned. You can of course adjust this if you want to vertically center or botto align both elements with respect to each other using c or b, respectively. \documentclass{article} \usepackage{...

1

I would use a minipage to create the two columns and then add the table in the first minipage and the image to the second one. \documentclass{article} \usepackage{graphicx} \usepackage{enumerate} \begin{document} \begin{enumerate}[i] \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\\% \begin{minipage}{.5\linewidth} \...

0

A rough start point as an example -- Image and table side by side It uses two minipages (with respectively a width of 60% and 30% of \textwidth (so that it remains a 10% margin)) that are embedded in a figure environment in order to make it "float". (You could also use another minipage, or nothing at all.) The two minipages are vertically centered ...

1

In the second table column you have different number/type of the horizontal rules as in the first column. Edit: However, I would rather write your table on the following way: remove \resizebox (using it the control on the font size in the table is lost) for columns use S columns defined in the siunitx package for horizontal lines use only rules defined in ...

3

The following MWE allows to reproduce the output shown in the original question. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{caption} % for source \usepackage{float} \usepackage[export]{adjustbox} % valign \newcommand{\imagesource}[1]{{\scriptsize Source: #1}} \usepackage[export]{adjustbox} \...

4

Like this? With use of tabular instead of the minipages: \documentclass{article} \usepackage{graphicx} \usepackage{caption} % for source \usepackage[export]{adjustbox} % valign \newcommand{\imagesource}[1]{{\smallskip\hfill\scriptsize Source: #1}} \begin{document} \begin{figure}[ht] \centering \setkeys{Gin}{width=\linewidth} \begin{tabular}{...

3

Here's a solution that employs the \mathllap macro of the mathtools package, which is a superset of the amsmath package, to facilitate the alignment of the \ch{C} elements. \documentclass{article} \usepackage{chemmacros,booktabs,mathtools} \newcommand\myarray[2]{% $\begin{array}[t]{@{}l@{}} #1 \\ \mathllap{(}#2) \end{array}$} \begin{document} \begin{...

2

Here is a method using \widthof from the calc package in order to measure the required indentation: \documentclass{article} \usepackage{booktabs} \usepackage{chemmacros} \usepackage{calc} \newlength{\mylengthatomic} \setlength{\mylengthatomic}{\widthof{atomic}-\widthof{(}} \newlength{\mylengthpolymeric} \setlength{\mylengthpolymeric}{\widthof{polymeric}-\...

1

One possible way is: (red lines show text borders, in real document remove package showframe as noted in comment in the MWE) In MWE (Minimal Working Example) is in comparison to your MWE done the following changes: Removed is \resizebox, since with it you lost control on table font size. For table environment is used tabularx with width equal to \textwidth....

2

The problem is related with the sidebearings. The following code in lualatex shows the effect, turning the switch \dropsidebearings on and off. Courtesy of Marcel Krüger. The references of the original Q&A are in the comments. sidebearings and precision left/right alignment Perfect alignment, LuaTex and sidebearings. Part II A solution of the problem ...

1

I will present an answer that meets your requirements as I understood them: aligned columns and centered rows. But the important thing is how I got to the answer in a very short time and very few keystrokes. 1 I started building the table in excel, including the TeX commands needed for bold and scriptsize. This is not needed for the word "heading"...

2

A possible way how to solve your problem -- as mentioned in my comment: \documentclass[11pt,a4paper]{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{subcaption} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{figure}[ht] \pgfplotsset{width=\linewidth, axis lines=left, axis line style = thick, ...

1

With the excellent nicematrix package \documentclass{article} \usepackage{nicematrix} \usepackage{calc} \usepackage{booktabs} \usepackage{xcolor} \newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1\textwidth-2\tabcolsep-1.5\arrayrulewidth}} \newcolumntype{Y}[1]{>{\centering\arraybackslash}p{#1\textwidth-2\tabcolsep-1.5\arrayrulewidth}} \begin{...

5

align (rather TeX's display math setting) will take the whole equation as a single box, and horizontally center that in the text area. This will include text that you insert in the equation with \text. If you don't want that \text to be taken into account when TeX measures the equation, you can “hide” the width of the text with \rlap: \rlap will typeset the ...

5

In the article document class, the argument of the \title, \author, and \date directives are typeset inside a center environment. Specifically, the low-level command \@maketitle is defined as follows: \def\@maketitle{% \newpage \null \vskip 2em% \begin{center}% \let \footnote \thanks {\LARGE \@title \par}% \vskip 1.5em% {\large \...

3


3

Try \documentclass[11pt]{article} \title{\textbf{Flux Capacitors}\\ \large\textit{PHY410/PHY610 Introduction to Back to the Future Physics}} \date{\today} \author{John Smith} \begin{document} \maketitle \section{Secction One} Some text here. \end{document} Here everything is well centered.

2


1

Simply use titlesec. Add these lines to your preamble: \usepackage{titlesec} \titleformat{\chapter}[display]{\bfseries\filcenter}{\huge\chaptername~\thechapter}{3.8ex}{\Huge}[\vskip 1ex{\titlerule[1pt]}]

0

Straight from the manual of makecell you can use t/b/c or r/l/c/p in the options \documentclass{report} \usepackage{tabu, booktabs} \usepackage[]{makecell} \begin{document} \begin{tabular}{cc} \makecell[l]{Label \\ 1} & 1234 \\ \makecell[tl]{Label \\ 2} & 5678\\ \makecell[br]{Label \\ 3} & ABCDE \end{tabular} \begin{tabu} ...

2

Two other solutions: one with empheq and flalign*, and another with the fleqn  environment from nccmath & dcases: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[showframe]{geometry} \usepackage{nccmath} \usepackage{empheq} % \begin{document} \vspace*{1cm} \begin{empheq}[left=\hspace{\parindent}\empheqlbrace]{flalign*}% \cos\theta_1 \cos\...

2


8

You can use fleqn option to get flush left alignment. dcases adds a quad space by design, but the package provides \newcases to define a similar command without that: \documentclass[fleqn]{article}% flush left equations \usepackage[T1]{fontenc} % it is best to avoid this unless you really need it \usepackage[utf8]{luainputenc} % WARNING: Source UTF8-...

0


1


2

Adding \draw[red] (current bounding box.north east) -- (current bounding box.north west) -- (current bounding box.south west) -- (current bounding box.south east) -- cycle; into your tikzpicture environment reveals that the bounding box of the picture (red) is extends further to the right than the visible parts of the image, thus leaving the impression ...

0

I would take the Internships out of the tabular. Note that \large does not take an argument. The effect in your code seems to be correct because every cell acts as a group. \documentclass{article} \begin{document} \noindent {\large Internships} \begin{tabular}[t]{lr} ABC Company & 2020--Present\\ ABC Corp & 2019--2020 \\ Non-profit & 2018--...

2

This works: \documentclass[letterpaper,11pt,oneside]{article} \usepackage{tabularx} \begin{document} \noindent \begin{tabularx}{\linewidth}{@{} l Xr} \large{Internships} & ABC Company & 2020--Present\\ & ABC Corp & 2019-2020 \\ & Non-profit & 2018-2019\\ \end{tabularx} \end{document}

0

Here are two possibilities: one with the formula centred in the page, and another with the formula centred w.r.t. the remaining space on the line: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{mathtools} \usepackage{esdiff, bm} \usepackage{linegoal} \begin{document} \noindent \rlap{summed over all particles} \centerline{\$\qquad \...

0


3

The \phantom can be used: \def\0{\phantom{0}} \def\+{\phantom{+}} $$\pmatrix{ 1.41\0 & -1.73 \cr 2.718 & \+3.14 }$$

9

With matrix is not possible (at least easy), try with array with S columns, which are defined in the siunitx package. \documentclass{article} \usepackage{siunitx} \begin{document} $\left(\begin{array}{@{} S[table-format=1.3]S[table-format=-1.2] @{}} 1.41 & -1.73\\ 2.718 & 3.14 \end{array}\right)$ \end{document}

1

Because both the under- and over-brace labels are wider than the braces themselves, they need to be \mathclapped. \documentclass[11pt,a4paper,openany]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[dvipsnames]{xcolor} \usepackage{mathtools} \newcommand{\deff}[1]{\large{\underline{\textbf{#1}}}} \...

2

Some suggestions: use a tabularx environment and a centered version of the X column type for all three columns drop the instruction \renewcommand{\arraystretch}{1.5} for column #1, set \setlength\arraycolsep{0pt} and use an array with three r-type columns; make sure to insert a bit of whitespace between "2," and "-3" for column #2, ...

2

With cellspace and adjustbox: \documentclass[preview,border=12pt]{standalone} \usepackage[a5paper, margin=5mm]{geometry} \usepackage{amsmath} \usepackage{array} \usepackage[column=O]{cellspace} \newcolumntype{M}[1]{>{\centering}O{m{#1}}} \usepackage{adjustbox} \begin{document} { \setlength\arraycolsep{0pt} \setlength{\cellspacetoplimit}{4pt} \...

2

Here is a very basic proposal, mostly based on empheq and booktabs. It requires little tweaking to reach the expected result. The alignment of the left column contents is done using \hphantoms % arara: lwpdflatex \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage[a5paper,margin=5mm]{geometry} \usepackage{amsmath} \usepackage{tabularx} \...

6

No vertical rule, no double rules. No m type, one can use w{c}. Use a local macro in order to ease inputting the coordinates. Add some vertical space between the points. Increase the value of \jot in order to increase the distance between rows in aligned. Add some vertical space below the middle rule and above the bottom rule. \documentclass{article} \...

2

Here's a way with cellspace, in the place of \arraystretch, and \multirow: \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage[a5paper, margin=5mm]{geometry} \usepackage{mathtools} \usepackage{array} \usepackage{cellspace} \setlength{\cellspacetoplimit}{4pt} \setlength{\cellspacebottomlimit}{4pt} \newcolumntype{M}[1]{S{m{#1}}} \usepackage{...

0

Having tested a few alternatives, including the answer posted by @Venez, I think the easiest solution to this question is to define a new glossary style based on long. The long style is effectively a longtable which means simple column manipulations can result to the style requested, i.e. centred group titles and glossary entries being placed toward the ...

0

For me the fix was removing this package: \usepackage{apalike} I realize that this isn't included in your project but it helped me when I experienced the exact same issue so I'm sharing for anyone in my same situation.

0

To answer the question you could simply renew the format by using \renewcommand\glstreegroupheaderfmt[1]{\begin{center}\textbf{#1}\end{center}\vspace{-\parskip}} and switching to the alttreegroup style. Therefore you must also use \glsfindwidesttoplevelname before the call of \printunsrtglossary. In the end it should look like this:

0

You could use the enumitem package to redefine the label using \makebox. \documentclass{beamer} \usepackage{enumitem} \setlist[enumerate,1]{% label=\protect\usebeamerfont{enumerate item}% \protect\usebeamercolor[fg]{enumerate item}% \insertenumlabel.% }%http://tex.stackexchange.com/a/45950 \setlist[enumerate,2]{% label={\protect\usebeamerfont{...

3

Here is a code based on eqparbox, moreenum and enumitem. I defined an \emphrbox command, which does the trick (with certain limitations). All lists environments are enumerate, and I had to change the enumerate depth (the default is 4): \documentclass{article} \usepackage[spanish]{babel} \usepackage{enumitem, moreenum} \renewlist{enumerate}{enumerate}{5} \...

2

\documentclass[twocolumn]{article} \usepackage{tabularx,parskip} \begin{document} \def\labelenumi{\Alph{enumi})} \newlength{\nombremaslargo} \settowidth{\nombremaslargo}{Hermenegilda} \def\hermanas#1{\dotfill~~\makebox[\nombremaslargo][l]{\em #1}} Juana y su hermana: \begin{enumerate} \item Con \verb-enumerate- \hermanas{Juana} \item y una macro ...

3

Your problems are not linked to the command \Block (provided by nicematrix) since the command \Block is not used in both cells with problems (however, using \Block in those cells won't solve the problems since the command \Block does not create space). In fact, your problems would arise in a standard {tabular} of LaTeX (provided you use explicitely \...

Top 50 recent answers are included