Changes

Jump to navigation Jump to search
1,731 bytes added ,  11:57, 22 March 2012
added some remarks concerning the list-assignment issue
* So-called (by plain TeX and LaTeX) [[French spacing]]
=== Different use of brackets in Idiomatic Differences Between ConTeXt and LaTeX ======= Brackets and Braces ====
{| border="1" cellspacing="0" cellpadding="2"
|-
|}
 
==== Optional Arguments and Setups ====
In ConTeXt, arguments may be either
[[System Macros/Comma Separated Lists|comma separated lists]]
or [[System Macros/Key_Value_Assignments|assignments]], but
<em>not</em> both. The following example demonstrates that LaTeX
allows either syntax in optional arguments:
<pre>
\documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
</pre>
(From the [http://mirrors.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf KOMA-Script manual].)
ConTeXt, however, distinguishes strictly between both types for
processing them internally relies on two different
mechanisms. Therefore, setups like <cmd>itemize</cmd> usually
allow two sets of optional arguments
[http://article.gmane.org/gmane.comp.tex.context/75276], the
comma list preceding the assignment:
 
<texcode>
\starttext
 
\startitemize [R,2*broad][
start=11,
before=\startlinecorrection,
after=\stoplinecorrection,
]
\item Foo,
\item bar,
\item baz.
\stopitemize
 
\stoptext
</texcode>
 
The ConTeXt interface definitions
(collected by Wolfgang in the [https://bitbucket.org/wolfs/commands/overview macro reference])
use a special notation to indicate whether an argument
expects assignment or list syntax:
<pre>
\defineframedtext [...] [...] [..,.=.,..]
</pre>
where <code>[...]</code> stands for the <em>list</em> type and
<code>[..,.=.,..]</code> denotates an <em>assignment</em>.
=== Programming ===
== Functionality of Latex Packages in Context ==
* [[Latex Packages]]
code>
code>\textbf
/pre>
(From the [http://mirrors.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf KOMA-Script manual].)
ConTeXt, however, distinguishes sharply between both for
processing them internally relies on two different
mechanisms. Therefore, setups like
ConTeXt/Basic Latex|Basic Latex]]
* [[LaTeX
188

edits

Navigation menu