Shared posts

20 Oct 16:23

Church of the Flying Spaghetti Monster (a review)

by Martin Gardiner

If you haven’t come across the Church of the Flying Spaghetti Monster (CFSM), and wish to read an academic overview, may we recommend a recent paper in the journal Le religieux sur Internet / Religion on the Web, Vol 8 (2015) ‘When Virtuality Shapes Social Reality. Fake Cults and the Church of the Flying Spaghetti Monster.by professor Lionel Obadia (University of Lyon, France)

Prof_Obadia ‘A two-eyed ‘monster’ made of meatballs and noodles performs as godhead, with supernatural powers. It is represented floating in the air, overlooking its creation, humanity, on which it is all powerful: it can elicit faith, or destroy it. The revelation was received by a certain ‘Captain Mosey’, chief pirate, who was the first prophet of the Church.

The CFSM then grew towards institutionalization, through a series of faith articles and normative rules which prove the monster’s existence, and eight commandments, that are almost indistinguishable from the Old Testament’s prescriptions. A revelation creed is uttered by those who have been ‘touched’ by the monster’s ‘noodly appendage’. CFSM members also celebrate religious festivals, simply named ‘holidays’, which take place around Christmas time, and which call upon no other obligation than celebrating.”

BONUS 

Is this the Flying Spaghetti Monster? Siphonophore filmed on seabed off the coast of Angola (The Independent, Aug. 2015)

 

20 Oct 12:25

Saturday Morning Breakfast Cereal - The Largest Number

by admin@smbc-comics.com

Hovertext: The third largest number is called Weinersmith.


New comic!
Today's News:

 2...

19 Oct 13:29

striscia#1297

by Sid

singloids1297


19 Oct 08:18

Saturday Morning Breakfast Cereal - Shark Attacks

by admin@smbc-comics.com

Hovertext: A can also pass the Turing test by making people less human.


New comic!
Today's News:

Today's comic reveals David Shiffman's SECRET PLOT.

16 Oct 15:11

Bell's Theorem

The no-communication theorem states that no communication about the no-communication theorem can clear up the misunderstanding quickly enough to allow faster-than-light signaling.
16 Oct 13:59

[Report] Math at home adds up to achievement in school

by Talia Berkowitz
With a randomized field experiment of 587 first-graders, we tested an educational intervention designed to promote interactions between children and parents relating to math. We predicted that increasing math activities at home would increase children’s math achievement at school. We tested this prediction by having children engage in math story time with their parents. The intervention, short numerical story problems delivered through an iPad app, significantly increased children’s math achievement across the school year compared to a reading (control) group, especially for children whose parents are habitually anxious about math. Brief, high-quality parent-child interactions about math at home help break the intergenerational cycle of low math achievement. Authors: Talia Berkowitz, Marjorie W. Schaeffer, Erin A. Maloney, Lori Peterson, Courtney Gregor, Susan C. Levine, Sian L. Beilock
16 Oct 13:43

Science in court: Courage of conviction

by Virginia Gewin

Science in court: Courage of conviction

Nature 526, 7573 (2015). doi:10.1038/nj7573-463a

Author: Virginia Gewin

Expert witnesses have a crucial role in bringing science into the legal system — but the job is not without pressure.

16 Oct 13:43

Kilogram conflict resolved at last

by Elizabeth Gibney

Kilogram conflict resolved at last

Nature 526, 7573 (2015). http://www.nature.com/doifinder/10.1038/526305a

Author: Elizabeth Gibney

After a fraught few years, experiments to redefine the unit have reached agreement.

16 Oct 12:38

Computational photography with plenoptic camera and light field capture: tutorial

by Edmund Y. Lam
Edmund Y. Lam
Photography is a cornerstone of imaging. Ever since cameras became consumer products more than a century ago, we have witnessed great technological progress in optics and recording mediums, with digital sensors replacing photographic films in most instances. The latest revolution is computational ... [J. Opt. Soc. Am. A 32, 2021-2032 (2015)]
16 Oct 12:27

3n0m15:(via Ultimate Rugby Battle - YouTube) mancano quattro...



3n0m15:

(via Ultimate Rugby Battle - YouTube)

mancano quattro anni e stanno già vincendo tutto il possibile

16 Oct 11:05

Panda rei [parte I]

by stark

Turchia, bomba interrompe corteo pacifista. Ora è una fiaccolata.

Morti e feriti nell’attentato alla stazione di Ankara. Erdogan deve aver fatto l’Erasmus a Bologna.

