greyshade
  • Member for 7 years, 6 months
  • Last seen more than a month ago
Problem on subfigure 2X2
Accepted answer
52 votes

Each of your \subfigures is 1\textwidth wide - there's no way LaTeX could fit two of these in a row. Also you don't need the minipage there. Try something like this: \documentclass{article} \...

View answer
Why does PDFLaTeX and XeLaTeX generates 11.955 font size for 12pt documentclass option?
Accepted answer
30 votes

That's due to the different idea that pdf and LaTeX have of what's a point: A LaTeX point is 1/72.27 inch - known in LaTeX as pt A pdf point is exactly 1/72 inch - known in LaTeX as bp (big point) ...

View answer
listings 'escapeinside'-option is not working for me
Accepted answer
18 votes

Although not explicitly stated in the documentation I have found that the escaping only works in listings using the lstlisting environment, not within lstinline. See this: \documentclass{scrreprt} % ...

View answer
Bibentry producing no citation
Accepted answer
14 votes

See comments on switching to biblatex and biber - if you want to keep using bibtex, read on. You're missing a \nobibliography* command - see the documentation and here for details. But even with the ...

View answer
Hyphen separating symbols, without intervening spaces
Accepted answer
10 votes

In math mode (as in your $\nuSwap$) the - becomes a minus sign and is thus longer and has spaces around it. Simply preventing the - from being treated as maths as you do with the word swap gives what ...

View answer
What is wrong with these refs according to Biber?
Accepted answer
8 votes

There's two problems here: 1st: the reason compilation fails is due to wrong sequence of brackets in ({LDA)} in the abstract field of hastie_discriminant_1996. 2nd: the warnings with Biber reported ...

View answer
First published field in biblatex
7 votes

The biblatex package does have a field called origdate for precisely that purpose: origdate If the work is a translation, a reprint, or something similar, the publication date of the original ...

View answer
Three 'side to side' figures using minipage
6 votes

Following the idea of using minipages you can simply use two minipages as the two columns and in the right hand one include two images: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{...

View answer
Cannot properly define an rgb color
6 votes

In RGB mode colours are defined by one byte for each of the colours red, green and blue - hence RGB. The maximum mavlue representable by a byte (i.e. eight bit) is 2^8 - 1 = 255. Specifying RGB ...

View answer
Numbered description list with dot leaders?
Accepted answer
6 votes

Simply change the descripton environment for an enumerate environment: \documentclass[12pt, letter]{article} \newenvironment{specifications}{% \let\olditem\item% \renewcommand\item[2][]{\olditem#...

View answer
Compiling issues
6 votes

As @egreg commented above, make sure you compile with pdflatex rather than pdftex - this is what your example looks like when I compile it with pdflatex: For Comparison compiling with pdftex gives ...

View answer
Put floats at "Here if possible" as default
Accepted answer
5 votes

The Lyx documentation wiki has a page on figure placement, with a question also on the [h] modifier and forcing LaTeX to place the figure exactly there. Quoting from the page: How do I get LyX to put ...

View answer
Plotting standard error
Accepted answer
5 votes

Since this is too long for a comment and I don't want to mess with @Jesse's answer - which obviously is the base for this - my take on what you're trying to achieve is: Update: reversing the x axis ...

View answer
bad Itemize environment with babel and StandardItemLabels
Accepted answer
5 votes

See section 3.3 of the documentation for frenchb. In your case you might want to use \frenchbsetup{ItemLabels=\textbullet} rather than \frenchbsetup{StandardItemLabels=true} so as to only change the ...

View answer
How to put some commands written by a software's codes into Latex beamer?
Accepted answer
4 votes

You may wish to look into the listings package which was designed for exactly that task. A minimal example would look like so: \documentclass{beamer} \usepackage{listings} \begin{document} \begin{...

View answer
How to set the position of a figure in latex
4 votes

You have empty lines between your subfigures, causing every one of them to be in a new paragraph. Getting rid of the empty lines, deleting the unnecessary placement specifiers on the subfigures, ...

View answer
Problems with XML Syntax Highlighting
Accepted answer
4 votes

I couldn't come up with a perfect solution right now, but juggling with the solution from what you linked and from my answer here I came up with the following, which isn't too bad: \documentclass{...

View answer
Correctly highlighting custom html tags in listings
Accepted answer
4 votes

Ok, after some thinking about how to do this with listings while avoiding manually specifying keywords, I suppose a syntax based solution may work. I.e. I defined a language for listings using ...

View answer
Refering to the same footnote - \footnotemark + \footnotemark[\value{footnote}] + \footnotetext (without \ref)
Accepted answer
3 votes

The counter footnote is increased by the commands \footnotemark and \footnote in your example - which means that after the \footnote its value is 2 and thus the second \footnotemark will refer to the ...

View answer
New command, load multiple images
Accepted answer
3 votes

If you need the same layout of seven pictures over and over again for part1 to partN and assuming the pictures in each of the /gfx/partx/ folders are called pic1 to pic7, the below code should give ...

View answer
How do I arrange 2 subfigures on top of 1 subfigure?
Accepted answer
3 votes

The following should achieve your goal I think: \documentclass{book} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{0.45\linewidth} ...

View answer
Beamer overlay specification for description
Accepted answer
3 votes

The following should do what you required - i.e. show all labels right away, but uncover the descriptions one by one. \documentclass{beamer} \newcounter{curItem} \newenvironment{descriptions}[1]{% ...

View answer
Redefinition of tabularx column not applying to all columns
Accepted answer
3 votes

This is due to the extra space of \\[1em] being effectively added to the text within the last cell in the row, thus preventing that cell from being centered - see here. Thus in order to get your ...

View answer
surnames in small cap with nameauth package
Accepted answer
3 votes

Contrary to your suggestion the \NameFormat is not of any help here since it does always affect the whole name and does not allow formatting of just the surname. And since the nameauth package buries ...

View answer
Landscape Picture + Table format
Accepted answer
3 votes

As mentioned in the comments, have a look at the rotating package and its sidewaysfigure/sidewaystable commands. Combined with the subcaption package you should be able to build something like what ...

View answer
Make the table look better
Accepted answer
2 votes

I would recommend thinking twice about the use of colour and actually making use of the facilities of booktabs. Consider as a starting point (or if @TeXnician's changes in his answer - which ...

View answer
LateX Math Equation Multiple Alignment Issue
Accepted answer
2 votes

If you use an alignat environment you can define two alignment points. In order to allow the last line to span both, use the \span command. Full example: \documentclass{article} \usepackage{amsmath} ...

View answer
biblatex custom reference
2 votes

What you want seems to be blatant abuse and not really fitting into what a bibliography is supposed to be - but it's easy to achieve: \documentclass{scrreprt} \usepackage[refsection=chapter,style=...

View answer
Biblatex, Use of prefixnumber changes indentation of all subbibliographies
2 votes

As @Audrey noted, setting \labelwidth different from \labelalphawidth or \labelnumberwidth allows fixing the indentation of the entries. The following sets the \labelwidth to something that should ...

View answer
Biblatex using shorthands and numeric style - label sizes
Accepted answer
2 votes

Thanks to @moewe's link and the comments in there I found a solution that seems to work and which allows setting the width of the label for the numeric part arbitrarily. Defining a new bibenvironment ...

View answer