ConTeXt resembles LaTeX in being a system of TeX macro packages and helper scripts. ConTeXt has a fairly centralised development model, when compared to LaTeX's bazaar model, with much popular functionality provided by user-contributed packages. ConTeXt targets small publishers, aiming to provide ...
4
votes
1answer
216 views
semantic proof trees in ConTeXt
I want to draw logic proof trees in ConTeXt. Specifically, I want to be able to draw trees like this:
I am aware that there are nice ways of doing this in LaTeX, and that the question What is the ...
0
votes
2answers
67 views
How do I add a static number to \recurselevel?
I currently have:
\dorecurse{8}{
\startcombination[3*3]
{\externalfigure[confcard.pdf][page=\recurselevel, width=98mm]}}
{\externalfigure[confcard.pdf][page=\recurselevel+2, width=98mm]}{}
...
7
votes
1answer
180 views
How to prevent tables from being wider than the text width in ConTeXt?
I have some tables like this:
\starttabulate[|l|l|]
\HL
\NC Title 1 \NC Title 2 \NC\NR
\HL
\NC This is a sentence. \NC This is another sentence. \NC\NR
\HL
\stoptabulate
...
2
votes
1answer
83 views
How do I make text not overlap layers or otherwise define a first page with sidebar and image-based footer?
I'm producing a letterhead and having rather a lot of trouble dropping all 7 necessary logos into the first page.
While I have quite successfully laid out the first page with setframedlayer and ...
4
votes
1answer
90 views
How can I randomize a text itemization in ConTeXt?
I've defined my item groups as:
\defineitemgroup[institm]
\setupitemgroup[institm][1][text][symbol=2, indentnext=no, ]
And
\startinstitm
{\bf Contributors }
\item Foo Pty Ltd {\sc nsw}
...
4
votes
2answers
430 views
How to switch page numbers to/from Roman numerals
I am trying to have the page numbering of the front matter in lower case Roman and the rest in Arabic numbers. I also don't want the number on the title page (though it should be counted). According ...
1
vote
1answer
156 views
ConTeXt equivalent of LaTeX samepage [duplicate]
Possible Duplicate:
What is the proper way to prevent text from splitting across columns and pages?
I'd be surprised if this has not been asked a zillion times before, but really I couldn't ...
1
vote
1answer
391 views
How to setup this layout
I am trying to replicate this page layout using context, but I am struggling.
I have read the context manual and tried changing parameters to see what happens, but I was unable to sort out the logic.
...
2
votes
2answers
362 views
Sans Serif headings, Serif Body text
I'm using ConTeXt, with XeTex.
So I'm compiling my document: texexec --xetex foo.tex
I would like to follow the convertion of having my headings all in Sans Serif,
and my body text in Serif.
I want ...
6
votes
1answer
264 views
How to achieve nested alignment of formulas?
I'm trying to get a nested alignment in math mode:
+----------------------------------------------------------------+
| ..... & ................ |
| ...
2
votes
1answer
160 views
Undefined control sequence when using \setupinteraction and \externalfigure
When I use \externalfigure after \setupinteraction[state=start], I get an error message about an Undefined control sequence. Here is a minimal working example (filename prob.tex):
\starttext
...
1
vote
0answers
101 views
How to move the chapter- and section number in ConTeXt [duplicate]
I want to create a margin chapter- and section number in Context, like in the offical manual. How can I get this done?
This is what I tried for the chapter number.
\define[2]\PlaceChapter{
...
2
votes
1answer
286 views
How to show the \title headings in ToC?
My document is organized as following:
\title[Some title]
\section[Section 1]
\section[Section 2]
etc.
When I use \completecontents command to print a ToC, I only get the section titles (which are ...
6
votes
1answer
128 views
Compound/nested section numbers in ConTeXt: how to omit the top level? E.g. 1.2.1 --> 2.1
In the following MWE, titles have no displayed number, but sections (the second level) are still numbered 1.1, 1.2, etc, because the titles have an internal number.
I would like the sections to ...
3
votes
0answers
101 views
Providing Arguments to a Start-Stop
Mostly for the sake of doing so, I am writing a presentation in ConTeXt. I thought that defining a start-stop would be a good way to split up slides. So I have something like:
...
5
votes
1answer
469 views
AMSsymb in ConTeXt
Where can I find some of the functionality, namely the symbols, from the LaTeX package AMSSymb in ConTeXt? For example, how do I place a \blacksquare? Is there an equivalent in ConTeXt? I didn't find ...
4
votes
1answer
588 views
Context: Vertical-Align Image in Table Cell
I'd like to vertically center the alignment of an image in a table cell.
The Text is (like usual) vertically centered, but the images continue to stick to the top of the cell.
\starttable[|l|l|]
...
4
votes
1answer
110 views
Does ConTeXt have a language code for Korean?
ConTeXt has various language codes, listed in this article at the ConTeXt wiki. I do not see Korean listed. I have tried \language[ko], and the document compiles, but I have no way to verify if it is ...
4
votes
4answers
1k views
How to sort the order of pages so that they can be printed in a folded book?
I am using ConTeXt to print a book. Each page is A5, but the print store can only print on A4 paper, so they print 2 pages on each side of the A4 paper. I used this code to specify the layout:
...
5
votes
2answers
114 views
How to add whitespace after every item in a list in ConTeXt?
I have a document containing some questions. I need to leave readers space to write a few sentences as an answer.
I am using this code:
\startitemize[r]
\item Where do most bears live?
\item ...
2
votes
1answer
273 views
How to create custom section titles with a “<title> <number>” format in ConTeXt?
I am making a book, with chapters titled "Week 1", "Week 2", "Week 3", etc., and sections titled "Activity 1", "Activity 2", "Activity 3", etc., and other sections titled "Presentation 1", ...
9
votes
2answers
378 views
How, in ConTeXt, can I get body text to align flush to the outside?
I'm using ConTeXt Mk IV, and I'd like the text in a two-page document to line up like so:
+--------+--------+
+ + +
+ xxx + xx +
+ xxxx + xxx +
+ xx + +
+ ...
4
votes
1answer
80 views
How to check if it is the first time or last time a macro has been used in ConTeXt?
I have some text in my document which appears repeatedly many times throughout the document, so I have defined a custom macro, e.g.:
\define\mymacro{
\section{A}
There is some text.
...
5
votes
1answer
364 views
How to add illustrations before chapter titles in ConTeXt?
I would like to add some TIFF format illustrations to my document. These have three features, though, which I do not know how to implement:
These fill the entire page, ignoring margins.
They appear ...
2
votes
1answer
123 views
How to place text between two columns and which breaks the rule dividing them in ConTeXt?
I have two paragraphs of instructions and I need to indicate to readers that they have a choice of one or another. I am using this code, to put the data into different columns, with a line between:
...
5
votes
1answer
122 views
How to replace specific words with an underscore equal in length to the original word replaced in ConTeXt?
My problem is identical to Phantom and line break, however, I am using ConTeXt.
I am creating a cloze test, e.g.:
Frogs have four ____ and two eyes.
The original text in the source appears like ...
2
votes
1answer
82 views
How to install ConTeXt from CD-ROM?
I would like to prepare a current version of ConTeXt on a CD-ROM, so that it can be installed on Debian, in some emergency situation, i.e. when Internet access is unavailable. The typical installation ...
6
votes
2answers
198 views
Is it possible to have thin lines or crop marks to help cut the pages with \setuparranging?
I have something like this:
\setuppagenumbering[state=stop]
\setuppapersize[A5,landscape][A4]
\setuplayout[topspace=1cm,backspace=1cm,
header=0mm,footer=0mm,
width=middle,height=middle]
...
4
votes
1answer
133 views
formatting natural table header with conTeXt
I am struggling with my table formatting a bit and hope there is someone around here that can give me some help.
This is the table I have at the moment.
\bTABLE
\startTABLEhead
\bTR \bTD ...
5
votes
1answer
428 views
Use .otf/.ttf in ConTeXt MKiV/LuaTeX
I would like to use an .otf Font for my document which I typeset in ConTeXt MKiV. Sadly I was not able to change the font. I set export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts and ran mtxrun ...
7
votes
1answer
241 views
Context: Placing float (figure) and text-top at same height
I would like my figures to be flush with the text line beside them if they are positioned left or right and top. Currenty the top edge of the figures are roughly flush with the 2nd line. This seems to ...
2
votes
0answers
102 views
How to snap the page dimensions to the grid in ConTeXt? [closed]
In ConTeXt, I am using the setting grid=yes to make all of the text in a document use grid typesetting. ConTeXt seems to automatically adjust the height of this grid based on the size of the font ...
4
votes
1answer
238 views
Creating a grid which fills available text area on a page in ConTeXt?
I have some pages containing only a small paragraph at the top and a large empty area where readers can add notes or draw, e.g.:
_______________
| |
| This is some |
| text in a pa- |
...
4
votes
1answer
479 views
Why are all Heiti fonts appearing below the baseline in ConTeXt?
When using Chinese, heiti (黑体) fonts are the equivalent of sans serif. They generally have simple lines.
I want to use a heiti font for all of the titles and description labels in my document, ...
11
votes
2answers
409 views
Status of TiKz with ConTeXt MkIV
Whats the recent status of TiKz support in ConTeXt MkIV? I'm asking because
in pgfmanual 2.10 on page 25 it says:
Note that pgf/TikZ is not supported by recent ConTEXt versions (like mark IV, the ...
9
votes
1answer
244 views
Discontinuous table rules in ConTeXt
How to set up a table with discontinuous horizontal rules?
As an example I used a table from another answer:
My table still lacks the interrupted rules. Another thing is the rule above
“Total”. ...
5
votes
2answers
251 views
How to retrieve a value which is set later on in the document?
According to What is the recommended way to assign a value to a variable and retrieve it for later use?, in ConTeXt, one can use \setvalue{name}{value} to set a value and \getvalue{name}, to retrieve ...
6
votes
1answer
259 views
Align multi-line section head on the grid
What I want to achieve
Align the first line of a multi-line section head on the grid and consecutive
lines according to the baseline distance given in the font definition. The
baseline distance of ...
1
vote
1answer
160 views
citation macro with ConTeXt
Consider the following example (background in this question).
\setupbibtex[database={library},sort=author]
\setuppublications[alternative=apa]
%\define[1]\reference{\cite[data][#1]}
\starttext
...
2
votes
1answer
88 views
How to make specific items only appear in recto pages in ConTeXt?
I would like for some items in my book to begin only on recto, or right-hand pages, such as, e.g.:
The first page.
The table of contents.
The beginning of a \part.
I believe such a configuration ...
2
votes
1answer
310 views
Activating ligatures with typescript in ConTeXt (MkIV)
I've have the following example where i try to enable ligatures for the font Kaffeesatz
\definefontfeature[yanone-default][mode=node, kern=yes, liga=yes, dlig=yes]
\starttypescript [sans] [yanone] ...
1
vote
1answer
277 views
How do I activate hanging punctuation with XeteX under ConTeXt?
I'm noob at ConTeXt. I want to use auto2 font with ConTeXt, I think the easiest way to do that is using the XeTeX backend. ConTeXt can do some protrusion with pdfTeX and LuaTeX, but with XeTeX it ...
26
votes
7answers
2k views
File extensions of LaTeX-related files
In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically ...
4
votes
1answer
240 views
Trouble typesetting pgfplots with context (mkiv)
I'm trying to typeset the minimal pgfplots example from the Context Wiki but with no
success.
Context-Wiki Example
\setupcolors[state=start]
\usemodule[tikz]
\usemodule[pgfplots]
\starttext
...
4
votes
1answer
137 views
What is the proper way to format syntax within ConTeXt?
For some time, I have thought, perhaps mistakenly, that the precise placement or spacing around ConTeXt syntax was unimportant, e.g., under this assumption, all of these should produce the same ...
6
votes
1answer
889 views
Are \def and \define the same in ConTeXt?
Is there any difference between defining a variable using \def and using \define, when used without a number inside square brackets, e.g. \def\somecommand{\percent} and \define\somecommand{\percent}? ...
1
vote
1answer
149 views
Stack margin text in outer margin in ConTeXt Mk IV
I try to stack marginals with ConTeXt Mk-IV. In this question a possible solution was given. The solution works fine, but it turns out that the location=outer parameter does not work any more.
Please ...
1
vote
1answer
157 views
How to center align entries in the table of contents in ConTeXt?
In my table of contents, part is defined like this:
\setuplist[part][pagenumber=no]
I would like to center align the title of the part, so it appears like this in the table of contents:
...
2
votes
1answer
337 views
How to combine characters with macron, acute, caron, and grave accents in ConTeXt?
I am using a font which does not contain all of the symbols I need. I have managed to use the information in this article about Adobe Glyph List For New Fonts, and have successfully added many ...
2
votes
1answer
107 views
What is the purpose of defining font synonyms and how are they accessed?
In ConTeXt, one can define a font synonym, as shown in this simple typescript example at the ConTeXt Wiki. In following the example given, I cannot see any way to access the individual levels. I can ...