Le esplosioni sono avvenute durante una manifestazione per la pace. Sono i difetti del contraddittorio.

Dopo le esplosioni la polizia è intervenuta con i gas lacrimogeni. Non volevano che l’attentato stravolgesse il programma.

Il governo turco: “Un folle gesto suicida”. Scendere in piazza a manifestare.

L’attentato di Ankara è il più grave nella storia della Turchia moderna. Quindi da sabato scorso.

Il governo conferma che si è trattato di terrorismo. Hanno controllato sull’agenda.

Erdogan: “Questo è il momento più difficile per la Turchia”. Ha saputo che la nuova Tipo sarà prodotta lì.

La polizia turca ha attaccato le persone che cercavano di portare via i feriti. Dovevano restare lì come monito.

Erdogan vieta di trasmettere le immagini della strage. Non gli piace vantarsi.

(È la seconda volta in meno di tre mesi che attivisti filo-curdi finiscono nel mirino degli attentatori. E ancora non hanno capito la lezione)

Gli agenti hanno impedito ai parenti di deporre fiori sul luogo dell’esplosione. Avrebbero potuto inquinare le prove fasulle.

Il leader curdo Demirtas: “In questo Paese chi è contro il governo viene distrutto”. E lo dici a noi?

Il giorno dopo la strage, duemila persone sono scese in piazza a Istanbul per protestare contro Erdogan. Ma non c’è stato il tempo di organizzare un altro attentato.

Erdogan: “Dietro c’è l’Isis”. Che aspetta il suo turno.

Il Pd scarica Marino. Il prossimo potresti essere tu.

Imbarazzo nel partito per le cene di Marino. Chiedeva la carbonara con la panna.

Il sindaco di Roma avrebbe usato soldi pubblici per portare a cena i parenti. Rispettando le usanze locali.

(Porta a cena un parente e mangerà per un giorno. Fallo assumere in una municipalizzata e potrà mangiare per sempre)

L’ambasciatore del Vietnam smentisce l’invito a cena di Marino. “Non mi fece nemmeno assaggiare il suo labrador”.

Una volta eletto, Marino aumentò il limite di spesa della carta di credito. Cercava di tenersi stretta almeno la moglie.

Gli esponenti del M5S romano hanno chiesto le dimissioni a gran voce. Ai turisti piace sempre tanto.

Marino: “Pago tutto e restituisco la carta di credito”. Eh no, prima restituisci la carta.

* * *

Un ristoratore ricorda perfettamente quella volta che Marino ordinò un vino bianco da 55 euro. Fu il suo primo scontrino.

La testimonianza: “Marino bevve uno Jermann da 55 euro”. E questo mentre suturava un pancreas.

Fratelli d’Italia presenta un esposto per conoscere le spese del Campidoglio. Da quando non c’è più Carminati non vengono aggiornati.

C’è chi fa notare che Alemanno ha speso molto più di Marino. Ma in certe cose conta anche la simpatia.

(Alemanno si salvava perché le cene di famiglia erano davvero cene di lavoro)

Anche Renzi sospettato di aver cenato a sbafo quando era sindaco di Firenze. “Ma mi dimisi senza fare storie”.

Marino pubblica 492 pagine di note spese e ricevute. Ora è il nuovo Fabio Volo.

Ignazio Marino si è dimesso. Ora c’è attesa per la cena di addio.

Marino: “Ho pianto, mi sono uscite le lacrime dagli occhi”. Ormai deve precisare qualsiasi cosa.

(E comunque solo un genovese poteva farsi inculare per cinquanta euro)

Marino: “Dieci consiglieri del Pd mi hanno chiesto di restare piangendo”. Era davvero impossibile rimanere seri.

“Il business dei rifiuti era di una sola persona e io gliel’ho tolto”. E quello ha aperto un ristorante.

I dipendenti del Campidoglio disorientati dall’annuncio. Sospeso per precauzione il torneo di briscola.

L’assessore Sabella: “Stavamo lavorando bene, siamo caduti su una bottiglia di vino”. Questa la versione fornita al pronto soccorso.

Ora Marino avrà 20 giorni per ripensarci. Giusto il tempo di aspettare la metro.

* * *

I vertici del Pd: “Non abbiamo chiesto le dimissioni di Marino”. Quindi immaginatevi la sorpresa.

Orfini: “Nessuno voleva la testa di Marino”. Hanno dovuto darla al gatto.

Dopo le dimissioni Marino ha celebrato un matrimonio. Allora i cartelli “ripensaci” erano per lo sposo.

