2
votes
2answers
749 views

What notation is used to show that a variable is a matrix? [closed]

When a variable is a vector, it is common to put an arrow above the variable, shown bellow \vec{x} When a variable is a matrix, sometimes a capital letter is used to distinguish it from the ...
2
votes
1answer
174 views

Font changes in latex output file after each compilation [closed]

I am using Texshop version 2.47 in Mac. Recently I copied some text from somewhere and then it started to change the font (many mathematical/greek symbols started to change in strange signs and the ...
3
votes
1answer
172 views

Strange Knitr behavior with APA6 class manuscript

I tried everything that I know to solve this problem. I normally write my homework on share latex, but for this I downloaded and installed MacTex, Sweave and Knitr on my Mac. After trying out every ...
5
votes
1answer
434 views

How can I highlight SPSS Syntax code with the listings package?

I'm writing my master thesis at the moment and I want to add some code listings to the appendix. The code is written in "Syntax", the programming language of SPSS Statistics. Is there a way to ...
12
votes
3answers
331 views

Is there a way to make a certain character in a Verbatim have a certain formatting?

I am writing this report on a computing simulation of the Ising model. I am pressenting lattice configuration samples, which are just an array of "+" and "-". This is done in order to visualize the ...
5
votes
3answers
285 views

directories usr/texmf

Sorry about the newbie question!! As a background: I am running Texshop and sometimes Texmaker on OSX 10.9.2 I have used a package called leipzig over the last 2 years. As instructed I have saved it ...
0
votes
0answers
33 views

\newcommand that behaves like a normal word [duplicate]

Is there any way to define a \newcommand that behaves like a normal word? I have a few names for Objects, that might change later. To keep my flexibility i use ...
2
votes
1answer
204 views

Beamer: tabular out of the boder

I am writing slides under beamer. A tabular is out of the boder of the slides. What shoud I do? Resize? \begin{tabular}{ccc} $\hat{\tmmathbf{v}}^1 = \frac{1}{\sqrt{N}} \left(\begin{array}{c} ...
2
votes
1answer
76 views

Listings refuses to highlight identifiers such as 'intent–filter'. Why?

I have some xml code, which I want to look fine in my latexdocument. I am doing it this way: \documentclass[12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} ...
4
votes
2answers
202 views

Align tikzpicture to body text with node as reference

In a example like the one below I would like to adjust the figure horizontally so that the grid aligns with the surrounding text and the y-axis and the label protrudes into the margin. Note that the ...
9
votes
2answers
271 views

Define a new \XXseries macro for light fonts

Is ist possible to define a new series with fontspec? I tried the following but … it throws an error if the font doesn’t have a light version instead of replacing the font, like \bfseries does. In ...
1
vote
1answer
119 views

How to prevent footnotes leaving empty space at the top of the page?

I have a long list of footnotes at the end of my document (as opposed to them being at the bottom of the page they were referred from), and while it looks almost okay now, the problem is that when the ...
5
votes
2answers
8k views

MikTeX proxy settings

My computer connects to the internet through a proxy server, for which I have the username and password, but for the life of me I cannot find the location in MikTeX preferences to enter the proxy ...
2
votes
0answers
105 views

Different colours for each argument and value in listings

This recent question (Print blue brackets in one language and black in another) made me come up with (up to) two more questions regarding the listings package: Is there an option similar to opstyle ...
3
votes
2answers
213 views

TikZ: non-linear tangent curve

I'd like to draw a tangent curve from point (a) to point (b), intersecting point (c) (the center of the square). The curve should be stretched according to the gray lines (being a logarithmic scale). ...
6
votes
1answer
608 views

Titling package

In the footer of a page, footnotes and thanks are not correctly aligned. How to get the expected alignment? In the following example, the commands \thanks{} are typeset using numbers, as expected: ...
1
vote
1answer
156 views

TeX capacity exceeded + Semantics package [closed]

I get the following error: ! TeX capacity exceeded, sorry [input stack size=5000]. \do #1#2#3->\mathcode `#1 ="8000 l.14 ..._{1}\; a_{2} -> v_{2}}{a_{1} - a_{2} -> v} ! ...
2
votes
0answers
214 views

Define own \rowfont (without using tabu)

Since the future of tabu is not that save I’m trying to define an own \rowfont macro. This is what I’ve got so far: \documentclass{article} \usepackage{array,tabularx} \usepackage[table]{xcolor} ...
3
votes
1answer
97 views

Could a map file / TECkit generate a TeX command?

This is not an important question. I am just wondering if we could generate a command using a map file for TECkit. Or do we have to use character classes for this task, see pages 14 and 15 in the ...
1
vote
0answers
385 views

Problem with table in matlab2tikz on Ubuntu [closed]

I have been using matlab2tikz last year on mac and it worked perfectly fine. Now I'm using it on Ubuntu and encounter some problems. FYI in installed texlive-full which does include pgf 2.1 and in my ...
8
votes
1answer
142 views

using tabularx 2.09 in a \newenvironment produces errors

The tabularx package with new version 2014/04/22 v2.09 produces errors with the following code which compiled without errors before: \documentclass{article} \usepackage{array} \usepackage{tabularx} ...
1
vote
0answers
39 views

Internal pdf viewer after having connected an external screen

Last week i used texmaker and its internal viewer to see my thesis on an external screen. Now i have the external screen disconnected but everytime i re-run my .tex file to see my thesis in the ...
2
votes
2answers
211 views

How to embed image in the whitespace between words

I would like to have an image 'embedded' in a page within my document, but done so with the whitespace between words. Ultimately I would like to have a moving image if you flick through the pages. I ...
1
vote
2answers
234 views

Forms are not displayed in evince viewer

I'm using eforms package to make form. I have read the documentation and copied the same as in the doc but the form are not displayed in evince or in okular. The form are displayed in adobe reader but ...
7
votes
3answers
405 views

Non-ascii character as argument

I want to do something special with some characters in the text. In this example that is just boldfacing them: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
7
votes
1answer
115 views

Comma not working inside \bm when using babel

When I try to compile this simple document \documentclass{article} \usepackage[italian]{babel} \usepackage{bm} \begin{document} $\bm{,}$ \end{document} I receive the following complaint: ! ...
7
votes
1answer
429 views

How can I visualize program traces with TikZ?

To analyze multi-threaded program behaviour, I generate traces of code execution. Now, the chrome browser allows me to visualize it in a nice way: I'd like to include a visualization like these in ...
3
votes
1answer
304 views

How to suppress hyphenation in figure and table captions?

To suppress hyphenation in section names I use \hyphenpenalty=10000 in \titleformat command. Is there any similar way to suppress hyphenation in figure and table (and longtable) captions?
1
vote
2answers
71 views

Smallcaps for acroynms

Suppose I have lots of acronyms in my document , e.g. NASA. I want all my acronymns to be smallcaps by default. Is there a package that can recognise consecutive capital letters and make them ...
3
votes
0answers
152 views

Duplicate Line command in TeXShop for Mac

I'm a quite new user of LaTeX and one thing I miss in TeXShop on mac is a "Duplicate Line"-command, espacially when writing mathematical derivations. It's my impression that it is possible to create a ...
8
votes
2answers
141 views

\input - \return-command

I'm looking for a command like \return with which I can manually exit a TeX file, which is included by \input. (At the end of my TeX file are some notices, which I sometimes want to print, sometimes ...
4
votes
1answer
80 views

Print blue brackets in one language and black in another

In addition to that question i wonder if it is possible to have that settings for one language and default settings for another ? How to highlight operators and brackets in a C listing? ...
0
votes
1answer
45 views

When I try to reference figures, eg “see Figure~\ref{lattice1}”, the output it “Figure ??”. Did I label it wrong? [duplicate]

\documentclass{article} \begin{document} \begin{figure} % \begin{subfigure}[b]{0.30\textwidth} \centering \begin{tikzpicture}[ decoration={ markings, mark=between positions 0 and 1 step ...
2
votes
1answer
159 views

Page numbers using leaflet class

I'm attempting to typeset a very short paper as a pamphlet, and am doing so using the leaflet class. Using it, a two-page document is produced, each page having three columns, each treated as a page ...
4
votes
2answers
224 views

Table and graphic frame

Is there any LaTeX package that can produce tables and figures like the example in the folowing image by default? EDIT: I used tcolorbox but I did not get the result needed as I'm not familiar ...
4
votes
1answer
104 views

Define a pair/point as a pair/point along a path length METAPOST

Is it possible to define a pair as a point along a specified length of a path? so for example beginfig u=2cm; path x; x=(0,0)..u*dir(225); %v= a point along a fraction of the length of x in a ...
2
votes
2answers
579 views

How to add dot after \section number in headline and ToC, without adding dot to \ref command

I need \section (\subsection, \subsubsection ...) titles printed with dot after numbering. Example: My Title For this purpose i use: \renewcommand\thesection{\normalfont \arabic{section}.} ...
2
votes
0answers
213 views

Polyglossia: Arabic Text, English Bibliography

I am writing a mainly Arabic book. But all the references are western/English. So I'd like the bibliography to appear left to right. I write: \documentclass[12pt,english]{book} ...
0
votes
1answer
60 views

Sectionnumber right in beamer

I'm fortunately allowed to use LaTeX instead of PowerPoint for a teaching lesson but I have to recreate the original design of the PowerPoint slides. Now I need to bring the section numbers on ...
2
votes
1answer
94 views

Eqnarray help (disadvantage) when breaking across columns

I'm a first time TeX user and had typed out certain (long) equations in a single column format for submission to a journal (that part worked fine). Unfortunately, I accidentally missed the fact (!) ...
8
votes
3answers
904 views

Drawing 3d crystal lattice with molecular layer in tikz

I would like to achieve the following diagram (may be colored) wit Tikz. Here is what I have done till now: i)Drawing a 3d cube with Tikz ii)Get the Molecular layer from here Here is my code: ...
1
vote
1answer
312 views

How can I draw 16 pin macro by use circuit-tikz package?

I want to draw this macro by use circuit-tikz package.
2
votes
1answer
78 views

Four side by side figures each pair have one common caption

I am using the following LaTeX code to put four figures in two rows with two figures side by side so that both of them are on a line and have a one common caption. Unfortunately when I am using the ...
2
votes
1answer
793 views

Using a thesis template: Listing my publications by referencing a .bib file

I'm relatively new to Latex and new to Stack exchange. I am using the ucthesis template (University of California) on ShareLatex.com and am currently filling out a CV within the thesis document. I ...
3
votes
1answer
169 views

Short horizontal line at the bottom of the first page using \documentclass{article}

Usually, when one uses \documentclass{amsart}, a short horizontal line appears on the first page in the lower left hand corner. If one includes information such as keywords and MSC, this information ...
6
votes
1answer
219 views

Autosegmental Representation with pst-asr

I am using Texmaker and MiKTeX to try and produce an autosegmental representation such as the one in this image: The following code is given in John Frampton's pst-asr user's guide: ...
0
votes
0answers
91 views

Do I need a new version of

I would like to put a graph side by side in my document. I believe I need to use the following: \usepackage{subcaption}. But I am getting an error message stating subcaption.sty not found ...
0
votes
0answers
33 views

Can't compile minimal document class? [duplicate]

I'm trying to compile a gnuplot epslatex output (which contains a .tex and .eps file). When I use \documentclass{article} \usepackage{graphicx} \usepackage{epstopdf} \begin{document} ...
4
votes
1answer
88 views

using biblatex to make section titles

Updated with MWE: I am making a template for keeping track of articles for a project and for this I want to have costumized \cite-s to use in text and as section titles. I have made a crude solution: ...
6
votes
1answer
152 views

Actual line numbers for listings: firstnumber=\inputlineno is off by one

I would like to have the actual line numbers next to my code listings but if I use firstnumber=\inputlineno, this gets evaluated one line too early: \documentclass{article} \usepackage{listings} ...

15 30 50 per page