ttscoff / cheaters

Customizable cheat sheet system for OS X
466 stars 109 forks source link

JavaScript cheatsheet missing in cheat.html & proposal of Quotations cheatsheet #22

Open jsmm opened 9 years ago

jsmm commented 9 years ago

Hi, <li><a href="cheatsheets/JavaScript.md">JavaScript</a></li> is missing in cheat.html.

I also copy a draft for a conversion of citations from MultiMarkDown 4 to LaTeX cheatsheet, in case you find it convenient to edit and include it.

Thank you.

### Conversion of citations from MultiMarkDown 4 to LaTeX

<!--
### Move
(← moves in the opposite direction. Use xSHIFT to hightlight)

| Command | Description|
| -- | -- |
| xOPT → |Next word|
| xCTRL → |Next subword |
| xCMD → |End of line|

-->

### Parenthetical citations
| MMD4 | natbib | Output |
| --|--|
| [#jon90] | \citep{jon90} | (Jones et al., 1990) |
| [#jon90][] | \citep{jon90} |
| [chap. 2][#jon90] | \citep[chap. 2]{jon90} | (Jones et al., 1990, chap. 2) |
| [chap. 2\]\[véase][#jon90] | \citep[chap. 2][véase]{jon90} | (véase Jones et al., 1990, chap. 2) |
| | \citep[véase][]{jon90} | (véase Jones et al., 1990) |

### Textual citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90;] | \citet{jon90} | Jones et al. (1990) |
| [#jon90;][] | \citet{jon90} | |
| [chap. 2][#jon90;] | \citet[chap. 2]{jon90} | Jones et al. (1990, chap. 2) |
| [chap. 2\]\[véase][#jon90;] | \citet[chap. 2][véase]{jon90} | |

### Full author list
| MMD4 | natbib | Output |
|--|--|
| | \citep\ *{jon90} | (Jones, Baker, et Williams, 1990) |
| | \citet\*{jon90} | Jones, Baker, et Williams (1990) |

### Multiple citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90,james91] | \citep{jon90,jam91} | (Jones et al., 1990; James et al. 1991) [1] |
| | \citep{jon90,jon91} | (Jones et al., 1990, 1991) |
| | \citep{jon90a,jon90b} | (Jones et al., 1990a,b) |
| | \citet{jon90,jam91} | Jones et al. (1990); James et al. (1991) |

[1] In Scrivener, it is possible to write _[][#jon90],[][#james91]_ if we add to the Compile | Replacements dialog:
][],[# --> ,
],[][# --> ,

### Partial citations
| MMD4 | natbib | Output |
| --|-- |
| | \citeauthor{jon90} | Jones et al. |
| | \citeauthor*{jon90} | Jones, Baker, et Williams |
| | \citeyear{jon90} | 1990 |
| | \citeyearpar{jon90} | (1990) |

### Forcing upper cased names
| MMD4 | natbib | Output |
| --|-- |
| | \Citep{dRob98} | (Della Robbia, 1998) |
| | \Citet{dRob98} | Della Robbia (1998) |
| | \Citeauthor{dRob98} | Della Robbia |

### Including a source in bibliography that was not cited
| MMD4 | natbib | Output |
| --|-- |
| [Not cited][#jon90] | |
ttscoff commented 9 years ago

cheat.html is only for the demo, it excludes quite a few. You should be using index.html to build your custom set.

I've saved the cheatsheet to look over, but I know very little about LaTeX. I can't easily tell if the escaped characters are all supposed to be escaped and vice versa. Have you tested this fully in Cheaters and confirmed that the output is as expected?

Thanks, Brett

On 25 Aug 2015, at 3:00, jsmm wrote:

Hi, <li><a href="cheatsheets/JavaScript.md">JavaScript</a></li> is missing in cheat.html.

I also copy a draft for a conversion of citations from MultiMarkDown 4 to LaTeX cheatsheet, in case you find it convenient to edit and include it.

Thank you.

### Conversion of citations from MultiMarkDown 4 to LaTeX

<!--
### Move
(← moves in the opposite direction. Use xSHIFT to hightlight)

| Command | Description|
| -- | -- |
| xOPT → |Next word|
| xCTRL → |Next subword |
| xCMD → |End of line|

-->

### Parenthetical citations
| MMD4 | natbib | Output |
| --|--|
| [#jon90] | \citep{jon90} | (Jones et al., 1990) |
| [#jon90][] | \citep{jon90} |
| [chap. 2][#jon90] | \citep[chap. 2]{jon90} | (Jones et al., 1990, 
chap. 2) |
| [chap. 2\]\[véase][#jon90] | \citep[chap. 2][véase]{jon90} | 
(véase Jones et al., 1990, chap. 2) |
| | \citep[véase][]{jon90} | (véase Jones et al., 1990) |

### Textual citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90;] | \citet{jon90} | Jones et al. (1990) |
| [#jon90;][] ] | \citet{jon90} | |
| [chap. 2][#jon90;] | \citet[chap. 2]{jon90} | Jones et al. (1990, 
chap. 2) |
| [chap. 2\]\[véase][#jon90;] | \citet[chap. 2][véase]{jon90} | |

### Full author list
| MMD4 | natbib | Output |
|--|--|
| | \citep\ *{jon90} | (Jones, Baker, et Williams, 1990) |
| | \citet\*{jon90} | Jones, Baker, et Williams (1990) |

### Multiple citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90,james91] | \citep{jon90,jam91} | (Jones et al., 1990; James 
et al. 1991) [1] |
| | \citep{jon90,jon91} | (Jones et al., 1990, 1991) |
| | \citep{jon90a,jon90b} | (Jones et al., 1990a,b) |
| | \citet{jon90,jam91} | Jones et al. (1990); James et al. (1991) |

[1] In Scrivener, it is possible to write _[][#jon90],[][james91]_ if 
we add to the Compile | Replacements dialog:
][],[# --> ,
],[][# --> ,

### Partial citations
| MMD4 | natbib | Output |
| --|-- |
| | \citeauthor{jon90} | Jones et al. |
| | \citeauthor*{jon90} | Jones, Baker, et Williams |
| | \citeyear{jon90} | 1990 |
| | \citeyearpar{jon90} | (1990) |

### Forcing upper cased names
| MMD4 | natbib | Output |
| --|-- |
| | \Citep{dRob98} | (Della Robbia, 1998) |
| | \Citet{dRob98} | Della Robbia (1998) |
| | \Citeauthor{dRob98} | Della Robbia |

### Including a source in bibliography that was not cited
| MMD4 | natbib | Output |
| --|-- |
| [Not cited][#jon90] | |

Reply to this email directly or view it on GitHub: https://github.com/ttscoff/cheaters/issues/22