# Tag Info

1

I would simply use minipages like it is seen so often on TeX.SX. \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{minipage}{.45\linewidth} \begin{subfigure}[t]{.9\linewidth} \includegraphics[width=\textwidth]{example-image-golden-upright} ...

1

It's a common problem: a conditional cannot straddle two (or more) alignment cells. Here's a simpler implementation in xparse: \documentclass{article} \usepackage{xparse} \usepackage{tabularx} \newcounter{basesize} \setcounter{basesize}{15} \ExplSyntaxOn % \storedata{<name>}{item1,item2,...} \NewDocumentCommand{\storedata}{mm} { ...

1

In case anyone else is struggling with a similar problem, I am posting the solution I found (even though it indicates I was missing a crucial understanding of something simple): In my example I had a spelled out table showing what I wanted: \vspace{10pt}Example of how it should look: \begin{tabularx}{\linewidth}{|c|c|X|c|} \hline Column 1 & Column2 ...

2

Speaking for myself, I can't help but remark that typesetting the three sub-equations side by side in a row looks plain awful. Either the font size has to be shrunk so drastically that the equations become well-nigh unreadable, or you need to introduce so many line breaks in the subscript terms as to impair readability. Continuing to speak for myself, I'd ...

5

The best solution is: don't do this ... equations become unreadable small: Code: \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{empheq, nccmath} \usepackage{showframe} \begin{document} $$\label{eq: time} T_{m}^{v+1} - T_{m}^{v}$$ \begin{subequations} ...

7

tabularx suppresses all kinds of tex warnings during trials in particular it sets \hbadness\@M and then disables anyone setting it back by going \let\hbadness\@tempcnta so you can use \ifx\hbadness\@tempcnta % do nothing in trials \else do something in the final run \fi

0

This may be helpful to you. Use \scalebox{} in your preamble. \documentclass[10pt,a4paper,oneside]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{booktabs} \usepackage{tabularx} \begin{document} \begin{table} \caption{Class distribution in the succeeding ...

2

As @ChristianHupfer has already pointed out in a comment, the issue you're experiencing is mainly related to the pdf browswer you're employing. If switching pdf browswers is not a viable option, you could try the following remedy: Move the \phantomsection and \label statements to the very start of the \mytab macro. \documentclass[11pt]{report} ...

0

Here's a solution that (a) uses \directlua instead of \luaexec and (b) doesn't use [[ and ]] to delimit Lua strings. \documentclass{article} \usepackage{luacode} \usepackage{tabularx} \begin{luacode*} function fline(value) n = tonumber(value) tex.print("\\multicolumn{1}{c}{} & \\multicolumn{1}{c}{1} & \\multicolumn{1}{c}{2} ...

3

\directlua is expandable but \luaexec is defined via > \luacode@execute=\long macro: #1->\begingroup \escapechar 92 \newlinechar 10 \edef \\{\string \\}\edef ~{\str ing ~}\let \%=\luacode@percentchar \let \#=\luacode@sharpchar \expandafter \exp andafter \expandafter \endgroup \luacode@dbg@exec {#1}. so inserts many non expandable tokens before the ...

1


2

Use a \Longunderstack or a \Longstack. EDITED to handle case where a macro containing the data is to be set in a stack (per the OP's comments). In this case, the line \setDocName{Video Endoscope \& Imaging Module \\DVT Support Manual} places the data in the variable \@setDocName. At a later point, the contents of \@setDocName are to be set in a ...

1

Use a tabular inside the tabularx: \documentclass{article} \usepackage{tabularx} \begin{document} \newcommand\docName{\tabular[t]{@{}l@{}}Video Endoscope \& Imaging Module \\ DVT Support Manual\endtabular} \noindent \begin{tabularx}{\textwidth}{|c|X|} \hline &\\ \footnotesize\sffamily\bfseries ...

2

Something like this? This combines makecell with the booktabs style you are already using which, as you know, is allergic to vertical rules (so I assume you don't want those). Note that I'm a great fan of TikZ but using a tikzpicture for each tick is surely overkill if anything is. Even if you need TikZ elsewhere in the document, please don't use it ...

3

You're overspecificating: stating column widths is usually unnecessary; you also have p{2.5cm}X which means two column specifiers. If you want that the first column takes all the available space, use X; for getting centered entries, >{\centering}X. \documentclass{article} \usepackage{array} \usepackage{tabularx} \usepackage{booktabs} ...

2

an alternative ... withtabularx and siunitx instead of D columns: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \newcolumntype{d}[1]{D{.}{.}{#1}} \usepackage{siunitx} \begin{document} \begin{table} \begin{tabularx}{\textwidth}{X S[table-format=1.4] ...

2

When using the D column type, be careful to provide only one number containing a decimal marker per cell. Also, take care to distinguish between a typographic - ("minus") and -- ("en-dash") symbol. I would suggest you organize the table as follows: \documentclass{article} \usepackage{dcolumn,booktabs} \newcolumntype{d}[1]{D{.}{.}{#1}} ...

0

Please try to trim examples to just the required packages, in this case your example just needs \documentclass[12pt]{article} \usepackage{tabularx} % provides a column type called "X" that should satisfy your professed need to have several equal-width columns \usepackage{booktabs} \usepackage{threeparttable} %\usdate \usepackage{dcolumn} ...

Top 50 recent answers are included