0
votes
0answers
4 views

No formatting inside listing?

I am typesetting my MATLAB code with package matlab-prettifier, which is essentially listing. However, sometimes I do not want the formatting. I simply want pure unformatted text. For example, in the ...
1
vote
2answers
8 views

How do i use \bmatrix in a subfigure?

I am trying to put two matrices next to eachother with the same caption but am having trouble using \bmatrix in the subfigure environment. here is the code of what i am trying to do: ...
0
votes
0answers
12 views

More problems with acro package and MikTeX 2.9: l3sort and l3kernel packages

Well, yesterday I posted here this question. I could solve that problem on my WS with Windows 7 and MikTeX 2.9 (64 bits) with the trick suggested by Mark Birtwistle. Nevertheless, today, working on my ...
0
votes
0answers
11 views

How to make citations in one line with bibtex custom bst?

Right now, my bibtex citations look like [1] Book Title [2] Book Title [3] Book Title I want them to be like [1] Book Title [2] Book title [3] Book title. I have a bst file that I am using with a ...
0
votes
0answers
15 views

Insert tables and graph from Excel

I'm writing a report in LaTeX and I'm using excel to calculate, make graphs and tables. What would you recommend me to do to import it to latex? I have tried taking print-screen and import as ...
3
votes
1answer
33 views

Loops of different sizes

In xy-pic we can draw a loop in this way: \documentclass[12pt,letter]{report} \usepackage[all]{xy} \begin{document} $$\xymatrix{a\ar@(dr,ur)}$$ \end{\document} My question is how to draw a bigger ...
1
vote
1answer
21 views

Figure not showing up in siamltex document class

I am working to submit to a SIAM journal and am trying to add a figure. The latex file compiles but the pdf output is blank. Here is a MWE. ...
0
votes
2answers
31 views

Unseemly spaces at start of lines

I am making solutions to a problem with many parts. I want the parts to be indented by \qquad. The first line is indented about twice as much as the other lines, but I used the commands \noindent ...
1
vote
2answers
17 views

How to align text to right without adding additional vertical spacing?

I am trying to simply align one paragraph to the right. However, when I try to use flushright environment, additional vertical space is added above that environment: \documentclass[final]{book} ...
3
votes
6answers
117 views

How might I typeset the Fano plane in LaTeX?

I'm sorry if this is a duplicate in any way or is otherwise a lousy question. How might I typeset the Fano plane in LaTeX? In particular, I need a vector graphic of it and I would prefer to use ...
1
vote
1answer
17 views

pgfplot log axis more than one tick label per decade (1,2,5,10)

I'd like my log axis to have a reasonable number of tick labels which correspond to "nice" numbers. For example, 1-2-5-10 are nearly a geometric series, so they are about equally spaced on the log ...
6
votes
0answers
45 views

Comparison of LaTeX example typesetting packages?

I am writing a (longer) text on LaTeX usage, and I want to typeset some LaTeX source code together with its results – and I'm not sure how to achieve it. I am aware of this question, however, it only ...
1
vote
1answer
23 views

Problem with \includegraphics not compiling

I've been using TexnicCenter and \includegraphics to render EPS files as images for many years. My old laptop died, and I've had to start using a new laptop. Everything was working well until I tried ...
3
votes
1answer
22 views

Enter 2 by n matrix (permutation notation) as inline math without taking up much space [duplicate]

