7.47.2 Greatest hits from previous weeks

7.47.2.1 What is the degree symbol?
7.47.2.2 Forcing linebreaks in \url
7.47.2.3 Keeping tables/figures close to where they are mentioned
7.47.2.4 Column and row padding in tables
7.47.2.5 What can I use to typeset MATLAB code in my document?
7.47.2.6 Package natbib Error: Bibliography not compatible with author-year citations
7.47.2.7 How to influence the position of float environments like figure and table in LaTeX?
7.47.2.1 What is the degree symbol?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=384873

In order to have the following output involving the degree symbol 
I can try 
\documentclass{report} 
\begin{document} 
The angle is 30$^\circ$. 
\end{document} 
However, this is an awkward manner to ... 
[typography] [degrees]
 
asked by Viesturs https://tex.stackexchange.com/landing/r/digest?cta=user&id=114719 89 votes
7.47.2.2 Forcing linebreaks in \url

https://tex.stackexchange.com/landing/r/digest?cta=question&id=3033

This question led to a new package: 
xurl 
I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that ... 
[line-breaking] [urls]
 
asked by Suresh https://tex.stackexchange.com/landing/r/digest?cta=user&id=103 302 votes
answered by Suresh https://tex.stackexchange.com/landing/r/digest?cta=user&id=103 225 votes
7.47.2.3 Keeping tables/figures close to where they are mentioned

https://tex.stackexchange.com/landing/r/digest?cta=question&id=2275

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared? 
[floats] [positioning]
 
asked by artimess https://tex.stackexchange.com/landing/r/digest?cta=user&id=833 362 votes
answered by Stefan Kottwitz https://tex.stackexchange.com/landing/r/digest?cta=user&id=213 366 votes
7.47.2.4 Column and row padding in tables

https://tex.stackexchange.com/landing/r/digest?cta=question&id=31672

How do you guys go about controlling column padding in tables? 
Update 
To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ... 
[tables] [spacing] [columns]
 
asked by JustDanyul https://tex.stackexchange.com/landing/r/digest?cta=user&id=8615 391 votes
answered by Werner https://tex.stackexchange.com/landing/r/digest?cta=user&id=5764 320 votes
7.47.2.5 What can I use to typeset MATLAB code in my document?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=75116

This question led to a new package: 
matlab-prettifier 
Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode ... 
[listings] [highlighting] [matlab]
 
asked by suzu https://tex.stackexchange.com/landing/r/digest?cta=user&id=19279 112 votes
answered by Vivi https://tex.stackexchange.com/landing/r/digest?cta=user&id=14 89 votes
7.47.2.6 Package natbib Error: Bibliography not compatible with author-year citations

https://tex.stackexchange.com/landing/r/digest?cta=question&id=54480

I have a basic tex file and a bibliography which is exported from Mendeley 
However, when I want to cite in the author-year style, I get the error: 
Package natbib Error: Bibliography not compatible ... 
[bibtex] [errors] [natbib]
 
asked by grrrbytes https://tex.stackexchange.com/landing/r/digest?cta=user&id=13217 240 votes
answered by Josh Porter https://tex.stackexchange.com/landing/r/digest?cta=user&id=15128 128 votes
7.47.2.7 How to influence the position of float environments like figure and table in LaTeX?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=39017

How to influence the position of float environments like figure and table in LaTeX? 
This is a general question and should collect useful answers for all users. I hope we can use this as a reference 
[floats] [positioning]
 
asked by Marco Daniel https://tex.stackexchange.com/landing/r/digest?cta=user&id=5239 671 votes
answered by Frank Mittelbach https://tex.stackexchange.com/landing/r/digest?cta=user&id=10109 966 votes