Hot answers tagged

8

That is the correct variable to play with. It is allow lines to be up to 8% shorter than standard. Try reducing it via e.g. \setlength{\RaggedRightRightskip}{0pt plus 0.02\hsize} for a percentage (here 2%) of the line length or \setlength{\RaggedRightskip}{0pt plus 1em} for an absolute possible shortfall. For the tufte classes this change needs to ...


7

The "raggedness" of \RaggedRight can be configured by length \RaggedRightRightskip, which is inserted at the right end of a line, when TeX breaks the paragraph. The default is 0pt plus 2em, which means the line can be full or short with upto 2em white space at the right side. Increasing the value to 2.8em reduces the number of hyphenations to one at the ...


6

Some words about line breaking. TeX assigns a badness to each line, based on the amount of stretching of the glue in it. In a ragged right setting, there's only stretchable glue at the right (\rightskip), which has the consequence that this glue (if finite) will usually stretch more than stated. The default for \RaggedRight has an the “optimal” stretching of ...


5

You can easily do that. You shouldn't use `eqnarray, which is deprecated and can produce bad horizontal spacing. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} 12 \left( \frac{1}{4}(2x-1)-x \right) &<12 \left( \frac{x}{6}-\frac{1}{3} \right) & \qquad \leftarrow\enspace & \text{multiplicar por 12} \\ -6x - ...


4

I can't reproduce your problem with braces. Regarding centering of symbol: it is easy to center, if you broke "Finitamente satisfacible" into two lines: \documentclass{article} \usepackage{mathtools} \usepackage[active,displaymath,tightpage]{preview} \setlength\PreviewBorder{1em} \begin{document} \[ \underbrace{ ...


3

