Tag Info

New answers tagged

1

There are two problems; one is minor and is in the fact that you must declare \setmainfont in order to apply \addfontfeatures. The second problem is due to the fact that you're overriding \ttlspc by saying `\normalfont after it. \documentclass{book} \usepackage{lipsum} \usepackage{fontspec} \usepackage{titlesec} \usepackage{fmtcount} \setmainfont{Latin ...


4

May be simpler just write: \noindent\rlap{...}\indent Or ... \noindent\makebox[1cm][l]{... } Or automatically: \everypar{\hspace{-1cm}\rlap{...}\indent} MWE: \documentclass{article} \usepackage{lipsum} \usepackage{fourier-orns} \parindent1cm\parskip1em \begin{document} \noindent\rlap{\decotwo}\indent\lipsum[2] % or ... ...


5

here's another method: starting from vertical mode, \leavevmode\kern-\parindent \rlap{<fleuron>}% \kern\parindent\relax the mechanism is: start the paragraph; move left by the amount of the \parindent; in a zero-width box, insert the fleuron; move right by the amount of the \parindent. (if you break this into several lines, as done here, don't ...


6

You can set the fleuron as part of a zero-width box that stretches over \parindent: \documentclass{article} \usepackage[nopar]{lipsum}% Just for this example \setlength{\parindent}{1cm} \newcommand{\fleuron}{\textbullet}% My fleuron \newcommand{\insertparfleuron}{\makebox[0pt][r]{\makebox[\parindent][l]{\fleuron}}} \begin{document} \insertparfleuron ...


0

An alternative to this is to just use: \usepackage{paralist} And the compactitem environment: \begin{compactitem} \item This is entry number one, compact \item This is entry number two, compact \end{compactitem} to see more on this, check: Compact lists with paralist.


2

\documentclass{scrartcl} \usepackage{mathtools,mleftright} \mleftright % Or comment this line and use \mleft and \mright instead \begin{document} $f\left(x\right)$ $\arg\left(z\right)$ $e^{i\arg\left(z\right)}$ \end{document}


4

You can correct the spacings with etoolbox: \documentclass{gsm-l} \usepackage[papersize={160mm,240mm},inner=20mm, outer=15mm, vmargin=15mm]{geometry} \geometry{includeheadfoot} \usepackage{fouriernc} \usepackage{esvect} \usepackage{amsmath,enumitem} \usepackage{remreset} \usepackage{etoolbox} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \makeatletter % ...


1

If I understand you correctly, you like to change vertical space before of one chapter head. This you can obtain width: \documentclass[openany]{memoir} \usepackage{lipsum} \setlength\beforechapskip{9\baselineskip} \begin{document} \chapter{one} \lipsum[1-2] \setlength\beforechapskip{0\baselineskip} \chapter{two} ...


3

For debugging put fbox around your picture (also, please always post complete documents) Here you see that the y coordinates you have used for your \put are all too high, the items will over-print the text above the picture, and leave a big space below. I also removed the [!t] which mainly acts to prevent page floats and makes the figure harder to place. ...


0

I'm not really sure what causes this big gap between the picture and the caption (maybe the figure environment itself also adds a space) but what you could do if its just one case is putting following command before the \begin{figure} \begingroup\setlength{\abovecaptionskip}{-6ex} and after you end the figure you write \endgroup This sets the space ...


0

I will have to admit that I now agree with @HarishKumar. The solution to my problem was to skip the fncychap package and use titlesec instead. Here's the code I've generated from @HarishKumar's example. \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\Large\filleft} {\sc\chaptertitlename\ \Huge{\thechapter}\\% \vspace{1.5cm} ...


2

I think you mean a column break rather at General Wavefunction? This could (should?) be achieved with \columnbreak to shift the content to the next column. There should be an additional \columnbreak at \section{Electromagnetism} and \section{Gravity}, in my point of view. I corrected some typos, but there might be others I could not find so far... There ...


