New answers tagged

2

You can define your own LyX Layout file and place it in /usr/share/lyx/layouts (respectively %APPDATA%\LyX*\resources\layouts for windows) Creating this file is a mixture of LaTeX definitions and LyX configuration options. Currently you only want to redefine some global variables, but maybe you want to add your own custom styles later! Find more about ...


1

If you really want to skip a line, use First line \medskip last line A larger space is obtained with \bigskip


1

You should not skip lines in this manner, you're better off using \vspace. however, to answer your question, what you have there actually is First line \newline ~ \newline last line The first newline does not have a line to end. so it should simply be First line ~\\ last line


1

If you want to completely remove the leading, you need to set \baselineskip to a very large negative dimension, so between every pair of lines \lineskip glue will be inserted; set this to zero and you're done. \documentclass{article} \usepackage{fontspec,fancyvrb} \setmonofont{DejaVu Sans Mono} \DefineVerbatimEnvironment{VRB}{Verbatim}{% formatcom={\...


0

REVISED u2592 should not need a space change between lines, unless you have previously changed the line spacing, for example with setspace as I show in this MWE. Then, the approach of my original answer should still apply, but the shift may need to be tailored. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{verbatimbox} \usepackage{...


2

you could use ...\begin{quote}\linespread{0.9}\finob} ... to reduce the baseline spacing to 90% of its previous value within the environment, although if you reduce it too much (to less than the actual space taken by the characters in the font) then TeX will not preserve equal spacing, and lines with descenders or capitals or accented letters etc will ...


1

A recursive stack (\fbox thrown in for flair [easily removed]). Note also the stack spacing has no effect on the underlying line spacing of the document. \documentclass{article} \usepackage{stackengine} \newcounter{loopcounter} \newcommand\makestack[3]{% \def\currentstack{#2}% \setcounter{loopcounter}{\the\numexpr#2-1\relax}% \loop\unless\ifnum\value{...


2

I can suggest a key-value interface: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \keys_define:nn { vincent/printnumbers } { start .int_set:N = \l_vincent_printnumbers_start_int, step .int_set:N = \l_vincent_printnumbers_step_int, end .int_set:N = \l_vincent_printnumbers_end_int, wrapper .tl_set:N = \...


2

The advice in the accepted answer is fine with respect to how one might change the \parindent. However, if you want a 'gap' between all paragraphs in general, then you should not be using \\. A better choice is to do the following: \documentclass{article} \usepackage[parfill]{parskip} \usepackage{lipsum} % this is just so we can ...


2

I am guessing that you mean indentation... Try and put \noindent in the beginning of every paragraph. For example: \noindent The Moon is in synchronous rotation with Earth, always showing the same face with its near side marked by dark volcanic maria that fill between the bright ancient crustal highlands and the prominent impact craters. \noindent The Moon'...


2

You misuse the \large macro. It does not take an argument, as in \large{Greeting}, but is a declaration that sets the new font size for all subsequent text to the end of the current group. To limit its scope, enclose the scope in braces. Also, an end-of-paragraph \par is needed in the group to bring the \large into force. Thus, you will see that the ...



Top 50 recent answers are included