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 ...
5
votes
1answer
158 views
ConTeXt MarkIV: Pagenumber in layer not working
I want to put pagenumber and navigation into a layer, but the counter for pagenumber is not working. Here's a minimal example:
\usemodule[graph]
\usesymbols[nav]
\setupsymbolset[navigation 1]
...
4
votes
1answer
72 views
Context: How can I have table of contents with only following sections
I want to have a document with some chapters of frontmatter followed by a table of contents showing all subsequent chapters and endmatter but not the frontmatter
Best I have found is ...
6
votes
2answers
139 views
Errors Mpgraph in ConTeXt
I need to put some bar charts in a ConTeXt document. I'm using mkiv from TeX Live 2011, under Gentoo GNU/Linux. I tried using Gnuplot but I found mpgraph suits better my needs.
I'm using this TeX ...
5
votes
1answer
66 views
How does one vertically center the heading for a 'part' in ConTeXt?
My best effort thus far has been to simply add a big blank as a before perameter:
\setuphead[part][placehead=yes, alternative=middle,before={\blank[12*big,force]},
header=empty]
Obviously, this ...
5
votes
1answer
122 views
How to set a image background and tile on page in ConTeXt?
That's it. I want to use a image pattern, let's say this image. But I can't figure how to do this on ConTeXt, 'cause neither \setupbackgrounds or \setupframed have an option to tile backgrounds. I ...
2
votes
1answer
92 views
Get the stem width (i, T) of a Font in ConTeXt Mk IV
In the TiKz-Manual it says:
... that LaTeX has two commands called \thinlines and \thicklines and that \thinlines gives the line width of “normal” lines, more precisely, of the thickness that, ...
35
votes
4answers
811 views
Separation of content structure and style in LaTeX?
In HTML, over the last decade or so, there has been a strong push toward complete separation of content structure and style. Most websites are now built using HTML for structural mark-up, and CSS for ...
1
vote
0answers
185 views
How to float/wrap figures in ConTeXt?
I have a simple two column document in ConTeXt. I tried to float/wrap the figures within text with `placefigure`, but it inserts the figures exactly where they are. This will leave a empty space in ...
6
votes
2answers
483 views
Macro for the average width of a character
How can i made a macro similar to \averagecharwidth of ConTeX in LaTeX, that calculates the average width of a character based on the frequency of that character into my document ? that macro is show ...
8
votes
1answer
455 views
What is the correct syntax for subfootnote?
After upgrading from ConTeXt stable to beta, any code containing subfootnote does not compile. E.g.:
\definestructureconversionset [footnote] [numbers, Characters] [numbers]
\setupenumerations ...
3
votes
2answers
142 views
How to set output directory in context command?
When using lualatex or pdflatex commands, there is an option to set the destination/processing folder as
lualatex -output-directory=/destination/folder file.tex
I was unable to find a similar ...
3
votes
1answer
119 views
How to compile a file in ConTeXt, but output the results to a text file?
I have some files which contains data with ConTeXt syntax, e.g. containing macros and instructions for special symbols, but no preamble, sections, or other features tying the data to any particular ...
5
votes
1answer
193 views
Text in outer margin of multiple columns
I want to put some text in the outer margin (by which I mean on the left side of the page of even pages and on the right side of odd pages) of the page. My naive approach of using \inoutermargin{Text} ...
0
votes
2answers
66 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]}{}
...
2
votes
1answer
79 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 ...
1
vote
1answer
161 views
Where is TeXfont in TeX Live 2012?
All of the font installation instructions in the ConTeXt Wiki say to use TeXfont.
To my great despair, I can't seem to access TeXfontin my TeX Live installation on Windows. Given that I've installed ...
4
votes
1answer
88 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
390 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
153 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 ...
2
votes
2answers
356 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
250 views
How to achieve nested alignment of formulas?
I'm trying to get a nested alignment in math mode:
+----------------------------------------------------------------+
| ..... & ................ |
| ...
2
votes
1answer
155 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{
...
6
votes
1answer
149 views
Problem with old ConTeXt separated list example
I have been trying to get the following small example from ConTeXt garden to work without success.
\starttext
\usemodule[database]
\def\SendMe#1#2#3#4{\framed
[align={flushleft,lohi},
width=4cm,
...
3
votes
0answers
97 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:
...
6
votes
1answer
126 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 ...
2
votes
1answer
284 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 ...
4
votes
1answer
209 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 ...
4
votes
4answers
934 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:
...
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
...
5
votes
2answers
113 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 ...
6
votes
1answer
258 views
How to switch fonts when the language switches in ConTeXt?
I have a mostly English-language document, with fonts defined like this:
\usemodule[simplefonts]
\setmainfont[MinionPro-Regular]
\setsansfont[MyriadPro-Bold]
Occassionally, I need to have some ...
5
votes
1answer
120 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
119 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:
...
4
votes
1answer
77 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.
...
2
votes
1answer
258 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", ...
7
votes
0answers
147 views
Strange problem with frames (ConTeXt tables) [closed]
Leads to a bug report on the ConTeXt mailing list: [dev-context] bTABLE in header and document give unexpected behavior
When using this code I get a problem with the frame around the header on ...
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 ...
5
votes
1answer
354 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 ...
10
votes
1answer
212 views
ConTeXt (core) command definitions: what do \installcorenamespace, \?? and \installcommandhandler, do?
I have the very strong impression that there is a Current and Standard way to define new (core) commands in ConTeXt; see, for example, this quote from an e-mail by Wolfgang.
Many of the \define... ...
4
votes
1answer
130 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
404 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
233 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
99 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
233 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
581 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|]
...
11
votes
2answers
394 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
241 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”. ...
4
votes
1answer
221 views
Avoid line break after macro
The following example produces a line break after the second text.
\define[2]\smallfigure{\placefigure[margin][#1]{#2}{!}}%
\starttext
text text\smallfigure{fig1}{A}text text
\stoptext
The ...
1
vote
1answer
156 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
...