1

You should use a different command for “improperly placed differential”: \newcommand\ipdif[1]{\mathrm{d}#1\,} and use it only if followed by other symbols (choose another name, if you want). With \mathop{}\!\mathrm{d} you'd get an unwanted thin space between the integral symbol and the “d”. If you add a trailing \mathop{} you get two thin spaces between ...


1

Instead of using a variable lengths such as \fill and \vfill, I'd use a fixed length, say, 2.5cm. \documentclass[11pt,letterpaper]{article} \usepackage[margin=0.75in]{geometry} \usepackage{multicol} \usepackage{amsmath} \begin{document} \begin{enumerate} \itemsep=2.5cm \item Find all possible values of $x$ in $x^6 - 64 = 0$. \item Simplify each. ...


3

Adding to what's already been said, while using xspace, I have discovered that if a macro which contains \xspace as its last argument is followed by text inside {}, then it does not insert a space between the two. In such a situation, one has to use the macro followed by an additional \ and then the text inside {}. For instance, if I have a macro defined as ...


0

I use your code and lipsum package. I have no errors and looks like but with long chapter name ocurrs like your picture. Review your header config.


0

You don't give many clues but I would guess that you have \flushbottom in effect and a setting of \floatsep such as the default of 12pt plus 2pt minus 2pt So either you need \raggedbottom so latex doesn't try to stretch out each page, or you could try setting \setlength\floatsep {12pt} so the inter-float separation was not flexible, although unless there ...


1

It's not using a list mechanism at all just paragraphs, so add \setlength\parskip{5cm} to the definition and the paragraphs will be spaced out.


1

[H] makes the environment not a float so parameters like \textfloatsep have no effect. The simplest thing to do is just to leave a blank line after each \end{table} followed by \vspace{-5mm} or whatever adjustment you need.


1

You can reduce the \beforechapskip locally: {\addtolength{\beforechapskip}{-2\baselineskip} \chapter{Introduction}} MWE: \documentclass{memoir} \usepackage{blindtext} \usepackage{showframe} \begin{document} \tableofcontents {\addtolength{\beforechapskip}{-2\baselineskip} \chapter{Introduction}} \Blindtext[3] \chapter{Next Chapter} \Blindtext[3] ...


0

If it's just in the abstract chapter, you can use a negative vspace before the chapter.


0

In addition to David Carlisle's, beautiful solution: If you don't want to use array and need only a couple of fixes, a quick and dirty way would be to put your text in an \mbox{...}.


2

The major features of skips are that they can stretch, and are discarded at a linebreak, and can be removed with \unskip. A rule doesn't have any of these features, so in general they are less flexible although if you don't need those features then you could use a rule, but why not a skip or kern? The documented reason for the extra hskip\z@skip in \hspace ...


3

The question is far too long to consider really and I don't understand the altered image at all. In this version of the MWE I have marked in red the baseline of the outer sample text, \box0 and \box2, which are all naturally aligned on that baseline without having to measure the height of box2 (which depends on the fonts used) . ...


2

As an alternative, I propose \addstackgap of the stackengine package, which only needs to be applied to the tallest cell in an oversized row. Here I use it in conjunction with \extrarowsep, but depending on what look the OP seeks, that is not necessary. \documentclass{article} \usepackage{amsmath,diagbox,tabu,stackengine} \begin{document} tabulinesep ...


0

One way is to enlarge \extrarowsep, for example to 8pt: \setlength{\extrarowsep}{8pt} \begin{tabu}{|c|c|c|} \hline \diagbox{X}{Y} & Z & Z\\ \hline $\dfrac{1}{2}$ & $\dfrac{3}{4}$ & $\dfrac{5}{6}$ \\ \hline $A$ & $B$ & $C$ \\ \hline \end{tabu} In this case are all rows higher, but look similar as you show in right picture ... Edit: ...


5

I ended up settling for the solution shown below. It requires three runs to typeset everything and is independent of the chosen page dimensions (as far as I know). I have done some superficial testing with fancyhdr and different classes, like article, book and scrartcl. Load the packages or adjust \@evenfoot or \@oddfoot directly before this code is read (to ...


2

Please always post complete documents. The inter-item separation is a parameter of a list: \documentclass{article} \usepackage{enumitem,multicol,amsmath} \begin{document} \begin{multicols}{2}\large \begin{enumerate}[itemsep=9pt] \item $\dfrac{2}{8}=\dfrac{1}{4} $ \item $\dfrac{2}{6}=\dfrac{1}{3} $ \item $\dfrac{4}{6}=\dfrac{2}{3} $ \item ...


3

The parskip package aims to allow setting for a non zero \parskip with the standard classes while reducing the number of places unwanted space appears. Alternatively more extensive classes such as the koma classes have design options incorporating non zero parskip. \documentclass[parskip=half]... for example. Using \\ at the end of a paragraph does not ...


0

I'd use \begin{alignat*} {2} a = {}& b + (&& c \\ % <- added {} &&& + d) \\ % <- added extra & & + g \end{alignat*} Update: (please always make relevant MWEs instead of wasting peoples time). In this case (especially because it is not numbered) I'd use \begin{align*} a = {}& b + \! \begin{aligned}[t] (& ...


0

Or perhaps this? It's not completely clear, actually. \documentclass{amsart} \begin{document} \begin{alignat*}{2} a &= b&{}+ (c \\ &&{}+ d) \\ & + g \end{alignat*} \end{document} Output: Note that & should precede =, not follow it. Post edited because of forgotten {}. Addition: Please don't think I'm to ...


0

Is this what you require? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a = b &+ (c \\ & \phantom{+(c}+ d) \\ & + g \end{align*} \end{document} or use this for the same output: \begin{alignat*}{2} a = b& + ( c& \\ && + d) \\ & + g& \end{alignat*}


1

If tabular* is not a must, may be is simpler use tabularx of the same package of David Carlisle. \documentclass{scrbook} \usepackage{booktabs} \usepackage{tabularx} \usepackage{multirow} \begin{document} \begin{tabularx}{\textwidth}{ l >{\centering}X >{\centering}X >{\centering\arraybackslash}X } \toprule & \multicolumn{3}{c}{sample ...


3

According to the PDF specification for PDF 1.7 (ISO 32000-1:2008), you are out of luck. The action dictionary for Launch actions defines the following keys for options: Win dictionary (Optional) A dictionary containing Windows-specific launch parameters (see Table 204). Mac (undefined) (Optional) Mac OS-specific launch parameters; not yet ...


3

Column widths are assigned before the "extra" skips are stretched, and if a spanning cell is wider than the columns it spans, all space goes into the last spanned column. So you either need to hide the width of the span as below, or increase the natural width eg change \fill to 1cm plus 1fill so that the spanning cell doesn't force the columns wider. Not ...


5

I'd suggest using siunitx (and booktabs for better horizontal rules). \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{siunitx,booktabs} \begin{document} \begin{frame}{title} \begin{center} \addtolength{\tabcolsep}{-2pt} % or it would be overfull \begin{tabular}{ l ...


2

One way is to wrote headers in \multicolumn{1}{c}{<header text>}: \documentclass{beamer} \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}} \begin{document} \begin{frame}{title} \begin{table}[H] \centering \begin{tabular}{|l|d{4.6}|c|c|} % I just did it for one to see the result \hline \multicolumn{1}{c}{\textbf{Poste}} & ...


2

The space is comming from topsep, so you need to set this to 0 for this environment. The easiest way to this is with \AtBeginEnvironment from the etoolbox package which will keep the change local to the environment: \documentclass{article} \usepackage{alltt} \usepackage{etoolbox} \AtBeginEnvironment{alltt}{\setlength{\topsep}{0pt}} \begin{document} ...


0

You could redefine the environment, adding an adjustment of the space at the beginning and the end, which you can still modify by changing the factors: \documentclass{article} \usepackage{alltt} \begin{document} \let\oldalltt\alltt \renewenvironment{alltt}{\vspace{-0.75\baselineskip}\begin{oldalltt}}{\end{oldalltt}\vspace{-0.1\baselineskip}} Test1 ...


14

You have several options. A comment up front: \mathrm isn't among your options, as you'd have to manually insert interword space markers. (Aside: I would also insert thinspace directives after the opening curly brace and before the closing curly brace.) "Basic LaTeX": \mbox $\{\, n \mid n \mbox{ is even} \,\}$ With the amsmath package loaded: \text ...


6

Square roots are very sensitive to ascenders and descenders. Just look at the two of them and you'll realize that the culprit is the j in the second one: \documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum_{t}{e_i(t)e_j(t)} } { \sqrt{\sum_t{e_{i\vphantom{j}}^2(t)}} \sqrt{\sum_t{e_j^2(t)}} ...


7

\documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum_{t}{e_i(t)e_j(t)} } { \sqrt{\strut\sum_t{e_i^2(t)}} \sqrt{\strut\sum_t{e_j^2(t)}} } \end{equation} \end{document}


1

More of a workaround than a regular answer to your question: using \limits. \documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum\limits_{t}{e_i(t)e_j(t)} } { \sqrt{\sum\limits_t{e_i^2(t)}} \sqrt{\sum\limits_t{e_j^2(t)}} } \end{equation} ...


2

It sounds as if you would be happier with the standalone class: % arara: pdflatex \documentclass[border=1mm]{standalone} % a little border for easier screenshot trimming. You can leave this away or put whatever size pleases you. \usepackage{caption} % replace this by `capt-of` if you want to obtain the old (not beautiful) vertical spacing of the caption ...


0

After reading the discussion between you and David Carlisle, I realize now you'd like to adjust the paragraph heading (also called title—but I didn't expect that from a new user, sorry ;) You can use the titlesec package for this. Code Adjust the .5em to your liking. I used em as the unit because it is a horizontal unit designed for text. You can even ...


