10
votes
2answers
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…
9
votes
1answer
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 ...
5
votes
1answer
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. ...
10
votes
1answer
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 ...
5
votes
2answers
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 ...
7
votes
1answer
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 ...
3
votes
1answer
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 ...
3
votes
1answer
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 ...
5
votes
1answer
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} ...
7
votes
1answer
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 ...
9
votes
1answer
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] ...
5
votes
1answer
4k views

Table of Contents inside an Appendices Environment

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 ...
1
vote
2answers
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 ...
2
votes
1answer
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) + ...
13
votes
2answers
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, ...
6
votes
1answer
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?
3
votes
1answer
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 ...
1
vote
1answer
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 ...
2
votes
0answers
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 ...
6
votes
1answer
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]{% ...
5
votes
2answers
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 ...
4
votes
1answer
140 views

Context: How can I have table of contents with only following sections

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 ...
2
votes
2answers
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 ...
2
votes
2answers
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} ...
5
votes
5answers
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 ...
5
votes
3answers
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, ...
2
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
2answers
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} ...
4
votes
1answer
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 } ...
2
votes
2answers
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 ...
1
vote
2answers
113 views

Linebreak in math environment

I have an odd problem, I tried already all possible things, align, eqnarray, $, \[ \] and so on, but the following stays the same: I have a formula inside text and it is not broken, so it goes into ...
1
vote
1answer
45 views

How to pass a node to \psGetDistance?

I want to handle the bug mentioned in my previous question. However, the following MWE produces an error. My prediction is that \psGetDistance seems to reject nodes as its arguments. ...
2
votes
4answers
288 views

Color name appears before \section name in .pdf hierarchical “tree” links

I'm using the package xcolor to provide colorful \section titles. It looks great but when I make a .pdf, the color name appears before the section name in the .pdf's hyperlinked organizational "tree". ...
11
votes
4answers
4k views

How to scale all fonts (in the whole document) by certain factor or percentage?

Is there a way to scale the font size of all text in a LaTeX document by a certain factor, something like \scalealltext{factor=0.95}? Edit: Text should reflow, so as to fit (a bit) more text on a ...
9
votes
1answer
137 views

Package providing fully expandable conditionals

Is there a package providing a collection of fully expandable conditionals like this one: \newcommand\myif@num[1] {\ifnum#1\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi} Background: ...
5
votes
1answer
1k views

Cleanest way to make itemize ragged right?

I want to make my itemize text ragged right. Is there a cleaner way than to redefine the \@item[#1]{...} from latex.ltx? This is what I have done now: \def\@item[#1]{% \if@noparitem ... ...
1
vote
1answer
4k views

Latex tabbing: Undefined tab position

I am getting error"! LaTeX Error: Undefined tab position." for the following snippet of latex code. \begin{tabbing} \> \>$n$ = Some data\\ \> \>$B$ = Another Statement\\ \> \>$N$ = ...
1
vote
1answer
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} ...
1
vote
1answer
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, ...
1
vote
2answers
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 ...
11
votes
3answers
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?
9
votes
1answer
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: ...
2
votes
3answers
1k views

ifpackageloaded question

why when i comment \usepackage{geometry} i get error? \documentclass{book} \usepackage{geometry} \makeatletter \@ifpackageloaded{geometry} { % i the package was ...
2
votes
1answer
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} ...
3
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
1answer
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 ...
5
votes
0answers
2k views

Expand placeins functonality to subsections [closed]

I'm using the placeins package to ensure that floats stay within their respective sections (using \usepackage[section]{placeins}). I'd like to expand this functionality to include subsections, ...
0
votes
1answer
221 views

Highlighting specific lines with lstinputlisting [duplicate]

Possible Duplicate: highlight lines in listings How can I include a source file with the listings package and highlight specific lines (coloured text or coloured background will do)?

15 30 50 per page