Ora c’è grande attesa per la nomina del commissario. Di solito quando il medico si arrende si chiama il prete.

Per il dopo-Marino si fanno i nomi di Veltroni e Rutelli. Ma così, per sdrammatizzare.

Il Movimento 5 Stelle starebbe valutando la candidatura della Lombardi. È l’unica che potrebbe riuscire a non vincere.

(Ora per Roma ci vorrebbe un sindaco grillino. Così la finiamo con questa storia che è eterna)

CasaPound manifesta ottimismo in vista del voto. Devono aver appeso i sondaggi capovolti.

[continua qui]

* * *

Autori: ciapunnusucari, rocco gazzaneo, maurizio neri, notturnoconcertante, foisluca84, paniruro, pirata21, cricon, pollo, odino, semola, luce so fusa, siokanzino, xanax, sofino, guli1979, stark, montales, comagirl00, naima84, frank gallagher, il mago di floz, zip, edelman, dan11, batduccio, acid rain, goemon ishikawa, arthur rombò, purtroppo, misterdonnie, raskol’nikov II, sisivabbe, luca ronchi.

Illustrazioni: here to avenge laika, onthesign.

13 Oct 15:54

The biggest mystery in mathematics: Shinichi Mochizuki and the impenetrable proof

by Davide Castelvecchi

The biggest mystery in mathematics: Shinichi Mochizuki and the impenetrable proof

Nature 526, 7572 (2015). http://www.nature.com/doifinder/10.1038/526178a

Author: Davide Castelvecchi

A Japanese mathematician claims to have solved one of the most important problems in his field. The trouble is, hardly anyone can work out whether he's right.

13 Oct 15:07

Polarization Engineering in Photonic Crystal Waveguides for Spin-Photon Entanglers

by A. B. Young, A. C. T. Thijssen, D. M. Beggs, P. Androvitsaneas, L. Kuipers, J. G. Rarity, S. Hughes, and R. Oulton

Author(s): A. B. Young, A. C. T. Thijssen, D. M. Beggs, P. Androvitsaneas, L. Kuipers, J. G. Rarity, S. Hughes, and R. Oulton

Entangled states of spin orientation and directional photons could be created by carefully placing of a quantum dot in a photonic crystal waveguide.


[Phys. Rev. Lett. 115, 153901] Published Tue Oct 06, 2015

13 Oct 15:05

Il senso di Baobab

by di Alessandro Gilioli

Schermata 2015-10-06 alle 21.46.28

Da "l'Espresso" in edicola
______________________________

Nella stradina davanti al Baobab passano due tipi di automobili. Quelle di chi porta aiuti: cassette di pane e pizza, frutta, vestiti, medicine. E quelle di chi invece inchioda, sgasa, suona il clacson e sgomma. Sono i due volti di Roma, l’accoglienza e il rifiuto. A volte a pochi minuti di distanza. Ma - è giusto dirlo - i primi sono molti di più. E al Baobab i magazzini si riempiono ogni giorno. Altrettanto in fretta, tuttavia, si svuotano: davanti alla stanza dove vengono consegnati i vestiti c’è sempre la coda e i pranzi serviti variano tra i 200 i 500, con punte di 800.

Del resto, fra i migranti in arrivo dal Corno d’Africa (Eritrea, Somalia ed Etiopia) il tam-tam ormai ha diffuso la notizia che a Roma, in questa ex vetreria sulla Tiburtina, per ciascuno c’è un tetto, del cibo, un ricambio di vestiti. Così, appena sbarcati in Sicilia, arrivano qui: letteralmente, solo con ciò che hanno addosso. Sono uomini, donne, bambini. Molti minori non accompagnati, cioè spediti dai genitori in cerca di una vita migliore, come nel film “Vai e vivrai”. Nessuno ha però in mente di restare in Italia: pensano tutti alla Germania o ai Paesi scandinavi, qualcuno all’Inghilterra. Tecnicamente sono “transitanti” e in media restano a Roma meno di una settimana: il tempo di ritrovare le forze dopo la traversata nel Mediterraneo e organizzarsi con altri compagni per l’ultima parte del viaggio.

È tutto informale, al Baobab. Cioè spontaneo e lontano da ogni istituzionalizzazione.

