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 ...
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}{...
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\...
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
\...
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 ...
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 ...
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....
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 ...
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 ...
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, ...
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|...
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
\...
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}
\...
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 ...
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 ...
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 ...
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-\...
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
...
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 \...
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}
...
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}
\...
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\...
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 ...
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 ...
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 ...
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{...
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 ...
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[...
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}...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
line-breaking × 2808tables × 221
math-mode × 195
hyphenation × 185
spacing × 173
equations × 135
paragraphs × 125
listings × 103
urls × 97
horizontal-alignment × 87
biblatex × 86
macros × 81
formatting × 78
page-breaking × 69
align × 66
boxes × 60
sectioning × 59
tikz-pgf × 56
hyperref × 56
indentation × 55
lists × 54
amsmath × 50
line-spacing × 50
warnings × 50
bibliographies × 48