Changes

Jump to navigation Jump to search
1,192 bytes added ,  13:18, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
< General hints for converting from LaTeX to Context can be found in * [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] by [Main Pagehttp://www.berenddeboer.net/ Berend de Boer]A Vietnamese version is available at [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS] >.
General hints for converting from LaTeX to Context can be found in the [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] manual, by [http://www.berenddeboer.net/ Berend de Boer] This page offers specific advice on a number of special things that you may be doing with LaTeX, but are not so obvious to do with ConTeXt.
=== Document and Page Layout ===
* [[Document Titles]]: Title blocks, as in the standard LaTeX article.
* [[LaTeX Thanks|The \thanks command{}]] adds footnoted information, usually to author blocks.
* [[Article Abstracts]]: Abstracts from the standard LaTeX article or report.
* [[KOMA-scrartcl Type Area]]: An interesting automated type-area setup.
* [[Flush bottom]]
* [[Vertically Centered Boxes]]: Centering parboxes and tables in a line of text.
=== Text Formatting ===
* [[Bold small caps]]
* So-called (by plain TeX and LaTeX) [[French spacing]]
=== Command syntax Idiomatic Differences Between ConTeXt and LaTeX ======= Brackets and Braces ==== {| border="1" cellspacing="0" cellpadding="2"|-| || {..} || [..] |-| LaTeX || command arguments || optional arguments|-| ConTeXt || typeset material; scope or range of the command (the text acted upon) is placed between curly brackets || setups instructions and metadata (options)|-|}
''Looks similar==== 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 LaTeXallows 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 forprocessing them internally relies on two differentmechanisms.''Therefore, setups like {{cmd|itemize}} usuallyallow two sets of optional arguments[http://article.gmane.org/gmane.comp.tex.context/75276], thecomma list preceding the assignment:
'''LaTeX''':<texcode>"Command arguments are enclosed in curly braces { and },except for optional arguments, which are enclosed in squarebrackets [ and ]."\starttext
'''ConTeXt''':\startitemize [R,2*broad][ start=11, before=\startlinecorrection,"A command is often followed by setups or by text. Setups after=\stoplinecorrection,are placed between brackets ([]). The scope or range ofthe command \item Foo, the text acted upon \item bar, is placed betweencurly brackets ({}) \item baz."\stopitemize
In other words,\stoptext</texcode>
* arguments The ConTeXt interface definitions(collected by Wolfgang in {} pairs are typeset materialthe [https://bitbucket.org/wolfs/commands/overview macro reference])use a special notation to indicate whether an argumentexpects assignment or list syntax:<pre>\defineframedtext [...] [...] [..,.=.,..]* arguments in </pre>where <code>[...] are setup instructions </code> stands for the <em>list</em> type and metadata<code>[..,.=.,..]</code> denotates an <em>assignment</em>.
=== Programming ===
* [[LaTeX Math in ConTeXt]]
 
=== Copy-Paste text between LaTeX and ConTeXt ===
It is sometimes useful to have the same source for a latex LaTeX document and context a ConTeXt presentation (or context a ConTeXt document and latex a LaTeX presentation). However, the commands used by both are very different. Can someone describe some definations definitions in context ConTeXt that implement the core functionality of latex LaTeX commands like \section et al, \textbf et al, \bfseries et al and \begin \end pairs?{{Howto}}
''<code>\section</code> works the same way as in LaTeX, for mathematics take a look into [[LaTeX Math in ConTeXt]], use <code>\bf</code> instead of <code>\textbf</code> for both LaTeX and ConTeXt (or <code><nowiki>\def\textbf#1{{\bf #1}}</nowiki></code>) and as a general rule: use as many plain TeX macros as possible instead of LaTeX-specific macros. <code>\begin ... \end</code> only works for math as far as I know. See also other documents listed above or ask on the mailing list.''
 
<!--
* [[LaTeX&ConTeXt/Introduction|Introduction]]
-->
== Functionality of Latex Packages in Context ==
A Vietnamese version of <i>LaTeX in proper ConTeXt</i> is available at * [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS[Latex Packages]].
== Functionality of Latex Packages in Context ==* [[Latex PackagesCategory:From LaTeX]]

Navigation menu