How to handle citations in Ipython Notebook?

Summary This solution is largely based on Sylvain Deville’s excellent blog post. It allows you to simply write [@citation_key] in markdown cells. The references will be formatted after document conversion. The only requirements are LaTeX and pandoc, which are both widely supported. While there is never a guarantee, this approach should therefore still work in … Read more

Is there CSS for typesetting the LaTeX logo in HTML?

A Google search lead me to TeX and LaTeX logo POSHlets. The solution involves: .tex sub, .latex sub, .latex sup { text-transform: uppercase; } .tex sub, .latex sub { vertical-align: -0.5ex; margin-left: -0.1667em; margin-right: -0.125em; } .tex, .latex, .tex sub, .latex sub { font-size: 1em; } .latex sup { font-size: 0.85em; vertical-align: 0.15em; margin-left: -0.36em; … Read more

Is there a way to get LaTeX to place figures in the same page as a reference to that figure?

I don’t want to sound too negative, but there are occasions when what you want is almost impossible without a lot of “artificial” tuning of page breaks. If the callout falls naturally near the bottom of a page, and the figure falls on the following page, moving the figure back one page will probably displace … Read more

Typesetting music in LaTeX

How about LilyPond? It uses its own plaintext notation, but uses TeX for output. The engine itself uses a whole slew of measures to analyze the music and produce pretty sheet music, so it’s automated to a much greater extent than MusixTex is.

How to change title in listings?

Put these lines to preamble (the preamble is everything from the start of the LaTeX source file until the \begin{document} command): \renewcommand\lstlistingname{Algorithm} \renewcommand\lstlistlistingname{Algorithms} The first changes the caption name for listings. The second — the header name for the list of listings which is printed by the \lstlistoflistings command. You would also probably want to … Read more

Slides with Columns in Pandoc

Current versions of pandoc (i.e., pandoc 2.0 and later) supports fenced divs. Specially named divs are transformed into columns when targeting a slides format: # This slide has columns ::: columns :::: column left :::: :::: column right :::: ::: Pandoc translates this into the following LaTeX beamer code: \begin{frame}{This slide has columns} \protect\hypertarget{this-slide-has-columns}{} \begin{columns}[T] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)