Tag Info

11

The notion of a double space is very poorly defined and if you try to use it to denote any meaning to the reader it will be massively confusing. TeX is not a typewriter, spaces do not have fixed length they stretch and shrink to adjust words to help with line breaking so words which have a single space between them in the source may already be separated by ...

7

You can load the caption package and use this setup (adjust -5pt to your needs): \captionsetup[figure]{belowskip=-5pt} Complete code: \documentclass[a5paper]{scrbook} \usepackage[demo]{graphicx} \usepackage{caption} \captionsetup[figure]{belowskip=-5pt} \begin{document} \chapter{Sample chapter} \section{Sample section} % % Some text more text more ...

6

When the caption is below the float contents, you can adjust the following caption parameters through \captionsetup: aboveskip (space between the float contents and the caption) belowskip (space after the caption) The default values are, for scrbook class, aboveskip=10pt and belowskip=0pt. Also, a \baselineskip is added by default before the floating ...

6

Rules of thumb: Never type text in math mode. Never type math in text mode. Your code can be written in two ways: \documentclass{article} \usepackage{amsmath} \begin{document} $v_{i}=\frac{ 1}{ n}\sum_{j=1}^{n}\left(\mu_{ij} \right)^{m}x_{j} \text{ where } n_{i}=\sum_{j=1}^{n}\left(\mu_{ij}\right)^{m}$ \end{document} or \documentclass{article} ...

6

There is an error in the line \allsectionsfont{\center \normalfont\scshape} It should be \centering and not \center, i.e. \allsectionsfont{\centering\normalfont\scshape} In fact issuing \center you are saying \begin{center} and the center environment adds vertical space. Making this change, the extra spacing before your sectioning commands is removed. ...

5

The answer is: yes, it is possible. Under the assumption that your .tex files each consists in some code of the form \begin{table}\begin{tabular}{...} ... \end{tabular}\end{table}, you can locally redefine the table environment to do nothing, and input that code inside a subtable environment; such an environment uses minipage internally, which means you ...

5

