• ## Add a centered source to figure captionsFebruary 14

Just a question. I used this code to create a source under my figures: \documentclass{article} \newcommand*{\captionsource}[2]{% \caption[{#1}]{% #1% \\\hspace{\linewidth}% \textbf{Source:} #2% }% } \begin{document} \begin{figure} [ht] \centering \ca

• ## Extra alignment tab has been changed to \cr" errorFebruary 14

I am receiving the "extra alignment tab has been changed to \cr" error in producing a complicated table in LaTeX. The minimalist table below should replicate the error. I have read the other answers on StackExchange but they do not identify why

• ## Put a frame around two aligned picturesFebruary 13

I have two aligned pictures in my text (sideways). I was wondering, if it is possible to put a frame around both pictures. Many thanks and have a nice weekend Example: \usepackage{rotating} \usepackage{graphicx} \begin{document} \begin{sidewaysfigure

• ## \cellcolor extent slightly off when \multicolumn also in useFebruary 13

I am trying to color-code cells of a large matrix that may either contain a number or a symbol. (MWE at end.) The numbers are supposed to be flush right within their cell, but the symbols are supposed to be centered. The normal way to do this is with

• ## Making separators uniform in BibTex bibliographyFebruary 13

Using latex makebst plus a bit with fiddling with the resulting .bst file, I've managed to get my bibliography close to the shape I want it to be in. The exception is for certain incollection and inproceedings fields. At the moment I'm getting entrie

• ## Fill sector of ellipse with asymptoteFebruary 13

I've already got an ellipse in Asymptote in nice need polar coordinates, but I am trying to illustrate Kepler's Second Law, and it would be nice to fill sectors from one of the foci. I've already got stuff like , but I don't know how to fill in a sec

• ## why \see and \seealso "overwrites" page number?February 13

Why \see and \seealso overwrites page number? Can i redefine indexing command to keep page number(s) before see output? Something like: Cats 1,3,6-7 see also Dog MWE form this site: \documentclass{article} \begin{filecontents*}{test2.xdy} (require "p

• ## Aligning address on the same line, in 3-column styleFebruary 13

I have been using example res9a on this page. As you can see, the address is divided into three lines. I am new to LaTeX, so not sure if this is possible, but can those three lines be put in one line, just in a 3-column layout style? For example, the

• ## Weird spacing in align environmentFebruary 13

Using this MWE: \documentclass{memoir} \usepackage{amsmath} \begin{document} \begin{align} x &= y \end{align} \begin{align} x =& y \end{align} \end{document} I get this (cropped) output: The spacing is different depending on where I put the &.

• ## pgfplots: coordinate has been dropped because it is unboundedFebruary 13

After compiling the code I get: coordinate (0Y0.0e0],4Y0.0e0]) has been dropped because it is unbounded (in y). Here the solution was to specify a domain. I did it, hence I do not understand why I get this message. \documentclass[border=0.5cm]{standa

• ## Use preamble to put all descriptions in a tcolorboxFebruary 13

I want to style all my \begin{description} elements with a \begin{tcolorbox}. As my code is autogenerated from pandoc, I do not want to edit the tex code within the body of the document. How do I add tex to the preamble to "rewrite" all descript

• ## Best way to reuse and change code in a lot of documentsFebruary 12

I would like to use in a lot of documents the same title page and some settings in a way that when I want to implement a change to take effect in all of them. One way that I thought is to place everything in a newcommand having as an option the name

• ## No accents and ¿ ¡ in pdf bookmarksFebruary 12

I'm doing a book with LateX in spanish language and I'm having some problems with spanish accents and symbols ¿ and ¡. Here's my preamble, sorry, it's very huge: \documentclass[10pt,a4paper,twoside=true,headinclude,footinclude,headsepline,footsepline

• ## Positioning a node relative to the center of another node in tikzFebruary 12

How can I position the node 's2' above 's1' so that leftmost 0 (of node 's2') is exactly above and at center of 's1' \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame} \begin{tikzpicture}[overlay,reme

• ## Page header (Chapter name and page number) cover table in landscape modeFebruary 12

I am a bit clueless as how to approach this problem and I hope some of you might be able to help me. As seen in the attached screenshot, the table I have in landscape mode collide with the chapter name and page number (inside red square). What I want

• ## Drawing Multidimensional Array Using TikzFebruary 12

I want to draw a diagram like the attached picture, which actually describes a multidimensional array. This is the code that I have: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[x={(0.86

• ## Wrapping an equation around a listFebruary 12

Is it possible to apply a single centered equation # to a list? I'm using aligned wrapped with equation in the first list but 1) it requires a fair amount of manual spacing to make it look right and 2) long items are misbehaving. Item (iii) is commen

• ## Avoiding orphan parts of a commandFebruary 12

I have a command that is used to print stuff with a certain structure: \newcommand{\miracle}[2]{ \textbf{#1} #2 \bigskip } How can I ensure that the stuff printed by the two arguments (the bold and the nonbold text) do not get separated? Sometimes it

• ## How do I remove white space at the top of my inserted matlab code?February 12

I've Solved This Question: use \vspace{-1cm} I'm using this package: \usepackage[autolinebreaks]{mcode} I want to put a subtitle for my Matlab code and then have it follow on immediately after with no white space, unlike what I currently have. Thanks

• ## Fonts with well-behaved stacking diacritics?February 12

My documents (compiled using XeTeX for the most part) make use of the transliteration system adopted by the Brill Encyclopedia of Hebrew Language and Linguistics. I had hoped to use Linux Libertine as my main font, but it doesn't handle "stacked"