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 ...
6
votes
1answer
244 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
379 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
1answer
303 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] ...
4
votes
1answer
136 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 ...
1
vote
1answer
146 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 ...
2
votes
1answer
328 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 ...
1
vote
1answer
154 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
104 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 ...
5
votes
2answers
245 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 ...
4
votes
1answer
127 views
Stack margin text in ConTeXt
If I try the following in ConTeXt:
\starttext
text text\inmargin{this is a note.} text text\inmargin{Another note.}
\input knuth
text text\inmargin[stack=yes]{this is a note.} text ...
2
votes
1answer
123 views
bibentry macro with ConTeXt
I am trying to get the \bibentry (bibtex) or \fullcite behavior with ConTeXt. My MnWE is:
\setupbibtex[database={library},sort=author]
\setuppublications[alternative=apa]
\starttext
...
2
votes
1answer
84 views
Where to find a list of all system-defined counters in ConTeXt?
I learned from How to obtain the current page number in ConTeXt? that I can obtain the page number counter value using tex.count.pageno, but I have not found this mentioned in any available ...
5
votes
1answer
108 views
How to define a section title for volumes in ConTeXt?
I have a lengthy document, which must be divided into separate volumes. So that it can be compiled in one pass, the source file is organized like this:
\starttext
\startfrontmatter
% this ...
6
votes
2answers
196 views
How to define acronyms in ConTeXt?
The acronym packages allows one to easily create and display acronyms, with a simple syntax, like \ac{usb}. The first time this is called, is will say “Universal Serial Bus (USB)”, but after that, ...
4
votes
2answers
104 views
How to search the contents of all of ConTeXt's available documentation?
As seen in Where can I find good ConTeXt documentation and Updated documentation of ConTeXt, there are many resources for learning how to use ConTeXt, but most are in the form of articles and books in ...
6
votes
1answer
825 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}? ...
4
votes
1answer
107 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 ...
6
votes
2answers
322 views
How to check if a value is not equal using TeX conditionals?
I have a value defined in a macro, e.g.:
\mymacro{apple}
I need to check if a value does not equal a string, e.g.:
IF #1 NOT EQUAL TO "apple" THEN
PRINT "It is not a apple, it is #1."
FI
I ...
4
votes
1answer
320 views
How to vertically center content in ConTeXt?
I would like to vertically center my title page. I have tried code like this, but it does not work:
\vfill
\startalignment[center]
Title
\stopalignment
\vfill
I am using ConTeXt, so the ...
2
votes
1answer
86 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
186 views
How to obtain the current page number in ConTeXt?
I want to obtain the current page number, for use in Lua conditionals, e.g.:
\startlua
if 10 <= \pagenumber < 20 then
context("The pages are between 10 and 20")
end
\stoplua
...
1
vote
2answers
193 views
How to prevent words from running off the edge in ConTeXt?
I have a document containing columns 25 characters wide. I have set the language to US English, and some hyphenation appears, however, I have observed that in many places, scientific terms are not ...
4
votes
1answer
474 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, ...
2
votes
1answer
109 views
How to give different margin sizes for verso and recto pages in ConTeXt?
I am creating a simple page layout for a book, which should have 1 cm margins along the top, bottom, and edge, but leave 3 cm in the middle margin, where the pages will be glued together.
...
1
vote
1answer
107 views
How to display different text for a section's entry in the table of contents in ConTeXt?
In LaTeX, one can display different text in the table of contents, than what appears in the document, for part, chapter, and section titles using this:
\part[This text will appear in the table of ...
3
votes
1answer
359 views
TeXLive 2011 ConTeXt problem
I was wondering if there were any bugs with ConTeXt on TeXLive 2011. I normally do not use ConTeXt but wanted to play with it.
$ uname -a
OpenBSD oko.bagdala2.net 5.1 GENERIC.MP#188 i386
I have ...
0
votes
1answer
154 views
How to allow line breaks before the numbers in paragraph enumerations in ConTeXt?
I have some enumerated items, in paragraph form, like this:
\setuppapersize[A5]
\showgrid
\setupitemize[text, r]
\starttext
\startcolumns[n=2]
\startitemize
\item This is a ...
6
votes
1answer
318 views
What are the advantages of using ConTeXt's XML?
I have discovered quite a number of documents at the PRAGMA ADE Web page, showing how to create documents using an XML system. Much of the documents show features, such as tables, which appear, at ...
3
votes
2answers
210 views
How to place a small table of contents in the footer in ConTeXt?
I would like to place a small table of contents in the footer in ConTeXt, which only shows the sections within the current chapter, but it does not appear. This is what I tried:
...
1
vote
1answer
179 views
How to adjust the position of entries in the table of contents in ConTeXt?
I have a table of contents defined like this:
\setuphead[part][number=no]
\setuphead[chapter][number=no]
\setuphead[section][number=no]
\setuplist[part][alternative=a, margin=0em]
...
4
votes
0answers
92 views
Why is a page break added at the end of a column set in ConTeXt?
I have a document containing some 1-column and 2-column passages, mixed, e.g.:
This sentence has no column-
s.
This part of are balanced
the document such that t-
has two col- he lines are
...
2
votes
1answer
62 views
Why is a blank line added before a description environment when placed in a footnote in ConTeXt?
I would like to place a description environment inside a footnote, e.g.:
\definedescription[descr][headstyle=normal, style=normal, width=3em]
\starttext
This is some ...
2
votes
1answer
419 views
How to create a PDF with two A5 pages placed on A4-sized paper in ConTeXt?
I am trying to create a PDF where the text is placed on pages of A5, but two A5 sheets are placed on one A4 sheet which is in landscape mode, e.g.:
_______________
| | |
| | ...
5
votes
3answers
154 views
How to set two or more paragraphs to use the same amount of vertical space?
Given several paragraphs in ConTeXt or plain TeX, how can I ensure that all paragraphs use the same amount of vertical space, by adding white space to the end, as the longest paragraph in the set? ...
4
votes
1answer
238 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
...
1
vote
2answers
136 views
Why is there an extra space when I create a reference location in a document in ConTeXt?
I am trying to create a simple cross-reference from one page to another, e.g., in part of the document, it says, "see bears, p. 3." From the ConTeXt manual, p. 170, I was able to determine that a ...
5
votes
1answer
102 views
How to make part titles visible in ConTeXt?
ConTeXt has \part, \chapter, and \section titles, however, it seems that \part is disabled by default. If I used \part in my document, it is visible in the table of contents, but not in the document. ...
7
votes
1answer
185 views
Where to find the source code to the ConTeXt manuals?
Quite a number of helpful manuals can be found at the Web page of PRAGMA ADE. Some have some very interesting designs. I wonder, is there a place to download the source code for some or all of these ...
5
votes
1answer
273 views
What is the proper way to prevent text from splitting across columns and pages?
I have some description environments which I do not wish to have split across columns or pages. Is there some command which can be placed around an item to ensure that it will never be split across ...
6
votes
2answers
184 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
144 views
autopunctuation not working properly
What am I doing wrong? According to my understanding, these two formulae should look different (the second one should have a thin space):
\setupmathematics[autopunctuation=yes]
\starttext
$(2,5)$ ...
4
votes
1answer
157 views
Where to find a list of all available symbols for ConTeXt?
As mentioned in Which symbols need to be escaped in ConTeXt?, one can type commands, such as \textdollar to display symbols in a document. In some situations, using such commands seems advantageous, ...
4
votes
1answer
262 views
How to use string.find from Lua in ConTeXt?
I am trying to make some conditionals with Lua, which check if some text is found within a string. Unfortunately, when I compile it, I get:
! LuaTeX error <main ctx instance>:4: bad argument #1 ...
9
votes
1answer
244 views
Storing and retrieving data in tuc file
I want to store some data in the .tuc file, which is being picked up in the next run. I suceeded in storing some values but I failed in retrieving them afterwards.
Here is my attempt:
\starttext
...
2
votes
1answer
147 views
How to set the width of the label of a description to the width of a string of text in ConTeXt?
I am using \startdesc{} to create a label and description environment, e.g.:
\startdesc{(label)}
This is some text in a sentence.
\stopdesc
\startdesc{(another label)}
This is some more text ...
1
vote
0answers
98 views
How to display an encyclopedia-like range of topics per chapter or per page in ConTeXt?
At the top of the page in many reference books or encyclopedias, there is always a range stating which topics are covered within a given area, e.g.:
A volume of encyclopedias will say "A-B" to ...
1
vote
3answers
196 views
How to alphabetize all of the parts, chapters, sections, and content of an entire document in ConTeXt?
I have a document that is structured like this:
\part{Birds}
\chapter{North America}
\section{West Coast}
\mymacro{Bald Eagle}
\mymacro{Spotted Owl}
...
11
votes
1answer
286 views
How to prevent extra spaces between two specific words when justification occurs?
My document contains many short, justified lines, so the lines often appear with many spaces between words, e.g.:
These words have a space
so that they can fit nicely into the
available ...
11
votes
3answers
284 views
Updated documentation of ConTeXt
I'm trying to decide which set of macros/typesetting system to learn. I tried Latex2e for a while, but I was very disappointed that it didn't work nicely with Unicode and that in my tryout I had many ...
4
votes
1answer
256 views
How to set footnotes to use a combination of two numbering formats in ConTeXt?
How can I redefine the numbering style of footnotes in ConTeXt, such that is displays a combination of a number and letter (e.g. 1.A, 1.B, 1.C) instead of the usual 1, 2, 3 sequence, e.g.:
This is ...