Most Popular
1500 questions
115
votes
3 answers
Add affiliations to the authors' name in the article class
I am using the \documentclass{article} to write an article. how can I add the affiliation to the author's name like the following picture?
And, this document class has a date under the names. Can I omit it?
user3482383
- 1,629
115
votes
8 answers
Visual comparison between LaTeX and Word output (hyphenation, typesetting, ligatures etc)
I really want to convince my friends and family that LaTeX is the choice for them when it comes to formatting and creating beautiful documents. I am aware of the major advantages that come with using LaTeX but some are not convinced. Can someone…
Jeel Shah
- 3,794
114
votes
4 answers
How to highlight Python syntax in LaTeX Listings \lstinputlistings command
I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like
class Child(Parent):
def __init__(self, *args, **kwargs):
bla bla bla...
What should I…
fmonegaglia
- 1,754
114
votes
6 answers
What are good ways to make pdflatex output copy-and-pasteable?
One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the right output encoding. There are at least two…
Lover of Structure
- 22,025
114
votes
3 answers
What is the right order when using \frontmatter, \tableofcontents, \mainmatter, \part, \chapter, \backmatter, \appendix etc?
I am using the book documentclass and want to know the correct order when arranging
\frontmatter
\maketitle or \begin{titlepage}...\end{titlepage}
a page that contains copyright, ISBN, edition information
a "dedication" page saying "This book is…
Display Name
- 46,933
114
votes
8 answers
Why can't the end code of an environment contain an argument?
Environments are allowed to have arguments, but reference to those arguments can only appear in the opening code of the environment, and not the closing code. What is the reason for this, and are there preferred ways around…
Alan Munn
- 218,180
114
votes
2 answers
Increase the thickness of node border in TikZ
Suppose I have a node in the shape of a circle. How can I make its border thicker?
\node[circle, draw=blue!80, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1};
passerby51
- 2,395
113
votes
6 answers
How to keep up with packages and know which ones are obsolete?
I'm an on and off user of LaTeX so I'm not familiar with every package out there. Having said that, whenever I use LaTeX and need to accomplish a certain goal (i.e. generate a list of appendices), I search around and find some kind of solution that…
fideli
- 1,345
113
votes
2 answers
What is the difference between \mathbin vs. \mathrel?
These seem to be very similar as they both separate two operands.
When would one be used over the other?
Is there any difference in the math spacing surrounding them?
How would the spacing in these relate to to the spacing produced by \mathop?
Nobby
- 1,407
113
votes
11 answers
Best way to generate nice function plots in LaTeX?
Which is the best way to put function plots into a LaTeX document?
113
votes
9 answers
Drawbacks of XeTeX/LuaTeX
Currently I use pdflatex to process my documents, but I want to be with the cool kids and switch to XeTeX or LuaTeX. My documents are moderately multilingual (main text in portuguese or english, quotations and references in english, german, french,…
Mateus Araújo
- 8,820
113
votes
5 answers
How to include a Lenny face in a LaTeX document? e.g. ( ͡° ͜ʖ ͡°)
How would one include a "classic" Lenny face in a LaTeX document?
A paper is due tomorrow and I am curious. e.g. ( ͡° ͜ʖ ͡°)
I have attempted to use the verbatim environment but it has proved fruitless.
pixatlazaki
- 1,203
113
votes
1 answer
How to show subsubsections and paragraphs in TOC?
So we have something like:
\documentclass{article}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\usepackage{amsmath}
\begin{document}
\tableofcontents
\section{Brushless Motor Fundamentals}
\subsection{Brushless Motor…
Kabumbus
- 1,805
113
votes
3 answers
modifying margins for one slide
I need help for modifying the margins for only one slide in the beamer class
In other words, I need a local version of
\setbeamersize{text margin left=,text margin right=}
in…
Arada
- 1,173
113
votes
5 answers
What is a good package for displaying algorithms?
I found this page with some examples:
http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode
I'm wondering which one to use. Any suggestions? I'm using other packages too so whichever is less likely to interfere with them is better for me.
bada
- 4,287