This is a super quick note on how to reactivate touchpad gestures in Archlinux distributions after hibernation if you use libinput-gestures.
Open you editor, add the following content:
[Unit]
Description=Restart gestures
#!/bin/bash | |
# STEAM DE - Script for starting Steam at login | |
# Copyright (C) 2012 Thomaz de Oliveira dos Reis <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
/** | |
* Selenops | |
* Copyright (c) Federico Zanetello 2017 | |
* Licensed under the MIT license. See LICENSE file. | |
*/ | |
import Foundation | |
import Docopt // marathon: https://github.com/lf-araujo/docopt.swift.git | |
extension Collection where Indices.Iterator.Element == Index { |
Sublime Text is a closed source expansible text editor, which I use for several tasks. I have shown how to use it as a processor for technical texts, a Read Eval Print Loop (REPL) for the Swift Programming Language. Below I will explain how to do the latter with R as well.
Launch the command palette, with Ctrl + Shift + P
and type Install Packages
. Now search for SublimeREPL
and install it.
Sublimetext is an expansible document editor that I use for most of my projects. It can become a complete IDE, provided one installs extensions to it. Here is a way of building Swift Programming Language projects with it.
In Tools > Building System > New Building System
one can create new building instructions. Paste the following:
{
"cmd": ["swift","build"],
"working_dir":"${project_path:${folder}}",
It is possible to keep working in a pandoc project even if one is away from the computer. It is even better if this also allows for remote collaboration. There is a hackish way of doing that, of course mighy_make
is essential part for the workflow. The below instructions will allow you to copy a markdown text into your Dropbox, which will trigger GNUMake
to process the source and generate the output (pdf, epub, Word), which can be then on forwarded. The steps are:
cd
into itmighty_make
with: wget http://tiny.cc/mighty_test -O Makefile
make prepare
Now you need to set the server up, meaning go to the computer in your household that stays online the longer (must be Linux or Mac) and set up a crontab
rule. This is done with the command crontab -e
and add the followi
In large documents it is often useful to have a page reserved for the list of acronyms. I've tried several approaches to this and after a discussion at pandoc-discuss the following solution was suggested. The author suggested the use of the package acronyms
, but I found it easier to work with the package acro.
It will look like:

This solution comes in the form of a mighty_make theme. The steps to get this going is to download mighty_make's testing branch:
It's been a while since the creation of Mighty_Make and I have learned more about creating a builder with GNU's Make. The last published example on quickly creating a document with pandoc was a letter pandoc template. Here it will be revisited, as the template received alterations over the last year. As usual the division between style, content, and tool will be followed and this small text will mainly discuss the style.
This is how it looks:

For the production of the pandoc generated documents a strikingly effective workflow uses Sublime Text 3. This alone should take care of most text edition needs.
In a previous post on how to render complex documents using plain text, it was shown a way to handle titles in the body of the document. This is a good solution for larger documents, but these configurations will only appear if a latex engine is used. There is a way of keeping the title in all pandoc output types as well. That is what will be shown here.
The trick is to use the titling latex package. It allows you to use the standard title variable, which means title will appear in any of the output formats pandoc supports, but also helps to save space and maintain consistency.
I used this method in my PhD thesis and this is how it looked:

Here is an example of how it works. Define the title and authors as you would in any pandoc yaml:
Swift REPL works fine in Sublime Text. It is a simple three step process. First install the language either by downloading the latest version of it at swift.org and extracting it to /usr, or if you are in Arch by issuing yaourt -S swift-bin
.
The second step is to add an option to Swift in Sublime Text REPL. Please note that you have to install Sulime Text REPL first. Launch the Command Palette and browse the packages. Find the SublimeREPL directory and create a config/Swift
directory.
Inside this directory, create the file Default.sublime-commands
with the following content: