Vanity of Vanities, all is Vanity

Extracting relevant bibtex entries…

by on Nov.09, 2014, under LaTeX, Research

It is sometimes useful to extract only the relevant bibtex entries from your bibliography file – for example, if you are using a big bib file as default, such as geombib (which is now outdated). There are two solutions I am aware of:

  1. Using bibtool, you can do (from the command line):

    bibtool --pass.comments=on --print.line.length=140 -x paper.aux -o test.bib

    This works very well, and extracts all the relevant bibtex entries, macros, and even (relevant) preamble macros/commands.

  2. Emacs has a minor mode called bib-cite-minor-mode. Once activated you can issue the command bib-make-bibliography, which creates a buffer with all the relevant entries. Works reasonably well, but does handle preamble macros correctly like bibtool. Still pretty useful.
    As pointed out by Marcus (see comment), there is also reftex-create-bibtex-file which also works (with similar limitations).
2 Comments more...

Self preservation…

by on Nov.08, 2014, under Quotes

Since most concepts of science are relatively simple (once you understand them), any ambitious scientist must, in self-preservation, prevent his colleagues from discovering that his ideas are simple too. So, if he can write his published contributions obscurely and uninterestingly enough, no one will attempt to read them, but all will instead genuflect in awe before such erudition.
— Nicolas Vanserg, On the Nature of Mathematical Reports

Taken from Jules Vleugels preface to his phd thesis.

Comments Off more...

An idea short, a decade late

by on Nov.05, 2014, under Quicky

It is somehow strangely satisfying to discover (early enough) that somebody else already solved your problem, and that you were not only a few ideas short, but also a few years/decades late.

Comments Off more...

And it seems like the pollsters got it right.

by on Nov.04, 2014, under Tweet

And it seems like the pollsters got it right.

Comments Off : more...

Happy voting day tomorrow… http://t.co/msM0EDNY…

by on Nov.03, 2014, under Tweet

Happy voting day tomorrow…
youtube.com/watch?v=DU-RuR…

Comments Off : more...

The new DBLP…

by on Oct.31, 2014, under Research

Some people seems to be unaware that there is newer DBLP site, that have more features (among them allowing you to download all your bibtex entries in one go, and better citations formatting). Anyway, the link is http://dblp.dagstuhl.de/db/.

4 Comments more...

Now I am tempted to write a paper titled “Not much…

by on Oct.31, 2014, under Tweet

Now I am tempted to write a paper titled “Not much”, followed by “Even less”, and then “Pfff”. notmuchmail.org

Comments Off : more...

If we are strong our strength would speak for itse…

by on Oct.29, 2014, under Tweet

If we are strong our strength would speak for itself, and if we are weak we could always change the topic.

Comments Off : more...

No love lost between the us administration and Net…

by on Oct.29, 2014, under Tweet

No love lost between the us administration and Netanyahu. Chicken shit had been heard. theatlantic.com/international/…

3 Comments : more...

Getting resizable parentheses to work correctly in LaTeX

by on Oct.26, 2014, under LaTeX, Research

