# All Questions

1k views

### Separating edges starting from same node

I have following code - \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,automata,calc,shapes, positioning} \begin{document} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,...
343 views

### pstricks drawing has overlap with text

The following code produces a figure that has overlap with my text in LaTeX. It seems as if latex doesn't create a space for this figure. Can anybody help me with it? \documentclass[12pt,oneside,...
2k views

### generate simple cylindrical shape with text in latex (tikz)

I am attempting to generate the following diagram in latex: I've been using the tikz package, which although its capabilities seem to be endless, it does have a rather steep learning curve. I am ...
8k views

### Remove comma from moderncv's \cventry

This image shows the excerpt of a CV produced with the moderncv document class: Notice that after the bold text there is a comma. This seems to be produced automatically. How can I stop this?
336 views

### breqn and lineno incompatibility

Journals often require line numbering for the review process. This is achieved using lineno package. Next, it seems like a good idea to use breqn package (dmath environment) to auto-break long ...
104 views

### numbering a several line “equation”

I'm trying to number an equation, which spans over several lines. I need for it to look like this My current tex for this is: \documentclass[a4paper,12pt]{article} \begin{center} {\it If A is ...
441 views

### Does pdf syncing (forward-inverse search) work with XeLaTeX?

I commonly use textmate+skim or more recently texpad. I have zero problems with pdfsyncing (especially since skim fixed a bug not so long ago). Even more recently I have been playing around with ...
181 views

### Prevent a tex file from being compiled

I'm writing my thesis, and there's a overall file overall.tex together with several section files, which are \inputed in the overall.tex. Could I write something in the section files to prevent them ...
776 views

### TikZ External: Figure gets cropped

Arrow heads from the following MWE are cropped when externalized. What am I doing wrong? MWE: \documentclass{report} \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize \begin{document} \...
634 views

### Using \selectlanguage with csquotes

