# All Questions

304 views

### positioning of a matrix bigger than margins

A document I'm working on has a table that was complicated enough for me to try and make it using a pgf matrix of nodes. However, the resulting matrix ended up being slightly too big for the page. ...
824 views

### center image when's bigger than textwidth

I have an image that is larger than the line width and I want to center it and I also want to have a colored frame around. I can get this two things done one at the time, but don't know how to achieve ...
113 views

### References used in article

How to verify all the references used in the article or not from the auxiliary file? or is there any other file to check it? If any one reference not included in the article, whether that reference ...
177 views

### Arxiv undefined control sequence. \XKV@tempa ->\field [closed]

I would love to upload my document to ArXiv, but ArXiv cannot process my file: Package biblatex Warning: File 'myfile.bbl' created by wrong version. ! Undefined control sequence. \XKV@tempa ...
97 views

### Testing for “emptiness” (theoretical consideration)

Consider the following theoretical problem: Sometimes, in LaTeX one wants to do the simple test if a macro is empty, e.g. \def\foo{% This is... \ifx\baz\@empty Sparta! \else a pony farm. \fi } ...
57 views

### redefined math command printed with error [closed]

why is my command \mercur shown with error, but the default \mercury command without? MWE: \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{wasysym} ...
261 views

### Print small TeX code verbatim and render it

To write some documentation, I would like the ability to define a command such as \showcase{x^{y}\in\Omega} which expands to something roughly equivalent to \verb|x^{y}\in\Omega| & ...
2k views

### Defining plural form for glossaries entries

