# Tag Info

0

Updating the packages algorithmicx and algorithms did not help, but indeed the problem was that on one machine one of the packages was outdated. After a thorough search/comparison of the package dates in the MiKTeX Package Manager on both machines, I found that on one system the package caption had a different date than the other. Uninstalling the older ...

6

First of all, you absolutely need to tell whoever is in charge of the project what you’re almost saying in the comments: what you’re asking to do here is the consequence of bad decisions that you shouldn’t have to deal with. All you’re doing here is working around these bad decisions because you can’t tackle the main issue. Now, as long as you’re aware of ...

1

The \xyR macro requires an argument, the desired spacing between rows. Here's how you should use it, with also a simpler approach: if you follow \xymatrix with @R=<dimen>, the given length will be used as the space between rows; you can also use \xymatrix@R+<dimen> \xymatrix@R-<dimen> that respectively add or subtract the given length ...

4

By default, set in /tex/plain/base/plain.tex (or latex.ltx), the glue value is set (equivalently) to \baselineskip=12pt. i.e. it has no stretch or shrink, the same goes for \lineskip=1pt. So, with the defaults, intra-baseline distances can't flex in the way described. Spacing can look uneven if the boxes get too close together and \lineskiplimit is ...

5

Use \linewidth for the width of the current environment (in this case, the current column). Use \textwidth for the width of the whole text block on the page.

1

the only way i know to do this globally without checking to see what words are extending into the margins is to use \sloppy, and you really don't want to do that. the resulting interword spacing is often terrible, and it can change previously "good" paragraphs. the next easiest method is to look into the log file for overfull hbox messages, determine what ...

1

How about including those culprit words into a hyphenation list? Look here: http://www.forkosh.com/latex/ltx-244.html Have you tried adding \hyphenation{...} to your preamble?

0

Just another solution, since I run into the some error, but with different cause. Using the setspace usepackage is just fine, e.g. \usepackage[ onehalfspacing %doublespacing ]{setspace} But in combination with ClassisThesis the setspace usepackage must be set after the call of \usepackage{classicthesis}. Otherwise only page margins are changed, but not the ...

0

A near-to-clean hack, showing what could be done: \documentclass{article} \usepackage{setspace} \usepackage[para]{ednotes} \DeclareNewFootnote[para]{B} \usepackage{kantlipsum} \makeatletter \newcommand*{\nobaselinestretch}{% \let\baselinestretch\@empty} %% or what you prefer %% %% Rather than redefining \@footnotetext and \@xfloat, %% setspace could ...

1

An actually two-line dirty trick: \documentclass{article} \usepackage{setspace} \usepackage[para]{ednotes} \DeclareNewFootnote[para]{B} \usepackage{kantlipsum} \makeatletter %% May still be useful if there are many of them: \newenvironment{editspacing} {\linenumbers\begingroup\doublespacing} {\endlinenumbers\restore@spacing} ...

1

My most recent solution has been inspired by @corporal's deleted suggestion. \doublespacing is used for \noormalsize which may have a clearly limited scope and won't affect baseline skips of any other font sizes: \documentclass{article} \usepackage{setspace} \usepackage[para]{ednotes} \DeclareNewFootnote[para]{B} \usepackage{kantlipsum} ...

3

You can also set line spacing locally in a clean way as this: \documentclass{article} \usepackage{longtable} \usepackage{setspace} \begin{document} \begin{spacing}{.7} \begin{longtable}{ l | l | p{5 cm} } a & b & a small phrase \\ a & b & a small phrase \\ a & b & here is a long sentence which wraps to the next line, ...

1

Never use \\ at the end of a paragraph and do not change the \parskip manually (see http://tex.stackexchange.com/a/14565/43317). You could load package parskip \documentclass{article} \usepackage{parskip} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important advantages of replication is that it ...

3

\documentclass[12pt,a4paper]{article} \setlength{\parskip}{2\baselineskip} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important advantages of replication is that it masks and tolerates failures in the network gracefully and increases availability. In case of multiple access a problem that ...

1

You can add the following to the top of your file: \documentclass[parskip=full]{scrartcl} This way, the spacing will automatically update based upon the font size you choose. Here is a MWE: \setlength{\parskip}{12pt} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important ...

1

You can use \setlength{\parskip}{12pt} to achieve a custom \parskip in your whole document. Adjust the value to your needs and place the command inside your document-environment.

4

Use \strut: The code: \documentclass{report} \usepackage{siunitx} \usepackage{microtype,textcomp,textgreek,mathspec} \usepackage{xpatch} % can exclude etoolbox. xpatch loads it anyway, since egreg (xpatch author) extends etoolbox \makeatletter %http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html \def\thickhrulefill{\leavevmode \leaders \hrule ...

1

Here is a complete solution with lualatex using directlua: \documentclass[]{article} \usepackage{fontspec} \setromanfont{Rockwell Extra Bold} \newcommand\distributed[1]{% \makebox[\linewidth][s]{% \directlua{ letters = {} for letter in string.gmatch("#1", ".") do if letter == " " then table.insert(letters, "{}") ...

1

Replace spaces by {} (so a double space will appear) and put a space after each letter. Caveat Accented letters won't work. For that much more work is needed unless you use XeLaTeX or LuaLaTeX. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\widen}{mm} { \tl_set:Nx \l_tmpa_tl { #2 } \tl_replace_all:Nnn \l_tmpa_tl { ~ } ...

1

Adapting my answer at How to repeat over all characters in a string?. I had to modify it to not do the added \hfill prior to the first character. As Werner points out, this approach cannot in general accept a macro as part of its argument. \documentclass{article} \usepackage{lipsum} \newcommand\chariterate[1]{\chariteratehelpX#1 \relax\relax} ...

1

Here is one option using LaTeX's \makebox with a stretched alignment: \documentclass{article} \usepackage[paper=a6paper]{geometry}% Just for this example \setlength{\parindent}{0pt}% Just for this example \begin{document} \sffamily \makebox[\linewidth][s]{\LARGE\bfseries S O M E T H I N G {} B I G} \makebox[\linewidth][s]{s o m e t h i n g {} s m a l l} ...

Top 50 recent answers are included