Tag Info

0

Thanks to Zarko and Ulrike Fischer for pointing out that this is caused by \lipsum rather than \tabu and the m column type. Example \documentclass[a4paper]{article} \usepackage{colortbl} \usepackage{lipsum} \usepackage{tabu} \usepackage{xcolor} \definecolor{white}{HTML}{FFFFFF} \definecolor{darkBlue}{HTML}{015093} \definecolor{lightBlue}{HTML}{EBF0F5} ...

0


1

Is this what you are looking for? \documentclass{book} \usepackage{pgfplotstable} \pgfplotsset{compat=1.12} \usepackage{booktabs} \usepackage{longtable} \usepackage{filecontents} \begin{filecontents}{dataa.dat} k z xbar Pkp1 Kkp1 1 12.0000 10.0000 0.2222 0.1111 2 17.7735 15.7735 1.3846 0.6923 3 21.1068 19.1068 0.5306 0.2653 4 23.0313 21.0313 ...

0

You have not provided any example so this is untested but \usepackage{article} \usepackage{rotating} \begin{document} .... \twocolumn \begin{sidewaystable} ... \end{sidewaystable} text..... \onecolumn more text...

0

You can look at How to keep a constant baselineskip when using minipages (or \parboxes)? Don't use \rlap and \llap if you don't know how they work (and you don't, judging from the code): you'll incur in very unexpected behaviors. \documentclass[10pt, a4paper]{article} \usepackage{multicol} \newcommand{\ntab}[2]{% \par\noindent ...

1

By help of tables nesting and use m column type from package `array: \documentclass[letter]{article} \usepackage{array,booktabs,paralist}%enumitem \usepackage{lipsum} \begin{document} \begin{tabular}{c m{2in} m{2in}} \toprule & \hfil \textbf{ColName1} & \hfil \textbf{ColName2} \\ \midrule \textbf{RowName1} & ...

0

Use \extrarowheight or, better, don't use vertical lines and load booktabs. Here is a demo of both solutions: \documentclass[a4paper,12pt]{report} \usepackage{array, booktabs} \usepackage{multirow} \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} \usepackage{makecell} \setcellgapes[t]{4pt} \begin{document} \begin{table}[!htbp] \centering% ...

0

Is it safe to use leaders to test am I on the top of page? What do experts think? Previously I tried check \pagegoal, \maxdimen and \pagetotal, but it worked not 100%. \documentclass{article} \usepackage[showframe,paperwidth=10cm,paperheight=5cm]{geometry} \usepackage{amsmath} \usepackage{etoolbox} \makeatletter %% leaders should be discarded at top of ...

2

You can obtain it with [t] option to array environment. \begin{equation*} \begin{array}[t]{ll@{}ll} \text{minimize} & \|Ax-b\|_\infty &\\ \end{array} \quad \begin{array}[t]{ll@{}ll} \text{minimize} & t &\\ \text{subject to} & Ax-b \preceq t \mathbf{1} & \\ & -(Ax-b) \preceq t \mathbf{1}& \\ \end{array} \end{equation*}

2

You're forgetting some &: \documentclass{article} \usepackage{showframe}% just for the example \usepackage{amsmath,amsfonts,amssymb,amsthm, bm} \begin{document} \begin{flalign} &\text{For the \emph{steady-state filter system}} & \bm{\Phi}_{f} & = (\mathbf{I}-\bar{\mathbf{K}}\mathbf{h}')\bm{\Phi} &&\\ &\text{For the ...

1

Since the input in the OP's question has the appearance of a spreadsheet, it is possible that the OP would prefer a tabular solution, rather than one set in mathematical notation. The only twist for adapting it was the introduction of \mybig{rows}{glyph} for making large parens. Currently, column alignments are centered, but that is easily customized. ...

3

You can use the matrix library of TikZ together with the positioning library to achieve something like this: Code \documentclass[tikz, border=2mm]{standalone} \usetikzlibrary{matrix, positioning} \begin{document} %\matrix (m) [matrix of math nodes,left delimiter=(,right delimiter=), % inner sep=2pt,outer sep=0pt]{ % a & b & [1em] 0 \\ % c ...

6

One way to achieve your layout objective is to use pmatrix* environments (in order to right-align all columns), \hphantom statements (to widen various columns as needed), and \mkern directives (to align the left-hand most columns of the Z, V, and R matrices/row vectors). If you're not comfortable with \hphantom directives inside pmatrix* environments, you ...

2

I can't imagine less markup than this: \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \begin{tabular}{@{}c@{}} \includegraphics{image} \end{tabular}\qquad \begin{tabular}{ll} \hline column1a & column2a \\ column1b & column2b \\ column1c & column2c \\ \hline \end{tabular} \caption{A ...

0

The template that you use basically uses a tabular table environment. In the command \entry, the argument #1 is added as-is into this table. Therefore, if argument #1 contains a line break \\, it adds a new line to the table. So the solution is to encapsulate #1 in some way in the definition of \entry. One idea is to use a \parbox, since a \parbox is ...

3

You can scale then with \left\lvert and \right\rvert, just as with parentheses. f_{3,2} = \left(\sqrt{13} - 2 - \left\lvert \frac{\sqrt{13}}{6} + 2 - 2\sqrt{7}\left(1 + \delta V\right) \right\rvert \right)/4 If you load the mathtools package, you can use a \DeclarePairedDelimiter command which simplifies scaling delimiters: writing ...

0

Put everything in the left field of the header: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{lipsum} \setlength{\headheight}{60pt} \fancyhf{} \fancyhead[L]{% \begin{tabular}{@{}l@{}} Foo bar \\ Baz lorem \\ ipsum dolor \end{tabular}\hfill \begin{tabular}{@{}l@{}} ...

0

You can do that easily with the \Centerstack command, from the stackengine package. Here is how, with one of my own images since you didn't provide one. Also, centring text w. r. t. the image is better if you lower of 0.4\height, to take into account the height of the line of text (the exact value depend on the height of the image, of course): ...

3

Another way, using a minipage environment instead of a tabularx package: \documentclass{article} \usepackage{lipsum} \usepackage[a4paper]{geometry} \begin{document} \begin{tabular}{|l|c|} \hline \begin{minipage}[t]{0.85\textwidth}\lipsum[1]\end{minipage} & top\\ \hline \begin{minipage}{0.85\textwidth}\lipsum[1]\end{minipage} & center\\ ...

4

At coarse resolutions, rules can appear to differ in thickness, because of rounding to pixels. Those rules are exactly 0.4pt thick, because that's the default value when no height or depth keywords accompanied by a dimension follow. For instance at a resolution where 0.4pt doesn't correspond to an integral number of pixels, the viewer will round them and ...

1

Here are two possibilities, usng the makecell package, which allows line breaks for the \rotcell command: \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry} \usepackage{booktabs} \usepackage{array, multirow} \usepackage{rotating, graphicx} \usepackage{makecell} \setcellgapes{4pt} \begin{document} ...

2

You can try this (using pdftex): \newdimen\tstrutdim \def\tstrut{\lower.3\tstrutdim\vbox to\tstrutdim{}} \def\crl{\cr\noalign{\hrule}} \def\rotitem#1{\noalign{\setbox0=\hbox{ #1 }\global\tstrutdim=.5\wd0} \ \pdfsave\pdfsetmatrix{0 1 -1 0}\llap{ #1 \kern-.7\tstrutdim}\pdfrestore } \vbox{\offinterlineskip \tstrutdim=16pt ...

3

You can use a PGFplots groupplot. I've used \textwidth to set the width of the group, you don't need to exceed this size. Code \documentclass[11pt]{book} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{graphicx} \usepackage{tikz} \usepackage{float} \usepackage{pgfplots,pgfplotstable, booktabs} ...

3

So far nothing wrong with your code. However, you declared width=20cm, and then scale it to 0.75 I suggest you to set width=\textwidth, height=75mm (or height left to 100mm, if you like to have only this figure on the page, this is not clear from your question) and omit scale option. I slightly simplify your code: \documentclass{book} ...

5

There is a bug in array-xetex-bidi.def, line 90 \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\@preamble} To be more precise, the bug is in \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi which unconditionally inserts the table in a \vbox, making irrelevant the \vtop started with the [t] option. If I ...

2

Either you specify some (explanatory) text after \begin{ex} or add the ~ character after \begin{ex}. The 'problem' is due to the definition of ex and \newtheorem and not related to the answers package at all. \documentclass{memoir} \usepackage{answers} \Newassociation{sol}{Solution}{ans} \renewcommand{\Solutionlabel}[1]{\small{#1.}} ...

2

I'm sure there is a more elegant way, but a crude approach is to calculate the difference in width between each of the smaller left compounds (the first two) and the largest (the last) and add that as \hspace before the start of the smaller reactions. Showing each step: \documentclass[a4paper,pdftex,ngerman,12pt]{article} \usepackage{chemfig} ...

0

Add \flushbottom manually and make a bug report.

3

Maybe this is what you mean, with a simpler code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools, nccmath} \begin{document} \begin{align*} & \begin{aligned}[t] &\!\min_{\mathclap {u(t), \eta(t), r}}\quad\int_{0}^{t_f}y^Ty dt\\ & \text{\footnotesize s. t. \enspace}\mathrlap{\medmath{\begin{array}[t]{|l} ...

3

Well, one more possible solution: \documentclass[border=3mm, preview]{standalone}%preview enable showing math \usepackage{mathtools} % loads amsmath too \begin{document} \begin{align*} \min_{u(t),\eta(t),r} &\quad \int_{0}^{t_f} y^Ty dt &\Longrightarrow && \min_{u(t),\eta(t),r} &\quad z_2(t_f) ...

Top 50 recent answers are included