6

You can make \hypenpenalty negative, if you wish to go this way. \documentclass{article} \usepackage[main=latin]{babel} \usepackage{lipsum} \usepackage[width=15cm]{geometry} \usepackage{multicol} \setlength{\columnsep}{1cm} \begin{document} \begin{multicols*}{2} \lipsum[1] \columnbreak {\hyphenpenalty=-200 \lipsum[1] } \end{multicols*} \end{...


5

(I modified this answer after the OP clarified that reproducing the exact placement of the words across lines was crucial.) I suggest you employ a tabularx environment with two columns; the left-hand column should be p{8.5cm}, the second should be of type X(to take up the residual available width). Next, don't use line breaks in the left-hand columns, and ...


4

The monospaced font is assigned rigid interword space, which of course makes justification essentially impossible. For efficiency reasons, a font is loaded only once, so your declaration has the effect of setting rigid interword space also for the main font. Switch the order of declarations, as the “monospaced” font having flexible interword space should ...


4

\raggedright redefines \\: it internally inserts a \par and so actually ends your \parshape. You can use \newline instead of \\: \documentclass[varwidth]{standalone} \begin{document} \parbox{40mm} { \parshape 3 0pt 113.81102pt 14.44pt 99.37102pt 17.77pt 96.04102pt \raggedright \textbullet\ This is sentence 1 \newline This is sentence 2 ...


4

\parbox calls \sloppy in its initialization code. You can reset it to \fussy but this can easily lead to overfull lines. (I removed the periods as the larger space after them makes it difficult to see a difference): \documentclass{article} \begin{document} \parbox{40mm} {\everypar{\parshape 2 0mm 40mm 5mm 35mm} This is sentence This is ...


4

Use \vdotswithin tag which comes along with the package mathtools, and the codes are follows: \documentclass{book} \usepackage{mathtools} \begin{document} \begin{equation} \begin{cases} u_{1,t}=\nabla\cdot D(u_{1})\nabla u_{1,t}+f_1(c_1, \dots, c_m, u_1, \dots, u_n)\\ \vdotswithin{u_{n,t}=\nabla\cdot D(u_{n})\nabla u_{n,t}+f_2(c_1, \dots, c_m, u_1, \dots, ...


4

Some suggestions: use an align environment to contain both rows of the display-math material use a \notag instruction in the first row to suppress the typesetting of an equation number use \biggl and \biggr for all large parentheses and brackets load the mathtools package -- a superset of the amsmath package -- and define macros called \abs and \norm. This'...


4

Welcome to TeX.SE! When TeX processes your floating material (inside figure environments), it expands \thepage to the number of the page it is currently working on. However, the material contained in the underlying \insert (a TeX primitive) may float to another page, by definition of floats such as LaTeX's table and figure environments. But once packed in ...


4

The KOMA-Script classes provide \ifthispageodd: \documentclass[twoside]{scrartcl} \usepackage[outer=7cm, inner=3cm, marginparwidth=4cm, marginparsep=10mm]{geometry} \usepackage[top]{mcaption} \usepackage[font=footnotesize,normal]{caption} \usepackage{graphicx} \usepackage{mwe} \...


4

Sure that you want a table for this? \documentclass{article} \usepackage[rmargin=4in]{geometry} \begin{document} You grow emotionally involved\marginpar{relationship involved}. You get to know this child so intimately that you grow close to the child and you know you despair, you're frustrated. You feel angry - I feel anger\marginpar{emotions} a lot of the ...


3

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{@{}>{\parfillskip=0pt}p{8.5cm} l} You grow emotionally involved. You get to know & relationship \\ this child so intimately that you grow close to the child & involved \\ and you know you despair, you're frustrated. You feel \\ angry -- I feel anger a lot of the time.\...


3

With the help of split and a slightly smaller margin using the geometry package you can achieve the following output: \documentclass{article} \usepackage{geometry} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} \int{\prod_{i=1}^{m+1}|f_{i}|d\mu} &\leq \|f_{1}\|_{p_{1}} \left[ \prod_{i=2}^{m+1} \left( \int|f_{i}|^{p_{...


3

The hyphenation of the word method has been disabled by following it with a hard space. You have two options: manually reinsert a hyphenation point, or put up with wider gaps associated with \sloppy or sloppypar. \documentclass{report} \usepackage{graphicx} \usepackage{caption} \begin{document} \begin{itemize} \item[efficiency] The ledenn and isolatiosdfsf ...


3

Well because you've got a very small box with right justification. The nature of the sentences, with your long word sentence which doesn't break very nicely and nowhere else to break each line means the result can't be otherwise. Where else would you break? You can't break the line elsewhere, so to achieve justification, you get, well, that. That's always ...


3

I think you should typeset the four path statements as displayed equations, i.e., on lines by themselves. (The opposite of a displayed equation is an inline equation.) Using displayed equations will not only get around some of the most severe justification difficulties, it will also make the long equations much easier to read (and, hopefully, understand!). ...


3

To disable text justification, insert \raggedright: \documentclass[a4paper,titlepage]{article} \usepackage[a4paper,top=1.5in,bottom=1.5in,left=1.5in,right=1.5in]{geometry} \usepackage{inconsolata} \renewcommand*\familydefault{\ttdefault} \begin{document} \raggedright Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ...


2

Measure the natural width and decide: \documentclass{article} \newlength{\partlength} \newcommand{\perhapshang}[2]{% \par\noindent \sbox0{#1 / #2}% \ifdim\wd0<\linewidth \makebox[\linewidth]{\usebox0}% \else \settowidth{\partlength}{#1\mbox{ }/\mbox{ }}% \hangafter 1 \hangindent\partlength #1\mbox{ }/\mbox{ }#2 \fi \par }...


2

The alignment setting you are looking for is called end. You can also use \flushedrightlastline as a local switch (like \raggedright). \setuppapersize[A5] \setupalign[end] \define[1]\heading{% \blank[big,samepage]% \dontleavehmode{\bfc\setupinterlinespace\strut#1}% \blank[medium,samepage]% } \showframe \starttext \heading{Left 1} \samplefile{...


2

You can define your own \raggedleft by taking the definition of \raggedright and replacing \rightskip with \leftskip: \def\raggedleft{\leftskip=0pt plus2em \spaceskip .3333em \xspaceskip .5em\relax} Afterwards, \leftskip has a stretch component (plus 2em), so the text is ragged un the left. Setting \spaceskip and \xspaceskip is used to make sure that the ...


2

As I guessed from the image as posted in the original question, the class file has %% \RaggedRight makes the right margin go in and out; if this is commented out %% the default will be a right justified margin. \RequirePackage{ragged2e} \RaggedRightParindent=24pt \advance\RaggedRightRightskip 24pt \RaggedRight So by design the right margin is ragged. You ...


2

Inside a flushleft environment, \raggedright is in effect and the first line of each paragraph is not indented. I take it that you wish to achieve the second effect but not the first. If that's the case, all you need to do is (a) get rid of the flushleft wrappers and issue the instruction \setlength\parindent{0pt} A full MWE: Do please note that if the ...


2

You need to remove the \hfil glue added by the l column specification so: \documentclass{article} \setlength{\tabcolsep}{0pt} \newenvironment{entrylist}{% \noindent \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll} }{% \end{tabular*} } \renewcommand{\bfseries}{} \newcommand{\entry}[4]{% \spaceskip0pt\xspaceskip0pt % for ragged2e document ...


2

I would not uses cases for this, which is better suited for use on the right-hand side of an equation. Rather I would use an aligned block, aligning on the equality signs, and enclosed in a \left\{ ... \right. pair to produce the left brace. MadyYuvi's suggestion to use \vdotswithin is also a good aid. \documentclass{article} \usepackage{mathtools} \...


1

NB! If you have footnotes, see last paragraph. First of all, to ensure that all pages in a document to the maximum extent is fill with textlines, is the absolute final step in production of a document, except for ensuring that you have loaded microtype and babel, which should do as standard (even if you write US English). The next you should ensure, is that ...


1

Maybe the following gives you the desired result: \documentclass{scrartcl} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \captionsetup[subfigure]{justification=raggedright,font=tt} \centering \begin{subfigure}[t]{0.31\textwidth} \includegraphics[width=\textwidth]{example-image-a} ...


1

You are setting up four columns in your longtable. If you want to use the L-column with an argument to set the width do it like this: \documentclass{article} \usepackage{lipsum} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \newcolumntype{L}[1]{>{\raggedleft\arraybackslash}p{#1}} \begin{document} \begin{longtable}{L{8cm} L{4cm}}\toprule ...


1

Here is one way to format it. Note that the first two lines overlap the constraints. \documentclass{article} \usepackage{mathtools,amssymb} \usepackage{xcolor} \usepackage{showframe}% debug only \begin{document} \begin{flalign*} \mathrlap{\color{red} \underset{\textbf{X}}{\text{minimize}} \sum_{k\in G} \eta_k} &&&& \\ \rlap{subject to} &...


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