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

learn more… | top users | synonyms

6
votes
1answer
72 views

Change font for math functions (sin, log, etc.) in ConTeXt MkIV?

When I’m using the Euler font for math, I notice that since Euler is upright, the font for math functions like sin, cos, and log is identical to variables. Is there a way to change the font for math ...
3
votes
2answers
77 views

Dagger symbol in math mode in ConTeXt with Euler font?

I followed this answer to use the Neo Euler font in math mode. I found that the dagger symbol (†) is missing in Euler. Is there a way to use the dagger symbol from the text mode font in math mode? ...
3
votes
1answer
44 views

Listing with source code included from file in ConTeXt (with label and caption)

I would like to include listings with source code in ConTeXt MKIV and have a mechanism for labeling and referencing the listing and even being able to attach the code with useattachment. In LaTeX, I ...
4
votes
1answer
128 views

Footnote complete citation, plus ibid, op, cit., etc (in ConTeXt)

I need my citations to be in a footnote. I tried \footnote{\cite[alternative=data][bib_key]} but this can’t help me with ibid. or Author, op. cit. when required. Searching a little, I found something ...
3
votes
0answers
47 views

ConTeXt: Is there a way to show the \part heading?

I’m new to ConTeXt, and noticed that \part{Some title} (and neither \start part[title={Some title}]…\stoppart) will produce and output (besides an empty page with footer and header). Nevertheless, ...
2
votes
2answers
62 views

ConTeXt table row vertical fill page

Is there a way to have a bTR for ConTeXt fill a page vertically? I want to have a full-page table, with both width and height filled. Given e.g. \bTABLE \bTR \bTD One \eTD \eTR \bTR \bTD ...
1
vote
0answers
58 views

Pass parameters to ConTeXt \component, \product, etc

I would like to use, and it appears suited, the \component and related commands in ConTeXt. However, I would like to have multiple parameters to a given component e.g. \startcomponent X ...
1
vote
1answer
71 views

TikZ is colored despite having \setupcolors[state=stop]

In the following MWE I get a red square, but I want it to be gray, as in the also provided LaTeX-document: % ConTeXt MWE \setupcolors[state=stop] \usemodule[tikz] \starttext ...
1
vote
1answer
49 views

Error running Context texexec on Mac OSX 10.10, Ruby 2.2.0 Stable

When I try to run texexec on my context file I get the following error: texexec va.ctx /Users/davidsmith/context/tex/texmf-context/scripts/context/ruby/base/ctx.rb:120:in `manipulate': invalid byte ...
2
votes
1answer
28 views

Distance between the header and the title in ConTeXt's enumerations

I have defined in ConTeXt an enumeration for definitions: \defineenumeration[definition][theorem][ text={Definition}, prefix=chapter, way=bychapter, right=., titleleft=(, ...
4
votes
1answer
108 views

Metapost error related with ConTeXt

I try to reuse this code from fpast (Generating Random arrows in tikz) in context but I found a error message associated with the freelabel() function. If I try to add the labels with label() function ...
2
votes
0answers
158 views

Missing page numbers, first chapter only - ConTeXt

I am typesetting books in ConTeXt, and for some reason the first chapter is missing page numbers! There are correct page numbers in the frontmatter, and correct page numbers in the second chapter and ...
5
votes
0answers
89 views

How do I create unequal column widths using columnsets?

I would like to create a columnset where the first column is wider than the others. I understand that column breaks become complicated in such an environment. The ConTeXt columns manual claims to ...
1
vote
0answers
70 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
114 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
109 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 ...
11
votes
1answer
159 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
112 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
86 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
128 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
111 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. & ...
3
votes
3answers
131 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
91 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
47 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
66 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
123 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
80 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
97 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
123 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
204 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
110 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
317 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
172 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
136 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
90 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. ...
4
votes
1answer
176 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
70 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
108 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
175 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 ...
5
votes
2answers
160 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
210 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
128 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
144 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
106 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
127 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
81 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
140 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
132 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
111 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 ...
5
votes
2answers
211 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 ...