I need to use something that looks like a 2 by n matrix as inline math. How can I achieve this without it pushing the lines apart? Example: \left(\begin{array}{cccc} 1 & 2 & \dots & N ...
1
vote
1answer
32 views

I can't work out why I have strange page numbering at the start of my document?

I would like the following for my document: I will use these abbreviations: wRn = with roman page number wAn = with Arabic page number Em = empty Cover page (Em) back cover page (Em) Abstract ...
2
votes
1answer
22 views

Error: paragraph ended before … was complete

I'm quite lost. I can't figure out what I'm doing wrong below. \documentclass{article} \usepackage{amsmath,amssymb} \makeatletter \newcommand\aermb[1]{\def\ae@i@r{#1}\ae@rmb} \def\ae@rmb{%% ...
0
votes
0answers
28 views

How to bring my text to the beginning

How does one bring the text in latex to the beginning? For example, how do you bring "1 Problem " to the left most?
2
votes
1answer
15 views

Multiple line matrix equations

I am trying to fit a rather large matrix equation into a document, but it is so large that I cannot fit it onto a single line. Moving the end of the equation onto a new line appears to be the only way ...
2
votes
1answer
34 views

Drawing grids filled with random selected colors and connecting them

What I'm trying to do is to draw to 4 x 4 grids side-by-side to represent the concept of bootstrap, from statistics. So, what I would like to do is to draw them and fill each cell of each grid with a ...
2
votes
1answer
13 views

longtabu and rotatebox resulting on too wide table

I'm trying to produce a fixed full-width table, that can potentially span multiple pages. I found that rotating headers with \rotatebox messes up the dimension computation, but I can't find a way to ...
3
votes
1answer
32 views

Problem with verbatim in a beamer frame

It seems that verbatim is not working properly. It produce an error and the output is not as I expected. Here is the latex code % !TEX encoding = UTF-8 Unicode \documentclass{beamer} ...
5
votes
1answer
36 views

LuaLaTeX, Fontspec: Wordspacing and Letterspacing

I have a command \work which will format titles in SmallCaps and with less letter spacing. Now the funny thing: If I try to add some word spacing, too, and only for SmallCaps, it affects the whole ...
2
votes
0answers
14 views

Moderncv, Polyglossia and Font

I'm writing my CV using moderncv and compiling it in lualatex. When adding polyglossia, and more specifically the \setdefaultlanguage command to the .tex file, the sans option in moderncv doesn't work ...
2
votes
2answers
63 views

Automatic table generation

I am working on a book that includes word-to-word translations that need to be put in a table. The format of the average page looks like this: Regular paragraph text. Verse. Translation section. ...
0
votes
0answers
8 views

how to change the reference list so that it gives the page numbers in which a paper is cited? [duplicate]

I would like to add to each reference in the reference list a short text such as "mentioned in pages: " followed by (hyperlinked) numbers of all pages the reference was cited in. Is that possible?
2
votes
0answers
18 views

new table environment based on ltablex's tabularx

I defined a new environment for some custom tables (to not have to repeat the header and column definitions etc. again and again). \newenvironment{mytable}{ \noindent\tabularx{\textwidth}{|c|c|X|} ...
2
votes
1answer
25 views

How to treat multiple references to the same work as one citation

On my PhD thesis I'm frequently refering two versions of a work. For instance, a translation of Marx's Eighteenth Brumaire and the page on the german Marx-Engels Werke. Biblatex's \cites (or ...
2
votes
0answers
19 views

Switch statement using algorithmic environment

How to use Switch statement in Algorithmic environment. I tried the following sample code but the errors are: unrecognized command (algorithmicswitch, algorithmiccase, \Switch, \EndSwitch. ...
1
vote
1answer
13 views

Alignment and line breaking in alignment environment

My MWE: \documentclass[]{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{V} &=\, \frac{1}{\gamma_{2,1}}\sigma_{2,1} \dot{\sigma}_{2,1} + \frac{1}{\gamma_{2,2}}\sigma_{2,2} ...
2
votes
0answers
20 views

Axis drawn longer than specified

The y-axis in the following graph is about ten times higher than I want it to be. The graph has a maximum height of 0.5 units. I specify that the y-axis should go up to 2 units. ...
0
votes
0answers
18 views

Starred chapter number and name in header

I have created custom chapter headings: \documentclass[final]{book} \usepackage{lipsum} % Custom macros \def \mychapter#1{% \chapter*{\centering{\LARGE #1}\thispagestyle{empty}}% ...
5
votes
1answer
51 views

Multiple alignment in align environment

My MWE: \documentclass[]{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{V} =&\, \frac{1}{\gamma_{2,1}}\sigma_{2,1} \dot{\sigma}_{2,1} + ...
2
votes
1answer
15 views

Suppress first new line on list

I want to make entries of the following type: \newcommand{\test}[1]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\par\normalsize\vspace{1em}} I want entries to contain lists and ...
3
votes
0answers
20 views

Weird overful vbox message when code and image are overlaid in beamer

See the following code. The first two frame contents (first one code, second one image) do not produce any overfull vbox message. \documentclass{beamer} \usepackage{filecontents} ...
1
vote
1answer
18 views

Copying one file to another, while “expanding” some variables.

The use case is that I have a template LaTeX file, which I would like to be copied several times while replacing variables in it to some other variables. Here is an example of how such a template ...
0
votes
0answers
45 views

Geometry with Latex [duplicate]

I am a new user to Latex. How do you draw geometry with Latex? Do you have to enter code? Or there is a convenient tool that you can just drag lines and it will give you the code with your drawing? I ...
8
votes
1answer
41 views

Don't use brackets in bibliography (“1.” instead of “[1]”)

I want to use references like "[1]" in my text, but "1." in the bibliography. I did find the exact same question: How to use 1. (number followed by dot) format instead of [1] format in bibliography ...
4
votes
1answer
36 views

Embedding images in tex file as base64 strings?

A commonly asked question on this site is how to embed images directly in a .tex source file, without the need for the image to exist in a separate file. Examples of such questions (often marked as ...
0
votes
0answers
10 views

Trouble controlling vertical spacing for easylist

I am trying to get more control over the vertical spacing when using an easylist. The MWE code below, gives me the following output. Two questions: I'd like to reduce vertical spacing after each ...
0
votes
0answers
18 views

Author unregistered [migrated]

I posted a answer here: Angles in three dimensional space But in that post, the author is "unregistered". How can I specify that response as being posted by me? Thank you so much.
0
votes
0answers
24 views

how to stop “\newpage” in \chapter

I'm using a memoir style. This one to be exact. \documentclass{memoir} \let\STARTCODE\relax \let\STOPCODE\relax \STARTCODE \usepackage{fourier} % or what ever \usepackage[scaled=.92]{helvet}%. ...
5
votes
4answers
111 views

Add values stored in an array

\documentclass[a4paper,10pt]{article} \usepackage{arrayjob} \begin{document} \newarray\cws \cws(0)=3pt \cws(1)=4pt \let\a\dimexpr\cws(0)+\cws(1)\relax \a \end{document} Error: ! You can't use ...
0
votes
1answer
35 views

What is \( used for? [duplicate]

I have seen the following syntax in a LaTeX example : \( Inline math formula \) What is the difference between those delimiters and $ ?
2
votes
0answers
28 views

newcommand with \href

I'm having trouble using newcommand with the \href I would like a newcommand like this: \newcommand\link[2]{\href{#1}{\underline{#2}}} This command works fine quite all, for exemple: ...
3
votes
0answers
22 views

Spell check package for writeLaTeX.com

I use writeLaTeX to create my Tex documents. It's great, it has a dynamic preview which works much better than any other latex software I have seen, and as your files are saved online so you can ...
2
votes
1answer
30 views

Building a box for side calculations

I am doing a math assignment, and want to place a box next to my calculations for side calculations. I tried to use the tabular environment, but then there is a huge space besides the box, and the ...
7
votes
1answer
83 views

Why do I need an \hbox inside \vcenter to make it work?

I want to vertically center an object in an equation. I thought: "Ok, \vcenter is the way to go." But I don't understand (not even from the TeX primitives reference), why I need an \hbox inside my ...
0
votes
0answers
39 views

Beamer doesn't work properly anymore [duplicate]

I was trying to make a presentation using beamer, when suddenly I got the following error message: I don't know why it does this, because I've never had to use sansmathaccent before. I tried ...
0
votes
0answers
11 views

Specifying the default behaviour of floats in Koma-Script [duplicate]

I want to specify the default behavior of floats to be htbp and I want to do this in a class definition for the whole document. I already found floatpos in the documentation, but this does not affect ...
2
votes
1answer
55 views

Euler diagram missing a part

Claudio Fiandrino provided a good answer to my question on Complex Venn Diagramm (actually a Euler diagram). I did alter the code somewhat to make the figure more resemble my previous Venn diagram ...

15 30 50 per page