Il gruppo di volontari che lo gestisce non si è neppure costituito in un’associazione vera e propria; nessun rapporto con le istituzioni, quindi non vengono percepiti i 35 euro a migrante che lo Stato dà di solito alle cooperative o agli alberghi che offrono ospitalità. I profughi arrivano quasi tutti senza documenti. Nessun contatto ufficiale nemmeno con la polizia, che però chiude un occhio perché il centro alla fine svolge una funzione utile anche a loro: niente disperati per strada, tutti dentro quando fa buio e dopo un po’ di giorni vanno via dall’Italia: di più le forze dell’ordine non potrebbero chiedere. Frequenti invece i rapporti con la Chiesa: e fa un po’ specie vedere ragazzi dei centri sociali con l’orecchino scambiarsi sms con padre Konrad, l’elemosiniere del Papa, che senza farlo sapere in giro spesso spedisce aiuti importanti.

Tutto il resto, al Baobab, arriva dalle donazioni di singoli, famiglie, associazioni: niente soldi (che non sono accettati, il centro non ha nemmeno un tesoriere), ma altri aiuti concreti: cibo, medicine, vestiti ma anche lenzuola e materassi, che non sono mai abbastanza e vanno cambiati spesso. Del resto qui, dal maggio scorso, sono passate quasi 30 mila persone. Tutte registrate dall’anagrafe ufficiosa del Baobab, un quaderno di carta su cui viene inserito a penna ogni arrivo, incasellato per genere, età, eventuali malattie, tempo di permanenza e giorno di partenza: quando ai rifugiati viene consegnato una specie di kit (acqua, biscotti e poco altro) infilato in uno zainetto preso dallo scaffale delle donazioni. A destinazione raggiunta - sia Monaco, Londra o Stoccolma - l’ex ospite chiama per assicurare che «è andato tutto bene» e la sua casellina si chiude con un “ok”. Un giorno a caso, spulciamo il diario del Baobab: totale presenze 485, di cui 215 maschi e 89 femmine, più 181 minori. Di questi, i più piccoli vengono accompagnati a dormire in una struttura di Save The Children vicino a piazzale Fiume (che però di giorno è chiusa, quindi il mattino dopo i ragazzini tornano qui); i più grandi invece sono divisi per sesso e dormono con gli adulti.

Sembra incredibile - con così tanta gente e un turn-over tanto rapido - che tutto funzioni come funziona al Baobab: la sveglia alle sette, la colazione a base di té, latte e biscotti, le visite dei medici volontari, poi la cucina che inizia preparare il pranzo, l’assegnazione dei vestiti e tutto il resto, compresi i riti religiosi cristiani (la maggioranza) o musulmani, che si alternano nel cortile. Sembra incredibile anche perché la struttura d’accoglienza non ha gerarchie formali, salvo quattro coordinatori e l’assemblea generale che si tiene ogni martedì sera per affrontare questioni piccole e grandi, dall’igiene dei dormitori ai contatti con i No border di Ventimiglia, quelli che aiutano i profughi ad arrivare in Francia.

Già, perché il Baobab non fa solo charity ma è anche parte di una rete di attivisti con diversi snodi d’aiuto ai migranti: ad esempio a Milano (molti vanno in corriera a Lampugnano), a Bolzano (per chi vuole passare il Brennero) e nella Liguria occidentale (per chi vuole la Francia o ha in mente il viaggio fino a Calais, destinazione Inghilterra). Così da Roma si parte con le informazioni più aggiornate (quali sono le frontiere non blindate, quali stazioni vengono controllate etc) e non è raro che nel nord Italia ci siano volontari che si offrono di accompagnare di persona i rifugiati oltre il confine, con un passaggio in macchina: se guida un bianco, è più facile che nessuno ti fermi. Allo scopo si è creato anche un piccolo giro di giacche eleganti e scarpe lucide: l’immigrato le indossa nel percorso, poi si rimette quello che ha nello zaino e il vestito buono viene riportato indietro dagli attivisti italiani, che lo presteranno a un altro profugo perché passi a sua volta il confine, e così via.

Tutto ai limiti della legge, forse. Ma bisogna parlare con gli ospiti del Baobab e ascoltare le loro storie prima di giudicare in base ai regolamenti europei. Si inizia attraversando il Sudan, per settimane e con mezzi di fortuna; poi c’è il confine con la Libia, dove i migranti vengono passati in consegna alle bande locali. A quel punto inizia la parte peggiore: nel deserto, caricati in 25-30 dentro un Toyota Corolla, trasportati come bestie, da gente armata fino ai denti. A ciascuno, in quel tratto, viene data solo una bottiglietta d’acqua da 25 cl al giorno, a cui i broker prima aggiungono qualche goccia di benzina: serve a suscitare disgusto, così la si beve a sorsi piccoli e non viene consumata subito. La notte, tutti a dormire sulla sabbia con un mitra puntato, almeno finché non si arriva alla prima base dei trafficanti, dove si può restare anche mesi finché da casa qualcuno non manda soldi via MoneyGram o Western Union.

