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

learn more… | top users | synonyms

1
vote
0answers
23 views

ConTeXt: Prevent page break between heading and image

Using ConteXt, how could one prevent a page break between a heading and an image or text + image? For example, given: \section{With a Chart} \placefigure[here] {}{\externalfigure[Chart.pdf]} % or ...
2
votes
1answer
73 views

Why does ConTeXt fail to compile when using custom fonts and a bulleted list?

\starttypescript[serif] [titillium] \definefontsynonym[Serif] [file:Titillium-Regular] \definefontsynonym[SerifBold] [file:Titillium-Bold] ...
3
votes
0answers
73 views

How to embed fonts within a ConTeXt document?

I wrote a book using ConTeXt. I used a typescript to define the fonts. When compiled and viewed on my computer, the fonts appeared correctly. I sent my book to a printing place to have them print the ...
10
votes
1answer
138 views

Where to find a comprehensive overview of the features of the ConTeXt cite command?

I need to use the \cite command in ConTeXt very often for in-text citations in APA format, in a wide range of forms, e.g.: (Author, YYYY) Author (YYYY) (Author, YYYY, p. n) Author (YYYY, p. n) ...
1
vote
0answers
77 views

How to convert a ConTeXt document to PowerPoint presentation?

I created a very simple, ~100-page document in ConTeXt. It only uses \starttext, \chapter, \section, \startitemize, and \item, e.g.: \starttext \startitemize \chapter{First chapter} ...
4
votes
1answer
52 views

ConTeXt - Binding Offset

In LaTeX, the geometry package allowed me to specify a binding offset (an amount by which the content area of each page was shifted away from the binding) for book layout. I'm very new to ConTeXt and ...
3
votes
1answer
78 views

How to embed audio in a PDF created with ConTeXt?

How can I place an MP3 file in the page of a PDF, so that it can play the audio on a Windows machine with Adobe Acrobat Reader?
4
votes
1answer
100 views

How to display in-text citations in the `Author (Year)` format in ConTeXt?

When writing in APA, one can write in-text in one of two ways: (Willows, Q. A. & White, P., 1995) Or, if the author's name is mentioned within the text, using this syntax: Willows, Q. A. & ...
2
votes
3answers
82 views

verbatim text with C code

I'm trying to typeset a lot of C code in the latest ConTeXt (MKIV). It tried: \startC printf("Hello, world\n"); \stopC only to find that \startC macro is undefined. It is defined in ...
4
votes
3answers
49 views

ConTeXt system font search path

I read from the official manual (http://wiki.contextgarden.net/Fonts_in_LuaTex#How_LuaTeX_handles_system_fonts) that I need to export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts" to specify where ...
0
votes
0answers
34 views

Error again, Simplesildes at Context after updated 2014.10.16?

I have a problem again with Simpleslides at ConText after updated modules. I have MWE like this : \usemodule[simpleslides] [style=BottomSquares] \setupTitle [ title={Title of the ...
2
votes
1answer
47 views

ConTeXt: Cross-references for Table of Contents hyperlinks

Background Looking to customize the table of contents. Problem In the example, the following problems exist: The last entry in the table of contents is not hyperlinked. All hyperlinks are off by ...
2
votes
1answer
66 views

How to randomize the text size of each word in ConTeXT?

Beginning with a passage of text like this: This is a sample passage. How can I set each word to randomly appear at a different size, from a list of 3-4 possible sizes? E.g., in the output, "This" ...
4
votes
1answer
71 views

ConTeXt: Macro within macro for URLs

Background Would like to define a base URL that can be reused by other macros. Problem Using the \goto macro requires a fully expanded URL. Minimum Working Example Here's code that illustrates ...
2
votes
0answers
70 views

add text in the middle of the cover page

I found this code in the "cld-mkiv.pdf" manual writing by Hans Hagen. I would like to put some text in the middle of the cover page but i don't know how. I think that i need to define a overlay. ...
5
votes
0answers
104 views

About the internals of ConTeXt

It appears that ConTeXt is more structured than LaTeX2e in terms of naming scheme, key-value naming, macros, etc. However I haven't seen any guide or so that explains how this structure works. Where ...
6
votes
1answer
135 views

Write unit tests for Lua in ConTeXt

I would like to write some unit tests for Lua code being used by ConTeXt, and would like to know if anyone else has done this and what may be require in setting up the framework. The Lua code in ...
0
votes
0answers
64 views

Is it possible to install ConTeXt on Windows without admin rights?

Well, the title says all. On contextgarden it is written: NOTE: You will need admin rights to your Windows to manage the installation process. If you don't have that, get somebody who does. Is ...
9
votes
4answers
290 views

How to print random text in ConTeXt?

I often need to place random elements within a document in ConTeXt. For example, I added some random language variances to a form letter. In each instance, there is a choice of items to be displayed: ...
8
votes
2answers
119 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
89 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 ...
2
votes
1answer
73 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
125 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
67 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
96 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}, ] ...
3
votes
3answers
158 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
116 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
195 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
102 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 ...
1
vote
0answers
139 views

ConTeXt: Bibliographies in current ConTeXt not working any more? [closed]

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. ...
2
votes
1answer
89 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 ...
3
votes
0answers
98 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 < ...
1
vote
1answer
71 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 ...
2
votes
1answer
109 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 ...
7
votes
3answers
115 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 ...
5
votes
1answer
102 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 ...
4
votes
2answers
162 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 ...
0
votes
1answer
88 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 ...
3
votes
1answer
106 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
77 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 ...
1
vote
1answer
138 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 ...
3
votes
2answers
188 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

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 ...
2
votes
1answer
263 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 ...
2
votes
1answer
140 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 ...
2
votes
0answers
70 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 ?
1
vote
1answer
106 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 ...
2
votes
1answer
125 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.
3
votes
2answers
133 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 ...
3
votes
0answers
106 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 ...