Difference between revisions of "User:Adityam"

From Wiki
Jump to navigation Jump to search
m (Todo for vim module)
(articles and modules)
Line 1: Line 1:
 +
= Articles on ConTeXt =
 +
 +
== PracTeX Journal ==
 +
 +
* Creating homework assignments in ConTeXt [http://www.tug.org/pracjourn/2006-4/mahajan]
 +
 +
== MAPS ==
 +
 +
* [http://www.ntg.nl/maps/34/06.pdf Display math in ConTeXt] (also available as a [http://dl.contextgarden.net/myway/context-latex-math.pdf My Way])
 +
* [http://www.ntg.nl/maps/36/10.pdf Theorems in ConTeXt]
 +
 +
== TUGBoat ==
 +
 +
source of articles is available at [http://github.com/adityam/tugboat-articles github]
 +
 +
* [http://www.tug.org/TUGboat/Articles/tb28-2/tb89mahajan.pdf Font Styles] (wikified as [[Font Switching]])
 +
* [http://www.tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf Table macros]
 +
* [http://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf Table macros II ]
 +
* http://www.tug.org/TUGboat/Articles/tb29-2/tb92mahajan.pdf Indentation]
 +
* [https://www.tug.org/members/TUGboat/tb30-2/tb95mahajan-cmath.pdf Integrating Unicode and OpenType math in ConTeXt ]
 +
* [https://www.tug.org/members/TUGboat/tb30-2/tb95mahajan-luatex.pdf LuaTeX: A user's perspective] (wikified as [[Programming in LuaTeX]])
 +
 +
== My Way ==
 +
* [http://dl.contextgarden.net/myway/mathalign.pdf Using \startalign and friends]
 +
* [http://dl.contextgarden.net/myway/mathalign.pdf Extensible arrows in ConTeXt ]
 +
* [http://dl.contextgarden.net/myway/context-latex-math.pdf Display math in ConTeXt]
 +
 +
= ConTeXt modules =
 +
 +
* [http://modules.contextgarden.net/vim Vim syntax highlighting]
 +
* [http://modules.contextgarden.net/mathsets Math sets]
 +
* [http://modules.contextgarden.net/simpleslides Math sets] (also at github [http://github.com/adityam/simple-slides])
 +
 +
= Random notes =
 
These are some notes on things missing in ConTeXt math support
 
These are some notes on things missing in ConTeXt math support
  

Revision as of 18:23, 13 February 2010

Articles on ConTeXt

PracTeX Journal

  • Creating homework assignments in ConTeXt [1]

MAPS

TUGBoat

source of articles is available at github

My Way

ConTeXt modules

Random notes

These are some notes on things missing in ConTeXt math support

  • In
\startformula \startalign[m=2,distance=...]

there is no way to divide the space equally between left, middle, and right sides.

  • Why do we have
\predisplaypenalty     = \zerocount

in core-mat.tex? Plain TeX defaults to 10,000. A zero value leads to orphan equations.


  • Pr has wrong limits.
\startformula
  \Pr^g(x)
\stopformula

This is also wrong in plain tex.

  • Splitting of equations across pages should be configurable. Right now either you can make the equation split anywhere, or not split at all. There needs to be some way of specifying what are "good" places to split across a page. This can be done by adding a penalty inside a \noalign after each \cr in \halign, and let a macro configure the amount of penalty.
  • The current math alignment macros do not take care of proper placement of equation numbers. Equation number just get placed at the beginning or end of the line, without checking if there is space in the line or not. Maybe the only correct way to do this is following what amsmath does: use a two pass mechanism, the first pass measures the width of each line, and the second pass places the formula. (See the placecontent macros used in tabulations)
  • Add stackrel to core-mat.tex
  • Correct the dostartmathmatrix macro.
  • Support a configuration for limits or nolimits in front of int and relatives.
  • Change the unicode characters for double integral and colonsim
  • Should startsubstack have cramped style?
  • Add stackrel to core-mat.

Zsh completion

Below is quick zsh completion script for texexec. You must be using zsh to use this file. Save the file somewehre, and add source <filename> in your .zshrc.

 texexec_completer() {
   local expl 
 
   _description files expl 'TeX File'
   _files "$expl[@]" -g '*.tex'
 
   _arguments -s : \
     '--check[check versions]' \
     '--figures[generate overview of figures]' \
     '--listing[list of file content]' \
     '--make[make formats]' \
     '--modules[generate module documentation]' \
     '(--mpgraphic --mpstatic)'{--mpgraphic,--mpstatic}'[process mp file to stand-alone graphics]' \
     '--mptex[process mp file]' \
     '--mpxtex[process mpx file]' \
     '(--pdfarrange --pdfcombine --pdfcopy --pdfselect --pdfsplit --pdftrim)'{--pdfarrange,--pdfcombine,--pdfcopy,--pdfselect,--pdfsplit,--pdftrim}'[post process a pdf file]' \
     '--process[process file]' \
     '--help[produce a summary of all switches and arguments]' \
     '(--alpha --beta)'{--alpha,--beta}'[run test release of ConTeXt]' \
     '(--arrange --noarrange)'{--arrange,--noarrange}'[process and arrange]' \
     '(--automprun,--nomprun)'{--automprun,--nomprun}'[intermediate MP run]' \
     '(--batchmode --nonstopmode --nompmode --silendmode)'{--batchmode,--nonstopmode,--nompmode,--silentmode}'[Modes]' \
     '(--keep,--purge,--purgeall)'{--purge,--purgeall,--keep}'[temporary file handling]' \
     '(--pdftex --luatex --xetex)'{--pdftex,--luatex,--xetex}'[TeX engine]' \
     '--color[enable color (when not yet enabled)]' \
     '(--once --simplerun)'{--once,--simplerun} \
     '--verbose[Give detailed information]' \
     '--final[add a final run without skipping]' \
     '(--centerpage --markings --mkii --paranoid --pretty --screensaver --texutil --utfbom --xpdf --combine --draft --fast --fastdisabled --forcempy--forcetexutil--forcexml --fullscreen --local --alone--nobackend--nobanner--noctx--noduplex--nomapfiles--notparanoid)'{--centerpage,--markings,--mkii,--paranoid,--pretty,--screensaver,--texutil,--utfbom,--xpdf,--combine,--draft,--fast,--fastdisabled,--forcempy,--forcetexutil,--forcexml,--fullscreen,--local,--alone,--nobackend,--nobanner,--noctx,--noduplex,--nomapfiles,--notparanoid}
 }
 
 compdef texexec_completer texexec

This is what the output looks like, after pressing <tab> after texexec.

Screenshot-Terminal.png

Bugs in Auctex ConTeXt mode


NOTE: These are temporary notes on the bugs that I have found in the ConTeXt mode of Auctex. I will post them to the emacs mailing list when I am bit more comfortable with emacs --Aditya
  • Esc-q does not format correctly inside a \startbuffer ... \stopbuffer environment. If you press Esc-q, then the contents of the environment are intented, while they should not be

To-do list for vim module

  • Say in the documentation that write18 should be enabled.
  • Say in the documentation that you get colored output only if you enable colors