12.15.2 Greatest hits from previous weeks

12.15.2.1 How do you make numbered equations in latex?
12.15.2.2 Write pseudo code in latex
12.15.2.3 Force figure placement in text
12.15.2.4 How to write a function (piecewise) with bracket outside?
12.15.2.5 How to include SVG diagrams in LaTeX?
12.15.2.6 Command for argmin or argmax?
12.15.2.7 Subfigures side by side with captions
12.15.2.1 How do you make numbered equations in latex?

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

I would like to put in a code that automatically assigns a number to the equations in my documents preferably aligned on the right hand side. 
How can I go about this? 
\documentclass[a4paper,11pt]{... 
[formatting] [equations] [amsmath]
 
asked by Magpie https://tex.stackexchange.com/landing/r/digest?cta=user&id=16635 Score of 72
12.15.2.2 Write pseudo code in latex

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

I am trying to write pseudo code in my paper. Here is the snippet and image like what I want.  Can some one please help me to format it. 
\begin{algorithm} 
\caption{Euclida^\200\231s algorithm}\label{euclid} 
\... 
[algorithms]
 
asked by cyclic https://tex.stackexchange.com/landing/r/digest?cta=user&id=47334 Score of 140
answered by karlkoeller https://tex.stackexchange.com/landing/r/digest?cta=user&id=27635 Score of 186
12.15.2.3 Force figure placement in text

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

I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code: 
\begin{figure}[ht] 
\... 
[floats] [positioning] [captions]
 
asked by Marin https://tex.stackexchange.com/landing/r/digest?cta=user&id=2755 Score of 694
answered by Juan A. Navarro https://tex.stackexchange.com/landing/r/digest?cta=user&id=169 Score of 856
12.15.2.4 How to write a function (piecewise) with bracket outside?

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

How to write this Piecewise function using LaTeX? 
I tried 
$ 
\begin{array}{cc} 
\{ & 
\begin{array}{cc} 
0 & x\leq 0 \\ 
\frac{100-x}{100} & 0\leq x\leq 100 \\ 
0 & ... 
[math-mode] [equations] [brackets]
 
asked by GarouDan https://tex.stackexchange.com/landing/r/digest?cta=user&id=5314 Score of 220
answered by Ant https://tex.stackexchange.com/landing/r/digest?cta=user&id=6984 Score of 270
12.15.2.5 How to include SVG diagrams in LaTeX?

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

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ... 
[graphics] [svg]
 
asked by Martin Tapankov https://tex.stackexchange.com/landing/r/digest?cta=user&id=711 Score of 745
answered by Speravir https://tex.stackexchange.com/landing/r/digest?cta=user&id=9237 Score of 235
12.15.2.6 Command for argmin or argmax?

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

How can you get the argmin or argmax in Latex? Two solutions I found are: 
\underset{x}{\operatorname{argmax}} 
\DeclareMathOperator*{\argmin}{arg\,min} 
Any other ideas? 
[1] http://www.breakthru.... 
[math-mode] [symbols] [math-operators]
 
asked by Alejandro https://tex.stackexchange.com/landing/r/digest?cta=user&id=1128 Score of 326
answered by Jan Hlavacek https://tex.stackexchange.com/landing/r/digest?cta=user&id=396 Score of 364
12.15.2.7 Subfigures side by side with captions

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

I am using the following code to put my two figures side by side with different captions, 
\begin{figure*}[t!] 
\centering 
\begin{subfigure}[b]{0.5\textwidth} 
\centering 
\... 
[captions] [subfloats]
                                                                                  

                                                                                  
 
asked by Sait https://tex.stackexchange.com/landing/r/digest?cta=user&id=14611 Score of 137
answered by latex user https://tex.stackexchange.com/landing/r/digest?cta=user&id=25372 Score of 193