New answers tagged

3

The basis of the environment you want already exists, if I've well understood: it's leftbar from the framed package. Here are two ways of patching it: \documentclass{article} \usepackage{framed} % \usepackage[table, svgnames]{xcolor} \newenvironment{note}{ \leavevmode \begin{tabular}{>{\columncolor[gray]{0.8}}p{0.1cm}p{0.2cm}p{\dimexpr \textwidth - 1....


3

It is not completely clear to me what you are trying to achieve and why do you want to overlap lines, so I’ll stick to the question “Is there a command that can add vertical space before a line of text?”. The pdfTeX engine has a \vadjust pre primitive that can conveniently be used for this. See the following MWE. % My standard header for TeX.SX answers: \...


1

Unless you are trying to overlap lines, I would venture to guess you're looking for the variable \baselineskip or \baselinestretch? But you probably don't want to change those variables directly because other macros scale off of them. \baselineskip: A parameter that tells TeX the distance between baselines. or \linespread e.g. set line spread for next ...


1

Something like this? \documentclass{article} \newcommand\main{\par\noindent\hspace*{0pt}\ignorespaces} \newcommand\mainV{\vspace{-10pt}\main} \begin{document} \main Some text \main Some text \main Some text \mainV some other, overlapping text \end{document}


7

Use \newcommand*{\yournoindent}[1]{\noindent\ignorespaces} which should gobble (or ignore) the space following \yournoindent{<stuff>}.


1

The problem is, that you are using \\. If you want a new paragraph use an empty line (or in the few occasions, this is not an option use \par) \begin{frame} hello world bye world \end{frame} For an undoubtedly quote on this topic see http://chat.stackexchange.com/transcript/41?m=30805381#30805381


1

Your “Question 1” is indented and you probably don't want it. \documentclass{article} \usepackage[margin=3.5cm]{geometry} \usepackage{enumitem} \newcommand{\question}[1]{% \par\noindent\textbf{Question #1}\par } \begin{document} \question{1} \begin{enumerate}[label=(\alph*), leftmargin =*,align=left] \item \begin{verbatim} M<-matrix(c(1,3,5,2,4,6), ...


4

I think this is waht you want, obtained with the enumitem package: \documentclass{article} \newcommand{\np}{\newpage} \usepackage[margin=3.5cm]{geometry} \usepackage{enumitem} \title{DOCUMENT TITLE} \author{\textbf{\Large MY NAME}\\[3mm] \textbf{\Large MY NUMBER}} \begin{document} \maketitle \thispagestyle{empty} \np \textbf{Question 1} \begin{...



Top 50 recent answers are included