A proposito, a volte qui in Europa ci si chiede perché i migranti arrivano col telefonino. La risposta è semplice: senza, non si può partire. Nessuno ha in tasca contanti, di cui verrebbe derubato subito: il viaggio viene quindi pagato dai familiari a casa, a ciascuna banda, con i servizi di money transfer. Quindi si fa tutto per telefono. A volte, il cellulare è usato anche per convincere i parenti a sbrigarsi con il versamento: il migrante viene picchiato in diretta telefonica, in modo che sentendo le sue urla i familiari trovino i soldi.

Un altro frequente equivoco è quello delle madri che arrivano in Italia incinte al nono mese o con neonati: a noi sembra un controsenso che donne in quelle condizioni affrontino un percorso così pericoloso, ma al Baobab ti spiegano che partono proprio quando sono incinte perché questo è l’unico tabù ancora rispettato dalle bande libiche. Le altre ragazze vengono tutte violentate nel percorso: e non una volta sola.

Dopo un viaggio così - con frequenti compravendite di esseri umani da una banda all’altra - queste persone arrivano sulla costa libica e lì infilate su una barca. Soltanto a Misurata, spiegano, ci sono 17 “starting point”, uno per ogni gang: i più fortunati finiscono su un vecchio peschereccio con scafista incluso, gli altri buttati da soli su un catorcio galleggiante, il motore già acceso e il timone inchiodato verso nord.

Ecco quello che hanno alle spalle le donne, gli uomini e i bambini che stanno al Baobab, gli stessi che adesso vedi giocare a pallone sulla strada o a basket in cortile. Se ne andranno presto, Salvini stia tranquillo. Intanto però la Roma migliore offre loro qualche giorno di conforto, scherzi, abbracci di altri esseri umani. E anche un pianoforte, proprio all’ingresso del centro, donato da chissà chi: qualcuno che sa suonarlo c’è sempre e alla sera la sua musica, nell’aria morbida di Roma, racconta al mondo che da qualche parte, in qualche modo, la vita deve pur ricominciare.

13 Oct 11:08

Time series with tailored nonlinearities

by C. Räth and I. Laut

Author(s): C. Räth and I. Laut

It is demonstrated how to generate time series with tailored nonlinearities by inducing well-defined constraints on the Fourier phases. Correlations between the phase information of adjacent phases and (static and dynamic) measures of nonlinearities are established and their origin is explained. By …


[Phys. Rev. E 92, 040902(R)] Published Thu Oct 08, 2015

12 Oct 14:21

Focus: The Difference Between Round and Square Pipes

by Michael Schirber

Author(s): Michael Schirber

Calculations of the motion of particles carried by a fluid flowing through a pipe find a surprising effect of the pipe's shape.


[Physics 8, 94] Published Mon Oct 05, 2015

11 Oct 16:58

Keyboard Problems

In the future, a group of resistance fighters send me back in time with instructions to find the Skynet prototype and try to upgrade it.
11 Oct 16:31

Saturday Morning Breakfast Cereal - The Most American Movie

by admin@smbc-comics.com

Hovertext: The most American ballet is PRO WRESTLING.


New comic!
Today's News:

Oh GOD Seattle is almost upon us. There are only about 90 general admin tickets left, so buy soon to lock a spot!

 

02 Oct 14:12

A century of physics

by Roberta Sinatra

Nature Physics 11, 791 (2015). doi:10.1038/nphys3494

Authors: Roberta Sinatra, Pierre Deville, Michael Szell, Dashun Wang & Albert-László Barabási

An analysis of Web of Science data spanning more than 100 years reveals the rapid growth and increasing multidisciplinarity of physics — as well its internal map of subdisciplines.

02 Oct 13:29

La Scienza, le Immagini, l’Universo e tutto quanto

by peppe liberti

Se provate a chiedere a Steven Weinberg, premio Nobel per la Fisica nel 1979 con Abdus Salam e Sheldon Glashow per il suo contributo alla…

Continue reading on Medium »

01 Oct 17:21

Self-driving taxis will begin trials in Japan next year

