New answers tagged

5 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
  • 289k
3 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
  • 490k
1 vote
Accepted

Breaking Long Radical Over Multiple Lines

Rather than splitting the contents of the radical I'd use a fractional exponent. By nesting split inside align, you get the equation numbers centered between the lines. Don't use pxfonts, that's ...
egreg's user avatar
  • 1.1m
1 vote

Breaking Long Radical Over Multiple Lines

Instead of creating superlong lines (vinculi?) which span two lines, I suggest you switch to [...]^{1/2} notation, with the opening bracket on one line and the ]^{1/2} term on the other. I would also ...
Mico's user avatar
  • 490k
0 votes

Breaking Long Radical Over Multiple Lines

I was able to work around the problem by splitting the first and second lines into different \align environments and by using the \aligned command to fit multiple lines under the square root: \begin{...
Yasen Y.'s user avatar
1 vote
Accepted

First tag of nested description environment with newline style wont appear on new line

Adaptations \setdescription is deprecated, replaced by \setlist[description,<levels>]{<format>} defined command \directenv, that can be used, if there is no text following, but directly ...
dexteritas's user avatar
  • 8,836
0 votes

How do I highlight text or formulas?

You cannot use cites or equations inside \hl. The issue with cites can be solved with a \mbox{\cite{...}} at least in some cases (no MWE, not possible to check if that could work in your case), but ...
Fran's user avatar
  • 78.9k
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
  • 595k
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,458
3 votes
Accepted

Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)

The problem is that the url is math. The theorem code stores the optional argument in a box that it then unwraps later but TeX performs some optimization in this case and omits the implicite penalties....
Ulrike Fischer's user avatar
3 votes

Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)

You are under no obligation to use the optional argument of the theorem environment to place the URL string. This approach will have to be modified if the URL string contains certain TeX-special ...
Mico's user avatar
  • 490k
3 votes

How to force a line break right after the name of the proof environment?

I suppose you use amsthm package, In this package proof is defined as : \newenvironment{proof}[1][\proofname]{\par \normalfont \topsep6\p@\@plus6\p@ \trivlist \item[\hskip\labelsep\itshape #...
Manuel Cart's user avatar
3 votes
Accepted

How to force a line break right after the name of the proof environment?

Something like this? \documentclass{article} \usepackage[ngerman]{babel} \usepackage{amsthm} \begin{document} \begin{proof} \hfill \noindent $G1 (a * b) * c = a * (b * c) \forall a, b, c \in G$. \...
Mico's user avatar
  • 490k
2 votes

How to force a line break right after the name of the proof environment?

Like this? \documentclass{article} \usepackage[ngerman]{babel} \usepackage{amsthm,amsmath,amssymb} \begin{document} \begin{proof}\ \\ $G1 \quad (a * b) * c = a * (b * c), \quad \forall a, b, c \in ...
Sebastiano's user avatar
  • 52.6k
1 vote
Accepted

Changing \autocite format to include page number

Since its not fully clear which biblatex style you're using, here is a simple solution for style=authoryear. But it may also work with other styles, depending on the definition of some macros. Here a ...
lukeflo's user avatar
  • 1,091
2 votes
Accepted

Is it possible to programmatically add line breaks inside \makecell?

Using L3's \clist_map_inline:nn instead of forarray this works as intended. The issue is that each line in \makecell forms a cell in a nested tabular, and hence is a group. It seems the loop of ...
Skillmon's user avatar
  • 56.4k
3 votes

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

You need to break the long lines, I suggest to use two aligned inner environments. The staggering will tell your readers how to read the formulas. Avoid ^{\prime} not because it's wrong, but because a ...
egreg's user avatar
  • 1.1m
2 votes

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

With use of macro \MoveEqLeft and math environment aligned, both defined in the mathtools package: \documentclass{article} %--------------- show page layout. don't use in a real document! \usepackage{...
Zarko's user avatar
  • 289k
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
  • 490k
0 votes
Accepted

Prevent Overfull \hbox

Although there's no MWE here, and the document class is unknown, the context makes the problem clear. Remember that in most document classes, the \parindent is nonzero. And that indent will be ...
barbara beeton's user avatar
2 votes

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

Why not just use \babelhyphen{+}? \documentclass[twocolumn,a5paper]{article} \usepackage[english]{babel} \begin{document} \newcommand\+{\babelhyphen{+}} \newcommand{\youword}{\textit{This\+Is\+A\+...
Fran's user avatar
  • 78.9k
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
3 votes

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

If you are able to compile your document under XeLaTeX, the fontspec package let's you redefine the hyphenation character temporarily or "on the fly" -- say, to the + character -- and switch ...
Mico's user avatar
  • 490k
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

Top 50 recent answers are included