# All Questions

1k views

### Class moderncv doesn't work with purple

I've only recently started to work with LaTeX. I've seen the nice CV that it is possible to do with moderncv, however I'm not able to change the color to purple. I do not understand why.. It works ...
1k views

### How to configure Latex to open the last page in PDF reader?

I edit big documents, so it is useful for me to open the last page after compilation. Normally, the first page is opened, but by using hyperref, I can configure it to open any page at start. \...
1k views

### Reducing/removing gap between header and custom chapter title

I'm writing a portfolio/report with pdflatex and while trying to get a header and footer I have got a situation where there's now a significant gap between the header and the chapter title, whereas ...
362 views

### How to declare variable sizes in tikz to let LaTeX decide how to fill the page

LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
181 views

### Conflict between xeCJK and hyperref in TeXLive 2012

I find that in the presence together of packages hyperref and xeCJK, in either order, raises an Improper alphabetic constant error with an em-dash in commands \section, \subsection, etc. This happens ...
376 views

I have a separate .tex file for a list of symbols. They aren't nomenclature because I included more information than simple definitions. (I have 3 columns.) When I use \include{symbols} the header on ...
254 views

### Why do I get an incorrect graph when I plot a function with multiplication expressed by parentheses?

When plotting certain expressions with pgfplots it seems to give the wrong result. Consider the following \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ compat=1.7, no marks } \...
104 views

### How can I test if a label has been marked?

I have a long document which includes several files. In some cases I may want to include those files in different orders. In some cases, I may want to adapt the text depending on whether a specific \...
14k views

### \hfill in math mode

Is there any easy way of declaring a new command which emulates \hfill in math mode. I don't want flalign or something similar. I want to use the command in the same way (and with the same freedom) I ...
37 views

### Updating a .cls file with MiKTeX [duplicate]

Possible Duplicate: How can I manually install a package on MiKTeX (Windows) I recently installed MiKTeX 2.9 and also installed a .cls-file. I did this by copying the .cls-file to the ...
4k views

### Mechnical drawing, Tikz, damper + spring + 2 masses

I have the following tikz code which I based on http://tex.stackexchange.com/a/13952/15360. Now I want to have the spring, the damper and the 3 arrows have labels. Like for example, F for force and k ...
6k views

### Fill the area determined by two pgfplots graphs

I need to fill the region determined by two (Gaussian) curves and the right red line (the region is brushed in green in the figure below). I also wonder what is the best way to draw vertical line ...
326 views

### How to define package options in a command (for reuse)?

I need some options of the listings package several times in my document. I am thus wondering if one can define (and later change) these options once somewhere in the preamble via a command/macro, for ...
250 views

### How to write an environment wrapping document environment

I'm working on wrapping up some patterns used in my research group for creating posters. Since we're using beamer and beamerposter to make these, all documents go essentially like this: \...
346 views

### pgfplots: marks in table as ellipse with size of error bars, area of uncertainty?

Is it possible, and if yes how, to plot a table with pgfplots where the marks are ellipses with the major and minor semiaxes being the size of the error? Such that a data point is displayed as its own ...
86 views

### Hyperref under section don't link to items [duplicate]

