I like to write my Latex docs in Atom and use Latexmk to watch for changes and recompile everything automatically. The problem is that on macOS, there aren’t that many pdf viewers supporting automatic file reload (e.g. in Adobe Acrobat there is no such feature). I was using Skim, which can reload changed files, but it for some reason this no longer works: Skim manages stops syncins the file after the first few updates (no idea why).
A solution is to open the pdf in TeXShop and keep editing the tex file in Atom, as described in this StackExchange post. TeXShop steals window focus when it reloads the pdf, which is very annoying – fortunately, this can be prevented by executing the following in the terminal (kudos to this comment):
defaults write TeXShop BringPdfFrontOnAutomaticUpdate NO
A while ago I was thinking about how to illustrate the input data in Shape from sensors — in 2D, the input is the unit tangent field parametrized by arc-length.
The effect is achieved by interpolating between the input curve and a straight line with the same length in the tangent space (using spherical linear interpolation).
Here’s a demonstration of the difference between two common unit vector interpolation schemes.
The first option is to use linear interpolation
in the ambient Euclidean space, followed by a normalization step. Simple and fast,
but the angular velocity is not uniform.
\[\mathbf v = (1-t) \, \mathbf v_0 + t \, \mathbf v_1\]
Spherical linear interpolation
produces uniform angular velocity at the expense of non-linear computation.
Slerp is commonly used to interpolate between rotations represented by quaternions.
Most curve network datasets found online contain only positions and not surface normals along the curves (Cycles,
True2Form,
ILoveSketch).
When I needed to create a bunch of synthetic curve networks with normals to test our surfacing algorithm, I thought this could be easily done using Blender:
Select the network on a mesh
Separate the network from the mesh using the Separation tool (P)
Export the network as an OBJ file (including the normals)
If for some reason you have two pdfs with separated odd and even pages of a document, the following command zippers them into a single pdf.
(Assuming odd.pdf and even.pdf have the same number of pages; in this case 8.)