Linked Questions
79 questions linked to/from Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?
1
vote
2answers
28 views
Algorithm caption?
I am writing my final thesis and I am not too practical working with LaTeX. In my document, I have to write some algorithms; my professor gave me the following code to put in the preamble:
\newcounter{...
93
votes
9answers
30k views
How do I repeat a theorem number?
Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.
I'd like to include the statement of these theorems twice over, ...
187
votes
46answers
21k views
What are the most common mistakes that beginners of (La)TeX and Friends make?
I want to collect the most common mistakes, misconceptions, pitfalls, etc that (La)TeX and Friends users make. Please one answer for each mistake, misconception, pitfall, etc.
I am only interested in ...
2
votes
3answers
9k views
Vertical space between tables vspace won't work
I have 2 tables, one above the other. At the moment I can't make any space between them in my report. The strange thing is I moved them in to a new blank document with all the same preamble and \...
183
votes
10answers
22k views
Why is LaTeX so complicated? [closed]
I have been using LaTeX professionally almost every day for almost 10 years, so I think I can say that, by now, I more or less know what I'm doing. I also do a lot of ordinary computer programming, in ...
0
votes
2answers
225 views
Edit style for italic caption
I have a style for Fig caption like below.
\def\fnum@figure{\small\it\bf\figurename{} \thefigure.}
This style change the caption and caption number bold.
But I need bold and italic numbering and ...
5
votes
2answers
465 views
Using characters to delimit commands (like markdown)
I recently came accross the \DefineShortVerb command of the fancyvrb package, which lets you "define a special character as an abbreviation
to enclose verbatim text", so for example:
\documentclass{...
2
votes
1answer
77 views
How can I define font size and style for ExPex text?
disclaimer: I am very new for LaTeX, so please do not redirect me to documentation, I read carefully several times ExPex PDF guide (http://mirrors.ibiblio.org/CTAN/macros/generic/expex/expex-doc.pdf) ...
3
votes
1answer
71 views
installing linguex into a main tex thesis file
The latex file has problems installing/using the linguex package in a ucla thesis latex template (uclathes) (downloaded from GitHub). I inserted it in a preamble of the mother tex file, but it keeps ...
2
votes
1answer
21 views
linguex in uclathes [duplicate]
\exi. environment sends `undefined sequence' error. How can I fix it?
Here is the code of the main tex file.
\documentclass [PhD] {uclathes}
\usepackage[normalem]{ulem}
\usepackage{linguex}
\begin ...
55
votes
4answers
64k views
How to construct a coloured box with rounded corners
Here is the specs of the box.
Color of the bar rule should be:
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}
Radius of the 4 corners of the box: 4pt
Thick line = 0.5pt
Text should be 6pt ...
5
votes
2answers
2k views
Missing \item when compiling my resume
I've building my resume using resume.cls, and I keep getting an error. However, it doesn't seem to be consistent:
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=...
2
votes
1answer
91 views
How can I narrow down these gaps?
I am writing my curriculum vitae, but I have one question.
In the first image, there are spaces between different sections.
(Between contact and phone, between education and Seoul~~,....)
Thus, I ...
5
votes
3answers
4k views
Noindent in \thanks, left align
I am using the following command in WinEdt to have the corresponding author contact info at the footnote. I used \\ to have a new line since it was long.
I have two problems. First I need to left ...
1
vote
2answers
149 views
How to make a line in header and footer in the first page?
I am writing a proposal, and trying to decorate my header and footer by a line. The problem that I face with is the line under footer and header only appear on from the second page to the end, while ...
5
votes
2answers
1k views
aboveglftskip in expex linguistic glosses
First of all I am not an expert in using LaTeX, I just started a few months back.
I am using MiKTeX with the expex package for glossed linguistic examples.
If we take a look at a glossed example, we ...
11
votes
3answers
11k views
Memoir class and Bibtex
I have
biblio.bib:
@article{XX,
title={{Title}},
author={Author},
journal={Journal Title},
volume=1,
number=11,
pages={1-2},
year=1666
}
And myfile.tex
\documentclass[oneside]{memoir}
\...
1
vote
1answer
71 views
Generalising a second-order macro with loops
I'd like to construct a macro that can be used to define commands. Those commands behave like variables or structs of variables, such that they can contain multiple values. The "member" is passed via ...
430
votes
3answers
899k views
“Correct” way to bold/italicize text?
Is either of these considered better/more readable/more "proper"/more conventional than the other for making text bold? If so, what is the reason?
I like my text \textbf{bold}
versus:
I like my ...
0
votes
0answers
1k views
Difference between `\sl` and `\slshape`? [duplicate]
What's the difference between using \sl and \slshape? I don't see any in the pdf.
1
vote
1answer
104 views
How sticky or non-sticky is \nolinebreak?
If you already know what sticky and non-sticky commands are, skip down to the header REAL QUESTION
A sticky command remains in effect until you explicitly turn it off.
For example, $ to enter math ...
0
votes
1answer
100 views
Using footmisc package in tcolorbox environment [duplicate]
I am trying to create a footnote symbol * in a tcolorbox environment and the result is not the symbol nor at the bottom of the page instead within the box!
\usepackage[most]{tcolorbox}
\usepackage[...
5
votes
2answers
429 views
Colour only the text in a tabularx environment
Edit: This question is related to this one: How to change only the color of numbers (and not units) with numprint?
I tried the solution given here, but it enlarges the line spacing of the table as ...
3
votes
1answer
57 views
How to reduce the white space between top of the page and headrule ONLY on pages other than the first?
See the figure below:
Here is the code:
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[top=6mm,includehead,headheight=60pt, left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.5cm]{...
0
votes
1answer
155 views
Fontspec changes the bold math
I wish the A, B and C of the matrices defined as follow were written using the default computer modern font. I'm using the fontspec package with LuaLaTeX, but when I set the main font it also changes ...
3
votes
1answer
11k views
Package natbib Warning: Undefined Citation Warning
After hours of trying to figure it out, I finally decided to ask for help. I checked various related answers but I am new to Natbib and couldn't figure out the problem if you might please be able to ...
1
vote
2answers
531 views
Unable to use \texit in \caption
I am trying to italicize species names in a caption:
\caption{The results of recoding \textit{A. victoria} towards the $2$-mer frequency distribution of the highly expressed genes of \textit{E. coli}....
1
vote
0answers
65 views
Two different citation methods [closed]
Can anyone tell me the basic difference
between
\rm \cite{}
and
\cite{}
while citing a manuscript. After compiling I could not find the differences, but there must be some. Kindly help. Thanks a ...
0
votes
1answer
100 views
Transforming URLs so that LaTeX understands them
I frequently have to show snippets of Python code in slides, and I like to show their behaviour in PythonTutor. Unfortunately, a mere \href{my_url}{my_title} is problematic, since the URL will contain ...
14
votes
4answers
1k views
Can I get $$…$$ to behave like \[…\]?
Is it possible to modify LaTeX so that good old $$...$$ behaves like \[...\] (and by this I mean that it should be synonymous to it).
If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! ...
10
votes
4answers
29k views
Space between lines
I try to typeset title pages and use LARGE and bold for this. The problem is that the lines seem to be too close to each other. I think it looks bad. Is this the way it is supposed to be? Is there a ...
84
votes
3answers
34k views
“Too many math alphabets” error
I just got the error
Too many math alphabets used in version normal.
on a document I'm editing. What can I do to fix this, other than stop using an alphabet? All I've found online is instructions ...
1
vote
2answers
162 views
Formating a table using the 'booktabs' package
I have the following script that generates a table that I am trying to format properly.
\documentclass[12pt]{article}
\usepackage{float}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{...
4
votes
1answer
209 views
Help in Tree diagram using Tikz package
My requirement is as follow:
I've achieved this by using the below tag:
\documentclass[10pt]{book}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{linguex}%
\usepackage{tikz}%
\...
19
votes
2answers
1k views
Is there any reason not to use \let to redefine a deprecated control sequence to the currently recommended one?
I understand that \bf and \it are both deprecated in the current version of LaTeX. To the best of my knowledge, the correct control sequences replacing them are \bfseries and \itshape.
Is there any ...
1
vote
2answers
739 views
Small caps and underline create inconsistent underlining
I'm attempting to underline section headings in a document, and the behavior of particular letters (like "Q" and "q") as small caps makes the underlining match with the bottom of the lowest part of a ...
7
votes
1answer
30k views
Merge columns in LaTeX
I would like to merge column in LaTeX. I can make that but this line is incomplete because it still open on the left. Perhaps you will not understand what I mean, but this is the code that I wrote
\...
4
votes
1answer
440 views
Unwanted double spacing
I have the following LaTeX code:
\documentclass[a4paper]{report}
\usepackage{color}
\usepackage{hyperref}
\usepackage[usenames,dvipsnames,table]{xcolor}
\newcommand{\ADDRESS}{
\begin{minipage}[t]{0....
3
votes
1answer
647 views
Editing Table in LateX
Below is a table I want it to appear it the top page of a two column page. But its not looking good so if anyone could please assist me.
\begin{table*}[t]
\centering\setlength{\tabcolsep}{.3\...
16
votes
2answers
2k views
Why are these commands considered as bad practice?
I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand.
\\ (except inside a special environment like tabular, array, or ...
4
votes
2answers
599 views
How would you go about typesetting something like this on TeXworks? [closed]
This is one of examples the that appears in the TeXbook (pg. 411) and I tried my hands at typseting it but couldn't. I'm a newbie and was hoping someone here could help, please?
The code supposedly ...
9
votes
1answer
12k views
define an global variable; error ! Use of \@ doesn't match its definition
I want to define some variable for my IPE template, such as the title, affiliation and author etc. The code is listed below. However when I compile it using pdflatex, it does not show the result what ...
1
vote
3answers
325 views
Align left for left text; align right for middle and right text
{\bf Carnegie Mellon University} \hfill {LTI, School of Computer Science} \hfill {\em July 2008 - Present}
{\bf Tsinghua University} \hfill {School of Software} \hfill {\em July 2008 - Present}
The ...
4
votes
3answers
4k views
Some issues with title page
I have a few problems whilst creating my title page.
How would italicize just the email, course, supervisor etc., and not the actual text itself?
How would I shift the Email: <myemail>, Course:...
20
votes
4answers
37k views
How to align text to the right in math mode?
I have a table of formulas, some have a description next to them, I want the equations to appear left flush and the text between parentheses right flush. I was writing it in the following way.
\...
4
votes
1answer
587 views
gb4e leaves extra space before translation
gb4e leaves extra (unwanted) blank line space between gloss and translation. Same problem as here: Why is the gap between the translation and the last line of the gloss so wide in my interlinear gloss?...
6
votes
2answers
3k views
Why is the \bf command applied to more than I asked?
MWE:
\documentclass{article}
\usepackage{bm}
\begin{document}
$$x(t), \bf{x}(t), \bf{x(t)}$$
\end{document}
Result:
Question:
Why are the second and third x(t) typeset the same? In the second ...
6
votes
1answer
6k views
Modifying a template fancy chapter
I am using roughly the following setup
\documentclass[11pt]{book}
\usepackage{hyperref}
\usepackage[bf]{caption}
\usepackage{subcaption}
\usepackage{amssymb}
\usepackage[fleqn]{...
7
votes
3answers
326 views
Preventing newline from left column from forcing a newline in the right column
I'm writing a CV in LaTeX, and got started with the sample called Writing a CV in LaTeX.
I'm trying to modify it so that a newline in the left column does not force a newline in the right column. ...
7
votes
1answer
16k views
\bf is an undefined command [duplicate]
I am very new to Latex and I am getting this error:
Class scrartcl Error: undefined old font command `\bf'.
See the scrartcl class documentation for explanation.
Type H <return> for immediate ...