4
votes
1answer
686 views

etoolbox: trouble with boolean expressions

I'm new at making macros and am in the process of building a package to produce course outlines. I want the user to input room/day/time information as below (where everything has been simplified to ...
5
votes
1answer
664 views

biblatex : authoryear style and \cite redefined = error with multiple citations

With the help of a great answer to http://tex.stackexchange.com/a/50706/13904 I was able to redefine the \cite command as: \renewbibmacro*{cite}{% \iffieldundef{shorthand} ...
15
votes
3answers
29k views

How to align two images side by side and to scale them automatically to use whole slide?

I have two images. How do I align them side by side and scale them so that both of them together occupy the whole horizontal space in a beamer presentation? \begin{frame} \frametitle{Inconsistency} ...
8
votes
1answer
189 views

imakeidx: Is it safe to direct \index to an undefined index?

I am (still!) writing a biblatex style for legal citations. I am about to tackle indexing, and I want to make sure I have a viable plan. It's a pretty critical part of the project. Here's the issue. ...
21
votes
6answers
64k views

How do I align an image to centre?

How do I align an image to centre? In a beamer presentation I have a 2-3 items on a slide followed by an image. The image is not wide enough to cover whole slide, so it leaves around 30% space from ...
12
votes
1answer
13k views

Can I tell Beamer that `\uncover` should be invisible, not merely grayed out?

In Beamer, I'm using \uncover because I want the omitted text to take up space. But I don't want the grayed-out default rendering. Is there a way to use \uncover, or an equivalent, that will take up ...
7
votes
2answers
430 views

Intersection of two tkz-fct funktions

Is it possible to mark the intersection point of two tkz-fct functions and print it's coordinates? For example in this case: \documentclass{article} \usepackage{tkz-fct} \begin{document} ...
2
votes
2answers
370 views

Adding additional blank lines in Minted

I currently have two minted environments in each their minipage environment, so that they can be situated next to each other: \begin{figure}[!h] \centering \begin{minipage}{0.45\linewidth} ...
6
votes
1answer
1k views

Suppress page headers in one chapter

In a memoir document, how can I suppress the page headers for every page in one particular chapter? However, I don't want want to use \pagestyle{empty} as recommended this answer, since I want the ...
6
votes
2answers
263 views

Make all pages odd

I have a memoir document, with custom settings for margins, headers and footers, etc. I just found out it is being printed single-sided instead of double-sided, and I was wondering if there is a ...
2
votes
1answer
268 views

Control sub line width in tkz-collection

In tkz-base I can control the line width of a grid with the line width option as in the following example: \documentclass{article} \usepackage{tkz-base} \begin{document} \begin{tikzpicture} ...
2
votes
1answer
183 views

Using toggles from etoolbox to switch Sweave Schunks of code on and off

I would like to use the toggles from etoolbox to direct Sweave to evaluate or not evaluate chunks of code. Example: \newtoggle{FirstTime} \toggletrue{FirstTime} %\togglefalse{FirstTime} ...
2
votes
3answers
713 views

ybar stacked plot with negative coordinates

When using ybar stacked on a mix of positive and negative coordinates I cannot seem to find the answer I want. \begin{figure} \begin{tikzpicture} \begin{axis}[ybar stacked] ...
5
votes
2answers
1k views

Bibtex author name - unusual use case

I need to cite a paper whose author apparently wishes to be known as "A.James Hancock" (I changed the actual name). How do I get the abbrv style to produce that? I keep getting A.Hancock.
10
votes
1answer
21k views

Frame around text and figure

Consider the following TEXT TEXT TEXT TEXT Figure~\ref{fig:foo} TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT \begin{figure} \centering \includegraphics[width=\textwidth]{foo} \caption{This is foo.} ...
4
votes
2answers
396 views

Typeset directly in Spanish

I am typesetting in emacs with AucTeX. I generally write in English and Spanish, and, therefore, use the following in my preamble: \usepackage[english,spanish]{babel} \usepackage[utf8]{inputenc} ...
8
votes
2answers
2k views