by Daniel Cooper
Self-driving cars are a few years away from becoming a thing, right? Not in Japan, where the company Robot Taxi has announced that it'll start testing robotic taxis in 2016. A report by the Wall Street Journal reveals that the firm will begin by of...
01 Oct 16:16

Statistical physics: Universal exploration

by Eli Barkai

Nature Physics 11, 807 (2015). doi:10.1038/nphys3445

Author: Eli Barkai

We're well versed on the first-passage time for a random process, but the time required to cover more than one site in a system is a different problem altogether. It turns out that the two measures have more in common than we thought.

01 Oct 16:15

Top 10 physics discoveries of the last 10 years

by Jorge Cham

Nature Physics 11, 799 (2015). doi:10.1038/nphys3500

Author: Jorge Cham

Jorge Cham reflects on the most important physics discoveries of the past decade.

01 Oct 11:19

Fantaman, episodio 1 (La prima puntata non si scord… eh?!?)

by Dr.Manhattan
Jacopo.bertolotti

Il mondo è mmmio!

Fantaman episodio 1
Per la rubrica antristica più amata dall'Internet, La prima puntata non si scord... eh?!?, ci prendiamo una pausa dalla rassegna di robottoni pezzenti tipo Balatack e Godam per occuparci di Fantaman, il supereroe fratocugino di Kriminal. Gustiamoci perciò le mimmate a secchi del primo episodio, "Il segreto di Atlantide", trasmesso per la prima volta in Giappone nel remoto 1967 e approdato in Italia nel 1981. Gridate "Il mondo è mmmiooo!!!" come il Dottor Zero e seguitemi, si parte [...]
[continua a leggere...]
30 Sep 10:54

Fancy boxes for theorem, lemma, and proof with mdframed

by tom

The mdframed package implements a box environment that automatically breaks boxes across multiple pages. Moreover, it allows flexible box designs. An example from the documentation that I particularly like is titled: “Theorem with separate header and the help of TikZ (complex)”. In this article, I use the example to create environments for theorems, lemmas, and proofs, adding a few minor enhancements.

fancy-box-theorem-latex

 
The basics explained

In the preamble, we load the mdframed package and define the environments for theorem, lemma, and proof. AS we want to use TikZ syntax later on, we load the package with the framemethod=TikZ option.

\usepackage[framemethod=TikZ]{mdframed}

 
Next, we define a counter for continuous numbering of the environment. Here, I will only show how to do so for theorems, but it is similar for lemmas and proofs. We might want the counter to be reset at the beginning of every section. This is achieved through the optional argument of the newcounter command. Also, we may decide the value of the counter to be displayed as: “section.theorem”. For that, we redefine the command that produces the counter value: \thetheo. Alternatively, to reset the counter at every chapter and display “chapter.theorem”, use chapter in the code instead.

\newcounter{theo}[section]\setcounter{theo}{0}
\renewcommand{\thetheo}{\arabic{section}.\arabic{theo}}

 
With that, we are ready to define a new environment for theorem. This is slightly more complex, so I will go step-by-step and provide the complete code further below for those who are more interested in the complete code.

 
To define a new environment, we use the newenvironment command. It takes three arguments plus an optional argument (args) to define the number of parameters that we want our environment to take.

\newenvironment{name}[args]{begin_def}{end_def}

 
The first parameter name is the name of the environment that we want to create. Here, we may choose may anything that has not been defined already. I use theo, as we want to create a theorem environment. Moreover, we’d like to make use of the page break property provided by the mdframed environment. Therefore, we use \begin{mdframed} and \end{mdframed} as begin and end definitions. Also, we define that the environment takes two arguments/parameters ([2]). Of these two parameters, one is optional and empty by default (extra []) and the other is compulsory. The first, optional argument is for the title which the theorem may or may not have. The second argument, which has to be provided, is for the label to reference the environment. If you prefer, you can also make this an optional parameter.

At the beginning, we increase the theorem counter by one and make the counter available to the \ref command for referencing. For that, we use \refstepcounter.