0

I always use tabcolsep and arraystretch for modifying spaces between rows and columns in a table. This works fine, even for complex table structures. \setlength{\tabcolsep}{6pt} % General space between columns (6pt standard) \renewcommand{\arraystretch}{1} % General space between rows (1 standard)


1

The vertical space at the beginning is caused by adjustwidth. There are simpler ways to do what you want: \documentclass{article} \usepackage{titlesec} \usepackage{showframe} \newcommand{\somecommand}[1]{% \makebox[\textwidth][l]{\parbox[t]{\dimexpr\textwidth+100pt}{#1}}% } \titleformat{name=\section} {}{}{0pt} {% \ifnum\value{page}=1 \else ...


3

a bit of glue balancing.... \documentclass{article} \def\mydots{\futurelet\mytmp\xmydots} \def\xmydots{\ifx\mytmp\textit \expandafter\xxmydots \else \expandafter\xxxmydots \fi} \def\xxmydots#1#2{\xxxmydots\mbox{#1{#2}}} \def\xxxmydots{\leavevmode \unskip\nobreak\space \null\nobreak\xleaders\hbox to 0.40em{\hfil.\hfil}\hfill\kern0pt} \textwidth7cm ...


1

In book paragraph is defined by \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} the space after the heading is 1em specified by the 5th argument to \@startsection ...


2

I didn't do any change in your data area, I only replaced your \begin{alignedat}{4} by \vcenter{...\haling{... and your \end{alignat} by }}. Only the \\ in the last line is added. Your aligned material is solved by simple TeX primitive \halign: \left. \vcenter{\let\\=\cr \halign{&${}#{}$&$#$\hfil\cr & I_1 &-&I_2 &-&I_3 ...



Top 50 recent answers are included