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{...
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, ...
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 ...
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 \...
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 ...
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 ...
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{...
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) ...
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 ...
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 ...
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 ...
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=...
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 ...
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 ...
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 ...
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 ...
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} \...
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 ...
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 ...
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.
104 views

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 ...
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 ...
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! ...
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 ...
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 ...
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{...
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}% \...
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 ...
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 ...
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 \...
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....
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\...
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 ...
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 ...
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 ...
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 ...
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:...
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. \...
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?...
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 ...
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]{...