Based on the following answer, How shall I define plural form of glossaries? Two separate acronym list using package glossaries For example, \newglossaryentry{LED} { name={LED}, ...
323 views

### Different marker at specific intervals using pgfplots

I have a number of large data files with x rows in the range of 0 to z. Is there an easy way to set a different marker at specific intervals using pgfplots/TikZ? How can I produce a figure such that ...
103 views

### Customized tabular environment

we've quite often have to write tables in our CI layout (colors, borders, fonts, etc). At the moment we use the standard tabular environment with lots of extra instructions (in the environment ...
464 views

### Labelling (pinning) points in a plot automatically

I have a scatter plot that I am generating based on some data stored in comma-separated format. I need to add a label to each point: this information is available as part of the .csv file as it's used ...
4k views

### Customize bibliography style with natbib

Using the code below, my bibliography looks like this . How do I force LateX to: Put the authors in alphabetical order by last name (eg. Basdevant and then Hall) Put the last name of the first ...
1k views

### Sort bibliography with same author and same year (biblatex)

When I cite two works by an author published in the same year, biblatex will sort them in the bibliography according to their title. In some cases, however, I know that the work sorted in the second ...
548 views

### problem with change of pagenumbering with twoside

I am using scrartcl with the twopage option to get a two sided document. The result is as desired. If I change the pagenumbering after the first few pages (title page, list of contents, ...) from ...
87 views

### How to nicely do margin figure that goes into text block and wraps?

I want to create something like this: However, when I look at how I did it I feel dirty all over: \documentclass[10pt]{memoir} \usepackage{wrapfig} \usepackage{lipsum} \usepackage{graphicx} ...
172 views

### Alter font used for every pin in a plot

In some scatter plots I'm producing, I want to label each point using a pin. I achieve that by adding \node elements after the \addplot but within the axis environment, and using the pin property: ...
619 views

### Editor with Word like “word completion” feature

Besides defining longer technical words by \newcommand{\trimam}{trans-impedance-amplifier} to save typing time. Is there a Latex Editor (can be Linux or Windows) that offers "word completion" ...
866 views

### embedding movies using media9 does not work. compiles without errors

Embedding movies using media9 does not work. Linking to online movies does. I am sure that I am using the correct mp4 format and h264 encoding so the problem should not be with the movie files. The ...
673 views

### Why does a tikz spy specified as a chamfered rectangle show up as a simple rectangle?

I'd like to use a tikz spy shaped like a chamfered rectangle. The code runs without complaining, but the result is a plain rectangle. "rounded rectangle" works as expected, as does ...
515 views

### TikZ- best practice for line starting on a circle's edge?

I'd like to know how I can achieve the best seamless crossover between a node (in this case, a circle) and a line starting on that node. I would like the line to only touch the circle's edge. So far I ...
588 views

### Double line for header/footer rules

I want to create a fancy header/footer rule in Exam document class. I have tried what is at http://tex.stackexchange.com/questions/89569/custom-header-footer-rules-fancyhdr and Custom header/footer ...
7k views

### BibTeX cannot find .bib file

I am using TeXworks version 0.4.5 with MiKTeX 2.9 64-bit on Windows 7. When I try to typeset the code \documentclass{amsart} \begin{document} Blah blah \cite{grimm} \bibliographystyle{plain} ...
1k views

### Drawing selected borders of a node [duplicate]

Is there a way to draw only selected borders of a node? The node shape I have in mind is rectangle. The \node[draw]... syntax draws all four borders of the node. But what if I want to draw only the ...
170 views

### Change display style in enumerate [duplicate]

I want to change the style of each element inside enumerate. It should be: Ad (1) Ad (2) I have tried to do it by: \begin{enumerate}[Ad. (1)] \item \item \end{enumerate} But a result is not ...
2k views

### List of Equations in standard list style

I'm using this solution to generate a list of equations. Running my minimal example below, there are two points I want to change: [A] Using the standard "list of" style, means: using the same spaces ...
113 views

### only expand next macro if its depictable content is placed at a specific place on the page

I'm looking for a conditional that checks if the visual processor puts the depictable content of the macro that is going to be expanded at a specific place on the page where the content is placed. ...
92 views

### LaTeX, quoting same author without numbering [closed]

I am finishing a thesis and my bibstyle troubles me. I could not find an answer to following the question: How can I remove the automatic numbering (a, b, c, d...) of the same author quoted several ...
280 views

### Table with cells of different widths

I'm trying to typeset a Word doc in LaTeX - mainly so that I can get the results I want, rather than Word (or LibreOffice) making my decisions for me. And my current difficulty consists of a few ...
4k views

### MikTex 2.9 Portable. Cannot update and install packages

I have a company laptop running windows 7 enterprise edition 32bit without admin rights (resp. almost no rights to anything at all). I put the current version of MiKTex 2.9.4757 and Texmaker onto my ...
442 views

### Javascript string delimiter not escaped properly in listings

I am trying to use listings to display Javascript code. Following the replies to another question, I worked out the following code: \documentclass{article} \usepackage{listings} ...
3k views

### Problem Solution Template

I want to create a Latex document like the following one: 1. This is the problem statement in multiple line. Solution: This is the solution of the problem. When there is only on solution, there is ...
614 views

### Logic games using TeX

On my way to learn how to use LaTeX, I came across the logicpuzzle package and I found it really impressing how you can really generate all kinds of grids without including any picture. For instance ...
167 views

### Using bi-lingual entries with the glossaries package

I'm writing my PhD thesis in my mother language (Slovene). I would like to create a Glossary that would contain the slovene versions of the terms along with their english counterparts. The ...
51 views

### Insertion of a single blank page [duplicate]

I am trying to finish my thesis which will be printed two sided. Here is the core of my latex document: \begin{document} \include{garde} \frontmatter \selectlanguage{french} \include{remerciements} ...
285 views

### Add a gaussian curve in a specific location in a tikz diagram

I'd like to put a gaussian curve in a specific location in a diagram I am creating with tikz. I found the question Bell Curve/Gaussian Function in TikZ/PGF, and I can use this to add the gaussian ...
189 views

### Outsource some text fragments

I have to type many books in Latex, where some chapters are quite similar to each other. My idea was to do one chapter in a directory and outsource the differences in a subdirectory where the main ...
227 views

128 views

### How to compare the beginning of an argument

I need to write a simple function in tex (ConTeXt more precisely, but I suspect that does not matter here), that does one thing when the first argument #1 begins with a particular string, and does ...
1k views

Some of titles are too long, and when I make the table of contents, one line is not enough for them. How can this problem be solved? Can I split the title by a certain line break command? Or can I use ...
295 views

### change font size of particular column

How to change the font size of a particular column using pgfplotstable? I only found how to change the font size of the whole table with e.g. font=\small. edit: the column header may be changed as ...
204 views

### Problems with xelatex and arc in tikz

When I use \setdefaultlanguage{thai} and arc command, output not smooth. How to set my XeLaTeX code? I think this ploblem about thai scale, or not. \documentclass{article} \usepackage{polyglossia} ...
125 views

### How to put Text in two lines inside a box

\rightline{\fbox{LEMA 2: $(a^m-1,a^n-1)=a^d-1$\newline onde, $d=(m,n)$}} This command generates this I wanted to pass this onde d = (m, n) to the line below, but keeping within the box ... How ...
418 views

### Issue on pdf(La)TeX with named colors in dvipsnames

When compiled on pdfLaTeX, the following code (and MWE) returns a PostScript error message: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{pstricks} ...
432 views

### Adjusting the position of \dot

I'm writing a paper that uses the symbol \dot{\mathcal{U}} which for me (in PDFLaTeX with Palatino math fonts) looks like this: As you can imagine, from further away, the dot is invisible. Is ...
355 views

### Drawing an envelope in tikz

How could I define and evelope shape like for example this one in Tikz? If possible it would be great it there was an option to write inside the upper triangle (and so the shape should be able to ...
972 views

### Order items in enumerate environment automatically

I have a list of almost 300 items in an enumerate environment \documentclass{article} \begin{document} \begin{enumerate} \item This is the second item. \item This is the third item. \item This is the ...
363 views

### Problems customizing listings captions

I'm trying to "decorate" source code with listings, but I'm getting some warnings and bad boxes when I compile my document. However the document compiles and looks like I want. I noticed the warning ...
75 views

### How can I automatically change the font qualities of the first few words of a chapter?

First off, TeX knows about words (since it does different spacing for inter-letter, inter-word, and inter-sentence. There must be a way to tap into this. As for the Q, what I mean is emulating the ...