Relocate MiKTeX 2.9?

On my Windows 7, 64-bit machine MiKTeX lives in C:\Program Files\MiKTeX 2.9. I'd like to move it to D:\Program Files\MiKTeX 2.9. Is there a mostly painless way to do so, or should I just reinstall?
5
votes
1answer
687 views

Can tex4ht output a 'flat XML' (fodt) OpenDocument file?

I'm guessing the answer to this question is no, but no harm asking - tex4ht, when outputting oolatex, outputs an .odt OpenDocument, which is actually a .zip file (which then contains content.xml, ...
3
votes
1answer
120 views

How can I prevent the \listof command from the float package scrambling my headers?

I'm using the minted package, which uses the float package. When I add the 'List of Listings' in my thesis, the \listoflistings command calls the \listofcommand from the float package. My problem is ...
15
votes
2answers
6k views

Is there a ditto symbol?

I believe that a symbol -||- is commonly used to indicate repetition of a fragment of text. The problem is that typesetting it using dashes and pipes looks kind of ugly. Is there a predefined symbol ...
4
votes
4answers
3k views

Error when using the python package

I am very new to LaTeX. I need to run python package in LaTeX but I can't. I use MiKTeX 2.9 under Windows 7 but the programs gives me this error: Latex error: ! I can't find file ...
10
votes
2answers
3k views

How to position nodes around another node in TiKZ?

I'd like to position some nodes in TiKZ around a given node. I could do that manually, by setting each node position, but why not looking for an easier way that looks better? I thought about using a ...
7
votes
3answers
897 views

An environment for writing regular-font pseudocode

I want to create a pseudocode environment that looks like this: Basically, the font doesn't change - it's just the same as that of the surrounding text. It allows mathmode. And there is a box ...
4
votes
1answer
875 views

TikZ overwrites gnuplot .gnuplot file

I do not know if what I am bringing up is a feature or a bug. I am trying to get a cos x trig plot in degrees generated by gnuplot and plotted by TikZ. My .gnuplot file looks like this: set table ...
12
votes
2answers
5k views

MiKTeX: “Font ccicons at 600 not found”

I'm using MiKTeX 2.9 and TeXnicCenter 1.0-RC1 (Windows 7) and try to compile the following minimal code: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{ccicons} \begin{document} ...
2
votes
2answers
3k views

Capitalise table of contents title with tocloft

Simple question, but I can't put the answer together through googleing. I want to capitalize the table of contents TITLE in my LaTeX document. Nothing else. I'm using the tocloft package and various ...
5
votes
1answer
249 views

Label a block or systems of equations with one label [duplicate]

Possible Duplicate: How to get only one vertically centered equation number in align environment with two equations I have a big system of equations which I want to label as one block. I do ...
3
votes
0answers
191 views

Generate revision history with rcs-multi [closed]

