# Tag Info

6

Documentation: You can find the documentation for bibliographies here: bibmod-doc A new implementation is currently in beta. You can find the ducumentaion for it here: mkiv-publications From BibTeX to ConTeXt MKVI Some examples: These citation styles seem to work out of the box: (Author, YYYY) \cite[alternative=authoryears][author2001] Author ...

5

The cite format you are looking for ist called authoryear. You can set it as an option: \cite[alternative=authoryear][Willows1995] Or you can set it as the default style for \cite using the refcommand-option: \setuppublications [refcommand=authoryear]

1

The short answer is: You cannot suppress hyphenation at a page break in the usual TeX formats (plain, latex, context). You can discourage a page break at a hyphenated line (\brokenpenalty does this). Somewhat longer explanation: TeX breaks paragraphs into lines. The lines are than broken into pages without touching the line breaks again. So you can shift ...

0

For those without proper support for CTL (either in the Tex distro or OS), you can still use the devanagari package by Velthuis. But you'll have to convert all UTF-8/Unicode encoded Devanagari to velthuis transliteration.

1

Second edit You need to specify another column, in order to have it, within that specific math environment. If not, then you are better off by using plain math mode. Anyhow, the two commands that are key to have full control of the formula and the numbering, are \numberdistance and \distance. The former separates the referencing to be used while numbering ...

5

The following example defines \embedaudio. It implements the same specification for embedded media as the media9 LaTeX package. Audio files in the MP3 format are played back within the player component APlayer.swf shipping with media9. MP3 files specified as URL are first downloaded before embedding. Adobe Reader on the Windows or OSX platforms is required ...

3

The horoffset (horizontal offset) parameter of \setuplayout does that. The exact translation of your example will be: \setuplayout [ cutspace=1in, backspace=1in, topspace=1in, bottomspace=1in, horoffset=0.5in, ] \showframe % to visualize the layout \usemodule[ipsum] \starttext \ipsum \stoptext

1

I was going to comment, but then it would have been impossible to show you the results I was getting. Perhaps we should wait for someone, versed in metafun, to provide you with more options, and if this answer I find it, even a bit misleading, I will delete it afterward. Back to the question, I just don't see any problem if you were to increase offset, as ...

4

It's trivial: just use the \setuppapersize command twice. The only thing to bear in mind is that issuing a \setuppapersize midway down a page changes the page it is ‘on’, not the next page. You can also use \adaptpapersize to change the paper size for one page only, and ConTeXt will automatically return to the previous paper size after that. The wiki has ...

1

This ConTeXt Garden page lists the pret-c module. So the following should work. \installprettytype[C][C] \definetyping[C][option=C, tab=4] % defines \startC as shortcut for \starttyping[option=C] \definetype[typeC][option=C, tab=4, style=tt] % defines \typeC \definecolor[Ccomment][darkblue] \starttext bla bla \typeC{int main(){}} bla bla \startC int foo = ...

0

DISCLAIMER: This doesn't answer the question, I misunderstood it and thought the interest was on MkII. As I say at the bottom of the answer I don't know what's the system in MkIV (nor in MkII :D). Just copying from the link in the contextwiki you shared \input verb-c.mkii \setupcolors[state=start] \setuptyping[option=color] % define the colors to fit ...

2

I am not sure if this works in ConTeXt but in LaTeX I have been using this to include my C++ code. You should be able to change this to work with C as well. Preamble: \usepackage{listings} \usepackage{textcomp} \definecolor{listinggray}{gray}{0.9} \definecolor{lbcolor}{rgb}{0.9,0.9,0.9} \lstset{ %backgroundcolor=\color{lbcolor}, tabsize=4, % ...

3

Here is a basic usage for URLs: \definecolor[HyperlinkExternal][h=2F66B1] \setupinteraction[ state=start, color=HyperlinkExternal, ] \startasciimode \useURL [search] [https://www.google.com/search?q=context%20tex%20urls] [] [\ConTeXt search] \stopasciimode \starttext Perform a \from[search] for URLs. \stoptext This approach is ...

1

run luaotfload-tool -fuvvv --log=stdout and it shows you where fonts are searched

3

Like other TeX-related environmental variables, controlling OSFONTDIR requires understanding how variables are expanded by kpathsea. The key is to know that // (two consecutive / chars) is treated as a 'recursive' marker. Thus what you want is export OSFONTDIR="/usr/local/share/fonts//;\$HOME/.fonts// Before you alter this value, I'd be tempted to check ...

0

I'm not sure how or if you can do this in your TeX system, so this is just a partial answer. You can do something like (the syntax on your system might be different) for d in \$HOME/.fonts/*/; do OSFONTDIR+=":\$d" done to recursively add all subdirectories of \$HOME/.fonts to OSFONTDIR.

Top 50 recent answers are included