So, writing in latex is sometime a low level affair. One of the irritating thing about latex is its handling of resizable parentheses. The default way to do this is quite tedious:
$ \left( whatever \right) $
The true LaTeX believers think one should never use this directly – instead one should use the amsmath \bigl(, \Bigl(, \Biggl(, \bigr),... commands, and handling resizing of parentheses explicitly, because it looks better (especially for summations with subscripts, automatic resizing of parentheses results in monstrously large parentheses).

Nevetheless, if you are lazy like me, the natural thing is to write a little macro:
\newcommand{\pth}[1]{\left( #1 \right) }
Usage: $\pth{ whatever } $

Which works great, except that it doesn’t:
$$\text{With pth: }f\left( x \right)\text{ compared to regular }f(x).$$ This demonstrates the problem with the spacing generated – latex adds a tiny space before a left command.

There is a tedious way to solve this, but it involves adding negative space to the macro, and then being careful to remove this space when using \pth in a subscript (which is what I was doing for a long time). Luckily, there is a latex package that solves this problem: mleftright. Doing:

\usepackage{mleftright}
...
\newcommand{\pth}[1]{\mleft( #1 \mright) }
...

Works correctly in all situations (at least so far).

3 Comments more...

The latest emacs (24.4) has a browser built in.

by on Oct.23, 2014, under Tweet

The latest emacs (24.4) has a browser built in.

Comments Off : more...

Walk in Crystal lake park: http://t.co/UKvyr1xodW…

by on Oct.20, 2014, under Tweet

Walk in Crystal lake park: sarielhp.org/pictures/peopl… http://t.co/5kPCwnh1Ml

Comments Off : more...

Wo sind meine Millionen?

by on Oct.17, 2014, under Tweet

Wo sind meine Millionen?

From some reason my German learning app things it is an important sentence for me to learn. Hmmm.

5 Comments : more...

Done with the required yearly ethics cleansing. Ho…

by on Oct.15, 2014, under Tweet

Done with the required yearly ethics cleansing. Hopefully this is the closest I would ever get to a genocide.

Comments Off : more...

SoCG 2015: http://t.co/64GevvJb7n

by on Oct.15, 2014, under Tweet

Comments Off : more...

“My wife is more important to me than my sister.Or…

by on Oct.14, 2014, under Tweet

“My wife is more important to me than my sister.Or my mother or my father OK? And she was the mother of my children.” nytimes.com/2014/10/15/us/…

Comments Off : more...

The church of google now accept requests to be bot…

by on Oct.13, 2014, under Tweet

The church of google now accept requests to be both forgiven and forgotten for online sins. Redemption is only for paying customers.

Comments Off : more...

Via reddit: “More Americans have been dumped by Ta…

by on Oct.12, 2014, under Tweet

Via reddit: “More Americans have been dumped by Taylor Swift than have died from Ebola.”

Comments Off : more...

ε-Nets for Halfspaces Revisited. A new note: http:…

by on Oct.12, 2014, under Tweet

ε-Nets for Halfspaces Revisited. A new note: sarielhp.org/p/14/enet/

Comments Off : more...

Plagiarism is to fail to put old words in a new or…

by on Oct.11, 2014, under Tweet

Plagiarism is to fail to put old words in a new order. With new technology it is only a question of time till all orders would be exhausted.

Comments Off : more...

Voted using absentee ballot. You can call me Mr. V…

by on Oct.10, 2014, under Tweet

Voted using absentee ballot. You can call me Mr. Voter now.

Comments Off : more...

Research in progress… Pretty funny. http://t.co/…

by on Oct.09, 2014, under Tweet

Research in progress… Pretty funny. researchinprogress.tumblr.com

Comments Off : more...

US News ranks this universe as #7 on this year lis…

by on Oct.07, 2014, under Tweet

US News ranks this universe as #7 on this year list of the best of all possible worlds.

Comments Off : more...

Nirman Kumar phd thesis… https://t.co/RxpARDZvMn

by on Sep.26, 2014, under Tweet

Nirman Kumar phd thesis…
ideals.illinois.edu/handle/2142/50…

Comments Off : more...

Bus company, 26$ charge, and a lost trial. http:/…

by on Sep.18, 2014, under Tweet

Bus company, 26$ charge, and a lost trial. reddit.com/r/UIUC/comment…

Comments Off : more...

The problem with one trick pony is that sooner or…

by on Sep.17, 2014, under Tweet

The problem with one trick pony is that sooner or later the neighbors, by mistake, are going to run over it with their SUV.

Comments Off : more...

The forest can the hear the sound of a tree fallin…

by on Sep.09, 2014, under Tweet

The forest can the hear the sound of a tree falling, but only if it is caught on an elevator camera and released to the web.

Comments Off : more...

“His Excellency has just referred to the Jewish pe…

by on Sep.08, 2014, under Tweet

“His Excellency has just referred to the Jewish people”
youtube.com/watch?v=Z4UhJp…

1 Comment : more...

Temporary breast enlargement. If we just had a sim…

by on Aug.31, 2014, under Tweet

Temporary breast enlargement. If we just had a similar thing for the brain… nytimes.com/2014/08/21/fas…

1 Comment : more...

So latex output for $i_j$ and $i^{}_j$ is differen…

by on Aug.29, 2014, under Tweet

So latex output for $i_j$ and $i^{}_j$ is different. One way to make the subscript to go lower. That is all.

Comments Off : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...