Friday, October 24, 2014

Searching for marked (selected) text in Emacs

M-W (to get a copy of the selected text) C-s C-y . Then repeat C-s as needed. Similarly for C-r.

Src: http://stackoverflow.com/questions/202803/searching-for-marked-selected-text-in-emacs

Monday, October 13, 2014

KDE navigation shortcuts

The Go Menu

Go → Previous Page
View the previous page of the document.
Go → Next Page
View the next page of the document.
Go → Beginning of the document (Ctrl+Home)
Go to the beginning of the document.
Go → End of the document (Ctrl+End)
Go to the end of the document.
Go → Back (Alt+Shift+Left)
Go back to the previous view of the document.
Go → Forward (Alt+Shift+Right)
Move forward to the next view of the document. This only works if you have already moved back before.
Go → Go to Page... (Ctrl+G)
Open a dialog which allows you to go to any page of the document.

Source: https://docs.kde.org/stable/en/kdegraphics/okular/menugo.html

Monday, October 6, 2014

Latex: Roman numerals for tables

\renewcommand*\thetable{\Roman{table}}
 
http://latex-community.org/forum/viewtopic.php?f=5&t=1654

Wednesday, October 1, 2014

Bibtex bold / boldface in journal article volume

Declare a function "embolden" if it is not already defined in your .bst

FUNCTION {embolden}
{ duplicate$ empty$
    { pop$ "" }
    { "{\bf " swap$ * "}" * }
  if$
}

Use it in the following pres-existing passage of your .bst:

FUNCTION {format.vol.num.pages}
{ volume embolden field.or.null

Note, the order of declaration is important, so declare the first function upstream of the function where it is used.

Inspiration: aip.bst from http://www.ctan.org/tex-archive/biblio/bibtex/contrib/phy-bstyles