\newenvironment{theo}[2][]{%
    \refstepcounter{theo}

    % Code for box design goes here.

\begin{mdframed}[]\relax}{%
\end{mdframed}}

 
The next step is to add code for the box design. We distinguish two cases: with and without title. We do this by checking if the first, optional argument is empty (\ifstringempty{#1}). Next, we use the mdfsetup command to change the default box design for both cases. The code is essentially the same, with the only difference that when a title is provided, it is printed. TikZ syntax makes it relatively easy to add a heading with a blue background. The heading contains the word “Theorem”, the counter value and, the title if available (else condition).

Through last bit of code, another mdfsetup, we make some final changes. We add a frame around the entire box and raise the title slightly, such that it is placed on top of the frame rather than inside the box.

\ifstrempty{#1}%
% if condition (without title)
{\mdfsetup{%
    frametitle={%
        \tikz[baseline=(current bounding box.east),outer sep=0pt]
        \node[anchor=east,rectangle,fill=blue!20]
        {\strut Theorem~\thetheo};}
    }%
% else condition (with title)
}{\mdfsetup{%
    frametitle={%
        \tikz[baseline=(current bounding box.east),outer sep=0pt]
        \node[anchor=east,rectangle,fill=blue!20]
        {\strut Theorem~\thetheo:~#1};}%
    }%
}%
% Both conditions
\mdfsetup{%
    innertopmargin=10pt,linecolor=blue!20,%
    linewidth=2pt,topline=true,%
    frametitleaboveskip=\dimexpr-\ht\strutbox\relax%
}

 
We are now ready to use the newly defined theorem environment, as illustrated in the example below. Moreover, the example shows how we can reference the theorem in the text, using the \ref command.

\begin{theo}[Pythagoras' theorem]{thm:pythagoras}
In a right triangle, the square of the hypotenuse is equal to the sum of the squares of the catheti.
$$a^2+b^2=c^2$$
\end{theo}
In mathematics, the Pythagorean theorem, also known as Pythagoras' theorem (see theorem \ref{thm:pythagoras}), is a relation in Euclidean geometry among the three sides of a right triangle.

pythagoras-theorem-mdframed-latex

Text modified from Wikipedia: Pythagorean theorem.

 
With that, we are ready to put everything together and define similar environment for lemma and proof. Code for all three environments is provided below. Feel free to make use and change them to your liking.

 
Theorem

fancy-box-theorem-latex

\newcounter{theo}[section]\setcounter{theo}{0}
\renewcommand{\thetheo}{\arabic{section}.\arabic{theo}}
\newenvironment{theo}[2][]{%
\refstepcounter{theo}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=blue!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\end{mdframed}}

 
Lemma

bezout-lemma-mdframed-latex

\newcounter{lem}[section]\setcounter{lem}{0}
\renewcommand{\thelem}{\arabic{section}.\arabic{lem}}
\newenvironment{lem}[2][]{%
\refstepcounter{lem}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=green!20]
{\strut Lemma~\thelem};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=green!20]
{\strut Lemma~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=green!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\end{mdframed}}

 
Proof

proof-mdframed-latex

\newcounter{prf}[section]\setcounter{prf}{0}
\renewcommand{\theprf}{\arabic{section}.\arabic{prf}}
\newenvironment{prf}[2][]{%
\refstepcounter{prf}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=red!20]
{\strut Proof~\theprf};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=red!20]
{\strut Proof~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=red!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\end{mdframed}}

 
To automatically add the qed symbol, load the amsthm package and place the command \qed just before \end{mdframed}.

% Load package
\usepackage{amsthm}

% Change last line of above code
\begin{mdframed}[]\relax%
\label{#2}}{\qed\end{mdframed}}

 
Complete code example

\documentclass{article}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{amsthm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Theorem
\newcounter{theo}[section] \setcounter{theo}{0}
\renewcommand{\thetheo}{\arabic{section}.\arabic{theo}}
\newenvironment{theo}[2][]{%
\refstepcounter{theo}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=blue!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\end{mdframed}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Lemma
\newcounter{lem}[section] \setcounter{lem}{0}
\renewcommand{\thelem}{\arabic{section}.\arabic{lem}}
\newenvironment{lem}[2][]{%
\refstepcounter{lem}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=green!20]
{\strut Lemma~\thelem};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=green!20]
{\strut Lemma~\thelem:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=green!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\end{mdframed}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Proof
\newcounter{prf}[section]\setcounter{prf}{0}
\renewcommand{\theprf}{\arabic{section}.\arabic{prf}}
\newenvironment{prf}[2][]{%
\refstepcounter{prf}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=red!20]
{\strut Proof~\theprf};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=red!20]
{\strut Proof~\theprf:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=red!20,%
linewidth=2pt,topline=true,%
frametitleaboveskip=\dimexpr-\ht\strutbox\relax
}
\begin{mdframed}[]\relax%
\label{#2}}{\qed\end{mdframed}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Examples
\begin{document}
\section{Theorem and lemma examples with title}
\begin{theo}[Pythagoras' theorem]{thm:pythagoras}
In a right triangle, the square of the hypotenuse is equal to the sum of the squares of the catheti.
\[a^2+b^2=c^2\]
\end{theo}
In mathematics, the Pythagorean theorem, also known as Pythagoras' theorem (see theorem \ref{thm:pythagoras}), is a relation in Euclidean geometry among the three sides of a right triangle.

\begin{lem}[B\'ezout's identity]{lem:bezout}
Let $a$ and $b$ be nonzero integers and let $d$ be their greatest common divisor. Then there exist integers $x$ and $y$ such that:
\[ax+by=d\]
\end{lem}
This is a reference to Bezout's lemma \ref{lem:bezout}


\section{Theorem and proof examples without title}

\begin{theo}{thm:theorem1}
There exist two irrational numbers $x$, $y$ such that $x^y$ is rational.
\end{theo}

\begin{prf}{prf:proof1}
If $x=y=\sqrt{2}$ is an example, then we are done; otherwise $\sqrt{2}^{\sqrt{2}}$ is irrational, in which case taking $x=\sqrt{2}^{\sqrt{2}}$ and $y=\sqrt{2}$ gives us:
\[\bigg(\sqrt{2}^{\sqrt{2}}\bigg)^{\sqrt{2}}=\sqrt{2}^{\sqrt{2}\sqrt{2}}=\sqrt{2}^{2}=2.\]
\end{prf}
\end{document}

 
For more details see the mdframed package documentation or drop me a comment below.

30 Sep 10:24

Should peer review be open, and rely less on author-picked reviewers? Study says…

by Alison McCook
Jacopo.bertolotti

"the conclusions are nuanced"

After reviewing hundreds of peer review reports from three journals, authors representing publishers BioMed Central and Springer suggest there may be some benefits to using “open” peer review — where both authors and reviewers reveal their identity — and not relying on reviewers hand-picked by the authors themselves. But the conclusions are nuanced — they found […]

The post Should peer review be open, and rely less on author-picked reviewers? Study says… appeared first on Retraction Watch.

29 Sep 13:48

Perfect absorption in nanotextured thin films via Anderson-localized photon modes

by Martin Aeschlimann

Nature Photonics 9, 663 (2015). doi:10.1038/nphoton.2015.159

Authors: Martin Aeschlimann, Tobias Brixner, Dominik Differt, Ulrich Heinzmann, Matthias Hensen, Christian Kramer, Florian Lükermann, Pascal Melchior, Walter Pfeiffer, Martin Piecuch, Christian Schneider, Helmut Stiebig, Christian Strüber & Philip Thielen

The enhancement of light absorption in absorber layers is crucial in a number of applications, including photovoltaics and thermoelectrics. The efficient use of natural resources and physical constraints such as limited charge extraction in photovoltaic devices require thin but efficient absorbers. Among the many different strategies used, light diffraction and light localization at randomly nanotextured interfaces have been proposed to improve absorption. Although already exploited in commercial devices, the enhancement mechanism for devices with nanotextured interfaces is still subject to debate. Using coherent two-dimensional nanoscopy and coherent light scattering, we demonstrate the existence of localized photonic states in nanotextured amorphous silicon layers as used in commercial thin-film solar cells. Resonant absorption in these states accounts for the enhanced absorption in the long-wavelength cutoff region. Our observations establish that Anderson localization—that is, strong localization—is a highly efficient resonant absorption enhancement mechanism offering interesting opportunities for the design of efficient future absorber layers.

29 Sep 13:46

All-passive nonreciprocal metastructure

by Ahmed M. Mahmoud

Article

The design of all-passive nonreciprocal metastructures is a challenging task as there are trade-offs between the nonreciprocal transmission ratio and insertion loss. Here, Mahmoud et al . propose a concept for all-passive, high-throughput metastructures that exhibit nonreciprocal properties and wave-flow isolation.

Nature Communications doi: 10.1038/ncomms9359

Authors: Ahmed M. Mahmoud, Arthur R. Davoyan, Nader Engheta

28 Sep 14:38

Moon-Landing Equivalent for Robots: Assembling an IKEA Chair

Robots are poor at many activities that humans find simple. Now roboticists are making progress on a task that exemplifies them all: the automated assembly of an IKEA chair.

Humans have long feared that robots are taking over the world. The truth, however, is more prosaic. It’s certainly the case that robots have revolutionized certain tasks such as car manufacturing, for example.

28 Sep 08:27

redditfront: Prevention



redditfront:

Prevention