# All Questions

2k views

\myTileWallPaper is defined in the classfile like this \makeatletter \newcommand{\myTileWallPaper}[4]{% \begingroup \setlength{\tileYoffset}{\wpYoffset} \setlength{\tilewidth}{#1}% ...
655 views

### How to define file input commands with optional arguments?

So here is the situation : I wanted latex to read some commands when I include another file, and for that I defined a new \include command like this : \newcommand{\foo}[1]{} ...
4k views

### Including end mark in definitions and examples (using amsthm)

I am using the amsthm package, and I have this in the preamble: \theoremstyle{definition} \newtheorem{definition}{Definition}[chapter] \newtheorem{example}[definition]{Example} \theoremstyle{plain} ...
2k views

### TikZ externalize → pdf → eps → Word import = ☠

I have a series of TikZ figures which I need to include in Word document (conference requiring Word submissions). Allowed format as EPS and TIFF. The figures are obviously vector graphics; they are ...
1k views

### pgfplots - subplots with common legend [closed]

This is a followup question of this one. It uses the same MWE but about a different issue so a separate it here. I used Tikz node to create the custom legend but used absolute positioning to place it ...
1k views

### pgfplots, custom legend and tikz library external

I try to create Tikz figure with several pgfplots subplots. I want to have one legend for them since they all have the same curves. I found out from this question that i can label and than reference ...
2k views

### Vertical alignment with nested tables

It's almost embarrassing to ask: How can I vertically align the contents of one column to the top beside a second column holding nested tables. Please have a look at the minimal working example: ...
192 views

### Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $\mymacro$ should lead to A while \begin{align} \mymacro ...
8k views

### LaTeX error when inserting code listing in LyX

I am currently making a presentation in LyX. After I have inserted some XML code in a code listing, I am getting this error: Paragraph ended before \lst@next was complete. Paragraph ended before ...
3k views

### MiKTeX Portable can't open Beamer theme

I have a Beamer theme called beamerthemeMittweida.sty that's not available in a package. At home I just copied the .sty to Miktex\tex\latex\beamer, then updated all packages and I was able to use the ...
376 views

### Force minted to insert new space in code that won't fit on the page

Essentially I would like to have listings' breaklines option on minted. I can't seem to find it. I could manually insert new lines but it becomes difficult when the code comes from an external file.
29k views

### Overfull hbox - How do I fix this?

I have a line in tex which has a markup (as a part of a line) as follows: \texttt{org.springframework.beans.factory.BeanFactory} This is giving a overfull \hbox warning. How do I fix this? I am ...
571 views

### Centering clrscode3e codebox horizontally

How can I center a codebox (from clrscode3e package) horizontally in a document ?
508 views

### Automatically clipping undrawn objects in TikZ

I have used the trees package to construct my drawing, but I don't actually need the edges. So I have set the following to suppress them: \tikzstyle{edge from parent}=[] This works, but TikZ still ...
797 views

### How does this macro for augmented matrices work?

I've used this code I found somewhere to typeset literally hundreds of augmented matrices, and it's been amazing: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} ...
1k views

### Combine two items in an enumerated list

Is there an easy way to combine two items in an enumerated list? For example: 1. First bullet 2-3. Second bullet 4. Third bullet My current plan involves screwing with \labelenumi and then ...
2k views

### Beamer Error on Basic File when Upgrading now can't get any Beamer Version to work

I've installed Beamer 3.12 upgrading from 3.07. Now I get an error when running just this basic file below. Tried switching to other versions as well but this error always came up. What I did to ...
1k views

### Strange behavior in smooth pgfplot with sudden changes in the slope

I'm trying to plot some points with sudden changes in the slope. But I get some strange behavior like this: as you can see in the peaks, there is no smoothness in there. However, I think the ...
3k views

### How to insert a landscape normal-sized pdf page between beamer slides?

Since I have too large a table to show during a presentation, I would like to insert a landscape pdf page between slides.
2k views

### Figure very poorly placed

I am using pdflatex with PDF images for figures. When I do not scale the image, the figure goes off the page. When I do scale the image, it is very poorly placed. A little too far to the right of the ...
349 views

### What's wrong with my braket macro?

Based on egreg's alternate solution to my previous question from which I learned the idea of making characters into macros, I've now defined a different syntax for bra-kets which I actually like even ...
302 views

### Conflict between the packages titlesec and marginnote

In the following code, the use of the package titlesec modifies dramatically the formatting based on the package marginnote. The package titlesec is needed so as to use this. Is there one possibility ...
1k views

### TikZ: Expand width of each picture to given size

I create plots with pgf/TikZ, externalize them and then they will be included into another predefined LaTeX-document (which someone else will do, so I can't change anything there). That final document ...
647 views

### Reuse part of a path

This question is similar to Is there a TikZ dashed line decorator or some other way to make part of a path dashed?. What I want to draw: A node with a dashed loop, with a small node on the loop, and ...
842 views

### tikz spy with beamer overprint

In my presentation, I want to successively highlight different parts of my image using the TikZ spy library. Due to size constraints, the actual highlight is outside of the included image. Therefore, ...
905 views

### Font issue on using lualatex with beamer

I am trying to use beamer with lualatex to produce a presentation (MacTex 2011). Somehow, it doesn't seem to honor the font settings. See the sample below, is there anything I am missing here? ...
2k views

### Perl interpreter error appearing out of the blue [closed]

I am using TeXworks on Windows7. About an hour ago, I was happily working along and compiling documents just fine. Now, suddenly, when I try to compile anything, I get this error: latexmk.exe: The ...
1k views

### Best way to make place cards in LaTeX

What's the best way to make a lot of foldable place cards like the following in LaTeX: I want to be able to specify the size of the card. They should be printed in a space saving way, such that I can ...
405 views

### Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
4k views

### Specify row height in a table globally [duplicate]

Possible Duplicate: How to specify a fixed height for all rows in a table? I know that it is possible to specify the row heights of a tabular environment individually as explained in this ...
2k views

### Computing in the list of a tikz foreach

If I say something along the lines of \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \def\I{2} \foreach \i in { \I+1, ..., 20 } \node at (\i,10) {+}; ...
1k views

### How to place two code snippets next to each other with minted?

The minted package for code highlighting comes with a float environment called listing. Now I would like to place two of this code listings next to each other, but I have no idea how to do this. I ...
598 views

### How can I undo an etoolbox patch?

Suppose I patch an environment using an etoolbox command such as \AtBeginEnvironment or \AfterEndEnvironment, etc. How can I undo these changes at a later stage? \documentclass{article} ...
101 views

### Using tabular(*?) with two languages

I wish to have an invisible table (using the tabular or tabular* environments) which should contain two columns - one shall contain sentences in English, and the other - their translations in Hebrew. ...
463 views

### How to reduce horizontal ruler's width to the width of the document text in fancyhdr?

I use fancyhdr to customize my footer. But this code: \pagestyle{fancy} \fancyhf{} % sets both header and footer to nothing \lfoot{From: K. Grant} \rfoot{\thepage} ...
810 views

### Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.) Consider the minimal example \documentclass{article} ...
2k views

### How do I prevent LaTeX from creating en-dash and em-dash?

All over the internet, there's this question on how to make LaTeX do the en-dash and em-dash. I have the opposite problem. I have some text from which I am generating HTML and LaTeX outputs. The ...
859 views

### How can I use monospaced font inside a matrix (or tabular etc)?

I would like to display a matrix with characters using monospaced font (as in \tt and \mathtt), but I haven't found an easy way to do it. Something like this: \begin{center}{\tt\left( ...
540 views

### A screenplay with two columns only in some pages. And in one page there can be a mixed number of column

I would like to write a screenplay like this one: http://www.dailyscript.com/scripts/sunset_bld_3_21_49.html My needs are: some pages has one column some pages has two column some pages are like ...
805 views

### TikZ+beamer, referencing node outside current picture, inside overprint environment

In beamer, when I try to reference a node outside the current picture but inside an overprint-environment, like this, \documentclass[12pt]{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
1k views

### Conflict: kluwer and amsmath

When I try to use the document class kluwer together with amsmath there seems to be a conflict. Is is possible to avoid this conflict? I have tried to add \let\iint\noexists before loading amsmath as ...
841 views

### Why \leaders and \mkern works strangely in different font size?

I can hardly determine a good title for this question, I'm sorry. Minimal test code: \documentclass{minimal} \usepackage{lipsum} \begin{document} foo {\fontsize{18}{18}\leaders\hbox{\$\mkern ...
218 views

### ‘A’ with a lower-case omega on top

How can I write this in TeX (or LaTeX)? Also, strictly speaking, this is not part of my question, but has anyone seen notation like this? If so, please answer this question.
2k views

### Is LaTeX the best option?

I'm thinking about an open source project of an online editor focused on content, but based on HTML5 and other cutting edge technologies. I'm not a fan of LaTeX, but I have to agree that documents in ...
3k views

### xlabel on top axis in pgfplots

I managed to get the x tick labels on the top axis of a plot, but the label of the x axis is still on the bottom axis. I couldn't find an option to get it to the top axis. Is this possible? Minimal ...
338 views

### subequation in tabular

I am trying to number two equations at the same line as subequation. My problem seems to be due to case environment, since if i comment the case environment, the problem disappears. Here is a short ...
9k views

### Only author's initials in BibTeX natbib using named style

I have a BibTeX file with a mix of entries, some with full author's names and some with just initials. I would like my typeset bibliography to only use initials. Is there a way to do this? I have the ...
647 views

### How to refer to labels in math mode from math mode

If you refer to item labels that are written in math mode from some other math mode occurrence, then you get errors. I guess it's because it leads to nested math modes. Is there any way to avoid these ...