New answers tagged

2

You can use an empty group: \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{linguex} \renewcommand{\firstrefdash}{} \begin{document} \exg. Chi pensi t verrà alla festa? \\ Who think.2g come.FUT.3sg a=D party \\ `Who do you think will come to the party?' \exg. Chi pensi t verrà alla festa? \\ Who think....


1

You're being confused by the command's name: \paragraph is actually one of the standard sectioning command hierarchy: \part \chapter \section \subsection \subsubsection \paragraph \subparagraph These commands are defined in the standard classes (but article doesn't have \chapter) and most other classes follow the same convention. It's rather common ...


1

You can insert the same amount of space by looking at the definition of \paragraph in article.cls: \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} The fourth ...


1

Expanding on @Gustavo Mezzeti's suggestion, you might use this: \usepackage{enumitem} . . . . . . \begin{document} . . . . . . \begin{enumerate}[label=\Alph*, wide=0pt, font=\bfseries] \item Blah blah blah \item Booh booh booh \item Fiddle dee dee! \end{enumerate} . . . . . . \end{document}


2

Why use changebar? If you are generating a list of examples, it seems easier to use mdframed + ntheorem. See the documentation for mdframed for usage information. For example: \documentclass{article} \usepackage{amsmath} \usepackage{ntheorem} \usepackage[xcolor,tikz]{mdframed} \theoremstyle{plain} \theorembodyfont{\upshape} \newmdtheoremenv[% ...


1

You can avoid the aligned, in this case, by using split: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \begin{split} A&\leq \int \text{first part of a long expression} \\ & \qquad\times \text{second part of the long expression} \end{split} \\ &\leq \int \text{shorther expression} \end{align*} \end{document} ...


3

In general whenever aligned is used when there is "something" is front for it to align with, then always use \! \begin{aligned} .... This removes the spacing that is inserted at the start of aligned Edit: there seems to be another issue at play, if the contents of aligned starts with & then there is also spacing issues. The problem and a fix can be ...


0

A short code with a single blockarrayenvironment: \documentclass{article} \usepackage{blkarray} \usepackage{amsmath} \begin{document} \[ \begin{blockarray}{\{\BAmultirow{2.2cm}c@{\enspace}c\}\BAmultirow{1cm}\{\BAmultirow{2.2cm}c@{\enspace}c\}} \parbox{1in}{\centering subfields $E$ \\ of $K$ \\ containing $F$} & K & &\centerline{$ \...


2

For larger-than-normal delimiters, you can use \left...\right: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \left\{ \begin{tabular}{c} subfields $E$ \\ of $K$ \\ containing $F$ \end{tabular} \begin{array}{c} K \\ \vert \\ E \\ \vert \\ F \end{array} \right\} \quad \longleftrightarrow \quad \...


0

Something like this? (Observe that I would caution against using an adjustbox environment.) \documentclass{article} \usepackage{tabularx,ragged2e} \begin{document} \begin{table}[h!] \begin{tabularx}{\textwidth}{|l|>{\RaggedRight}X|c|c|c|} \hline 1 & \multicolumn{4}{p{0.9\textwidth}|}{\bfseries Implementation of a Smart and Sustainable Watering ...


3

The additional page is caused by the \thanks, try to use it within author{} \author{Shmuel (Seymour J.) Metz\thanks{I wish to thank Milton Parnes, the Mathematics department of Wayne State University and the Mathematics department of the State University of New York at Buffalo for guiding my mathematical education}}


0

Some generic suggestions: Instead of using \firstname{\Huge{..}}, redefine \namefont: \renewcommand{\namefont}{\Huge} Note also that \Huge is a font switch, not a macro, so the usage would typically be {\Huge ..} rather than \Huge{..}. Similarly, update \titlefont instead of setting the title font in the title: \renewcommand{\titlefont}{\Large} For ...


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


2

Several solutions: If you're using \begin{figure}[H] as @egreg suggested, change [H] to [h]; Put \raggedbottom in the preamble. Downside of this is that there can be more space than you'd like at the bottom of the pages; Put \allowdisplaybreaks in the preamble. This will help if you have long formulas by breaking them across pages, which you may or may ...


1

I'm always using csquotes for quotations, it automatically inserts a small kern in such cases. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{csquotes} \MakeAutoQuote {„}{“} \begin{document} \enquote{Mary had a little \enquote{lamb}} % needs csquotes „Mary had a little „lamb““ %needs ...


1

You can use titlesec, the dedicated package, and add to your preamble: \usepackage[medium, compact]{titlesec} The default article corresponds to the big option. If you want more control, use the advanced interface of titlesec. You can try something like this: \documentclass[12pt]{article} \usepackage[utf8]{inputenc}% \usepackage[T1]{fontenc} \...


3

If you are going to use this for other things, may be the best would be to make a macro \newcommand*\type[1]{#1\mathord{:}\textnormal{type}} $\type{s}$


7

The colon : is declared by LaTeX as a binary relation, which means it is separated from ordinary symbols by a thick mathematical space. The \colon command makes a punctuation symbol, so no space before it and a medium math space after it. However amsmath slightly changes colon to have some space before it and some more than a punctuation symbol after it. ...


8

Add a pair of brackets around the colon, and put type inside a \text command. Alternatively, you can use \colon which looks better, in my opinion: $ \begin{array}{l} s: \text{type}\\ s{:}\text{type} \\ s\colon \text{type} \end{array} $


1

For multi-rows, you can try this \documentclass{article} \usepackage{array}% \begin{document} \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\[1cm] $-2e^{-x^{x^{x}}}$ & 0\\[1cm] $2x&\frac{x}{2}\\[1cm] . . . \end{tabular} \end{document}


1

With the current MWE, you could change the following macro in the class file: \newenvironment{rSection}[2]{ % 1st input argument - section name, 2nd input argument - relevant links. \sectionskip \MakeUppercase{{\bf #1}} \hfill {#2} % Section title and relevant links \sectionlineskip \hrule % Horizontal line } to: \newenvironment{rSection}[2]{% ...


1

I don't know why somebody would use a template for a cv, since you want changes anyway. I am really confused The following should do, what you want. I removed \usepackage[parfill]{parskip} from the class file, since it causes the behaviour. Instead, i simply changed the parindent to zero. That is ok for a CV document. I also changed the environment in ...


2

Like this: Since you didn't provide any information about your "panel" I assume, that beamer is document class. However, solution can be relatively easy adopted to any document class: \begin{frame}[fragile] \begin{figure} \renewcommand{\tabularxcolumn}[1]{m{#1}} \setlength\tabcolsep{3pt} \begin{tabularx}{\textwidth}{XXX} \multirow{2}*[-1.5ex]{\...


1

I find the math notation very strange. Anyway, you're using improperly \shortintertext and it's easier than that: \documentclass[11pt,a4paper]{article} \usepackage{amsmath,mathtools} \usepackage{lipsum} \newcommand{\pad}{\hphantom{={}}} \begin{document} \lipsum*[2] \begin{flalign*} E&= \times(\times a^{3}b^{2}c^{5})\times (\times a^{5}b^{6}c^{11}) ...


2

Like this: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{flalign*} E & = \times(\times a^{3}b^{2}c^{5})\times (\times a^{5}b^{6}c^{11})\div (\times a^{4}b^{3}c^{15}). & \\ & = \times a^{3}\times b^{2}\times c^{5}\times a^{5}\times b^{6}\times c^{11}\div a^{4}\div b^{3}\div c^{15};\, % \...


3

Yes, the length you need to modify is \skip\footins: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the paper format. \usepackage[T1]{fontenc} % Not always necessary, but recommended. % End of standard header. What follows pertains to the ...


1

Steven should take full credit; I add some considerations about the problem. The separator between initials and surname seems to be controversial and you may be requested to use a normal space instead of the thin space. So it's much better to define a macro that will take care of the issue: just changing its definition will modify the global behavior. ...


4

The problem is the space in the following line: \renewbibmacro*{date+extrayear}{\iffieldundef{\thefield{datelabelsource}year}{}{\printtext[parens]{ \iffieldnum{edition}{\printfield[superedition]{edition}\global\clearfield{edition}}{} \iffieldsequal{year}{\thefield{datelabelsource}year}{\printdateextralabel}{\printfield{labelyear} \printfield{extrayear}}...


2

Since you load mathtools you can simply use \shortintertext instead of \intertext. I added a suggestion to improve the layout of your equation (at least for my taste), defining a commenteq command: \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \usepackage{amsmath} \usepackage{IEEEtrantools} \newcommand\commenteq[1]{\...


2

Make it part of the equation set and use a negative vertical skip <len> in \\[<len>]: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{flalign*} \times a^{m}\times a^{n-m} &= \times a^{n}; && \text{(By case already proved)} \\ \times a^{m}\times a^{n-m}\div a^{n-m} &= ...


2

The problem is in the continued caption, which is too wide; the excess always goes to the last column. \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs} \textheight=8\baselineskip % just for the example \begin{document} \begin{longtable}{ l *{2}{S[table-...


2

If you add \addtolength\textheight{-30\baselineskip} You see the cause of the space on page 2 You need to shorten the heading or spread it over two lines so that it does not force the last column to be too wide. Perhaps \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives}} \\ \multicolumn{5}{r}% {(\textit{Continued ...


3

Your example is easily reproduced using natural tables. Documentation can be found in the Garden. \setupbodyfont[dejavu,sans] \starttext \startsetups table:colors \setupTABLE[column][1][style=blue] \setupTABLE[row][1][style=red] \stopsetups \startsetups table:rules \setupTABLE[frame=off] \setupTABLE[row][each][bottomframe=on] \setupTABLE[...


0

Just for others which have a similar problem...the tagged command doesn't cause the problem. The taggedblock blocks also cause problem when using before part and chapter commands. I get unwanted empty pages. \documentclass[ paper=a5, fontsize=12, ]{scrbook} \usepackage{tagging} \usetag{myTag-A} \usetag{myTag-B} \droptag{myTag-A} \usepackage{...


1

This is an old question but the answers proved unsatisfactory for me and I spent countless hours tearing my hair out. What I ended up arriving at was \uline from the ulem package. This allows the inclusion of a \hfill to stretch the line to the end of the page, which allows the underline to start from somewhere other than the left edge. \documentclass{...


8

A trick learned from egreg. If you put \nobreak\hspace{0pt} between the nonbreakable space and the last name, the last name will be reevaluated as its own entity for hyphenation. Below, I codify that as \? to place the small unbreakable space and reset the "hyphenability" of the following word. \documentclass{article} \newcommand\?{\,\nobreak\hspace{0pt}} ...


3

With a KOMA-Script class you can use BCOR=10mm, twoside=semi to get inner margins with the same width as the outer margins and an additional binding offset of 10mm. \documentclass[ 12pt, % font size a4paper, % paper format BCOR=10mm, % binding correction DIV=12, % ...


3

Solution of the strange text positioning via zref-savepos. Three LaTeX runs are needed, because the positions are recorded via the .aux file mechanism. \documentclass{article} \usepackage{lipsum} \usepackage{geometry} \geometry{hmargin=30.5mm, vmargin=26.5mm} \usepackage{zref-savepos} \newcommand*{\SpaceX}{30mm} \newcommand*{\SpaceY}{.5\paperheight} \...


2

Is this what you want? I raised the table by \arraystretch × 0.7\baselineskip (the height of a row in the table above the baseline). I slightly improved the look of tthe table using hhline: \documentclass{beamer} \usepackage{array, hhline} \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \begin{document} \begin{frame} \footnotesize \textbf{...


2

There is no need to use a table environment when you want to set a tabular. So, set it as-is, without the use of \centering: \documentclass{beamer} \usepackage{array,booktabs} \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \begin{document} \begin{frame} \footnotesize \textbf{Aufgabe:\hspace{3mm}Zweidimensionale diskrete ...


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}


4

The LaTeX lengths \oddsidemargin and \evensidemargin are used for the task of allocating a binding width. For a document class that sets the pages symmetrically, if one wishes to leave a binding width, then \oddsidemargin should be set to that binding width, and \evensidemargin should be the negative of it. In the case of the scrreprt class, the margins are ...


3

First of all ... titlesec and KOMA ... sigh... Now, the spacings can be controlled by topsep setting to the enumitem list and the \OuterFrameSep value of framed package. \documentclass[a4paper, oneside, final]{scrartcl} \usepackage{scrpage2} \usepackage{titlesec} \usepackage{xcolor}% http://ctan.org/pkg/xcolor \usepackage{enumitem}% http://ctan.org/pkg/...


0

The following MWE will show how to indent \subsection content by \parindent. \documentclass{article} \usepackage{lipsum} \usepackage{titlesec} \titleformat{\subsection}[runin]{\itshape}{\thesubsection.}{3pt}{\space}[.] \titlespacing*{\subsection}{\the\parindent}{1ex}{1em} \parindent=1pc \begin{document} \section{Section Title} \lipsum[1-2] \subsection{...


2

Beamer treats all the newtheorems like its own theorem environment, so if you want to adjust the spacing simply add it to the relevant beamer templates: \documentclass[12pt, aspectratio=169, noamssymb]{beamer} \usetheme{default} \setbeamertemplate{navigation symbols}{} \usepackage[T1]{fontenc} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{...


5

With thmtools you can update the way your theorem displays by creating a custom layout: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ bodyfont=\normalfont\itshape, headformat=\NAME\NUMBER ]{nospacetheorem} \declaretheorem[style=nospacetheorem,name=Q]{question} \begin{document} \begin{question} What is ...


5

\newtheorem{question}{Q\ignorespaces}



Top 50 recent answers are included