9
votes
1answer
650 views

Biblatex's textcite inserts a breaking space between author names and citation number

I have the following document : \documentclass{article} \usepackage[backend=biber,style=numeric,maxnames=2,maxbibnames=6,firstinits]{biblatex} \bibliography{sample} \begin{document} Here we want to ...
10
votes
1answer
1k views

Spacing after itemize inside a tabular

I have a problem with the spacing after an itemize inside a tabular. \documentclass[12pt]{article} \usepackage{lipsum} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{framed} ...
2
votes
1answer
1k views

Problem with beamer xcolor and cellcolor

I'm having trouble changing the cellcolor in beamer. I've loaded xcolor alongside beamer, and specified the svgnames and table options; \documentclass[xcolor=svgnames,smaller,12pt,table]{beamer} ...
0
votes
1answer
4k views

How to resolve option clash for package xcolor? [duplicate]

Possible Duplicate: Option clash with xcolor and TikZ The following is my MWE: \documentclass{article} \usepackage{tikz} \usepackage[table]{xcolor} \begin{document} Hi! \end{document} ...
4
votes
1answer
140 views

Abbreviating text within a reference

IEEE conferences want references which abbreviate certain words, like: International -> Int. Conference -> Conf. etc... I realize that IEEEabrv.bib provides similar functionality, but that ...
7
votes
1answer
320 views

What is a good practice to achieve vertical placement? (e.g. a Titlepage)

My titlepage looks right now like this: using this code: \documentclass[a4paper,11pt,oneside,titlepage,german,final]{scrreprt} \usepackage{babel} \usepackage[latin1]{inputenc} ...
1
vote
0answers
232 views

\DoubleSpacing not working as described [closed]

Page 48 of the memoir manual states this about using \DoubleSpacing: The spacing in footnotes and floats (e.g., captions) is un- altered, which is usually required once the controllers see what ...
7
votes
1answer
14k views

Add four images on a beamer frame

What is the best way to add four images on a beamer frame? I am using \documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer} \usefonttheme[onlymath]{serif} \definecolor{LHCblue}{RGB}{4, ...
16
votes
1answer
2k views

In graphics/graphicx, how to show actual pictures despite draft mode

For collaboration purposes I am using the draft mode in my LaTeX manuscript to show todo-notes, remarks and so on. By switching to final mode all of these additions become unvisible. However, I'd ...
2
votes
0answers
80 views

Problem with pdfcomment and pdfsync [duplicate]

I have a problem with using both pdfsync and pdfcomment together: once I use pdfsync, the comment causes a line break, which it shouldn't do. As an example, compile with and without ...
5
votes
2answers
400 views

Using align within savebox?

I have a custom environment called 'quiz' which puts its input into a savebox and then uses it later depending on a package option. The code works fine, unless I use an align* environment in which ...
2
votes
1answer
2k views

Adding numbers to references with authoryear citation style

My document is based on the report class. I am using custom bibtex style file generated through makebst for my thesis and the citation style I need is authoryear. The references are to be sorted ...
18
votes
1answer
5k views

Strikeout - when which package ? ( ulem vs soul vs …)

When to use which package for strikeout? I see answers : \usepackage{ulem} \sout{Hello World} or \usepackage{soul} \st{Hello world} or \usepackage{cancel} \cancel{Hello world} In what ...
3
votes
1answer
224 views

siunitx and adjectives

I would like to know if the siunitx package offers the possibility of adding an adjective after the unit, to get a hyphenated compound adjective. For instance, when typesetting "a 10 km-long road", I ...
5
votes
1answer
146 views

Macro which creates another macro with custom name

I want to create a macro \foo which creates another macro which a custom name set just before the execution of \foo via a macro \defcommand{myCustomName} and saves/adds something to it just as the ...
9
votes
1answer
689 views

Questions about pgfmath

\pgfkeys{/pgf/fpu} \pgfmathsetlengthmacro\x{5^2} \show\x -> 25.0pt % OK, thanks. \pgfmathparse{5cm^2} What is the meaning of ] in the following? \show\pgfmathresult % ->1Y2.0238983e4]. ...
10
votes
3answers
6k views