Is it possible to generate a page that collates all the revisions logs in multiple tex files with rcs-multi? And while trying to understand the example file, the line \rcsid{$Id: example.tex,v 1.2 ...
37
votes
1answer
3k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
11
votes
3answers
503 views

Creating macros for common commutative diagrams in tikz

I am currently typesetting a document which requires many commutative diagrams of the same shape and construction, but with different labels at the vertices and edges. For example, I want a ...
4
votes
1answer
730 views

Math environments in tables with > and < preamble

I'm trying to put a \begin{align*} and \end{align*} for every entry at columns 2 and 3 of my table. But I'm getting errors that seem to say my environment markers are mismatched. I'm sure I've got my ...
1
vote
2answers
418 views

LaTeX/Sweave - How to reproduce code blocks in an appendix?

I hope this is in the right place. For my statistics assignments, I do the computation inline with Sweave, like so: \begin{itemize} \item[Problem 1] <<label=block1,eval=T,echo=F>> ...
15
votes
3answers
11k views

Overlay images and block in beamer

I found this slides on Internet with a very nice style. http://www.eecs.harvard.edu/~tov/pubs/alms/alms-popl2011-slides.pdf How can I overlay blocks and image as in this slides? Specially this ...
4
votes
1answer
822 views

Modify xcolor package for light and dark

Can anyone write a macro that will modify the xcolor package so that using !x will darken colors when x < 100 and lighten colors when x is between 100 and 200? e.g., I would like to be able to do ...
14
votes
2answers
7k views

How can I include the logo in some slides and remove in others, using beamer?

I want to include a logo in my slides. I am using this: \logo{\includegraphics[scale=0.05]{../../Logos/CMS_logo_black.png}} but, due to some graphics are big, in some slides the main graphic ...
8
votes
2answers
3k views

Italics in the enumerate environment

I want to use italics in the enumerate environment. I want to have the following output: (a)  Text1 (b)  Text2 (c)  Text3 I am using: \begin{enumerate}[(a)] \end{enumerate} How do I ...
5
votes
1answer
610 views

Horizontal spacing issue in \listoftheorems using amsthm + thmtools

I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping? ...
10
votes
1answer
18k views

Left align (to the page) displayed math

How can I left align the display math environment (either $$ or \[)? I keep running into people asking about the align environment; but I just want to change displayed math from center to left align ...
15
votes
3answers
4k views

How to quickly troubleshoot errors caused by missing closing brackets?

Perhaps the most common mistake I make is to forget to place a closing bracket, i.e. }, or closing command, e.g. \end{description}. When compiling, such mistakes usually do not say, ...
2
votes
1answer
286 views

Customizing headings

I am writing a document in the book class. I am looking for a way to produce the following. In one of my chapters, the sections carry a name, each of which can be summed up by only a few letters, for ...
1
vote
0answers
69 views

Styling lots of tables [duplicate]

Possible Duplicate: How to separate table content and table style I am writing a document that include more than 50 tables. The tables can be divided into 5 groups with similar styles. ...
1
vote
1answer
525 views

How to change bibliographic style file (.bst) in case of entry with same authors

I'm using BibTeX for editing my references in a dissertation with the mcbride.bst style. According to the rules I have to write --- when I have a reference entry with the same authors, e.g. Author ...
1
vote
1answer
812 views

Modern CV usage problem in latex

I am using the ModernCV class for creating a resumé in LaTeX. I found three styles provided by Miktex for this purpose. My question is: how is the section header created in the document? All I see is ...
3
votes
2answers
190 views

Sharing parameters between a command and an environment

(This question is related to Using \total of totcount package in section title) I'd like to keep track of the papers I review, and I have written a code (MWE shown below). The code keeps the count of ...
12
votes
2answers
224 views

\if@minipage purpose in floats

In floating environments such as the captions of figures, LaTeX has a \global\@minipagefalse, why is this necessary and what does this switch do? \long\def\@makecaption#1#2{% ...
7
votes
1answer
374 views

LaTeX3 from Package Options to Class Options

Howdy please consider the following expample: \RequirePackage{ expl3 , xparse , l3keys2e , xfrac } \ProvidesExplPackage {somewhat} {2012/04/29} {1} {descrr} ...
1
vote
0answers
557 views

Can't debug init.el [closed]

I get the following error when I open emacs in Mac OSX: Warning (initialization): An error occurred while loading `/Users/my-user-name/.emacs.d/init.el': Symbol's value as variable is void: Synctex ...
8
votes
1answer
4k views

Numbering theorems within chapters

I've recently asked a question: Chapters in TeX regarding working with chapters in tex. I have since learned that I must use documentclass report for the purposes of my document. However, now all of ...
4
votes
1answer
8k views

\usepackage{caption} breaks references to tables

I'm formatting the listings captions as follows: \usepackage{caption} \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}} ...
6
votes
1answer
345 views

Unwanted CM fonts when trying to use mathpazo

Some more information. In making an MWE I removed a lot of stuff, including the use of XeLaTeX or LuaLaTeX, and fontspec. What I was actually trying to do was set up a suitable maths font environment ...

15 30 50 per page