Difference between revisions of "User:Adityam"

From Wiki
Jump to navigation Jump to search
m (Update links)
m (Updated links)
Line 21: Line 21:
* [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-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] (was wikified as [http://wiki.contextgarden.net/index.php?title=Programming_in_LuaTeX&oldid=13347 Programming in LuaTeX])
* [https://www.tug.org/members/TUGboat/tb30-2/tb95mahajan-luatex.pdf LuaTeX: A user's perspective] (was wikified as [http://wiki.contextgarden.net/index.php?title=Programming_in_LuaTeX&oldid=13347 Programming in LuaTeX])
* [https://www.tug.org/members/TUGboat/tb31-1/tb97mahajan.pdf Conditional processing] (wikified as [[Modes]])
* [http://www.tug.org/TUGboat/tb31-1/tb97mahajan.pdf Conditional processing] (wikified as [[Modes]])
* [http://www.tug.org/TUGboat/tb32-2/tb101mahajan.pdf Paper setup] (wikified as [[PaperSetup]])
* [http://www.tug.org/TUGboat/tb32-2/tb101mahajan.pdf Paper setup] (wikified as [[PaperSetup]])
* [https://www.tug.org/members/TUGboat/tb34-1/tb106mahajan.pdf Images] (wikified as [[Using Graphics]])
== My Way ==
== My Way ==

Revision as of 06:10, 24 April 2013

Articles on ConTeXt

PracTeX Journal



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.

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.




Combine the different info about buffers