Here is an answer inspired by qingkuan@bbs.ctex.org. You can set a punctuation mark as \active, and then justify its position. Code: %!TEX program = xelatex \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{SimSun} \makeatletter \begingroup \catcode\，=\active \@firstofone{\endgroup\protected\def，}{% \hskip -.4ex\rlap{\raise -.9 ex ...

4

You can use a doubled tilde ~~ to get two spaces. But maybe \enskip can help too or you define a command, like \ds (for double space) to be flexible in future if you want to change the width of the doubled space. \documentclass{article} \newcommand{\ds}{~~} \begin{document} H H (normal Space) H~~H (doubled Space with \verb+~~+, double Tilde) H\ds H ...

4

\documentclass{article} \newcommand\chord[2][l]{% \makebox[0pt][#1]{\begin{tabular}[b]{@{}l@{}}#2\\\mbox{}\end{tabular}}} \begin{document} \chord{Eb}Shine \chord[c]{Dm}on you\chord[r]{Cm} cr\chord{Bb}azy di\chord{F}amond \end{document}

3

Every now and then I create a lead sheet. For that purpose I created an environment Verse that enumerates its contents (it is an enumerate environment, really) and a command \chord with the following syntax: \chord*{<chord symbol>}<text><space> where the star and <text> are optional. The starred version gobbles the trailing space ...

3

Use the center field, without redefining \headrule: \documentclass{scrbook} \usepackage{fancyhdr} \usepackage{picture} % directly specify lengths with their unit in picture commands \usepackage{lipsum} % Display box around header \usepackage{eso-pic} \AddToShipoutPictureFG{ \AtTextUpperLeft{% \put(0,\headsep){% ...

3

\documentclass[preview,border=12pt,12pt]{standalone} \usepackage{amsmath} \begin{document} D = \Bigg\{ (x,y) \bigg|\, \bigg\{ \! \begin{aligned} & 2x-y=1 \\ & x+4y=5 \end{aligned} \Bigg\} \end{document} Smaller gap \documentclass[preview,border=12pt,12pt]{standalone} ...

3

Some standard spacing in math mode include \quad or \qquad but using \hspace{<length>} is possible: \documentclass[letterpaper]{article} \usepackage{mleftright} \usepackage{amsmath} \begin{document} $v_{i}=\frac{1}{n}\sum_{j=1}^{n}\mleft(\mu_{ij} \mright)^{m}x_{j}\quad \text{where}\hspace{2em} n_{i}=\sum_{j=1}^{n}\mleft(\mu_{ij}\mright)^{m}$ $... 3 The use of ... is depricated in LaTeX. Instead you should use \[...$. You can change the spacing before an after by doing something along the following lines: \abovedisplayskip0pt \belowdisplayskip0pt \abovedisplayshortskip0pt ...

3

Here is a modification of the amsmath \smash command that allows a "partial" smashing, with the fraction supplied as an argument: \documentclass{amsart} \makeatletter \newcommand{\partsmash}[2][tb]{% \def\mb@t{\ht\z@ #2\ht\z@}\def\mb@b{\dp\z@ #2\dp\z@}% \def\mb@tb{\mb@t \mb@b}% \edef\finsm@sh{\csname mb@#1\endcsname\box\z@}% \ifmmode ...

3

(it seems this works everywhere apart from acrobat reader) This is based on the example by @DavidCarlisle. The cmtt visible space character seems to be labelled differently in different cmtt variants. For cm-super (which is loaded here when I use \usepackage[T1]{fontenc}), the respective character is named uni2423 which seems to cause problems with evince ...

3

Each entry between line breaks inside the gather environment are placed inside a group. To that end, the scope of \renewcommand{\arraystretch}{1.2} only lasts until the end \\, after which you have to issue it again. A very similar problem is showcased when you use, for example \documentclass{article} \begin{document} \begin{tabular}{c} \bfseries ABC ...

2

2

Here, I smash the actual displayed item, and then put a \vphantom of reduced scale (default 0.5 size, but can specify with optional argument) \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \newcommand\halfsmash[2][.5]{\smash{#2}\vphantom{\scalebox{#1}{#2}}} \begin{document} \lipsum*[4]% {\Huge Ay} \lipsum*[4] {\Huge\halfsmash{Ay}} ...

2

Maybe with some additional justification, but the idea should be clear. \documentclass[CJK]{beamer} \usepackage{beamerthemesplit} \usepackage{CJK,CJKnumb} \usepackage[english]{babel} \begin{document} \begin{CJK*}{GBK}{song} \begin{frame} \frametitle{ %Set\\$D=\left\{(x,y)\Big|,\begin{cases} Set\\$D=\left\{(x,y)\Big|, \Bigl\{ \begin{array}{@{}r} % 2x-y=1 ...

1

As karlkoeller mentioned, you can do this by using \vspace or \bigskip. For example: \documentclass{beamer} \usetheme{Berlin} \useoutertheme{miniframes} %Titelbalken \setbeamertemplate{blocks}[rounded][shadow=true] %Packages \usepackage{amsmath, amssymb, amsthm} \newenvironment{te bewijzen}[1][] {\textbf{Te bewijzen:} #1} \newenvironment{bewijs}[1]{ ...

1

An quick fix without using package is to add a negative length to \abovecaptionskip{-<dimension>} and \belowcaptionskip{-<dimension>}` which adjust the vertical space before and after the caption, as shown below. \documentclass[a4paper]{article} \usepackage{lipsum} % for dummy text only \usepackage{tikz} % for TikZ drawing ...

1

This is easiest to do with the enumitem package. You can either specify topsep=0pt or probably better nosep which will also reduce the vertical spacing between items: \documentclass{article} \usepackage[shortlabels]{enumitem} \begin{document} This is first line and i need to remove space between this line and item list below it. ...

1

some what similar question had been asked before: Vertical space in lists a possible idea could be if you want to use enumerate: \documentclass[12pt]{report} \usepackage{paralist} \let\itemize\compactitem \let\enditemize\endcompactitem \let\enumerate\compactenum \let\endenumerate\endcompactenum \let\description\compactdesc ...

1

Read Enrico's comments above: Vertical space at the beginning of pages is removed. That should answer your first question. Coming to the second question, it is possible. I will show at least two ways. Method -1: Load graphicx package and use its scalebox macro like: \titleformat{\section}[display] ...

1


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