6
votes
2answers
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. ...
8
votes
2answers
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 ...
3
votes
1answer
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 ...
2
votes
0answers
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 ...
4
votes
1answer
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 } ...
1
vote
1answer
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} ...
11
votes
2answers
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| & ...
9
votes
1answer
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}, ...
6
votes
1answer
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 ...
4
votes
1answer
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 ...
10
votes
1answer
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 ...
1
vote
1answer
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 ...
2
votes
4answers
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 ...
0
votes
1answer
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 ...
5
votes
1answer
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} ...
5
votes
1answer
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: ...
6
votes
3answers
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" ...
4
votes
1answer
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 ...
8
votes
1answer
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 ...
10
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
2answers
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} ...
3
votes
1answer
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 ...
0
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
1answer
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. ...
2
votes
0answers
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 ...
2
votes
2answers
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 ...
1
vote
2answers
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 ...
2
votes
1answer
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} ...
4
votes
3answers
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 ...
13
votes
2answers
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 ...
3
votes
2answers
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 ...
3
votes
0answers
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} ...
5
votes
1answer
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 ...
1
vote
1answer
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 ...
6
votes
2answers
227 views

Read file without file extension from hidden directory

I'm trying to read some data from a file and use the following approach: \documentclass{minimal} \newcommand{\file}{./.dir/.testFile} \begin{document} \newread\myread \openin\myread=\file\relax \loop ...
7
votes
2answers
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 ...
0
votes
0answers
1k views

long title in table of contents [duplicate]

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 ...
3
votes
2answers
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 ...
0
votes
1answer
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} ...
1
vote
2answers
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 ...
3
votes
1answer
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} ...
4
votes
2answers
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 ...
10
votes
2answers
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 ...
12
votes
4answers
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 ...
3
votes
1answer
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 ...
1
vote
1answer
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 ...
1
vote
1answer
197 views

Adding horizontal space between plots in pgfplot

I couldn't find any solution for adding horizontal space between two plots in pgfplots. The xshift thing didn't help. Here's the code: \documentclass{sigplanconf} \usepackage{pgfplots} ...
5
votes
2answers
409 views

Error in displaying appendices

I'm having a problem when writing appendices for my thesis. This is the general structure: \documentclass[11pt,a4paper,titlepage]{report} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} ...

15 30 50 per page