# All Questions

523 views

### When loading LaTeX files in vim (7.3) I get the error “perhaps you should insert a ~' before '\ref' ”

I have the over 30 errors in my LaTeX file, all over the \ref{...} command, and all following this similar pattern (I put it as a quote instead of code as it is long and code does not wrap) I ...
3k views

### Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
17k views

### A problem with \textsc

I started to write my CV in LaTeX. My document begins as \documentclass[a4paper]{amsart} \usepackage[latin1]{inputenc} \usepackage[finnish]{babel} \begin{document} \begin{center} {\large ...
98 views

### Can I let a listing move up two lines without introducing a break in a paragraph? [duplicate]

Possible Duplicate: How to prevent lstlisting from splitting code between pages? I have a rather long listing on a page that has 3-4 lines on the following page. Just before the listing is ...
2k views

### How can I let a footnote continue on the next page?

I have a rather long footnote which breaks a listing in two parts, unnecessarily. Since the listing is more important then the footnote I'd rather lake to have the footnote split. Can I customize ...
2k views

### WYSIWYG Editor for drawing trees (and export them as vector images)

Is there a good WYSIWYG solution out there for quickly drawing tree-like structures (e.g. in combination with graphviz)? The nodes may contain arbitrary text and should be positioned automatically. I ...
2k views

### How to make the rmligs script available globally on Windows?

Hopefully on-topic as about "(La)TeX related software and tools" I just learned about the rmligs script. Since it isn't available through MiKTeX (and neither through TeX Live), I downloaded the ...
137 views

### Changing the color of the typeblock by changing the color of the text

Admittedly a looooooong shot... We're all taught that one of the prime objectives of typesetting is providing a uniform typeblock color (ie. the proportion of ink / no-ink on a page) as that is ...
2k views

### How to align if-condition in equation systems

I use this environment for an equation system: \newenvironment{sistema}{\left\lbrace\begin{array}{@{}l@{}}}{\end{array}\right.} But in this way the "if-conditions" are not aligned, as an example: ...
1k views

### Possible to combine “…” and “x/y” in TikZ's foreach?

I'll start with a simple, minimal non-working example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x/\y in {1/20,2/18,...,10/2} \node at (\x,0) {\y}; ...
4k views

### How to rotate a group of figures (subfigure)

3 figures side by side... I want to put them horizontally, so that you need to rotate the book by 90° to read the figures and captions. Now, I want to rotate this: \begin{figure}[] \subfigure{ ...
478 views

### Load package after other package with \AfterPackage

I want to group packages together (in the real document, I load many more packages) and want to solve the sorting of the packages with commands like \AfterPackage from KOMA-Script. I am using this ...
713 views

### fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
355 views

### Display math formula in the middle of a line

I am writing a report using some template with amsmath. The equations are displayed in a way that they are flushed to the left with certain space in front. Does anyone know how it happens? How can I ...
930 views

### Wrong line spacing when changing the font size inside of a rectangle

i'm trying to change the font size inside of a rectangle and always the line space between the last and the second last line is getting wrong. How can that be fixed? \documentclass[]{article} ...
6k views

### Different headers for different chapters

I cannot find in any latex forums a solution for my problem with chapter-specific headers. I am compiling a one-sided report with various chapters. For all the chapters, I have the header showing the ...
433 views

### Difference between - and -​- in compiling options

In running MiKTeX What is the difference between -shell=escape and --shell-escape What is the difference between -synctex=1, --synctex=1, and --synctex=-1
7k views

### Colors and legend in groupplots/barplot

In order to compare three items I use the groupplot command. For each item I have n different criteria to compare. Is it possible to set the color for each criteria itself? Meaning the first bar in ...
7k views

### Invoking makeindex for nomencl

I have spent many many hours failing to implement nomencl for my PhD thesis. The problem seems to be with invoking makeindex and creating the .nls file I keep reading that I must invoke makeindex or ...
4k views

### Getting Started with Minion Pro, XeLaTeX and mathspec

I have just started using Minion Pro and mathspec for my work and now I have the following in my preamble: \usepackage[MnSymbol]{mathspec} \usepackage{xltxtra} ...
309 views

### Having all one single line with black background and text in white

I want to have one line of text with black background and the text in white. The line is alone and so it can be one paragraph. I would like the coloration for the full width of the line and not only ...
227 views

### Using BibTeX file .bib in creating an authors index [closed]

Is there any way to automatically create an authors index from a BibTeX .bib file? Not related to what is actually cited in the text? All I have found up till now was the authorindex package and this ...
1k views

### Images (png) are very blurred when printing pdf (generated with pdflatex) from linux [closed]

When I create a pdf file using pdflatex which includes png images the output of the pdf looks fine in my linux and windows pdf viewer. However, when printing this file from linux to a network printer ...
361k views

### LaTeX figures side by side [duplicate]

Possible Duplicate: Two figures side by side I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could ...
261 views

### Environment with breakable text

In the following code, I would like to use \begin{tiScreen} 12345678901 234567890123456789 12345678901234567890123456789 \end{tiScreen} instead of \begin{tiScreen} \breakabletexttt{12345678901} ...
448 views

### where is the fvmro8r sourcefile? Tufte-latex example

I was testing the tufte-latex sample-book.tex example (copied and pasted character for character) but it produced the following error: !pdfTeX error: pdflatex (file fvmro8r): Font fvmro8r at 612 ...
67 views

### Formatting text using … only in one specific environment

I would like to make the character  active in one environment so that some text will be formatted using black background and white for the text. This feature must be activated only inside the ...
4k views

### pgfplots multiple plots in one file

In pgfplots is it possible to have several plots in one datafile? The goal is to add about 20 plots, which has different number of points and not the same x-value, to the same axis. (app. 350 points) ...
275 views

### How do I reference the main .tex file when writing user-defined commands in TeXworks?

I am trying to create user-defined commands in TeXworks, but am having problems finding the syntax to reference the main .tex file. For instance, creating a .bat-file and then a new "typesetting tool" ...
186 views

### Frame environment with fixed size given by numbers of characters and lines

I would like to make one framed environment with the following behavior. Only the last 8 lines of the content must be displayed. If the content have more than 8 lines, a gentle warning must be ...
2k views

### Coloured math in beamer

I have a question: Is there any way to have math (everything between \$s) in different colour than text (for example, green) in beamer?
575 views

### Pixelated font as on Texas Instruments calculators

For pedagogical reasons, I would like to build one environment to display something like the screen of one Texas Instruments calculator. What I'm looking for is a way to produce, via pdflatex, one ...
5k views

### Add Appendix with correct page to ToC

I am failing to add a heading for the appendix to the ToC with the correct page number: \documentclass{scrbook} \begin{document} \tableofcontents \chapter{test} \appendix ...
834 views

### Redefining the amsmath equation* environment

For the background to this, see my previous question I've been trying to make changes in my LaTeX document so that math displays in black and text in red. Thanks to Stefan Kottwitz and Torbjørn T. ...
5k views

### \normalfont in new theorem-like environment

How can I get universal in my new environment normalfont instead of italic (default)? I thought it was something simple like \newtheorem{exercise}{ \normalfont}[chapter] ` but doesn't work. I could ...
3k views

### pifont (zapf dingbats) shows wrong letters

The following code should print out arrows, but shows completely different letters instead: \documentclass{scrbook} \usepackage{lmodern} \usepackage{pifont} \begin{document} \[ \ding{52} \quad ...
979 views

### Modifying referencing and bibliography style on converted LaTeX file

Zotero stuffed up my referencing, so I'm thinking to convert the .odt to .tex using the export feature of LibreOffice Writer. When I export from LibreOffice Writer, I don't get a bibliography, and ...
652 views

### How to balance binary branches and repair shorthand triangles in LFG style c-trees using tikz-qtree

I have modified the example from the tikz-qtree documentation to form this LFG style c-tree, but am having difficulty balancing the binary branches in general, and the IP branches and roof/triangle DP ...
1k views

### Folder structure of your work

Users, I am using LaTeX for homework at university. By now, I had always other programs generating some files, that I used in my LaTeX-document. For example MATLAB generated some graphs, Inkscape ...
154 views

### Mysteriously fails to compile when I comment a line

I set up a github repo with a not-so minimal working environment (sorry for that). As the README at github says, uncommenting the following stupid line solves the problem and makes the ...
6k views

### Different \mathcal O

I would like to get a script O looking like this: However, \mathcal O and \mathscr O give , which are slightly different. This is not the pre-1992 \mathcal O.
854 views

### Equations lining up and labeling

I'm trying to line up multiple equations next to each other and have them all properly labeled. There is another question discussing this exact problem. Unfortunately, all the solutions proposed there ...
1k views

### tufte-latex warning: Failed to convert input string to UTF16

I've been receiving this warnings every time I compile a document with tufte-latex class: ** WARNING ** Failed to convert input string to UTF16... Nothing happens, the document compiles fine, but ...
841 views

### Inserting arrays into semantic's inference rules

I want to typeset inference rules containing tables (or arrays) in the premises. I'm using the semantic package, which sets the premises (and conclusion) in math mode, so I thought this might work: ...
137 views

### Trouble with own macro

I'm not sure where my error is. I uses this code: \newcommand{\qr}[2]{% \begin{pspicture}(1.378in, 1.5in)% \psbarcode[]{#1}{height=1.378 width=1.378}{qrcode}% ...
239 views

### How to build one efficient alpha numbering?

Seeing this post, I'm looking for one good solution for alpha numbering. For my point of view, the way the numbering must be displayed depends on the maximum of the numbers. If MAX = 26, then the ...
241 views

### enpassant chess font [closed]

I have got a ttf-font that I will like to use in chess diagrams. I have installed in the enpassant package before, but this time I only have the ttf-file. How do I convert this into the LaTeX package? ...
998 views

### Latexmk can't see a dependency on a .fmt format file

I'm using latex on a small netbook, and with average-sized files (~150 pages at the moment) compilation is already pretty slow. So I am looking for every way to speed up the compilation. In this ...
426 views

### Axis background has missing draw/stroke

I want to draw a rectangle around an axis created using pgfplots. This is a minimal example: \documentclass{minimal} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
354 views

### pgfplots: externalization and ifthen

I use pgfplots with externalization. When I try to include a macro that uses \ifthenelse, always the 'else' statement is being executed. When I switch off externalization, it works again. See this ...

15 30 50 per page