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

learn more… | top users | synonyms

4
votes
1answer
32 views

Calling start/stop letter environment inside luacode block

I'm creating a letter using the ConTeXt letter module, and I want to process an external file within Lua and change some of the letter setup and text based on the data in the external file. I'm ...
0
votes
0answers
32 views

conTeXt Mkiv: the number of parameters can not be more than 9?

For testing, I have a definition: \define[9]\DEFINETEST{#1,#2,#3,#4,#5,#6,#7,#8,#9} context test can work fine, when I modify the above into: \define[10]\DEFINETEST{#1,#2,#3,#4,#5,#6,#7,#8,#9,#10} ...
1
vote
0answers
34 views

conTeXt: What should I do for compile a tex file when I have two different types of modules?

For resolving my previous question , according to [AboAmmar's answer] (http://tex.stackexchange.com/a/253658/81323), I must create a separate file m-resume.tex and use command texexec cv.tex to ...
1
vote
1answer
82 views

why the year “2007” can not be displayed in my generated pdf after compiling “http://wiki.contextgarden.net/Curriculum_Vitae”?

I want to use the resume template m-resume.tex and cv-resume.tex, and downloaded it, combined the two files into one file called resume.tex, and then used conTeXt mkiv's command context to compile it ...
4
votes
1answer
57 views

what is meaning of “\hbox to \hsize” in ConTeXt?

In many tex, I saw \hbox to \hsize, such as: {\hbox to \hsize \bgroup \hfill \setupframed[height=5cm,offset=.5em,frame=off,backgroundcolor=red] \framed[width=12cm,align=left]{#1}% ...
1
vote
2answers
61 views

How to implement a specific head or top like this in conTeXt?

all I want to use conTeXt for writing my resume, I found the head like the red area very awesome, but I don't know how to implement it, or what elements I should use to do it? After reading ...
3
votes
1answer
46 views

\usepackage{preview} equivalent for ConTeXt?

I would like to create a ConTeXt document cropped around a single \starttikzpicture \stoptikzpicture. How to achieve this by letting TeX infer the page size from the box dimensions?
2
votes
0answers
20 views

Why is there a left-shift in ConTeXt's \setuparranging

In this page arranging example, why don't the green lines align with the black lines?
4
votes
1answer
66 views

How to print page number over page containing \externalfigure in ConTeXt?

I'm trying to merge a full size PDF page into my document and then to print the page number over the top in the normal position. I've read the page on the wiki about inserting PDF pages ...
7
votes
1answer
107 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
99 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
56 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
212 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
61 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
76 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
67 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
73 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
64 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
34 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
115 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
204 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
109 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
84 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
130 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
120 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
160 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
117 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} ...
5
votes
1answer
95 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
144 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
114 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
152 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
104 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
50 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
70 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
137 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
82 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
104 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. ...
6
votes
0answers
132 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
218 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
130 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
320 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
185 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
156 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
109 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
200 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
72 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
115 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
180 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
172 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 ...