11 votes
Accepted

How can I make such a drawing in TikZ?

A bit hacky, but one could use the tabularray package. The idea is to draw a simple rule and a table with gaps between the columns in front of it. Here are two examples, one with equal width boxes and ...
samcarter_is_at_topanswers.xyz's user avatar
11 votes

How can I make such a drawing in TikZ?

A solution with packages nicematrix and tikz. \documentclass{article} %\usepackage[showframe]{geometry} \usepackage{tikz} \usetikzlibrary{decorations} \usepackage{nicematrix} \setlength{\parindent}{...
polyn's user avatar
  • 5,194
11 votes
Accepted

Modified Bourbaki problem

\documentclass[draft]{article} \usepackage[a4paper,margin=5cm]{geometry} \usepackage{parskip} \def\trailingcitation#1{% adapted from expex \unskip \hskip 1.5em plus 1fill \penalty100\null\...
David Carlisle's user avatar
11 votes
Accepted

How to stop long words with "+" in them from going into the margins?

Not sure I fully understand your request "without hyphenation". Here, I make the + disappear at line breaks: \documentclass[a4paper]{article} \newcommand{\plussy}[1]{% \begingroup \...
Steven B. Segletes's user avatar
9 votes
Accepted

How to correctly separate paragraphs with a blank line

LaTeX separates paragraphs every time you add at least one empty line between texts. Then, how paragraphs are formatted depends on you. Here's a good helpful website: How to change paragraph spacing ...
Celdor's user avatar
  • 8,793
7 votes

How can I make such a drawing in TikZ?

The following doesn't use TikZ, instead it makes use of the primitive \valign. Drawing the horizontal connection rules is rather tricky though. In order to do so the code needs to measure and remember ...
Skillmon's user avatar
  • 57.5k
7 votes
Accepted

Breaking equation with LuaLaTeX

This is not related to the Lua, a brace group prevents breaking \documentclass{article} \usepackage{breqn} \begin{document} \begin{dmath*} {f(1.02) + f (1.06) + f (1.1) + f (1.14) + f (1.18) + f (1....
David Carlisle's user avatar
6 votes
Accepted

Lines that doesn't fit the structure (overfull hbox)

I assume you have something more like \documentclass[12pt,draft]{article} \begin{document} Traditionally in Econometrics, statistical models such as Auto-Regressive (AR) and Generalized ...
David Carlisle's user avatar
6 votes
Accepted

\linebreak causes the words in the preceding line to expand

You should not use \linebreak for paragraphs. It sets only an absolute break point, so the line is justified like each other line of a justified paragraph. You should also not use \newline or \\ for ...
cabohah's user avatar
  • 9,098
6 votes
Accepted

Dotfill after hypenation break

TeX tries to avoid that line before the paragraph end has a hyphen. You can allow that by changing \finalhyphendemerits: \documentclass{article} \begin{document} hippopotamus, hippopotamus, ...
Ulrike Fischer's user avatar
6 votes
Accepted

Force text onto new page

Use \clearpage instead of \newpage. Here there is the solution. \documentclass{article} \begin{document} \begin{table}[!ht] \centering \caption{Decomposition Level 6} \begin{tabular}{|l|...
Sebastiano's user avatar
  • 52.7k
6 votes

How to stop long words with "+" in them from going into the margins?

If you have “words” of this form, you can define an infrastructure for commands representing them: \documentclass{article} \NewDocumentCommand{\breakingplus}{}{\discretionary{+}{}{+}} \ExplSyntaxOn \...
egreg's user avatar
  • 1.1m
6 votes
Accepted

How to split a long set

To my opinion is your text better readable, if long sets are written in display math form: For this I use aligned* and multlined of mathtools package: \documentclass[a4paper,12pt]{article} \...
Zarko's user avatar
  • 293k
5 votes

How can I make such a drawing in TikZ?

I like the tabularray solution but here's an only TikZ one anyway. Code \documentclass{article} \usepackage{tikz} \usepackage{showframe} \usetikzlibrary{matrix, ext.node-families} \tikzset{ upper ...
Qrrbrbirlbel's user avatar
5 votes
Accepted

Automatic page break for very long equations

Desciption Page breaks are automatically added if you use a normal math environment (or $...$). I added an equation number manually using the defaultequation counter. Note: \biggl( and \biggr) aren't ...
dexteritas's user avatar
  • 9,041
5 votes

Landscape table to fit entire page by automatic line breaks

(added \foreignlanguage{english}{...} wrappers for material in column 1, added code to suppress an inappropriate f-l ligature in the word "Auflösung", uploaded a better screenshot) I would ...
Mico's user avatar
  • 495k
5 votes
Accepted

Automatically Indent the Last Line of a Statement a Prescribed Amount

You can define and use the macro \indentlast: \def\indentlast#1#2{\par \setbox0=\vbox{% \parfillskip=#1 plus1fil \relax \noindent #2\par }% \ifdim\prevdepth>-1000pt \kern-\...
wipet's user avatar
  • 72k
4 votes
Accepted

Overfull hbox caused by paragraph consisting of a single line

parfill With package option parfill, the package also adjusts \parfillskip to impose a minimum space at the end of the last line of a paragraph. If specified without a value then 30pt are assumed, if a ...
David Carlisle's user avatar
4 votes
Accepted

Looking for a command to allow a linebreak with a hyphen

Looks like you wish to explicitly give the hyphenation. You can do this locally making use of aver\-ylon\-gword\-here or you can define the hyphenation for some specific word on preamble with \...
Sigur's user avatar
  • 37k
4 votes

Force text onto new page

Your readers won't understand what “those tables” refers to. Call them by reference and just leave them to float with the [p] option. \documentclass{article} \usepackage{booktabs} \usepackage{lipsum} ...
egreg's user avatar
  • 1.1m
4 votes
Accepted

How to automatically wrap lines in scriptio continua

I would use \XeTeXinterchartoks which allows you to automatically insert things between characters which allow for breaks. % TeX Program = xelatex \documentclass{book} \usepackage{geometry} \...
David Purton's user avatar
  • 25.6k
4 votes

How to automatically wrap lines in scriptio continua

You can add \hskip0pt plus 1em after each printed character in a recursive loop. This solution works in each TeX engines (no only XeTeX). For example in OpTeX: \fontfam[newcm] \long\def\...
wipet's user avatar
  • 72k
4 votes
Accepted

Gap inside parshap in one line

I have uploaded to CTAN version 2.52 of the lettrine package which offers a new option viewport=llx lly yrx ury. Thanks to David Carlisle for providing the piece of code I was missing! The idea is to ...
Daniel Flipo's user avatar
  • 2,004
4 votes

Landscape table to fit entire page by automatic line breaks

It seems, that your table is to big that can be fit on one page, so I suggest to use some kind of long table and landscape environment. For automatic breaking text in cells into several lines you need ...
Zarko's user avatar
  • 293k
4 votes
Accepted

Cannot fit align environment into page even with multiline* or \resizebox

I think you need to break up line 3 into three parts and line 4 into two parts. To simplify the aligning of the three parts of the old line 3, I'd embed the material to the right of the integral ...
Mico's user avatar
  • 495k
4 votes

I'm having a problem with sentences breaking when writing input and output in a latex algorithm

You can leave a blank line between your Input and Output statements, which sets the proper alignment: \documentclass[twocolumn]{article} \usepackage{algorithm} \usepackage{algorithmic} \begin{...
Werner's user avatar
  • 597k
4 votes

How to split a long set

I doubt that there's a general rule that answers your question. There will be cases for which it's clearly preferable to put the math material containing commas out of the running text and into a ...
Mico's user avatar
  • 495k
4 votes
Accepted

Vertical mode inside a Tikz node, with \textit or \emph

Without the align key the node's content is typeset in a \box. When align is used, the text is basically put into a tabular (actually in a TeX primitive \halign). Therefore, when you write \tikz\node[...
campa's user avatar
  • 29.8k
3 votes
Accepted

Line breaking within ```\left[...\right]```

\documentclass[12pt]{article} \usepackage{amsmath,geometry} \usepackage{amssymb} \begin{document} \begin{align*} \frac{\partial U}{\partial k} &=x^k\log x \Biggl[1-\frac{1}...
Sebastiano's user avatar
  • 52.7k
3 votes
Accepted

How to use a line break in eqnarray without adding a new equation number?

Don't use eqnarray for any reason. Depending on where you want to place the equation number, choose from one of the two examples below. Since you seem to need to split the equation, I assume you're ...
egreg's user avatar
  • 1.1m

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