# All Questions

2k views

### Problem with pgfmathsetmacro in foreach loop with pgfplots

Any idea, why the following doesn't work and how to fix ist: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
1k views

### How can I use shorthands in citations from the first time with biblatex?

I am using biblatex to insert references in my LaTeX document. In some bib entries, such as encyclopedia and classic works, I have inserted a shorthand field and decided to cite them only with the ...
533 views

### Python “as” keyword ignored in Listings

Following code cant highlight as keyword. What am I doing wrong? Shouldn't as be bold like import? \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} ...
255 views

### A numbered list with arbitrary order of items

Inside a theorem environment I have a numbered list of theorem statements. Afterward it goes a proof. In the proof I prove every of the above specified numbered statements. But the order in the ...
130 views

### What is the easiest way to quickly generate an image from TeX source?

Often one wants to quickly generate an image from a small piece of TeX. (E.g. for inclusion in a question here.) What's the quickest way of doing it?
3k views

### Modify flip beamer theme

Recently I came across flip beamer theme. You can find it here I didn't like the current frame/total frames page numbering style so I added in the .tex file the following lines ...
2k views

### Free TeX/LaTeX software products whose installation on Windows 7 is relatively simple [duplicate]

Possible Duplicate: How do I install TeX/LaTeX on Windows 7 For some years I've been using Scientific WorkPlace (WYSIWYG front end to TeX for Windows) to create LaTeX documents, whose ...
248 views

### How to create counters with index?