Possible Duplicate: Can individual items in an itemize list be labelled and hyperref linked? \documentclass[11pt,a4paper]{article} \usepackage[colorlinks=true]{hyperref} \begin{document} \ref{...
134 views

### Upquote: Error in symbols-a4.pdf?

• To replace ‘ and ’ with the more computer-like (and more visibly distinct)  and ' within a verbatim environment, use the upquote package. Outside of verbatim, you can use \char18 and \char13 to get ...
510 views

### Highlight the next uncovered part in beamer

I have created the code below to highlight the parts where something need to be completed by the students. It works, but instead of frames there should be a light colored background this background ...
680 views

### How to ensure document total page numbers is a multiple of four?

I'm producing a document (book class) that will ultimately be produced using offset lithography. It's therefore useful to ensure the total number of pages is a multiple of four by adding as many blank ...
275 views

### Pgfplotstable converting zeros to — in a knitr inline table

how do I change each 0.0 to -- without having to reference each as string type or making the whole table string type? The actual table is quite long and it would take too long to do it manually. For ...
16k views

### Missing number, treated as zero. What is wrong in here? [closed]

\documentclass[a4paper,12pt]{article} \usepackage[dutch]{babel} % Quotes won't work without babel \usepackage[utf8]{inputenc} % This is very important! \usepackage[T1]{fontenc} \usepackage{graphicx} ...
641 views

### Issue using \ensuremath in glossaries

I'm trying to get the \ensuremath function to work within glossaries for the following: \newglossaryentry{CSPB}{name={CSP\ensuremath{\parallel}B}, description={A hybrid formal language combining ...
2k views

### How to specifiy xticks in log-axis mode (tikzpicture) to be written in non-exponential format?

I want to specify some xticks in a log-log plot (tikzpicture). This works fine, but they are always printed in exponential format (with basis 10). In general this is fine, but for one plot I would ...
292 views

### Equivalent of \DTLiflastrow

With the datatool package there is a \DTLiffirstrow. I am looking for a similar command to detect the last row, \DTLiflastrow, but could not find one. I attempted to create my own but was not ...
273 views

I'm using the following script in beamer to locate our logo at the right-most corner of all pages in the presentation, \begin{textblock}{5}(10.0, \dimexpr 0.5\headheight - 7.5pt ) \includegraphics[...
285 views

### Set variable with mathematical expression

I need to do something like the following, \includegraphics[width=(\textwidth - 50mm)/2]{myfig.eps} What keywords can I use to search for doing this operation? Everything I've searched for was ...
7k views

### Sublime Text 2 and bibtex [closed]

I'm using Sublime Text 2 (ST2) with LaTeXTools to build my .tex-documents. But the .bib-file is not found or doesn't build (I believe the last one). The LaTeX log reports undefined citations, and the ...
398 views

### Relative paths in a subimport-ed file, when using pdfpages [closed]

Short version: a subimport-ed file has correct relative path when using \includegraphics, but incorrect relative path when using \includepdf. Long version: File a.tex is located in my main a ...
964 views

### inline equation outside margin

My inline equation falls outside the margin. I was wondering if there is any solution for that? Here is the MWE: \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{...
307 views

### How can I make a custom theorem for a definition?

Looking at the wikibooks article on theorems has me wondering... I'd like to do something, if possible, similar to the default "proof" theorem style, whereby I can add a custom name to each theorem as ...
134 views

### ConTeXt (mkiv) bibliography not respecting \setupinterlinespace[big]

Early in my document I have \setupinterlinespace[big] for double-spacing per course requirements. However, when I do \placepublications[criterium=all], it doesn't seem to respect this. In other words, ...
4k views

### Uncover segments of a TikZ path in Beamer

I have a question about uncovering segments of a TikZ path in Beamer? As a simple example, consider the following path made up of a horizontal and a vertical segment. \begin{tikzpicture} \draw(0,0)-...
1k views

### File ieeetran.sty' not found - trying to use IEEE bibliography style with bibtex

I am trying to use IEEE bibliography style with LaTeX. I am using MiKTeX 2.9 and I thought it would be as easy as all of the other packages, just install from the manager and then \usepackage{ieeetran}...
148 views

### TeX, free floating, anchors

I want to achieve the following: I want a single page to consist of N "regions." Each region has a x-start, y-start, and a \hbox (denoting the contents of the region). Furthermore, for each region, ...
111k views

### inputenc Error: Unicode char \u8: not set up for use with LaTeX

This is with ref to my previous question Package clash in multilingual report. \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
437 views

### \angle symbol in tabular column definition [closed]

I've got a table full of phasors, and I'm trying to write it as follows: \documentclass[a4paper,journal]{article} \usepackage[cmex10]{amsmath} \begin{document} \begin{table}[h!] \caption{Bus ...
269 views

### Altering title page : apa6e

I am using the apa6e package. I once asked a question (LINK) about altering it and received some code to do so. I am getting somewhat more comfortable with LaTeX and now have two changes I'd like to ...
19k views

### Tikz: Draw simple shortened curved line between two coordinates in tikz

I'm creating an overlay to a picture. The picture has several objects and I want to draw arrows between them. I only have the coordinates and not the sizes so I must offset the arrows as not to ...
3k views

### Odd/Even fancy headers with article class

Using fancyhdr and the book class, one can set different headers/footers for odd/even pages as \fancyhdr[RO]{foo} \fancyhdr[LE]{bar} and so on. How can I achieve the same with an article class, ...
400 views

### Annotated Bibliography with achemso/ in ACS style

I am trying to make an annotated bibliography. The full citation should be followed by a short summary. The citation style should follow the ACS style, this is why I am using the achemso package. I am ...
2k views

### Aligning subfigures both horizontally and vertically with memoir

I'm trying to place 4 subfigures of different sizes aligned. Here the box-k.pdf files contain boxes with marks at the midsides. The result has box-1 and box-3 aligned at the left margin, not centered (...
279 views

### Double #s when defining a new command that uses \mint instead of using \mint directly

Why does \dollarcom give a different result than \mint{bash}|$#|? \documentclass{article} \usepackage{minted} \newcommand{\dollarcom}{\mint{bash}/$#/} \begin{document} \dollarcom \mint{bash}|\$#| \...
180 views

### Nesting custom xparse environments

I've defined two simple environments with xparse. Problem is when I try to nest todominute environment inside minutes environment: \documentclass[a4paper, 10pt]{article} \usepackage{polski} \...
159 views

### \multirow - Long name breaking/ruining layout

When I use this tabular enviroinment, for some reason the second-lowest row gets messed up badly. Can anybody please tell me how to fix this? \documentclass[11pt, a4paper, fleqn, parskip]{scrartcl} \...
77 views

### modify enumerate environment to pre-pend characters before the number

i would like to generate an enumerated list that looks like this: D.4(1) Something (else): plaintext. D.4(2) Something (else): plaintext. etc. in other words, the counter is after some other ...
600 views

### Automatically formatting a table from a file with a list of words

I have a list of ~1000 words in a text file. The words are listed in a text file "my_words.txt" with no breaklines as follows: word1, word2, word3, etc. I would like to display these words in a ...
303 views

### Table with rotated headings on fixed height rows

I am trying to create a 2 x 2 table with centered headings. The row headings need to be rotated as shown below (mocked-up in another program). The cells are supposed to be 1in tall and 1.4in wide. ...
641 views

### Strange integral symbol [closed]

I'm getting the following rendering of my \int command inside equation environment This is in my opinion really ugly! I want the usual one back! Do you have any idea about what happened to my ...