Miscellaneous - ionathanch/ionathanch.github.io GitHub Wiki

Writing control characters

To copy character 0x0n:

  • Powershell: "($[char]n)" | clip
  • Unix shell: echo -e "\xn" | xclip -selection clipboard
  • On Linux: Ctrl-Shift-u n

Displaying Unicode in Windows terminals

Run chcp.com 65001 (details).

Disabling middle-click to paste

From https://unix.stackexchange.com/a/277488:

  1. Install xsel, xbindkeys, xdotool
  2. In ~/.xbindkeysrc, add:
    "echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
    b:2 + Release
    
  3. Add xbindkeys to .zprofile and run source .zprofile

Enabling closed-source VSCode extensions

Set the following in /usr/lib/code/product.json:

"extensionsGallery": {
  "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery/",
  "itemUrl": "https://marketplace.visualstudio.com/items/"
}

Troubleshooting LaTeX for arXiv

See also Considerations for TeX Submissions and Common Mistakes.

Problem Solution
Unable to convert to PDF. Add \pdfoutput=1 to beginning of main file.
LaTeX Error: Option clash for package hyperref. Add override file 00README.XXX with the line nohypertex.
Package xkeyval Error: printccs' undefined in families @ACM@topmatter@'. Remove printccs from settopmatter.
Package minted Error: You must invoke LaTeX with the -shell-escape flag. Compile with \usepackage[finalizecache,cachedir=.]{minted}; include all *.pygtex, *pygstyle files; recompile and submit with \usepackage[frozencache,cachedir=.]{minted}.
arXiv unable to run graphviz. Generate DOT graph externally and replace graph with image.
Missing or broken bibliography. Include .bbl file generated from .bib.
Undefined control sequence. <argument> \mdseries@tt Add \makeatletter\providecommand{\mdseries@tt}{}\makeatother /before/ other packages.
⚠️ **GitHub.com Fallback** ⚠️