I need to create counters with names like mycounter1, mycounter2,... Basically this should be a counter-valued data array. The code like \newcounter{index} \newcounter{\csname ...
286 views

### How can I create geocharts in LaTeX?

What I need is something like this: The problem with this R package is that you can't export into pdf format to include in a LaTeX document. Any suggestions?
2k views

### $\overrightarrow{a} \otimes \overrightarrow{b}$ looks unpleasant

As the question says, $\overrightarrow{a} \otimes \overrightarrow{b}$ looks rather unpleasant because the arrow over the a is so much lower than the arrow over the b. I'm not sure that just raising ...
2k views

### Wrapping multicolumn in tabu

How do I get the text within a multicolumn to wrap when using tabu? I am hoping that tabu makes it somewhat easier than having to specify p with a manual specification of the width ...
363 views

### Highlight a prompt with the listings package

I use the listings package to typeset a series of commands in the language Octave (a free clone of Matlab) in my lecture notes. Most of the command lines look like this: octave:1> A=eye(4) A = ...
910 views

### Frame break with different subtitles

Is it possible to have a frame with continuation title and have a different subtitle per each frame break? Following the MWE: \documentclass{beamer} \setbeamertemplate{frametitle continuation}[from ...
334 views

### TikZ: Draw the smallest rectangle containing given points with sides parallel to coordinate axes

I need a TikZ macro to draw the smallest rectangle around a list of points, with sides parallel to the coordinate axes. In a perfect world it would work with any number of points greater than 1, but I ...
304 views

### TikZ keys: turn on a feature and set a parameter at the same time

I have a custom shape defined using TikZ. This shape has an optional part; if this is to be drawn, the colour has to be specified. So I'd like to be able to use the following syntax: \node [MyShape] ...
638 views

### Need help to adjust horizontal spaces in a table

I am making a table but i am not able to adjust it. Here is a screen shot. i have used following tex code \begin{table}[ht] \centering \begin{tabular}{c c c c c c c} \hline\hline Methods ...
248 views

### Chapter titles distance

I am using the titlesec package to adjust the chapter titles/headings of my text. Yet, I have trouble with the resulting distance between these new titles and the body of the text. Namely, the ...
592 views

### Customizing arrows with Tikz

I'm working with Tikz package and I want to create a new arrow tip. So I used the following code which I found in internet: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{arrows} ...
850 views

### pgfdeclareshape with variable dimensions using pgfkeys

I am trying to define some shapes for TikZ using \pgfdeclareshape. I would like to use options to make their size adjustable, however I do not get it to work. This example compiles, but the size of ...
139 views

### How to typeset a continued fraction in the following style? [duplicate]

Possible Duplicate: How do I typeset continued fractions in Pringsheim's concise notation? How to type a continued fraction in displaystyle as shown below? Source: Fischler, Stéfane, ...
2k views

### Convert eps images to b/w

In Windows XP, I would like to convert a coloured .eps to black and white. If, instead of converting the .eps, I could do it for the resulting .dvi document which contains the .eps I would still be ...
61 views

### How to format a block of source code? [duplicate]

Possible Duplicate: Package to indent and syntax highlight C++ code I want to format a block of C source code using TeX, how can I accomplish this work? for example: int main() { ...
4k views

### Center table on landscape page

I have a rather wide table for which I have a designated page in landscape mode. The rest of the document is in portrait mode. Currently, the first row of the table begins at the very top of the page ...
262 views

### Can the makeatletter/makeatother mechanics lead to parsing problems?

The reason for using \makeatletter/\makeatother has been discussed in many places, for instance in this question. However I think that this trick of playing around with the "@" character is itself ...
335 views

### How does LaTeX know which of multiple loaded output encodings to use?

The difference between LaTeX's input and output encodings has been discussed in various places; I especially like user @egreg's answer here. There is however an aspect of dealing with output ...
114 views

### Reading an external file failed with dimension related errors

I want to read an external file one line per read and insert each line as an item. I failed to do so because of dimension related errors. How to solve it? \documentclass{article} \def\trimtok i{} ...
996 views

### Color gradient for bars in pgfplots

I want that each bar in my diagram has a color gradient from black to white (from left to the right). However, for the following code, the gradient exists for the entire diagram such that the left bar ...
228 views

### Parts of XeLaTeX doesn't work after moving to LinuxMint

I one of my headerfiles, I used the command \setmathfont[]{XITS Math}, once I tried to compile the document as always with xelatex, I get the following error: ! Undefined control sequence. l.87 ...
124 views

### reverting between marginnote margins and 'normal' margins

How can I revert to normal margins while using marginnote s? In other words, in some pages of my document where I won't use marginnotes, I want the margins to be normal, as though I'm not using ...
425 views

I am trying to use the memoir class to typeset a document in which the section headings function as hyperlinks to other locations in the document, using the hyperref package. One of the ways that ...
3k views

### Beamer frame with two columns and sequential uncover

I am trying to build a frame with 2 column. I have overlays in both columns and I want then to be displayed sequentially. I mean, first all the contents of first column (with the overlays) and then ...
3k views

### Undefined control sequence error in pspicture [closed]

I found this interesting question Draw closed curve in Tikz for which an even interesting answer was provided by the user Garbage Collector. Just for the fun of it, I tried compiling his answer on ...
2k views

### How do put a header inside the margins?

I have to create a document that obeys the following guidelines: "Margins must be set at a minimum of ¾" (1.87 cm); Your name must appear outside the set margins of the page, at the top ...
211 views

### Inserting document compiled from LaTex code inside a .tex file

Is there a way to insert a document within a document? The inserted code is fully .tex compliant and could be compiled as a document on its own. I envision an article document, where inside the ...
22k views

### What is the difference between \over and \frac?

What is the difference between {some-expression}\over{another-expression} and \frac{some-expression}{another-expression} ? Which is preferable?
1k views

### How to show work on binary number addition/conversion

I'm doing various operations with binary numbers for my Discrete Mathematics hw and I'm not quite sure how to render it because I need to show my work. This is an image of something I've been trying ...
226 views

### How to put figures inside text?

I want to put figures (controller button icons) beside text, for a game manual, like this image: source: http://www.zeldacapital.com/manual/ootmanual.pdf page 17
171 views

### biblatex and pgfplots

I'm using pgfplots to plot some graph of data I stored in a file (a lot of data points). If I charge the bibtex package, I obtains the following error: TeX capacity exceeded, sorry [main memory ...
261 views

### Avoiding linebreak before number

Is there a way to avoid linebreaks before all numbers without explicitly using the tilde? It would be nice if it worked both for explicit numbers, as in Sample~1 as well as when a number is implied, ...
1k views

### How to loop through a list of tikzpicture within animateinline?

I have the following code which uses animateinline and several tikzpicture for it's animation effects: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{ifthen} ...
1k views

### TikZ: Drawing the same data with scatter plots and parallel coordinates

I am new to TikZ and trying to recreate the following image (which was created in R): (Translation: correlation = +1, correlation = -1, two clusters, circle, normal distribution) Each "column" ...
432 views

### How do I check if a biblatex entry contains an author field?

I'm writing a paper on a very large number of pieces of artwork, and I've been trying to automate the creation of my section headings, but I've run into a roadblock when I try to check if a Biblatex ...
532 views

### page number does not appear on first page of bibliography

When I make my bibliography, something strange happens. If the bibliography is more than one page, the page number is not included on the first page. I want the page number on bottom-center of the ...
214 views

### What causes the presence of unnecessary white space?

What causes the presence of unnecessary white space in the following figure? The box and the circle should have the same center. \documentclass[border=12pt,pstricks]{standalone} ...
1k views

### Problem with literate and breaklines=true in listings package

As the title says, the option breaklines=true seems to have an undesired interaction when using literate; in the following example the closing parenthesis doesn't get colorized ...
367 views

### Relative coordinates in pgfplots across multiple table plots

This is a follow up question to this one: Use pgfplots \addplot plot coordinates with relative coordinates Is it also possible to have the relative coordinates across multiple plots? For example if ...
183 views

### Migrating from SIunits to siunitx: are there any obvious pitfall? [closed]

I understood the differences that were mentioned at the following link. Differences between SIunits and siunitx packages I am using TexStudio and MikTeX (perhaps the most recent version, considering ...
2k views

### How to remove the dots in the tableof contents [duplicate]

Possible Duplicate: List of Figures/Tables - eliminate dots? I have created table of content in my thesis. How to remove the dots in each line?