# All Questions

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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
204 views

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 ...
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?
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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}.} ...
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} ...
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 ...
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 (!) ...
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: ...
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.
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 ...
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 ...
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 ...
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: ...
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 ...
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} ...