How to put two images side by side and put some symbol in the center?

I want to put two images side by side and put a comparison symbol in between them. Here is the tikz code : \documentclass{article} \usepackage{tikz} \usepackage[margin=15mm]{geometry} ...
10
votes
3answers
1k views

Decorate path with arrows at nodes

Standalone example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \draw[black, very thick] plot[smooth] coordinates {(4,1) (2,2) (1,3) ...
5
votes
1answer
664 views

font name with a space, using XeLaTeX and fontspec

I use XeLaTeX, amsmath, fontspec, unicode-math and standalone to create a pdf containing one single equation which I then import to Inkscape for a poster. When using font names with a space in it, ...
11
votes
1answer
5k views

algorithmicx package comments on a single line

Is it possible in algorithmicx package to have comments not aligned to the right side? For example I have code like this - \begin{algorithm}[!ht] \caption{My Algo.} \label{myalgo} ...
256
votes
2answers
32k views

Create xkcd style diagram in TeX

The unique style of the diagrams at xkcd has an informative but nice hand-drawn touch. I guess they are actually drawn by hand but just recently on our partner site for Mathematica someone asked how ...
6
votes
3answers
662 views

parindent in TikZ node

I'm playing around with the new ocgx package. It uses TikZ nodes to place text. Unfortunately, parindent does not work in the nodes. Is there a way to make it work? Edit (source code) ...
4
votes
1answer
185 views

How to use pgfplotstable's iflessthan key

pgfplotstable offers the iflessthan key to define a custom comparison function: /pgfplots/iflessthan/.code args={##1##2##3##4}{<...>} I just don't know how to use it, there's no example in the ...
2
votes
3answers
3k views

Control column width with left alignment in tabular

I want to make a table with a bigger than default column width for the first column. The text in this column should be left aligned. Here is my code. \begin{tabular}{llll|l} Address1 ...
1
vote
1answer
337 views

The option vlined with algorithm

Please i ask if it's possible to add the option: [vlined] withe the package \usepackage{algorithm} \usepackage{algorithmic} This is my example: \usepackage{algorithm} ...
14
votes
2answers
1k views

Unexpected clash between babel and pgf spy

The following example taken from the pgfplots manual (p. 121) works fine only if the line loading babel is commented \documentclass{article} \usepackage[frenchb]{babel} % this is the troubelsome ...
11
votes
3answers
3k views

ToC like list of definitions (using theorem environments)

For one of my documents I use these commands to setup my theorem environments with amsthm: \usepackage{xcolor} \usepackage{framed} \colorlet{shadecolor}{lightgray!25} ...
3
votes
2answers
155 views

How can I customize this code for signature line to fit a specific format?

Found a nice piece of code here dynamic signature/date line and modified it to this: \newcommand*{\DateAndSignature}[1]{% ..\newline \par\noindent\makebox[2.25in]{Musterstadt, den}{\hrulefill} ...
1
vote
1answer
1k views

Can I use hanging indentations for my bibliography references with bibtex?

I have used hangparas from the hanging package, tried setting bibhang, setting parskip and leftindent to no avail. I have an author-year citation format and plainnat.bst and savetrees package if this ...
1
vote
1answer
2k views

Increase Spacing in an algorithm

Please, how can i increase spacing in an algorithm, between instruction 1 et instruction 2 ? \usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[H] \caption{My ...
3
votes
0answers
6k views

Optimised visualisation of top circles in beamer [closed]

I am making a presentation in Beamer. I am using smoothbars as an outer theme. However I am having a problem when a section has many frames, as indicated in the following image ...
11
votes
1answer
7k views

pgfplots: lines and markers in different colors

With pgfplots, I am creating a simple coordinate plot with error bars like this: \documentclass[crop,10pt]{standalone} \usepackage[english]{babel} \usepackage{pgfplots} \begin{document}% ...
1
vote
1answer
2k views

Opacity in TikZ, ruins whole structure in Beamer [closed]

I am making a presentation in beamer. I wanted to make a TikZ picture and change it's opacity, locally on specific items. When I did, the structure color changed... I will attach my preable as well ...
8
votes
3answers
5k views

Removing scientific notation in tikzpicture made by matlab2tikz

I am having a very hard time trying to figure out how to remove the scientific notations on the y-axis of my graphs. The graphs are made in MATLAB and then converted into TikZ files using the package ...
3
votes
1answer
144 views

How shoud I manage captions and sub captions with float and non float items?

I am currently writing my PhD thesis and I am using this code to put some figures or tables on the left page. So, I have two kinds of figures, some are in a float, some are not. In both cases, I often ...
16
votes
2answers
284 views

“Namethatchar” macro

I am searching for a macro/package that would give the name of characters. Here are a few examples of a possible behaviour: \namethatchar{A} → A \namethatchar{À} → Agrave \namethatchar{a} → a ...
4
votes
1answer
168 views

Use float counter in a section title

I defined a new float environment for examples \usepackage{float \newfloat{example}{htp}{example} \floatname{example}{Example} that I the use throughout the document \begin{example} ... ...
4
votes
1answer
619 views

natbib: temporary citation for missing references?

Is there a way I can specify a placeholder text for citations in which bibliographies are missing? For instance, I would imagine the syntax might look something like \citep[Author, Year]{AuthorYear}. ...
1
vote
1answer
62 views

Show code similar to documentation of packages

I saw that several documentation packages use the environment to show macrocode long codes with page break, the example implementation of the package geometry. How do I do this? I wanted to show a ...
3
votes
1answer
382 views

A macro for looping through a pgfplotstable set by cell

Hi following on from the following question on multi-line headers with pgfplotstable, the solution was to set each affected cell individually. I decided to throw together a command to do that but keep ...
10
votes
1answer
712 views

Tikz bug with math in decoration text?

Following this example, I write: \documentclass{article} \usepackage{tikz} \usetikzlibrary{ decorations.text, } \begin{document} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate (b) ...
3
votes
1answer
388 views

How to create counters that display and increment dates in ConTeXt?

I need to create a document that has section titles named "October 1, 2012", "October 2, 2012", etc., like this: \section{October 1, 2012} This is text for the first day. \section{October 2, ...
9
votes
1answer
818 views

Lost float in exam class

For some reason, I can't seem to put a figure or a table environment inside a solution environment while using the exam class. It produces a float is lost error. Has anyone found a way to bypass this ...
19
votes
1answer
4k views

How to line up blocks in columns with full width blocks in beamer/beamerposter?

This input to pdflatex (whatever version of texlive is on Debian/squeeze) \documentclass{beamer} \usepackage[orientation=portrait,size=a3,scale=0.9]{beamerposter} \usepackage{lipsum} ...
5
votes
1answer
81 views

inner-column labeled matrix

I am slowly becoming more efficient with math environments and macros in TeX, but occasionally come across something where I'm not really sure what the best solution would be. I wanted to hear from ...
15
votes
2answers
13k views

LaTeX Error: Option clash for package xcolor

I have an option clash between package xcolor and another package, but I don't know which. Here is my MWE \documentclass[10pt]{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{caption} ...
5
votes
1answer
168 views

Text wrap in multicols

The following LaTex code (credit) features a table within muticols: \usepackage{multicol} ... \begin{multicols}{3} \subsubsection{Another Subsubsection} Lorem ipsum dolor sit amet, consectetur ...
29
votes
4answers
61k views

Aligned equations in LaTeX

I have a long equation in LaTeX, which I need to break up into more lines. I've done this, although its not quite what I was looking for. Here is a MWE showing my problem: ...
7
votes
1answer
2k views

Subscript spacing in equation

I have a document, where I want to use $\tau_{ff}$. If this is rendered it looks like a space is inserted between the two f's. $\tau_{rl}$ looks fine ... Where does this additional space come from ...
6
votes
2answers
151 views

complexity package: disable banner

The complexity package uses the \typeout command to print a banner when the package is loaded. What is the correct way to disable the banner (other than editing the source code of the package)? ...

15 30 50 per page