As per this question, I am using csquotes to convert quotationmarks to typographical-quotes. However, when changing language through \selectlanguage the quotationmarks no longer gets converted. (I ...
576 views

### Subfigure with caption within an itemize list not indenting correctly

To make it short, I have exactly the same problem as described here Figure with caption within an itemize list not indenting correctly except, the fact that I am using the subfig package and the ...
789 views

### pgfplots - Show both absolute and relative value

In my plot I am trying to show the relative value next to the absolute values. For instance, for the rightmost column, I would like it to say 110 right below 9.02*10^6. Another option would be an axis ...
691 views

### Tikz randomly placed groups of objects

I would like to place several groups of three objects (two circle paths and one node) in a triangular area. I came up with the following code, which is based on a subdivision of the triangle in ...
3k views

### Math fonts with Times New Roman [closed]

Which math fonts I can use with times new roman as font for the text? I'm looking for a math font that best fit in my document. Any suggest are appreciate
220 views

### AUCTeX: How to edit environment templates

With (C-c C-e) AUCTeX allows to insert arbitrary environments. In my case I want to change the default aling-environment from \begin{align} \label{eq:145} \end{align} to insert comments in order ...
5k views

Lets say I have the following LaTeX code \subsection{Convex sets} A set $$\mathcal{S}$$ in $$\mathbb{R}^n$$ is said to be convex if \[ \mathbf{x}_1, \mathbf{x}_2 \in \mathcal{S} \implies \lambda ...
25k views

### Includegraphics: set image opacity

I'd like to insert a PDF, but make it "lighter" by setting the opacity to 10% ("background watermark"). How to do that? A solution that works with texlive 2011 would be great. I use pdflatex and ...
2k views

### How can I use fontspec to set a sans heading font with mathdesign

I like the mathdesign package, but would like to use Myriad Pro section headings in LuaLaTeX. Is this possible, or do I have to convert an OTF font to T1? (My ignorance of font issues in *TeX is ...
245 views

### Two columns: one column for questions; the other for answers

I am using the exam class. \documentclass{12pt,a3paper,landscape}{exam} I would like to split my paper into two columns. One column should be for the question and across from that question would ...
276 views

### Associating error messages with tex input

I'm compiling a paper that someone else started and I have to fix some error messages associated with text that I've never read before. When I compile the paper sometimes it gets to an error and I ...
347 views

### Change order in acronym

I am using \usepackage[printonlyused,withpage]{acronym} to use acronyms in my thesis But I want to get instead of I am using the following code: \documentclass{article} \usepackage[colorlinks]{...
480 views

### Create square and custom size cells in a table using pgfplotstable

I'm trying to create something like a confusion matrix of several classes. Thus, I want to display only the shades of the values. I manage to do it using this: \documentclass{article} \usepackage[...
6k views

### How do I write ^ as text in LaTeX? [duplicate]

Possible Duplicate: How to look up a symbol? How to typset the symbol “^” (caret/circumflex) I would like to produce ^^ as text in my document. The symbol is refered to as 94 (0x5E) = ^ in ...
373 views

### unattractive additive effect to opacity with pstricks

I'm using pstricks to highlight by boxing or circling replacement text in my math equations. But, I don't want this highlighting to occlude what's behind it. So, I've been setting opacity or ...
2k views

### No Bibliography is printed and citations shown bibtex key

I writing a document in LyX (2.0.5) with references. For displaying references I use biblatex. (http://wiki.lyx.org/BibTeX/Biblatex). My latex environment is MiKTeX 2.9 Since I switched my Desktop, ...
148 views

### Support for all writing systems in a single document — more than just one or two Unicode planes simultaneously

I am working on a document that contains a growing number of representatives from different writing systems. It is mostly an English document, and I have been using the following to ensure that CJK ...
1k views

### Suddenly having problems installing packages [closed]

Ever since I started using LaTeX, I've used the Package Manager that came with MiKTeX to install new packages. Tonight, I went to install a package multiple times and was told that I couldn't connect ...
1k views

### LaTeX is compiling the file from before changes

I'm using LaTeX under OSX 10.8.2, TeXworks as an editor. Searching solution for my problem I'm trying to compile differet codeds posted here in questions or answers. I've created few test files where ...
584 views

### Sawasdee Font in Beamer Poster

I'm trying to use the "Sawasdee" font in a beamer poster (installed as a TrueType font from fonts-tlwg-sawasdee ubuntu package). I can activate it in a regular (scractl) document by using \usepackage{...
4k views

### How can I make a set of latex flashcards that I can print to write my answers on one side?

I want to adapt the code from the answer to latex flashcard problem so that the right hand side has a question and the left has the answer rather than on the bottom of the page. This is so that I ...
836 views

### Suppress xparse message “Redefining document command”

I am trying to suppress messages of the form: ************************************************* * LaTeX warning: "xparse/redefine-command" * * Redefining document command \MyMacro with arg. spec. '...
185 views

### \onehalfspacing destroys tikz in listing

It's a never-ending story I have to tell. I want to make some code annotations. Finally, I got my macro, but now... The tikz drawings in listings break in certain circumstances (near page break): ...
662 views

### Giving a matrix node an alias

This TeX.sx question asks if is it possible to use a TikZ matrix along a chain. The error that occurs when one tries to do so is Package pgf Error: No shape named chain-3 is known., and a way to ...
189 views

### \pause functionality changed in texlive2012 compared with texlive2011?

I recently upgraded from texlive2011 to texlive2012. The transition was relatively smooth, but today, I found one problem. In my beamer slides, under texlive2011 distribution, the following ...
91 views

### Command analogous to \afterpage, but for lines instead of pages

Sometimes I would like to tell latex to do something after it finishes the line currently being typeset. For example, one might want to use the command \needspace{4\baselineskip} (assuming the ...
1k views

### Anchors/coordinates inside a node's text

The plot Using tikz, I have a main node containing several (three) lines of text, and three "legend" nodes that point to them. If I use a rectangle node, then I can't access the positions of the ...
169 views

### Change color of links created with \in, \at, etc

By default the link color of references created with \in or \at is red. How can this color be globally changed, so that all links have the same color (e.g. blue)? \setupinteraction [state=start,...
3k views

### Vertical Centering in a multicols

In a document I have several multicols units, in which on one side there is an image and on the other side some information in a itemize. Now, depending on the image / information, the two "sections" ...
711 views

### What is the difference between \newenvironment and \newenvironment*?

I vaguely seem to recall reading that \newenvironment* gives better spacing than \newenvironment, but I don't recall any details and I can't seem to find a reference by searching. What is the ...
1k views

### How to best set chapter title color in the memoir class's Hansen style?

I am tinkering with the Hansen chapter style for the memoir class, as reviewed and listed in texblog. The Hansen style is unfortunately not discussed in the memoir class documentation. I changed it ...
355 views

### Using savetrees with LuaLaTeX

Apparently I can't use savetrees with lualatex - is there another way to expand the writable area to the whole page (for US-letter currently, I think other people are interested in A4)? I get this ...
252 views

### Want nodes to have linked heights based on which input is larger

So I'm trying to make a worksheet template for students to create pdfs for student markup. The inputs create what is going to go in the question box as well as the hints box. I want to create the ...
172 views

### Runaway argument with linguex

Compiling some linguex code gives me: Runaway argument? \newgll [CP Ceapann tú [CP go bhuailfidh an píobaire an t-amhrán \ETC. ! File ended while scanning use of \ai. <inserted text> ...
277 views

### How can put different watermarks on even an odd pages using draftwatermark

How can I put different watermarks on even and odd pages using draftwatermark package?
192 views

### ** ERROR ** DVI stack exceeded limit. with tikz-qtrees in xelatex

I've got a snippet of tikz-qtree which causes ** ERROR ** DVI stack exceeded limit. when compiling with xelatex, but works fine with pdflatex. But I need xelatex because I've got a lot of unicode ...
96 views

### Macro shifts to the right

Every time I'm using this macro it shifts to the right. Why? \newcommand*{\addLine}[1]{ \begin{tikzpicture}[overlay, remember picture] \coordinate (x) at (#1,0); \draw [open ...
486 views

### How can I increase spaces between ticks, make the first tick nearer the the axis and remove empty spaces from a pgfplot?

The question title explains it all, my plot isn't looking nice. I want to increase the spacing between each xtick, make the first xtick nearer the y axis and remove that space with no x ticks on the ...
310 views

### Why is my PDF file so much different than my preview version?

I am using TeXShell and MiKTeX to compile with. Once I have written my code, I compile and preview and at first there was some problems with floats and stuff, but now, everything is perfect and ...
3k views

### Increase vertical spacing in bibliography using biblatex with bibtex backend

I'm rather new to the whole TeX experience and try to make a template to use for my masters thesis. Everything has been smooth except getting the references/bibliography right. I've spent numerous ...
2k views

### How to open TeXShop remotely the command line

How would one open TeXShop, say, via command line using ssh and X-forwarding?

15 30 50 per page