# All Questions

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 ...
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} ...
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} ...
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. ...
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 ...
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 ...
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} ...
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} ...
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 ...
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 ...
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} ...
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} ...
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] ...
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.
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.} ...
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} ...
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?
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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} ...
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 ...
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 ...
0answers
191 views

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, ...
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 ...
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. ...
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 ...
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 ...
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 ...
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{% ...
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} ...
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 ...
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 ...
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}}} ...
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