# All Questions

2k views

### Workflow diagram

I would like to make a workflow diagram like this: I found TikZ, but the sequence diagram example seems a bit obscure…
1k views

### Node spacing based on node boundaries [duplicate]

TLDR: Is there a way to get the nodes to space based on their 'tips'. Thus avoiding the x-scale=#cm all over the place to get things just right. I am in the process of converting a bunch of visio ...
2k views

### margin caption and subfloat

I'm desperately trying to get a workable setup of margin caption and subfloats. I use mcaption for margin caption which provides an environment which one wraps the inner content of the float in. ...
610 views

### How can I replace footnotes for non-floating marginal notes?

How can I replace footnotes for non-floating marginal notes? I have tried to replace my footnotes for sidenotes with footmisc package's side option, but they continue to be floats, like every ...
269 views

### How to disable 'totpages' anchor link created by 'hyperref'?

I've been searching like hell for this, trying to hack the totpages and/or the hyperref packages but to no avail... The totpages package automatically creates link on every reference to the total ...
273 views

### Set biblatex aux file name

I am using biblatex with refsection=chapter. That results in aux files named according to this pattern, assuming a source file called book.tex for a book of n chapters: book1-blx.aux book2-blx.aux ...
1k views

### Plot marks filled and drawn, but not the path

Is it possible to have it so that the plot marks would be filled and drawn, but the actual path wouldn't be drawn? Here is example where it is otherwise the way I'd like, except those dots' should be ...
10k views

### Change the language of a LaTeX document

Is there any way to change which language LaTeX works in? I'm writing a report in danish, but when I use \maketitle and other commands which generates some content. This content appears in english. Is ...
238 views

### Formula reproduction in latex [closed]

This is the formula I'd like to reproduce: And here is my poorly working MWE: \documentclass{book} \usepackage{amsmath} \usepackage{fixltx2e} \usepackage[english]{babel} ...
1k views

### Citing many long URLs (shortening and numbering)

In my thesis I have to quote a lot from a single weblog. The URLs are mostly of this structure: blogname.providername.com/stories/123456 ...
4k views

### TikZ: turning edges into arrows using “child” notation

I'm using TikZ for the first time to draw a simple Kripke model, and I'm using the child notation to produce new nodes. How can I turn my edges into arrows? \begin{tikzpicture} \node [circle,draw] ...
4k views

I am trying to create a table of contents inside the appendices environment, however I am unable to do so. In the example below I want a table of contents for Section1. I have tried the minitoc but ...
3k views

### How can I change the font size of a fraction in an index?

I have, as part of an equation, the object a^{5} \left(\frac{b}{c}\right)^{\frac{2}{3}} The problem is that the 2 and 3 are very small (compared to the 5) and I would like all sub/superscripts to ...
1k views

### Latex, left indent numcases

I have this simple equation (representation a dynamic programming recursion): \begin{numcases} {Opt\left(P, i, \ell \right)=min } \nonumber (1)\hspace{0.5 mm} Opt(P,i+1,\ell) + ...
1k views

### How to get devanagari numerals in latex or xetex

How to get devanagari numerals in xetex or latex - especially in enumerate environment? I can use unicode to write devanagari text but I am unable to get devenagari numerals in section numbers, ...
1k views

### How to adjust the width of a \hdashline inside a pmatrix?

I'm using \hdashline from the arydshln package to draw a horizontal line inside a pmatrix: How can I reduce the width of this line to prevent it from touching the outer parentheses?
249 views

### Single quotes around math?