Here's a possibility that doesn't abuse flalign: \documentclass{book} \usepackage{amsmath,siunitx} \begin{document} \noindent where \[ \makebox[\displaywidth][l]{$\displaystyle \begin{array}{@{} l l @{}} \Delta f_{\mathrm{res}} & \mbox{---\quad \emph{lock time in microseconds,}} \\ \mathcal{L} & \mbox{---\quad \emph{loop ...


3

Please make sure to include a full minimal working example as stated in the comments. It makes it much more rapid and easy for people to help you. However I think your code can be improved. \text{} is used to include text into math-mode. But you've beforehand left math-mode by "closing" the formula block with $. Therefore you don't need it. That is what ...


3

Here are two ways: a regular align that uses the regular spacing parameters associated with spreading out multiple equations on the same line; and using a fixed-gap from the alignment operator. This requires you to set the RHS inside a zero-width box and inserting a fixed-width horizontal space that suits your needs. \documentclass{article} ...


3

The simplest way to do this is to use an array inside your math environment with centered columns. \documentclass{article} \begin{document} \[ \setlength{\arraycolsep}{3em} \begin{array}{c c} 1 & 1 \\ 1\quad1 & 1\quad1 \\ 1\quad2\quad1 & 1\quad2\quad1 \\ 1\quad3\quad3\quad1 ...


3

I would load the fancyhdr package and place the following code in the preamble: \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Monica} \chead{\begin{tabular}[b]{c} \Large CS2800 \\ Homework 1 \end{tabular}} \rhead{February 8, 2015} The body of the document would then start off like this: \begin{document} \pagestyle{plain} ...


3

A little bit different from @Mico solution and a little bit later. \documentclass{report} \usepackage{lipsum} \usepackage[showframe,head=2.5em]{geometry} \usepackage{fancyhdr} \lhead{% \begin{tabular}{@{}l} Element 1\\Monica \end{tabular}% } \rhead{% \begin{tabular}{r@{}} Element 3\\\today \end{tabular}% } \chead{% \begin{tabular}{c} {\large CS ...


3

First, we define a \newcommand for the \rightarrow, called \arrowx (so we don't inadvertently break something), and then we can enclose the first part of your list in a \makebox like: \makebox[<horizontal length>][<alignment>]{<text>} We can even turn this into a command without having to type everything every time, like ...


2

First: You can ignore the warning or you set xmin and xmax symmetrical to 0. For example: xmin=-1 and xmax=1. Second: The bounding box of your picture is enlarged to the left by the long plot title. So with \raggedright the plot title is left aligned. So you have to change the position of the plot title. Code: \documentclass[paper=a4, parskip=half-, ...


2

You're using the wrong tool, in my opinion: a tabular is much simpler. \documentclass[14pt,handout,t]{beamer} \usetheme{Warsaw} \geometry{paperwidth=297mm,paperheight=210mm} \setbeamersize{text margin left=100pt,text margin right=100pt} \newcommand*\arrowx{\item[\large$\Rightarrow$]} \newcommand*\tabit[1]{\makebox[6cm][l]{#1}} \begin{document} ...


2

To patch "normal" frames, the solution can be found text justify in beamer Itemize has also already a solution on this side: Justify text inside itemize environment with beamer class But I could not find one to automatically justify the contents of columns. So I tried a bit, failed in the attempt to patch \begin{column}..., but with \column it works as ...


2

Here is your updated code: \documentclass[11pt,fleqn]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \noindent where \begin{flalign*} &\Delta f_{res} & \hspace{-1.6cm} - & \mbox{\emph{lock time in microseconds}}&&\\ &\mathcal{L} & \hspace{-2.1cm} - & \mbox{\emph{is the loop bandwidth in kHz, ...


2

What about this, it looks even better. \documentclass[11pt,fleqn]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \noindent where \begin{flalign*} &\Delta f_{res} & \hspace{-1.6cm}{:~} & \mbox{\emph{lock time in microseconds}}&&\\ &\mathcal{L} & \hspace{-2.1cm}{:~} & \mbox{\emph{is the loop ...


2

Like this: \documentclass[]{article} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \sisetup{input-symbols = ()} \begin{table}[h] \begin{tabular}{ c S[table-format = 2.1]@{} S[table-format = 2.1] S[table-format = 2.1]@{} S[table-format = 2.1] S[table-format = 3.1]@{} S[table-format = 2.1] S[table-format = ...


2

I would do this on the following way: \documentclass{book} \usepackage{amsmath,amssymb,amsthm} \usepackage[showframe]{geometry}%for show page layout \begin{document} \noindent where\\ $\begin{array}{rl} \Delta f_{res}: & \textit{lock time in microseconds} \\ \mathcal{L}: & \textit{loop bandwidth in kHz, and} \\ f_{m}: & ...


2

You could use a left-aligned tabular environment to achieve your objective. (The line along the left-hand edge of the following screenshot is there to illustrate the edge of the textblock.) Incidentally, I don't think it's really necessary to render the explanatory text snippets in italics. To render the material in the upright text font, simply remove ...


2

The answer given by @Zarco is very complete it I'll give another option. The problem seems to be the text under the braces. Here is my alternative : \[ \underbrace{\{\varphi\}\cup\Delta_M\cup\{p_M\}}_{\text{Finito e}\atop\text{insatisfacible}} \subseteq \underbrace{\Gamma\cup\Delta_{M+1}}_{\text{Finitamente} \atop \text{satisfacible}} \]


2

You also could use \underbrace\overbrace and \mathclap. I give an example with \underbracket/\oberbracket (defined in mathtools): \documentclass{article} \usepackage{mathtools} \begin{document} \[ \underbracket[0.6pt][0.6ex]{\{\varphi\}\cup\Delta_M\cup\{p_M\} }_{\text{Finito e instasifacible.} } \subseteq ...


1

Something like this? \documentclass{article} \newcommand\mybullet{{\tiny\raise0.5ex\hbox{\textbullet}\ }} % custom-size "bullet" \begin{document} \noindent \begin{tabular}{@{\mybullet}ll} list-item & i want this\\ longgg-item & and this to be aligned\\ another-item & at the same level auto\\ \end{tabular} \bigskip\noindent ...


1

Following the answer given here, I added the following in a LaTeX block immediately after the item text in LyX: \par\begin{minipage}{\linewidth} \centering\includegraphics{myimage} \captionof{figure}{My very very ... very long caption text} \end{minipage}


1

to right align text in a \parbox use \parbox{6em}{\raggedleft (The colorbox is not really involved at all)



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