Use the {context-mkiv} tag if ConTeXt Mark IV answers would be helpful.

learn more… | top users | synonyms

8
votes
2answers
83 views

Escape a string printed from Lua using ConTeXt

This seems to have come up a couple times, but I cannot glean an answer to the generic question of how one might protect an arbitrary string in Lua to ensure its characters are printed. In other ...
2
votes
1answer
42 views

Get or change ConTeXt path for components/projects/environment

How does one get items in subdirectories or change the path that ConTeXt uses to get components, environments, and project files? In other words, how might one set up a hypothetical directory ...
3
votes
1answer
197 views

Ugly-looking integral signs in ConTeXt MkIV

A few days ago, I decided to try out ConTeXt (just for fun), but ran into the following problem. Running the 'context' command on \setuppagenumbering[location=] \starttext \startformula \int_a^b ...
2
votes
1answer
50 views

Kile fails to start ConTexT

Windows 7 64bit, Kile 2.9.60 with default settings and ConText mkiv. Trying to compile a test document: \starttext \startsection[title={Testing ConTeXt}] This is my first ConTeXt document. ...
3
votes
1answer
74 views

how to use metapost package boxes

Try to make a text box, like "framed" text in context using metapost by following the example mpboxes or metapost examples \startMPpage %input boxes boxit.a(btex test etex); a.c = (0,0); ...
2
votes
2answers
59 views

Two levels of itemization with the 'intext' option

In ConTeXt, how can I get the output given by the following code, but using the itemize environment? \starttext \quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium ...
0
votes
1answer
73 views

ConTeXt: How to make table of contents to show only those entries which go after its placement?

\setuplist [chapter][ style={bold}, color={default}, ] \setuplist [section] [color={default}] \setuplist [subsection] [color={default}] \setuplist [title][ style={bold}, color={default}, ] ...
1
vote
1answer
134 views

ConTeXt: How to control vertical and horizontal line thickness in tables?

In LaTeX, I could do something like: \begin{longtabu} to \linewidth {X |[3pt] X} ... \tabucline[3pt]{-} ... \end{longtabu} which would produce vertical and horizontal lines of 3pt thickness. ...
3
votes
3answers
146 views

ConTeXt: Prevent Reference Name Clashes in Floating Objects of Different Types

I find it very annoying that ConTeXt uses the same namespace for references of floating objects. In other words, if you give the same reference to a figure and a table, then you'd always refer to the ...
4
votes
2answers
94 views

Is there something like chktex for ConTeXt?

I'm using ConTeXt MKIV (if that makes a difference here). The problem is I'm writing my ConTeXt in vim, and a I have a syntax/style checker plugin called syntastic. The thing is it's using chktex for ...
13
votes
1answer
167 views

Which primitives does ConTeXt rename/move?

TeX's primitives can be renamed by macro formats/packages: this allows new/altered features or behaviours. Usually this is done such that the originals are still available ('renamed'): certainly ...
1
vote
0answers
73 views

Special layout with multi-page table in ConTeXt

I have a special layout of page to make. It contains blocks of text, a graph and tables. I don't know in advance the length of the tables in the document. I have a dummy two tables example to show ...
2
votes
1answer
74 views

ConTeXt: Custom register formatting