I am using the syntax package, and I want to define a grammar like: Rule = Head -> Tail but when I do this: \begin{grammar} <rule> ::= <head> `$\rightarrow$' <tail> I get ...
463 views

### Stop counting pages and printing footers after X pages

I'm making my CV with the europecv package and I would like to customize one tiny detail, but I have no idea how. Let's assume my CV is 3 pages. After these 3 pages I have 2 more pages, they are ...
63 views

### Changing text below \section to be indented [duplicate]

Possible Duplicate: How can I indent the paragraphs which follow a heading? I'm using the report class in LaTeX and when I use, say \section{Foo} This is a section about Foo. I get ...
1k views

### newcolumntype, siunitx, tabu and illegal pream-tokens

I use tabu with siunitx for making my charts with MikTeX 2.9, tabu 2.8 and now siunitx v2.5g. Since last time using the updater \newcolumn commands like \newcolumntype D{X[1,c]{% ...
3k views

### Typsetting big matrix (but keeping A4 size)

This question is a slight variation of Compiling a BIG matrix, but I need to write a matrix in a A4 or letter size paper; it is a block 48x48 matrix but I can put lot of $0_2$ and $0_4$'s in order to ...
140 views

I want to have a document with some chapters of frontmatter followed by a table of contents showing all subsequent chapters and endmatter but not the frontmatter Best I have found is ...
350 views

### Wrong reference using \input twice for the same file

I have a short piece of text with an image that I need to use more than once in my document. The rational solution I came up with is to put the text in a file and call the file when needed, something ...
232 views

### Font change does not work

As the title says I wanted to change the font of my document with e.g. \usepackage[T1]{fontenc} \newcommand{\changefont}[3]{ \fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont} ...
1k views

### Draw a triangle with horizontal lines with PSTricks

Is there an easy way to draw a triangle like the one on the picture with PSTricks? Maybe a method for calculating the position of the outer line for specific height? I'm using the environment in ...
260 views

### Converting a list of words to a table

I would like to convert a list of terms like : A, B, C, D, E, F to a table like: | A | B | C | | D | E | F | or | A | C | E | | B | D | F | but without having to rewrite my table each time, ...
619 views

### Using WrapFigure near an environment. (Some text inside environment is not wrapped by the wrapfig)

To count words in a document, I am using a custom environment, as suggested here on tex.stackexchange. As can be seen below, when this environment is used next to a wrapfigure, the wrapfigure fails to ...
106 views

### TikZ: lineto to a just created node

Often, when drawing diagrams with TikZ, I’d like link nodes by edges just as I draw them. But when doing it the naive way, e.g. \draw (0,0) node {A} -- (1,0) node {B}; the line intersects with the ...
1k views

### Displaying normal size symbols in formula

How can I make the following part of code: \sum_{i=1}^n \sum_{j=1}^n w_{ij} in normal size and not in subscript size? \documentclass[a4paper]{article} \usepackage[english]{babel} ...
186 views

### Special Command and Caption

I use the following code excessivle, \makeatletter \def\ifinstr#1#2{% \def\@ifinstr##1#2##2\@nil{% \ifstrempty{##2}{\@secondoftwo}{\@firstoftwo}}% \@ifinstr#1\@@nil#2\@nil } ...
427 views

### Rotate images in animations

i tried to have the animations in landscape but failed. please click below http://www.twd-wind.com/inflowrc.pdf you will see the first page the text is in landscape page, the second page the page ...
113 views

1k views

### Undefined control sequence math operators

I have an algorithm defined under figure container. For some reason I am getting a strange error in the conditional expression of the second If block statement. \begin{figure} \begin{flushleft} ...
959 views

### Problem with pdfpages due to everyshi related error

I just want to add individual .pdf pages to my final latex document. A snippet of the code is presented below: \documentclass[12pt, a4paper, twoside]{book} \usepackage[top=1.50in, bottom=1.50in, ...
1k views

### How to use \hlines and | column separators in a csv table uploaded with datatool

Hi I've been trying to use the datatool package to get data from csv files easily into documents as formatted tables. I seem to keep getting the lines on the first column shifted down by a row. If I ...
9k views

### Adding sections such as Linkedin and Github to a Moderncv footer

How do I add extra links to the footer of a moderncv document that are not covered by the default commands?
436 views

### Label a lstlisting listing in the lower right corner

I want to put a label in the lower right corner of my listings, in this case to indicate the kind of code listed there. I have a bad hack that works somewhat and illustrates what I want: ...
1k views

why when i comment \usepackage{geometry} i get error? \documentclass{book} \usepackage{geometry} \makeatletter \@ifpackageloaded{geometry} { % i the package was ...
175 views

### fixed distance and no page break between lines

I'm trying to make a quotation environment which puts the quote on a gray background, with a colored rule right on top of it: \documentclass{memoir} \usepackage{color} ...
672 views

### colored toc and shorttoc?

I want to have colored part and chapter names in my shorttoc and my toc. So I worked out how to get the shorttoc colored, but I do not know how to get the toc also colored the same way? If I add the ...
2k views

### Problem with XeTeX (LaTeX) and system fonts

I have started to use an enterprise specific class for LaTeX, but have got a problem with usage system fonts in Ubuntu. The class uses the fontspec package, I have therefore been instructed to use ...
541 views

### Distance between chapter title and the baseline of the following text

Consider the code below. The distance between the chapter title and the baseline of the following text is font dependent. I assume that there is a glue between the chapter title and the top of the ...