Tag Info

Hot answers tagged

5

In this case, it's a not a bug but a feature. The inner text box is decoupled from the fixed height setting for a number of reasons, e.g. lower box part support and breakability. Therefore, you cannot use \vfill, because the inner text box has no fixed height. But, you can use a minipage with a fixed height inside the tcolorbox. You can put this minipage ...


5

You're unlucky. A book should have equal height pages, so \flushbottom is in force. However, the text before \section is too short to fill the page and an underfull page is shipped out, because the alternative of having the section title at the bottom is not taken into consideration, because there's space for just one line of text after the section title. ...


5

You need to give the ? the same spacing as the < by typing \mathrel{?}. Also you might want to leave out the extra \; on both sides, as TeX keeps track of correct spacing for relations. \documentclass{article} \usepackage{empheq} \begin{document} \begin{align} \left(\frac{4}{2 \cdot 2 \cdot 10 ^{-6}}\right)^2 &\mathrel{?} \left(\frac{1}{2 \cdot 10 ...


5

Horizontal alignment in this case relies on the fact that the aligned symbols have the same width. \documentclass{article} \usepackage{amsmath} \newcommand{\qrel}{\mathrel{\mathpalette\doqrel\relax}} \makeatletter \newcommand{\doqrel}[2]{% \ooalign{\hidewidth$\m@th#1?$\hidewidth\cr\hphantom{$\m@th#1=$}\cr}% } \makeatother \begin{document} ...


5

Add baseline={(current bounding box.center)} as the option to all tikzpictures \begin{tikzpicture}[baseline={(current bounding box.center)},level... Code: \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage[letterpaper, top=2.54cm, bottom=2.54cm, left=2.54cm, right=2.54cm]{geometry} \begin{document} \begin{tabular}{c @{ $\rightarrow$ } c ...


5

You first need to know whether the bounding box of the content sets at the bottom end of object. To do this, you can use a (coloured) \framebox: The above shows that this is the case - the bottom-end of the bounding box sits at the bottom-end of the symbol/object. The bottom-end is below the baseline and therefore has a depth associated with it. Using ...


4

You have one big minipage and inside which you have put the large i (without minipage) and the body text inside another minipage. Now due to how much body text you put, the height of the inner minipage varies. Since you have not specified the vertical alignment for inner mini page, the default center is applied for example,in the following figure, center of ...


4

Set the each of the blocks inside a minipage that is just wide enough to fit 50% of the text block minus half the width of the rule: \documentclass{article} \usepackage{amsmath,lipsum,calc} \begin{document} \lipsum[1] \noindent \makebox[\linewidth]{% \begin{minipage}[t]{\dimexpr0.5\linewidth-.2pt} \vspace{-\baselineskip} \begin{align*} ...


4

1. if you are not going to insert contents between \section{} and tabular (I mean, if the tabular is the first non empty line) you don't need \noindent. Otherwise, the second paragraph (the tabular) will be indented and you have to remove it using \noindent. 2. As cited by @Andrew Cashner, you have to remove the empty space at the beginning of the cell ...


4

The tabular environment by default inserts a small amount of horizontal space to the left of the first column. You can control the space between columns with the argument of @{} in the tabular preamble. Putting nothing there removes the space and solves your problem. \begin{tabular}{@{}rl} \textsc{4.0 GPA} & \textbf{Undergraduate} \\ ...


4

Simply put it inside the document and not in the preamble and it will work. MWE: \documentclass[9pt,handout]{beamer} \begin{document} \title[]{Title} \author{% \begin{tabular}{rl} Author 1:& "name of author 1" \tabularnewline Author 2:& "name of author 2" \end{tabular}} \institute[]{} \date[]{} \begin{frame} \titlepage \end{frame} ...


4

Things can get dirty always, but that is life. Here is a dirty and quick method.. \documentclass{article} \usepackage{longtable,mathtools} \begin{document} \hrule\vspace{-0.8\baselineskip} \begin{enumerate} \item \mbox{}\vspace{-1.66\baselineskip} %% adjust this 1.66 \begin{longtable}{l l} 1 & 2 \\ 3 & 4 \\ ...


4

Elaborating a little on Harish Kumar's answer, you'll probably want the longtable to the left. To do that, don't use the optional argument for longtable but issue \setlength{\LTleft}{\leftmargin} This should give you what you want: \documentclass{article} \usepackage{longtable} \begin{document} \begin{enumerate} \item ...


4

parskip=never removes the stretching component in \parskip.


4

\documentclass[12pt, a4paper] {article} \begin{document} \vspace*{1cm} \begin{center} \textbf{Text of Certification}\\ \end{center} I hereby confirm that the Bachelor Thesis presented by me has been prepared independently, using no other sources, resources and other aids than those mentioned. All parts - literally or by their meaning - taken ...


4

Perhaps you over-simplified the setup. However, here's an easy way to obtain the vertical alignment: \documentclass{article} \usepackage{tabularx, blindtext} \begin{document} \noindent \makebox[3em]{C}% \begin{tabularx}{\dimexpr\linewidth-3em}{X} \blindtext \\ \blindtext \\ \blindtext \end{tabularx} \end{document} The above uses the fact that a ...


4

See http://chat.stackexchange.com/search?q=multirow&user=11727&room=41 for thoughts on multirow alignment, but if you really want to centre the C you can use \raisebox to lower it by half the distance between the first and last baselines: (This takes two passes of latex) \documentclass{article} \usepackage{tabularx,blindtext} \makeatletter ...


3

Instead of trying to move the two final bullet points to the right, I'd drop the use of the equation* environments and move the math material to the left, so that all bullet points have the same alignment. (Better still, don't use an itemize environment at all. Look into, say, using an align* environment, with all equations aligned on the respective = ...


3

I am not sure whether this meant at all. Please note, that journals have their own guidelines for typesetting/alignment of the names of authors. The @{\ } is not useful at all, the first column is requested to be right justified, so use a r column specifier. \documentclass[a4paper]{article} \title{A Paper} \author{% \begin{tabular}{rl} Advisor: ...


3

You can do it with the makecell package (less code since it allows for line breaks inside cells). I also used the booktabs package, to have a less tight vertical spacing between rows: \documentclass{scrreprt} \usepackage{amsmath} \usepackage{booktabs, makecell} \begin{document} \begin{table} \centering \begin{tabular}{r c c c} \toprule ...


3

I'm not sure, if I understand your problem correctly, but nodes can be arranged in vertical line by aligned to center of nodes by: \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[node distance=0.2em] \node (T0) at (0,0) {$T_{0}$}; \foreach[count=\xi from 0] \x in {1,2,...,8} ...


3

Here's a TABstack approach. \documentclass{article} \usepackage{tabstackengine,amsmath,calc} \stackMath \begin{document} \begin{equation} \setstackgap{S}{6pt} \alignShortunderstack{ \left(\dfrac{4}{2 \cdot 2 \cdot 10 ^{-6}}\right)^2 \mathrel{\protect\makebox[\widthof{$<$}]{$?$}}& \left(\dfrac{1}{2 \cdot 10 ^{-6} \cdot 450 \cdot 10 ^{-12}}\right) \\ ...


3

Re. 1 and part of 3: You can use \newcolumntype{Q}[2][mColor1]{>{\columncolor{#1}\raggedright\arraybackslash}p{#2}}% takes 1 optional and 1 required argument \newcolumntype{B}[2]{>{\columncolor{#1}\centering\arraybackslash}p{#2}}% takes 2 required arguments \newcolumntype{S}[1]{>{\columncolor{mColor1}\raggedleft\arraybackslash}p{#1}} in ...


2

Short Answer \documentclass{article} \usepackage{polynom} \begin{document} \makeatletter \let\oldpld@SplitQuotient\pld@SplitQuotient \def\pld@SplitQuotient{\oldpld@SplitQuotient\def\pld@pattern{}} \polylongdiv{X^9-X^8-X^5+X^4+X+1}{X-1} \end{document} Long Answer After some experiments, one may notice that polynom leaves some holes ...


2

The cuted package and it's strip environment provide the desired feature. (I reduced the height of the parbox however, since cuted seems to add a lot of vertical space.) \documentclass[10pt,a4paper,twocolumn]{extbook} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{cuted} \newcommand{\dictchar}[1]{% \begin{strip} \centering ...


2

There is a great macro written by Petr Olsak from the Czech Republic, which perhaps beats even eplain. Olsak is notorious for prefering plainTeX over LaTeX, and he wrote this macro in order to offer the power of LaTeX to plainTeX users. The name of the file (opmac.tex) actually stand for Olsak's Plaintex MACros. http://petr.olsak.net/opmac-e.html ...


2

As shown in http://tex.stackexchange.com/a/208681/32374, you need to change how you specify the enlargement of the axes. Instead of enlargelimits=0.15, use enlarge x limits=.15, enlarge y limits={0.15, upper}, Then, I had to specify also ymin=0. I also edited your axes to use the ybar style instead of the plots, since this sets up the tick marks and such ...


2

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{c c c c} \hline Variable &Region Variable &Value &Unit \\ \hline area &$A$ &0 &m\\ \hline &$L_{1}$ &0 &m\\ lengths &$L_{2}$ &0 &m\\ &$L_{3}$ &0 &m\\ \hline &$D_{1}$ &0\\ diffusivity ...


2

You have to count the exact number of lines of the adjacent cells. By default, multirow seems to suppose adjacent cells are one-lined. Anoher solution (if you use the Xspecifier in true life) can be to not use multirow, and redefine the X specifier as an m column type: \documentclass{article} \usepackage{tabularx, multirow, blindtext} \begin{document} ...


2

Bingo! \documentclass{article} \usepackage{graphicx} \usepackage{url} \usepackage{wrapfig} \begin{document} \noindent \begin{wrapfigure}[2]{l}{1cm} \centering \includegraphics[width=1cm]{example-image-a}\\ \end{wrapfigure} This work is licensed under the Creative Commons Attribution-Share Alike 3.0 License (CC BY-ND 3.0 ): ...



Only top voted, non community-wiki answers of a minimum length are eligible