Tag Info

New answers tagged

1

The standard behavior of enumerate lists is to add some vertical space above and below them (unless they are nested and start just after \item). This space is \topsep and is used both above and below. So you get no space by setting it to zero and enumerate in the IEEEtran class accepts an optional argument for doing shose settings. ...


0

Thanks to David Carlisle's response, I figured that "Case 3" (inserting space between an equation and the following paragraph) is also easily done with \vspace, except you have to insert it between two blank lines. So if I summarize my current solution, it goes~: \documentclass[a4paper,11pt]{article} \newlength{\addspace} \setlength{\addspace}{0mm} % play ...


3

If \vspace is used in vertical mode the space is added at that point. If it is added in horizontal mode it is deferred until the paragraph is broken into lines and then the space is added after the line that contained the node carrying the deferred space. The behaviour in horizontal mode is sort of justifiable but rarely wanted so the simple rule is always ...


2

You have to issue \par before closing the scope where \LARGE is in effect. You also should use \MakeUppercase rather than \uppercase and define equivalents for the UTF-8 characters ă and ṇ. \documentclass[a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[svgnames]{xcolor} \usepackage[textwidth=370pt]{geometry} % choose ...


3

I would provide the following instructions: Most importantly, add a \par instruction at the end of the material to be set in \LARGE, to get better line spacing. Remove the instruction \smallskip at the start of the LARGE material Add three \noindent instructions. Add a \medskip instruction to even out the distances between the title material and the pairs ...


0

Since using tocloft changes the overall style unacceptably, you can use \mbox{} to prevent individual words from being hypenated and \sloppy to prevent the line from extending too far. It is even possible to force a line break using \hbox to (at least for this setup). Since the chapter title at the start of the chapter is already \raggedright, adding ...


2

First \center is wrong. Use \centering. And change the title command like this: % ------------------------------------------------ {\setstretch{1.5} \Huge\bfseries \nameJojo \par\vspace{\baselineskip}} % the name of the class %% or \onehalfspacing or \doublespacing % ------------------------------------------------ Full code: ...


3

What about this? I added some vertical spacing at the beginning of inparaenum, with the etoolbox package. Don't forget a blank line: \documentclass[15pt, a4paper]{scrartcl} \usepackage{amsmath,amssymb,stmaryrd} %\usepackage[shortlabels, inline]{enumitem}%usepackage{enumerate} \usepackage{tabto} \usepackage{paralist} \usepackage{setspace} ...


5

This is an all-in-one solution using tasks. Time to use modern packages. I have defined two environments for clarity. \documentclass[12pt, a4paper]{scrartcl} \usepackage{amsmath,amssymb,stmaryrd} \usepackage{enumitem} \newlist{que}{enumerate}{1} \setlist[que,1]{label=\arabic*.),ref=\arabic*.)} \usepackage[more]{tasks} ...


2

\linespread expects a multiple of the \baelineskip, so here i used .83, or in other word 83 % of the usual baselineskip. If this is what you are looking for, not sure. \documentclass[12pt]{memoir} \usepackage{blindtext} \usepackage{fouriernc} \usepackage[scaled=0.83]{helvet} % \usepackage[scaled=0.82]{luximono} \usepackage[T1]{fontenc} ...


10

Stop and resume the enumerate: \documentclass{memoir} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{enumerate}[itemsep=-4pt] \item My first item \item My second item \end{enumerate} %%<---------------------- stop here Along with these should be mentioned: \begin{enumerate}[resume] %%<----------- resume \item ...


3

You can do it with startinnercode: \documentclass{book} \usepackage{lipsum} \usepackage[framemethod=TikZ]{mdframed} \mdfdefinestyle{mystyle}{ frametitlerulewidth=0pt, frametitlerule=true, frametitlefont=\color{black}, frametitlebackgroundcolor=yellow, startinnercode={\baselineskip=0.8cm}, } \mdtheorem[style=mystyle]{theorem}[chapter]{Theorem} ...


4

I don't know why you don't want these commands. At any chance, I propose to use the set space package, combined with the \AtbeginEnvironment command from etoolbox. I measured the interlinespacing was truly 8mm: \documentclass{book} \usepackage{lipsum} \usepackage[framemethod=TikZ]{mdframed} \mdfdefinestyle{mystyle}{% frametitlerulewidth=0pt, ...


3

Here you are: \documentclass{scrreprt} \usepackage{blindtext,titlesec, titletoc} \uspackage{etoolbox} \titlecontents{chapter}[0em]% {\ifnumgreater{\thecontentslabel}{1}{\addvspace{\baselineskip}}{}}% (A) %{}% (B) {\thecontentslabel\enskip}% {}% {\quad\emph{\thecontentspage}}% []% (A) %[\addvspace{\baselineskip}] % (B) \titlecontents{section}[0em]{} ...


4

Any of the normal commands to set line spacing will work in a parbox, for example \parbox{\linespread{2}\selectfont....}


3

Assuming that you use article class, you can do this: \documentclass{article} \makeatletter \def\@part[#1]#2{% \ifnum \c@secnumdepth >\m@ne \refstepcounter{part}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi {\parindent \z@ \raggedright \interlinepenalty \@M ...


2

You can redefine \@idxitem to have a vertical space preceding it, while \indexspace does nothing. Also \subitem needs to be redefined, otherwise it would add the vertical space as well. For separating the first entry from the heading, a \vspace{12pt} instruction is added to \theindex, modify it to suit. % arara: pdflatex % arara: makeindex % arara: ...



Top 50 recent answers are included