Most Popular
1500 questions
71
votes
6 answers
If Then Else for odd page/even page
How to use if-then-else structure in LaTeX?
I need an example of odd and even page.
if odd then
command 1
else
command 2
Regis Santos
- 14,463
71
votes
4 answers
Evenly distributing column widths
Consider the following hunk of code:
\begin{tabular}{| c | c | c | c | c | c | c | }
\cline{2-7}
\multicolumn{1}{c}{} & \multicolumn{3}{|c|}{Fantastical aardvarks}
& \multicolumn{3}{c|}{Spelunking elephants}\\
\hline
Foo bar & A & B & C & A & B &…
Eli Lansey
- 812
71
votes
2 answers
Changing left margin in itemize environment of beamer class
I can't figure out how to line up the symbols of an itemize environment in beamer with the left part of the main text. In other words, I would like to supress the left margin in beamer itemize lists.
It would be nice if the solution worked with any…
rgallego
- 2,112
71
votes
1 answer
How to emulate the traditional BibTeX styles (plain, abbrv, unsrt, alpha) as closely as possible with biblatex?
This question led to a new package:
biblatex-trad
I'd like to use biblatex while at the same time maintaining the bibliography format of the traditional BibTeX styles (plain, abbrv, unsrt, alpha). Looking at Guidelines for customizing biblatex…
lockstep
- 250,273
71
votes
6 answers
How to sort BibTeX references in reverse chronological order?
I am trying to get my list of publications to display in reverse chronological order. I can use \bibliographystyle{unsrt} as a workaround, and just order the entries manually, but I would naturally prefer if BibTeX did that for me.
What tools or…
Dima
- 853
71
votes
1 answer
Can I change the "range" punctuation in siunitx?
When using siunitx, by default, \SIrange{0}{10}{\celsius} will render 0 °C to 10 °C.
Is there any general way to change the default rendering of ranges to 0--10 °C (i.e., using an en dash instead of "to").
user2473
- 3,108
71
votes
5 answers
document class for a restaurant menu
I'd like to typeset a restaurant menu. What would be a good document class or package to use? I'm hoping for an answer similar to this thread: Survey or questionnaire document class or package?
astralnocturne
- 643
71
votes
2 answers
How to insert slashed o "ø" into an author's name in my bibliography
In my bibliography I have a reference to an author with a Danish name: Nørregaard.
The problem is that to do the slashed o I need to type \o. However, I can't do this N\orregaard and if I do this N\o rregaard then I get a space in the name. How do I…
Eddy
- 1,875
71
votes
1 answer
How to remove conference information from the ACM 2017 SIGCONF template?
I have downloaded the new ACM template for conference proceedings (sigconf format). Even when I comment out the lines that are related to conference information, price, DOI, etc. I get the following lines on the first page:
Conference’17,…
Matt
- 1,107
71
votes
4 answers
Footnote runs onto second page
I have a footnote that begins on one page but the text runs over onto the footnote section of the page afterwards. Any way to fix this? I'm using footmisc and the oneside book class.
JMS
- 761
71
votes
2 answers
How to create a table with fixed column widths
I've put in the following code:
\begin{tabular} {l{4cm} l{5cm}}
hello & foo\\
hello & bar\\
\end{tabular}
and it gives me an error:
! LaTeX Error: Illegal character in array arg.
See the LaTeX manual or LaTeX Companion for explanation. Type H
…
CaptainCodeman
- 813
71
votes
1 answer
Draw edges and paths in the background of nodes in TikZ
Is it possible to draw edges or paths in the background of nodes independently of whether they are constructed before or after the nodes are defined?
In the following example, the \draw instruction comes after the nodes are declared and so the path…
Jannis Pohlmann
- 3,031
71
votes
6 answers
Importing csv file into latex as a table
I am using the \csvautotabular function to import data from a csv file. It has worked beautifully; however, I only want to import certain columns from the file. How can I exclude certain columns?
EDIT:
Okay, here is my csv file:
Time (s),Zeroed time…
Mack
- 1,981
- 5
- 19
- 18
71
votes
11 answers
FontAwesome font not found?
I'm using the latest version of MacTeX 2013 on OS X 10.8.4. All of my TeX Live packages are fully up-to-date. TeX Live also lists the fontawesome package as installed.
I'm trying to use the FontAwesome font with XeLaTeX or LuaLaTeX and getting…
knite
- 841
71
votes
8 answers
TeX - LaTeX in pop culture
I'm doing a research on free-software references in movies, TV series, etc.
Things like: "in Dr. House they use KDE as DE" or "Sheldon from the The Big Bang Theory uses Ubuntu." And the like.
I'd love to include some TeX/LaTeX facts, but I've not…
f.boc
- 912