Hot answers tagged

7

You can use the generic code in insbox.tex for this. Note that somehow insbox does fail badly in the solution environment if you add an additional paragraph after the first (because its calculation of how much space is still required fails). For that you can use \restoreinsbox (but only if your paragraph starts after the insertion). I didn't create anything ...


5

As far as I can tell, the "Blah Blah ..." material is only indirectly related to the preceding, table-like material. Is the "Blah Blah" material maybe some kind of legend? If this guess is correct, you'd be better off not placing it inside the tabular environment. Instead, I suggest you load the threeparttable package and place the legend in a tablenotes ...


4

There's a plain TeX macro package which isn't often mentioned: insbox and does a good job. For your case, we can use the \InsertBoxR command just before a paragraph; it takes two mandatory arguments: the number of lines with normal length at the beginning of the paragraph, and what you want to insert. It can take an optional argument (contrary to LaTeX ...


4

since you tag your question with tabularx i suggest to use this package. beside it more nice result you will obtain by use of the booktabs package for horizontal rules: \documentclass{article} \usepackage{booktabs, tabularx} \newcolumntype{C}{>{\centering\arraybackslash}X} \newcommand\mcc[1]{\multicolumn{2}{c}{#1}} %---------------- show page layout. ...


3

A simple method is with fancyvrb and fvextra: \documentclass{article} \usepackage{fancyvrb,fvextra} \usepackage{showframe} % just for the example \begin{document} \begin{Verbatim}[breaklines] curl -v -s -X POST $OS_AUTH_URL/auth/tokens?nocatalog -H "Content-Type: application/json" -d '{ "auth": { "identity": { "methods": ["password"],"password": {"user": ...


3

Please see the following code: \documentclass{article} \usepackage{wrapfig} % <======================== wrap text around figure \usepackage{blindtext} % <========================= to create dummy text \begin{document} \blindtext \begin{wrapfigure}{l}{5cm} % <========================================== This is a special part! This is a special ...


3

I wonder if you really want tables at all? Usually CVs are organized more with lists. A table would have strictly defined rows and columns, but your line about "Write about research interests here, and here and here...." probably shouldn't be a row or a column. And it's this line that goes off the edge of the page. In any case, in LaTeX lines of text ...


2

At last it depends on the text around the wrapfigure. To show the effect I changed your given code to be more minimal (I used package blindtext to genaerate dummy text). The following code \documentclass[12pt]{book} \usepackage{graphicx} \usepackage[labelfont=bf]{caption} \usepackage{wrapfig} \usepackage{newtxtext} \usepackage{microtype} \usepackage[...


2

The simplest way uses the \thead command, from makecell: it allows for line breaks in standard cells. I added some improvements with the booktabs rules, which add some padding around horizontal lines. Also, you shouldn't center tables with a center environment, as table adds some vertical spacing, and center will add another, redundant, spacing. Use the \...


2

as mentioned in comment, a possible solution is is manually split table into two parts end enclosed it in table* float and for table environment use tabularx environment. with help of the stfloats package place firstpart of the table on bottom of the page, and the second part on the top of the next page. with macro \ContinuedFloat assure that caption of the ...


2

Here is away to do it with a simpler code: I use the xltabular environment, which brings the functionalities of longtable to tabularx, so the longtable does not overflows into the margin. I added cellspace , which defines a minimal vertical padding in cells of columns with specifier prefixed with the letter S(or C if you load siunitx). \documentclass{...


2

A conceptually easier approach is to put the text into a minipage and manually break it. \nopar ends a paragraph without making it look like the end of a paragraph. The advantage is that you can include equations and other non-\baselineskip type fields without messing things up. Just put everything into the minipage until you are ready to place the \nopar....


2

It is very simple to do with the plain TeX macro package insbox. It defines an \InsertBoxR command with two mandatory arguments: the number of lines unshortened before the box is inserted in the following paragraph and the box contents, and one (last) optional argument, the number of supplementary lines to shorten, in case TeX doesn't make a correct ...


2

With the basic settings taken from Ross' answer to the previous question, you can get the following result using the cutiwn package: \documentclass[letterpaper,12pt,oneside]{article} \usepackage{geometry} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{fontenc} \usepackage{wrapfig} \usepackage{graphicx} \usepackage{multicol} \usepackage{...


1

This solution uses flowfram. The advantage of flowfram is that everything is positioned relative to the page, not the text. Normally when paragraphs break across frames, the width is not changed. Instead you have to manually break the paragraphs using \nopar, adding them one at a time where needed. Note that flowfram is incompatible with twocolumn, but ...


1

Not an answer to the question, but rather an answer to your comment asking for a workaround: Okay, I will ask on the mailing list. But still is there any way at this moment to avoid the renumbering? Not recommending to use this even as a workaround but perhaps something similar? \defineframedtext [framedcode] [strut=yes, offset=2mm, width=7cm,...


1

Letterine uses \hangindent, which can only be used at the start of a paragraph. The trick is to make \par act line \linebreak. \documentclass{article} \usepackage{lettrine} \newcommand\mychapter[1]{\lettrine[nindent=0pt,findent=1em]{#1}{}} \newcommand{\nopar}{\strut{\parfillskip=0pt\parskip=0pt\par}} \begin{document} \dots\ At this the men greatly feared ...


1

From the multirow manual: 〈width〉 is the width to which the text is to be set. Special values are * to indicate that the text parameter’s natural width is to be used, and = to indicate that the specified width of the column in which the \multirowentry is set should be used. So, replace \multirow{4}{*}{ccccccccccc (ccccccc)} by \multirow{4}{=}{ccccccccccc ...


1

First step, determine the height and width needed. \documentclass{article} \begin{document} \sbox0{\begin{tabular}{| r | r | r |} \multicolumn{3}{| r |}{Reference \footnotesize{*Estimation}}\\ \hline\hline Incidence & &\\ 1958-1962: & number & number \\ 2013-2017 & number & number \\ \cline{1-3} Text & &\\ 1978-1982 &...


1

You can add width argument to your columns, like \multicolumn{9}{p{\linewidth}}. Perhaps \multicolumn{9}{p{.7\linewidth}} will do even better. Addding this to your example produces the following https://imgur.com/WcNyPXb Here is the complete code of mwe \documentclass{article} \begin{document} \begin{table}[p] \begin{tabular}{ccccccccc} \hline Compound ...


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