- Copy-paste to split book into separate chapter files (also see split.sh)
- Add non-breaking space in range of numbers
- Fix inline spans broken by a space after a word before the closing
*
- Remove image width and height inherited from images in docx
- Wrap all images in an Electric Book figure blockquote
- Simplify indentation in lists by reducing space after list marker to one space
- [Remove non-kramdown markdown
^
around superscripts after numbers](#remove-non-kramdown-markdown--around-superscripts-a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<display_options> | |
<platform name="*"> | |
<option name="specified-fonts">true</option> | |
<option name="interactive">false</option> | |
<option name="fixed-layout">false</option> | |
<option name="open-to-spread">false</option> | |
<option name="orientation-lock">none</option> | |
</platform> | |
</display_options> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="font-family: sans-serif;"> | |
<? var data = valid(); ?> | |
<form id="form" name="form"> | |
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?> | |
<? for (var i = 0; i < data.length; i++) { ?> | |
<? for (var j = 0; j < data[i].length; j++) { ?> | |
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br> | |
<? } ?> | |
<? } ?> | |
<? } else { ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This InDesign Startup Script saves an IDML copy of the INDD file you're saving. | |
// Save it in your Startup Scripts folder. For how to do that, open the tutorial | |
// for your version of InDesign here: https://www.adobe.com/devnet/indesign/documentation.html | |
// and look for the section titled 'Installing scripts'. | |
// Thanks to fabiantheblind here http://graphicdesign.stackexchange.com/a/71736/67488 | |
// for the original script, which I've adapted to work as a startup script. | |
// Set a targetengine to make this work | |
#targetengine "session" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Workaround for EPUB2's XHTML not supporting `start` attribute | |
// In HTML, regex search-replace | |
// <ol (.*?)start="(\d+)" | |
// with | |
// <ol \1class="start-\2" | |
// Create 20 options for starting numbering | |
@for $i from 2 through 20 { | |
$start: $i + 1; | |
// If we the list ol to start at 1, the first li will be 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: pandoc-docx-md.bat | |
:: | |
:: Don't show these commands to the user | |
@ECHO off | |
:: Set the title of the window | |
TITLE Convert docx to markdown with Pandoc | |
:: Select file marker | |
:selectfile | |
:: Clear any preexisting filename variables | |
SET filename= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# ############################################### | |
# This script updates all my repos regularly. | |
# It's easier than using cron, where environments | |
# and permissions are a headache. | |
# ############################################### | |
# | |
# Ask how many seconds to leave between each update. | |
echo "How many seconds between each update?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Reset PrinceXML CSS (XHTML stylesheet) */ | |
h1, h2, h3, h4, h5, h6 { | |
font-weight: inherit; | |
font-size: inherit; | |
} | |
address { | |
font-style: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin underlined($thickness,$start-position,$end-position,$vertical-position) { | |
display: inline-block; | |
position: relative; | |
&:after { | |
content: ""; | |
position: absolute; | |
display: inline-block; | |
left: $start-position; // 0 is flush with start of text | |
right: $end-position; // 0 is flush with end of text | |
bottom: $vertical-position; // Positive units move underline closer to text, negative units further away |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Page setup for Lightning Source colour pages | |
* -------------------------------------------- | |
* | |
* Removes bleed on inside edges | |
* Adjusts trim accordingly | |
* Removes crop marks as required by LS | |
* Uses the @left and @right margin boxes to obscure elements (e.g. full-bleed images) | |
* that otherwise bleed into the margin area. | |
* YMMV | |
* |
OlderNewer