5}. if you want to typeset a german document I recommend to use (additionally to usepackage[ngerman]{babel} which you already have): usepackage[utf8]{inputenc} for being able to insert umlaute directly, usepackage[T1]{fontenc} for being able to copy and paste umlaute from the pdf and hyphenate words containing umlaute and. Since I always want the tables to start at the top of the page, I also use the command "afterpage" but it does not work. you can use the setspace package: usepackage {setspace} then use the commands: or. Provides support for setting the spacing between lines in a document. When using \usepackage[onehalfspacing]{setspace} the extra spacing is on the entire slide, also in the header. Remove it if you don't like the style. Double-spaced documents in LaTeX A quick and easy way of getting inter-line space for copy-editing is to change aselinestretch — linespread{1. The wrapfig package documentation explicitly warns about this: The environment should be placed so as to not run over a page break. 5 alors qu'ils sont tous structurés de la même façon : chapter{TITRE DE. If a. This is implicitly done by the lipsum package 's lipsum command above. When reading the code, TeX gobbles spaces directly following a control word. LogoutAn online LaTeX editor that’s easy to use. The problem started when I tried to apply this to my document. Please note that spaces are ignored after. That means they can be options for the document class and/or the following packages. in Word linespread of 1. I often find spacing a little unsatisfying when moving between double and single spacing, so I introduce a little correction. 0 line spacing % Please note that these options may affect formatting. The commands singlespacing, onehalfspacing, and doublespacing, are for use in the preamble to set the overall spacing for the document. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. } l. So you either need to not have a group (which is made by using the environment form of footnotesize or you need to include a. +1. As Ruixi Zhang suggested, we have to add KOMAoptions {DIV=current} after onehalfspacing to recalculate the textarea. the commands singlespacing, onehalfspacing. If you don't use it at the document preamble, you have to activate the change with an additional \selectfont: \documentclass {article} \usepackage {lipsum} \begin {document} % Default baseline skip of about 1. Click OK. LaTeX. 25} %% change this number as you wish. This is what caption documentation says: Further, you can use setspace package to adjust spacing for the whole document by using the commands it provides as noted by egreg. I am writing a long document using the report class. . @0x1337 The order of captionsetup is irrelevant, so I doubt that the problem was in the order. 5} If you want your line-spacing calculation to be based on that of Microsoft Word, then you should know that in MS Word “single line spacing” depends on the typeface/font. Using \KOMAoptions{onpsinit=\onehalfspacing} you will get the desired spacing for page header and footer. Lengths like opmargin influence the general margins of a document (although using packages like geometry is the preferred way to do so). Heres the image of the issue and a sample document: Sample Document:6. documentclass [12pt,a4paper] {scrartcl} usepackage [onehalfspacing] {setspace} % Zeilenabstand definieren. 09 style option (package), created by Stephen Page) provides commands and environments for doing double and. 5pt" doesn't sound correct. 9cm,right=1. 5cm] {geometry}%set margin of page. The same information would be issued by doing showdiv in an. This will give you very fine-grained control. SE. If you want the line spacing to be 1. But only with my non-standard font. 6 and for one-and-a-half spacing 1. {empty} end{onehalfspacing} chapter{Introduction} % Chapitre 1 parindent=1cm egin{onehalfspacing} La réalisation d'un projet de fin d'étude est une occasion pour. 3 (1 1/2 blank lines) set in the preamble, it affects the whole document. In my latex file I have some long tables that need to be split across two pages and I use the package longtable. % % GT: Based HEAVILY on original LaTeX (2e) code. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. spacing. We will also talk about. Something like this: If you look at the documented code of setspace, one half spacing corresponds to a factor of 1. Commands that set paragraph parameters, centering, footnotesize, aggedright, etc. This brings me to the next point on the list above. The subfigure package is deprecated; it shouldn't be used any longer. 2 Answers Sorted by: 29 You can specify vspace in postscript points. 5*12/14. \documentclass{memoir} \usepackage[extrafootnotefeatures]{bidi} \pagestyle{empty} \OnehalfSpacing \footmarkstyle{\hskip\footparindent #1. 1. , like it's a word processor. If this is wanted for all such instances, you may use AtBeginEnvironment from etoolbox like. CHAPTER1 INTRODUCTION ThisdocumentwasputtogethertoexplainthefunctionalityoftheCSMLATEXThesistemplate,setby the‘csm-. 33) One more thing: You might have noticed that in the default LaTeX report document, there is an indentation of a tab from the second paragraph of a chapter or section. Difficult to produce a minimal example, since with \blindtext LaTeX will have no problems with either option, I suppose. 1. allow you to use them in labels and filenames are undone by utf8x/ucs. AtBeginShipoutNext{% ocheader } } onehalfspacing@starttoc{toc}% } I. Here's some plain TeX (compile with tex or pdftex) showboxdepth=1 showboxbreadth=10000 racingonline=1 setbox0=vbox { First linehfilreak Second. To remove the spacing at the start of a title created with maketitle (and without using the titlepage option of the article class), one may alter the definition of the internal class command @maketitle. The Tufte-LaTeX package provides a useful command, ewthought, that mimicks the style of the opening words of a chapter in Tufte’s publications. Anybody can. For instance: OnehalfSpacing switches document to one half spacing DoubleSpacing to. The flag allows LaTeX to run external programs, in this case Inkscape, which converts the file from SVG to PDF during compilation. 241} and doublspacing corresponds to setstretch{1. the `\linespread` command offers just two values: 1. why do you think the spacing should be 1. 5} in front of assigned parts, but that was without efect. If you don't use it at the document preamble, you have to activate the change with an additional selectfont: documentclass {article} usepackage {lipsum} egin {document} % Default baseline skip of about 1. Thus using a package like mathptmx or newtxtext (and newtxmath) or alternatives should reduce the difference. Add a comment. Joined: Thu Mar 05, 2009 10:20 pm. TeX tries to make sure that successive horizontal boxes on the vertical list are spaced such that the baselines of each box are aselineskip apart. I've created a table with tabularx where I have long text (gets broken at the end of the cell by latex) and manually inserted ewline. 10. One is simpler, the other requires a package, but is more flexible. While onehalfspacing has ~3,5mm between the bottom line of "h" and the top line of "T", Word has ~4,25mm and spacing{1. It only takes a minute to sign up. /setspace. fontdimen 2font =. LaTeX normally set 20 per cent leading, so the correct command should be fontsize {12} {13. Nov 20, 2018 at 9:38. Run LaTeX here. It only takes a minute to sign up. If it was anyway, this might be a bug in my caption package so I would like to have a document which actually reproduces the problem. my code suddenly stopped compiling and getting this errors: File ended while scanning definition of pgfplots@show@ref@Gain. No additional space will be inserted. LaTeX{} is easily able to professionally typeset documents that run to hundreds or thousands of pages long. Change the default headers of the book class. @space}. \doublespacing will make the text of the whole document double spaced, but footnotes, figures, and tables will still be single-spaced. LaTeX makes typesetting equations easy, and mathtools makes those equations beautiful. Your claim that "my normal text size is 12pt and the line spacing is 1. With the binding on the left hand side the first page is also glued on the left, the second on the right hand side. – gusbrs. One is simpler, the other requires a package, but is more flexible. 3pt} usepackage[onehalfspacing]{setspace}. 1. In order to make a. 2 Answers. sty` not found. 667 is double spacing. 5cm. The link show you that the interline of 2 in Word is equivalent to 1. You need to load bidi with the extrafootnotefeatures option. ltx, the following is processed at egin{document}:. Sorted by: 19. You have to comment these spaces: \ifoot*{% <- removes spurious space! \onehalfspacing. Check the Don’t Add Space Between Paragraphs Of The Same Style option. I have a problem with an "onehalfspacing document". 5 line spacing is done using the setspace package as follows: \usepackage{setspace} \onehalfspacing 2. 6} for "double" line spacing. Using the setspace package you can use doublespacing for your document and onehalfspacing inside the quote environment: documentclass {article} usepackage {setspace} usepackage {lipsum}% just to generate filler text doublespacing egin {document} lipsum [1] egin {quote} onehalfspacing lipsum [1] end {quote. 2fontdimen 4font. It's painful when using latex + dvipdfmx or pdflatex as well. This increases the spacing by half of a line height for the whole document. allow you to use them in \labels and filenames are undone by utf8x/ucs. Note that options can be one of the followings: boxed, boxruled, ruled and algoruled. To remove additional space after section, subsection , paragraph and. Compare. --- output: pdf_document header-includes: - usepackage{setspace} --- onehalfspacing Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna. or. 141592653-2. En primer lugar, podemos cambiar el espaciado de todo el documento,. Furthermore you should remove the pdftex from graphicx. The commands \singlespacing, \onehalfspacing, and \doublespacing,. For instance, here is a picture of what it looks like compared to when I am using array (and in fact any time I need to write maths using "$$") :This must be done, since texshade. But this doesnt solve the vBox-problems with the math environments. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. ~`huge fish')[1] are aquatic mammals constituting the. This works fine. 5 times what it would ordinarily be. 285. If the ucs package and utf8x inputenc option is removed, your code compiles. If you want to prevent this behavior, the \hspace* command is provided; it does the same as \hspace except that the space it produces is never removed, even when it comes at the beginning or end of a line. A brief search lead me to this post on komascript. The commands singlespacing, onehalfspacing, and doublespacing, are for use in the preamble to set the overall spacing for the document. Unfortunately, when I use egin{singlespace} printbibliography end{singlespace} the title of the bibliography takes singlespace as well. As such, you have the frametitle command as a hook that you can use to initiate a different line spacing for the remainder of the frame. – daleif. I commonly load my main font with Scale=1. The linespread-command: To change the line spacing for the entire document, you can use the linespread command in your preamble: 1. . Most improvements in the handling of utf8 which e. The one and a half, double, and arbitrary % spacing commands are unaltered. Sign up to join this community. LaTeX {} is great. How Word sets its spacing is beyond understanding to me!!! I guess you would need to understand if its effective factor is 1. However, if I want multiple lists of abbreviations (see MWE below), the distance changes between tables. Some commands are given in both forms, e. Only at the start of the document - at egin{document}, there is a check to see whether all options have been processed or not. Unwanted "doublespace" word in abstract environment. Added explanations: this document (with memoir class) starts in OnehalfSpacing mode (this is a macro of memoir which enlarges the aselineskip by a value depending on the type size, for 10pt the factor is 1. But as the skip in the caption package is the distance between caption and figure/table, they simply mean skip=1. As you mentioned, footskip is the distance from the last baseline of the text area to the first normal baseline of the footer. 2 second section . documentclass{article} usepackage{algorithm2e}. sty. As you can see in the screenshots and MWE below, a graphical bug occurs when using both packages (with onehalfspacing option for setspace}. 5*12 = 18pt leading, then you can use usepackage[onehalfspacing]{setspace} or even better. documentclass[14pt]{memoir} OnehalfSpacing* % document settings egin{document} egin{table} % only 2 cells need to be with a single spacing centeringsmall egin{tabular}{|p{2cm}|p{11cm}|l|} hline Column1 & Column2 & Column3 hline Row1. Exists. Notice the overall structure and the input statements that direct LaTeX to associated chapter files, which can be typed up separately. Using the setspace package with a 10pt document font, a factor between 1. onehalfspacing means one-and-a-half spacing like in our. Open this example in Overleaf. 5}. Other size spacings also available. Thank you very much! Welcome to TeX. Thank you. I want the footer, headlines and other parts of the document to be at onehalfspacing, but the main text to be doublespacing. @Johannes_B But setstretch command is imported from setspace package. 6 (two blank lines) and 1. \linespread {1. 89 egin{document} I suspect you have3 Answers. sty","path":"fmz_resume_web_custom/fontawesome. usepackage {setspace} doublespacing. The blog post Quick note on line spacing discusses line spacing and it says. 45} which has roughly the size of Word for Times New Roman 12pt. This may not be exactly what you want, but try putting a blank line before the \doublespacing command. Then, use onehalfspacing to return to one and half spacing. Or you can add vertical spacing in the empty argument of \dottedcontents, which is for abovecode, but it well be applied to every subsequent chapter in the table of contents. Using [0. Here is a side by side comparison of this on the left: documentclass[12pt]{article} % aggedbottom won't change anything for a single page usepackage[indent]{parskip}. 5cm,bottom=2cm} usepackage{setspace} onehalfspacing egin{document} footnte{2010 Mathematics. It will be most useful to folks new to LaTeX, not the regular academics or scientists who already use it regularly. It had to be brought up to date, not only % because of LaTeX's new color ability, but also because there had % been major changes to this code in LaTeX at least as far back as % March 1992. I am defining document class, so it would be best to set default footnote line spacing in it, not in the main document. Next, since you load the setspace package and execute onehalfspacing, running enewcommand{aselinestretch}{1. 3. The main text uses onehalfspacing option from setspace package. \linespread {<factor>} The factor is somewhat confusing. Your template is a mess, with many packages that are most likely useless. { hepage} fancyfoot{} headsep=15mm enewcommand{headrulewidth}{0. As their names suggest: \leftskip inserts space (glue) to the left of each line in a paragraph; \rightskip inserts space (glue) to right left of each line in a paragraph. usepackage[margin=1in]{geometry} usepackage{graphicx} usepackage{setspace}onehalfspacing usepackage{float} egin{document}. I wouldn't use setspace for that. 1 Answer. 6} for "double" line spacing. I discovered that the line spacing on the \tnote \item s is to big. \documentclass [12pt,a4paper] {memoir} \usepackage {xcolor} \usepackage {lipsum} \OnehalfSpacing \begin {document} \lipsum [1] \begin {SingleSpace}\color {blue} \lipsum [2] \end {SingleSpace. Sign up to join this community. I want to vary my linespacing in my LaTeX document. Basically, 1. sty{"payload":{"allShortcutsEnabled":false,"fileTree":{"fmz_resume_web_custom":{"items":[{"name":"fontawesome. I'm writing my maturity paper with LaTeX and I have the two following problems: One word in the title needs to be italic. There are two different ways to change line spacing in LaTeX. end {center}. I am trying to format a pdf doc in Latex using texmaker. 7. I am facing a strange problem. I'm trying to have empty space on the 1st line in the second column then have the other 2 values on two different lines. See the LaTeX manual or LaTeX Companion for explanation. Some settings in TeX and LaTeX apply to the complete paragraph, the line spacing set with onehalfspacing and singlespacing is one such setting. When onehalfspacing option is active, the first item of the table of contents is set too close to. sty by processing the file tocstyle-obsolete. 2 manual; a newer documentation is included in your LyX in the help menu) For Lyx 2: check section 6. The LaTeX \onehalfspacing command means "line spacing 1/2. 5 * line height. You can set up the amount of space. I'm making a custom title page for my PhD proposal, following the Title Creation article of LaTeX in Wikibooks. the `linespread` command offers just two values: 1. The package supports three languages, english, (n)german and latin; the latin option provides a short. Then first all outstanding images are printed, then the next page is started with section B. If a. Document options (by package or by document class) are assembled and processed as needed (if one is using the DeclareOption method). . 25} (10pt), 1,213 for 11pt or 1. 5} 4,75mm. This change allows LaTeX to consider additional hyphenation points in words such as "constituting" and "underwater". 25. 5} and (b) the normal baselineskip for a 12pt Roman (aka serif) font is 14. First, they are one-half spaced in the document, despite that setspace should default footnote spacing to single. So in my eyes the best would be---if you insist in using this abreviation commands---to create an. 1 etc. The terms are not that well defined but setting baselinestretch to 2 is far to much for what is normally thought of as doublespacing the usual package in this area is setspace which defines doublespace and onehalfspacing as follows (so 1. ), and whether or not you've used setspace before. Between every entry I wish to have the vertical spacing of one parskip like it is used in normal text (example: spacing between university and department). \OnehalfSpacing switches document to one half spacing \DoubleSpacing to double spacing, and \baselineskipX. I am using an Elsevier template to write a manuscript. No additional space will be inserted. Yes, the text on page 1 gets stretched to fill up nearly the whole page, leaving inches of space between the lines. Then I started to use tnote in a threeparttable. LaTeX Basics. Which is preferable depends on the use. If you want a part of the text still be single-spaced, include the part in the. Sign up to join this community. The relevant bits of my preamble currently read: \usepackage {setspace} \onehalfspacing \usepackage [font= {onehalfspacing}] {caption} Yes. % Single line spacing, alternatives: onehalfspacing or doublespacing %draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated) nolistspacing, % If the document is onehalfspacing or doublespacing. g. Package options include singlespacing, onehalfspacing, and doublespacing. Footnotes, figures, and tables will still be singlespaced, however. For paragraph spacing, I'm able to use. 2 Answers. Whenever I use an math environment in this document, latex notify “Underfull vbox (badness 10000) has occurred while output is active ”. . 09 original,. \documentclass [a4paper,12pt] {report} \usepackage [ngerman] {babel} \usepackage [T1] {fontenc} \usepackage [ansinew,latin1] {inputenc} \usepackage {setspace} \onehalfspacing \begin {document} Lorem ipsum dolor sit amet. 2. First, use mainlanguage [cn] and setscript [hanzi] in the preamble to set the default language to Chinese. documentclass[a4paper,10pt,leqno,openbib]{memoir} checkandfixthelayout{} % i put this one for safety, to ensure that the previous layout is fixed onehalfspacing{} %checkandfixthelayout{} % try uncommenting the line to see the spacing difference usepackage{float} egin{document} egin{flushleft} aaaaaaaaaaqqqqqqqqqq. Depending on what exactly you mean by 1. For example the content I need to be made with line spacing 1. The following example illustrates this approach for the equation and. 8 Your command was ignored. For double-spacing you. 5) 13 MAY 2021 07:58 entering extended mode restricted write18. The Tufte-LaTeX package provides a useful command, ewthought, that mimicks the style of the opening words of a chapter in Tufte’s publications. 3font fontdimen 4font =. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. usepackage{geometry} geometry{left=3cm,right=2cm,top=2. Try renaming that local file such that it does not bother your compilation. To adjust the position of "1 Chapter 1", you can play with the last parameter of \titlespacing, which defines the spacing below Contents. setspace. dtx to generate tocstyle. The abstract in the example is made by the new command chapabstract. LaTeX offers a range of predefined horizontal spaces: enspace (1/2 em), hinspace (1/6 em), egthinspace (-1/6 em), quad (1 em), qquad (2 em), etc. 25*1. You can write captions within the table (typically at the start of the table), and headers and trailers for pages of table. I have seen similar questions on the matter (Question 1, Question 2) of adding vertical space and not breaking vertical lines, the solutions suggested are to add space after the using [0. e. 241 (but only if you are using really a 12pt font size) and then change it to 1. Sorted by: 1. If a. The package setspace lets you easily change the line spacing, and that provides a macro onehalfspacing. . You wrote, "However, I read somewhere that onehalfspacing of the [ setspace] package does not correspond to MS Word 1,5 . The main text uses \onehalfspacing option from setspace package. , MikTeX, TeXlive, etc. repeat these steps. This increases the spacing by half of a line height for the whole document. @escazuwtf - Since your main document font size is 12pt, onehalfspacing corresponds to setstretch{1. What I'm trying to achieve is to use singlespacing only in headings. I am afraid, my LaTeX as well as editing capabilities are not such that interfering manually with LaTeX would. But when I'm using the geometry package the margins are way too big which means that when it's printed all the margins are about 1 or 1. 4. So \recalctypearea should be used after \onehalfspacing. Other size spacings also available. Improve this answer. Also, it is worth mentioning that I am loading the setspacepackage and using onehalfspacing on the preamble of my document, since the main body of it should be one-half spaced. 5, so one-half. As egreg wrote the settings are global. As you can see the spacing between the chapter header of chapter 2 and the text there is smaller (as defined). 25). Instead I would know how I change space to doublespacing to only a part of my document. See the bundles documentation for full information. In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i. As soon as I changed the font to arial the boldness of. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. On the other hand, onehalfspacing applies linespread with a reduce factor to achieve one half spacing, that is 1. 5 spacing between the lines, double between paragraphs, no indent. have to be in scope at the end of the paragraph as the final values are used to set the paragraph. 5 isn't the same as onehalfspacing, too), but I didn't find it just now. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Maybe the issue is with the font. For double-spacing you have to use 1. Skips. We provided the option onehalfspacing, which increases the spacing by half of a line height for the whole document. If the ucs package and utf8x inputenc option is removed, your code compiles. (There's probably a better way of doing this. \@\space} \setlength{\footmarkwidth}{0in} \setlength{\footmarksep}{0in} \begin{document} ull \vfill. Linespacing. 66(7). No I don't think I ever used linespread. 25} %% change this number as you wish. What you should use is linespread {1. Question How to have double-spacing effect in LaTeX? Answer. The Equation Editor displays the Spacing dialog box. I wrote setlength {itemsep} {0pt. Author: Anonymous User 1312 online LaTeX editor with autocompletion, highlighting and. On the other hand, without using the "setspace" package, the onehalfspacing macro didn't work properly (although it didn't complain, but the spacing was not as it was. Line spacing thereby means the empty space between the lines [leading] plus the line height. sty file with the parameters. Though, even then I needed to modify the memoir settings a bit to get things looking right. %% %% Three environments, singlespace, onehalfspace, and doublespace, %% allow the spacing to be changed. Anyway, I recommend using setspace, if you really need enlarged interline space and its onehalfspacing command. styThe commands singlespacing, onehalfspacing, and doublespacing, are for use in the preamble to set the overall spacing for the document. 25 and 1. tex in minimal form would like this. This LaTeX template is used by many universities as the basis for thesis and dissertation submissions, and is a great way to get started if you haven't been provided with a specific version from your department. mathtools extends the amsmath functions to provide additional. For double-spacing you have to use 1. So with afterskip=1sp you get the space of the parskip between your paragraph heading and the following text. Also, if you want to apply it to a region, you can use egingroup and endgroup (or {and } if you prefer). To manually set the current value of \parskip use LaTeX’s \setlength command; for example, to separate paragraphs by 3pt you can write: \setlength{\parskip} { 3pt } The following example demonstrates the use of \parskip : \documentclass{ article } % Choose a conveniently small page size \usepackage[paperheight=16cm,paperwidth=12cm,textwidth. Normally the lines are not spread, so the default line spread factor is 1. I created a document using book class and set the space using. In fact sometimes we should adjust the space between paragraphs. Rather than manually making the changes, such as changing page numbers to alph, then resetting the page count, then resetting the chapter count, etc--it is possible to simply use `/backmatter' in a bookdown project. Use either subfig or subcaption. Je rédige ma thèse sous latex et je suis confronté à un problème d'interlignes. styTeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. usepackage{setspace} onehalfspacing % line spacing (is equal to baselinestretch 1. – DG' Mar 11, 2016 at 9:17. But even with egin{onehalfspacing} TEXT BODY end{onehalfspacing} the address is set in one-half spacing as well. setspace understands three options: singlespacing is the default. gitignore","path. 5 instead of 1. , font size 12 and one-and-a-half spacing. Note that TeX must be used, not LaTeX, otherwise it tries to generate a package documentation instead. This LaTeX template is for typesetting a novel or narrative. 3 (1 1/2 blank lines) set in the preamble, it affects the whole document. They are not relevant with scrreprt. My professor wants us to set single spaces for the bibliography (for the rest of the document onehalfspacing). 1 etc. I will stick to XeLaTeX, but all the examples will perfectly work with LaTeX, assuming you are using Helvetica and not Arial. 1. Let’s start easy. Spacing around operators and relations in math mode are governed by specific skip widths: \thinmuskip (by default it is equal to 3 mu) \medmuskip (by default it is equal to 4 mu) \thickmuskip (by default it is equal to 5 mu) \begin{ align* } 3ax+4by=5cz \\ 3ax<4by+5cz \end{ align* } Open this example in Overleaf. It only takes a minute to sign up. It only takes a minute to sign up. Try to define LaTeX package setspace in YAML header and set \onehalfspacing directly as LaTeX command. To double space a LaTeX document, you should include the line \usepackage{setspace} after your \documentclass line. Addendum: Some ways to " delete " parts of your code. Given a markdown like this: `X ≼ Y` // 3 spaces on the right `X ≼ Y` // 2 spaces on. the commands singlespacing, onehalfspacing. On the other hand I would strongly discourage writing in this way. Skip to content.