# Tag Info

4

I wouldn't push down the left-hand side, so I provide both renderings. \documentclass[11pt]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm, bm} \begin{document} \label{theta} \begin{bmatrix} x\\ y \end{bmatrix} = \!\begin{aligned} & \left[\begin{matrix} L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ})\cos(\theta_{1}+ ...

4

Some suggestions Don't auto-size the outermost parentheses in equations (2) and (4) -- use \biggl[ and \biggr] instead. Avoiding the autosizing of the outermost parentheses spares you having to type \right. at the end of the first line and \left. at the start of the second, and having to insert something like \vphantom{\left(\frac{2\pi}{10}\right)} ...

3

Why don't you simply go for something like that? \documentclass{article} \usepackage{amsthm} \theoremstyle{plain} \newtheorem{theo}{Theorem}% Regular theorem env. \begin{document} \begin{theo}[List in the Theorem environment]~ %%% <- Note that space! \begin{enumerate} \item A little bit of text. \item A little bit of text. \end{enumerate} \end{theo} ...

3

I'd recommend using the listings package for this; it's considerably more flexible. For example, you can specify \lstset{breaklines=true} in the preamble to prevent lines from overrunning the margins. Here's a basic way to do it. \documentclass{article} \usepackage{listings} \lstset{ basicstyle=\footnotesize\ttfamily, % specifies that lines ...

3

With help of package makecell and siunitx I redisign your table in form, which should be a starting point for your further effort in its formatting: \documentclass{article} \usepackage{booktabs,makecell} \renewcommand\theadfont{\normalfont} \usepackage{siunitx} \usepackage[margin=30mm,showframe]{geometry} \begin{document} \begin{table}[h] ...

3

I'd rather use a placeholder such as \omega for \theta_{1}+ \delta\theta_{1} (change the name according to your needs) and explain it afterwards; in this way, your expression fits in one line, which is a better option here: \documentclass[11pt]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm, bm} \begin{document} \label{theta} ...

3

The alttree style uses \makebox which won't allow line breaks. You could make a new style based on the alttree style that uses a \parbox instead. For example: \documentclass[12pt,a4paper]{report} \usepackage{amsmath} \usepackage{longtable} \usepackage[acronym,toc,nopostdot]{glossaries} \glssetwidest[0]{...................} \newglossaryentry{first_entry}{ ...

3

You can use \noexpand\n to print a newline character (\n in a lua string) through \directlua within a document. Adjusting your example we get the following: \documentclass{article} \usepackage[nolinks,forget]{qrcode}% \begin{document} \newcommand{\Space}[0]{\ }% \qrset{height=2.5cm} \qrcode[version=5]{ \directlua{ for i,p in ipairs( ...

3

touhami's suggestion in the comments made me find an answer for this admittedly niche problem. The solution is to construct the paragraph as if it was being normally typeset and then handle the positioning of the last paragraph manually. Here's how it goes: \textbf{CENTRED / NOT SMALL}\par { % Typeset as we did previously for the "regular / not small" ...

3

By default, TikZ nodes do not allow line breaks, but if you add the align=<left/right/center> key you can use \\. Hence, you can modify the legend style as below. \documentclass[border=4pt]{standalone} \usepackage{pgfplots} \pgfplotsset{ compat=1.12 } \begin{document} \begin{tikzpicture} \begin{axis}[ legend style={cells={align=left}} ] ...

2

The error message is ! Paragraph ended before \pgffor@normal@list was complete. <to be read again> \par This means that TeX has found \par (inserted because of the blank line) in the argument of a non \long macro. Indeed \show\pgffor@normal@list gives > \pgffor@normal@list=macro: #1->\def \pgffor@values {#1, \pgffor@stop ...

2

You can define the textwidth to have a certain value using package geometry. Alternatively, a parbox could be used, but they cannot be broken over pages. Use \raggedright to get non-justified text. \documentclass{article} \usepackage{amsmath} \usepackage[parfill]{parskip} \pagestyle{empty} \usepackage{xcolor} \definecolor{mywhite}{rgb}{1,1,1} ...

2

You are describing the action of \linebreak Here's an example \documentclass{article} \begin{document} Some words in a line so that we arrive somewhat near to the right margin and go beyond it by adding more words. Some words in a line so that we arrive somewhat near to the right \linebreak margin and go beyond it by adding more words. \end{document} ...

2

You need your main switch to be expandable so I use \DeclareExpandableDocumentCommand and removed \let\\\relax and \eatpar which (a) aren't expandable and (b) can only do harm. this works \documentclass{article} \usepackage{xparse} \usepackage{environ,longtable,threeparttablex,booktabs,multirow,array,adjustbox,supertabular}% table adjustment packages % ...

2

At last there are two problems in each bibliography: correct hyphenating and breaking of (long) urls. Because bibliographys are not text to be read like the text in your document, there is no need to use the same justifying in the bibliography and the text. Using only left justifying in the bibliography has the advantage, that LaTeX is able to break the ...

2

As far as I can tell, the real issue here is that the hyphenrules environment cannot deal with breaks in words with special characters. The babel documentation says The environment hyphenrules can be used to select only the hyphenation rules to be used (it can be used as command, too). [...] Except for [...] simple uses, hyphenrules is discouraged and ...

1

Use makecell for that, and its \thead command. In addition I loaded the mhchem and siunitx package. \documentclass{article} \usepackage{geometry} \usepackage{amsmath} \usepackage{array, booktabs, makecell} \usepackage{siunitx, mhchem} \newcommand\muL{\si{\micro\liter}} \begin{document} \begin{table}[h] \centering \small \tabcolsep=0.11cm ...

1

This seems like the least hacky approach: \documentclass{article} \begin{document} \paragraph*{Some title stuff}\leavevmode\\ blah blah blah \end{document} It tests OK with \documentclass{report|book} too. The * in \paragraph*{} is not essential; it just keeps the heading out of a Table of Contents. If you want the text indented, you can add a blank ...

1

well this doesn't stop it issuing \par but it stops that \par ending the current paragraph. \documentclass{article} \usepackage{textpos} % \setlength{\TPHorizModule}{\textwidth} \setlength{\TPVertModule}{\textheight} % \begin{document} Foo \vadjust{\begin{textblock}{1}(0,-0.2) Bar \end{textblock}} Foo \end{document}

1

You do not want a paragraph break at that point, certainly you never want \linebreak at the end of a paragraph, so: \documentclass[a5paper,10pt]{article} \usepackage{multicol} \begin{document} \begin{multicols}{3} Four score and seven years ago our fathers brought forth, upon this\columnbreak\linebreak{} continent, a new nation, conceived in liberty, and ...

1

The break of the ToC entries depend on the right margin. tocloft allows you to change this (from the default 2.55em) using \cftsetrmarg: \documentclass[12pt]{article} \usepackage{tocloft} \cftsetrmarg{7em}% Default is 2.55em \begin{document} \tableofcontents \section{long section title that in the TOC wraps to the next line at a point too far} ...

1

3503 isn't so bad. Of course you are hyphenating mock latin with English hyphenation rules which doesn't help. \emergencystretch adds (effective) extra stretch to help the line breaking but so that you know this emergency action has been taken, TeX still gives the original badness warning. So adding to this parameter makes the output look better but ...

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