Background Looking to reproduce custom registers that resembles: Index entries are added using: \setregisterentry[index][entries={Kenji Fujimoto}][ title={Maguro}, author={Kenji ...
1
vote
0answers
127 views

ConTeXt: Bibliographies in current ConTeXt not working any more?

The "very basic example" of Bibliography mkiv fails to work using current version 2014.03.07 11:42. I put the code inside a tex file test.tex and the provided bibliography database inside sample.bib. ...
3
votes
0answers
81 views

ConTeXt: Double or Triple Hyphen are Interpreted inside Verbatim Blocks

For example: \definetyping [code] [numbering=line, bodyfont=small, before={\startframedtext[width=\textwidth]}, after={\stopframedtext}] \startcode <-- \stopcode will produce < ...
2
votes
1answer
398 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 ...
1
vote
1answer
62 views

ConTeXt: Retain ToC Hyperlinks using alternative command

Background A custom Table of Contents entry was suggested to move page numbers from the right-hand side to the left-hand side. Problem The custom command loses ToC hyperlinks. I have tried to ...
0
votes
0answers
73 views

ConTeXt: Substitute em-dash for double-hyphens

Background I am trying to substitute an em-dash for double-hyphens (--) whenever they occur in user-generated text. The fonts that I am using (Chivo and Gentium Basic) result in double-hyphens added ...
5
votes
1answer
99 views

ConTeXt: Font change shifts column content

Background I would like to place balanced itemized lists inside a two-column layout. Problem Changing the font affects the balanced layout; the fonts are: Chivo Gentium Basic Code The ...
7
votes
3answers
98 views

How to get the current directory name in ConTeXt?

Assume the file, source.tex is placed in /home/user/Birds/ and the user types context source.tex to compile the file. Is there a way for ConTeXt to retrieve the name of the folder that the file is ...
2
votes
1answer
207 views

ConTeXt: Keep title on same page with next paragraph

I have a document with many chapters and sections. All my chapters starts with new page, but sections does not. Sometimes section title appears at the bottom of page alone, next paragraph starts with ...
6
votes
1answer
157 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 ...
4
votes
2answers
120 views

ConTeXt: Columnar section titles, floats, and images

Background Regarding floats in columns, the wiki states: By default, a title will be moved down to appear below a float, it will not be "wrapped" around a float like normal text. Problem The ...
3
votes
0answers
48 views

Width-per-column not working in ConTeXt columnset [duplicate]

I'm trying to put some information and a table (\starttabulate...\stoptabulate) aside to a image, the image in the left column and the title and the table in the right column. So what I did is this: ...
1
vote
1answer
90 views

ConTeXt: Embed forward referenced figure

Background Looking to recreate the following fancy table of contents where a limited number of images in the ToC are selected at random from all the figures included in the document, without ...
0
votes
1answer
70 views

ConTeXt: Left-justify text to overlap hidden/disabled frame border

Background Looking to left- and right-align text in a footer. Problem The following image shows that the word "Betasec" is not left-aligned with the black horizontal line above it: I believe ...
2
votes
1answer
80 views

What is the correct way to create slanted text in ConTeXt?

I need to write some romanized foreign words within a passage of English text. Generally, such words should appear as slanted text. I created this simple document and noticed that while both \it and ...
3
votes
1answer
65 views

How to make footnote numbers invisible in ConTeXt?

I need to put some comments in the footnotes area in a document, but without any note numbers appearing. I've tried several things, including \footnote[numbercommand={}]{This is the footnote}, but ...
3
votes
2answers
153 views

ConTeXt: How to redefine the euro sign glyph?

Introduction I am writing a document using the TeX Gyre Pagella font. Unfortunately, the glyph for the euro sign (UTF-8 character U+20AC) in this font does not comply with the official euro sign ...
1
vote
1answer
109 views

ConTeXt: Change location of page numbers in table of contents

Background Looking to place the page number on the left of each section heading in the frontmatter's table of contents, similar to the following (where "Title Here" is a section title and the page ...
1
vote
1answer
84 views

How to place figure relatively to other figure in ConTeXt?

I have two figures. I need to place first figure with width=10cm and then place second figure with same width but it's center must be shifted to right by 9cm and down by 5cm relatively to center of ...
6
votes
3answers
295 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, ...
2
votes
1answer
108 views

How to vertically center content of page without makeup in ConTeXt?

I need to vertically center the content of page, content is forced to be on a separate page (delimeted with \page command). previous page content \page this content must be verticaly centered on ...
3
votes
2answers
113 views

metapost, metaobj and labels

I found this trick posted by Aditya some time ago that allowed to use metaobj in context. Currently this code no longer works. Currently, are there any way to use metaobj in context? The main problem ...
2
votes
0answers
64 views

Is there a documentation for \setupTABLE?

I need to know which parameters can be passed to \setupTABLE command. Is there any documentation or can it be extracted from source ?
2
votes
1answer
221 views

ConTeXt: Change the default text colour for entire document

Background I am looking to change the text colour for a document from black to a different dark colour. Problem The documentation shows how to change individual colours for a text document, but ...
1
vote
0answers
71 views

How to insert hyperlink to web site in ConTeXt?

I need the analogue of latex's \href in context. I need a link when clicking on which pdf viewer would open a browser with it's url.
1
vote
0answers
83 views

How to render ConTeXt source code example with rendered result in ConTeXt

I need to place source code example in ConTeXt with compiled result. code: ConTeXt code example result: compiled result I can do it like that: \mainlanguage[ru] \usemodule ...
3
votes
2answers
124 views

How to place two (or multiple) figures in a row with same height in ConTeXt?

I need to place several figures with different aspect ratios in a row using ConTeXt. I also need their heights to be equal, but summary width of pictures to be \textwidth. Height of pictures must ...
2
votes
1answer
80 views

How to place footnote under TABLE in ConTeXt?

I need to place footnotes, declared inside \bTABLE \eTABLE, just under the table, delimited with a short rule. |----------| | table | |----------| _______ *footnote I also need to \placetable ...
1
vote
0answers
32 views

Scale figure to remaining page height in ConTeXt [duplicate]

I have a page with some content on it and some remaining space at the bottom of this page. |=========| | header | |---------| | | | page | | content | | | |---------| |remaining| ...
2
votes
1answer
57 views

How to vertically align makeup page in ConTeXt?

I have a minimal example \usemodule [simplefonts][size=12pt] \setmainfont[dejavusans] \definemakeup[titlepage] \starttext \startmakeup[titlepage] {\tfd Title at top} \stopmakeup[titlepage] ...
4
votes
1answer
55 views

How to include ConteXt version in document?

My question is exactly the same as this one: Include LaTeX version in document I want to include in my document: compiled with ConteXt version YYYY.MM.DD. Is it possible to do it automatically or I ...
1
vote
1answer
358 views

How to fix in ConTeXt problems after pages and warning 'no GlyphToUnicode entry has been inserted yet!'

Is the warning no GlyphToUnicode entry has been inserted yet! exclusive of pdftex or is it caused by patches loaded by mkii or by using 'cont-sys.rme' instead of cont-sys.tex? The funny thing is, ...
11
votes
1answer
186 views

standardmakeup layer in ConTeXt

Need to place a PDF file as a watermark behind the title page and part break pages. These have been laid out using \standardmakeup. Have created the layer and can place it on a normal text page but ...
1
vote
1answer
114 views

How to define numbered theorem, definition at ConTeXt ?(ConTeXt)

I have problem about define numbered like theorem, definition, corrollary etc at ConTeXt ? You can see like this my screenshot and my code (sorry, i copy and paste from other document) : and my ...
3
votes
1answer
174 views

Answer keys in ConTeXt

I'm currently working on a textbook. It contains numerous exercises and I'd like it to contain an answer key at the end of the book. The answer key should have the same structure as the book, that is ...
4
votes
1answer
129 views

Bad layout with both lettrine module and builtin initals in two column setup in ConTeXt

I am seeing broken positioning of letters produced by the lettrine module. Here is my MVE: \setuppapersize[A4][A4] \usemodule[lettrine] \definehead[recipe][section] \setuphead[recipe][ ...
4
votes
1answer
158 views

ConTeXt: How to achieve fine-grained font size control over the \type command?

In below minimum working example, I was able to configure the bodyfont in \setuptyping to 9.5pt. However, ConTeXt \setuptype documentation is not as detailed to explain me how I can achieve the same ...
0
votes
2answers
156 views

ConTeXt: How to place a short caption under a wrapped figure?

This is a follow-up question to a previous ConTeXt solution. That solution dealt with wrapped figures in a ConTeXt document generated from Pandoc Markdown. Now, I would like to extend that solution ...