Tag Info

New answers tagged

0

In many cases, they key thing is to run fmtutil and NOT sudo fmtutil-sys. Your Linux distribution is supposed to take care of updating the system folders, but it will not (and should not) touch your user directory (as it may be on a network drive, shared by multiple computers). The message Fatal format file error; I'm stymied tells you that the versions ...


4

You can define \cref as follows: \definereferenceformat[cref][label=*] Then, for all enumerations, define: \setuplabeltext[corollary={Corollary }, theorem={Theorem }, ] Here is a minimal example: \definereferenceformat[cref][label=*] \setuplabeltext[corollary={Corollary }] \defineenumeration [remark] [ text=Remark, location=serried, ...


3

Building on @Metafox's command, you can use \startTEXpage ... \stopTEXpage to create a page with only tikz pictures. For example, \usemodule[tikz] \starttext % 1st picture \startTEXpage[offset=3mm] \starttikzpicture .... \stoptikzpicture \stopTEXpage % 2nd picture \startTEXpage[offset=3mm] \starttikzpicture .... \stoptikzpicture \stopTEXpage \stoptext ...


5

You can use the \framed command to draw the line as a background graphic for your text. When you create a new \framed command with \defineframed you have to apply all the settings only once. \startuseMPgraphic{fancyrule} draw (0,StrutDepth)--(OverlayWidth,StrutDepth) withpen pensquare scaled .4pt ; drawdot (OverlayWidth,StrutDepth) withpen pensquare ...


4

There are many other ways to do this in ConTeXt, but a literal translation of your method will be the following: \starttext \dontleavehmode \rlap{\lower 1pt \blackrule[width=\dimexpr\textwidth-4pt\relax, height=0.4pt]% \lower 2.6pt \blackrule[width=4pt, height=4pt]}% This text sits on the fancy rule. \stoptext which gives


7

ConTeXt and LaTeX are both based on TeX but have a different philosophy and syntax. Both can use one of the three different engines: pdftex, xetex, and luatex. The current version of ConTeXt, called MkIV, works only with luatex, the former version MkII can also run with pdftex and xetex. ConTeXt has a build-in MetaPost support, but also works with TikZ and ...


10

I'm not an expert on any of this but this is what I've been able to figure out. ConTeXt is a macro package, a peer of LaTeX. It happens to run only on the LuaTeX engine. LaTeX supports several engines, so you get LuaLaTeX and XeLaTeX, and I think (but may be mistaken) that "vanilla" LaTeX runs on PDFTeX or "original" TeX. The differences between the ...


2

To set a different font for certain characters in your document you can use the \definefallbackfamily command together with the \definefontfamily command. \definefallbackfamily [roboto] [ss] [Latin Modern Math] [range=0x025B6] \definefontfamily [roboto] [ss] [Roboto] [tf=style:light,it=style:lightitalic] % bf=style:regular,bi=style:italic ...


2

If you want just this one symbol, the fallback mechanism may be a bit overblown. You can use the \getglyph command: \definesymbol [1] [\getglyph{name:xits-math}{\char"25B6}] \starttext \startitemize \item This is an item in a list \item So is this \stopitemize \stoptext (I don't have the lucida font, but I think this is the symbol you want).


3

You need a font that has that symbol (and also use the proper way of defining symbols, if I'm not mistaken). Here's an example that does work, defining a fallback (Lucida) with the main font being Roboto Condensed Light. \usemodule[simplefonts] \setmainfont[Roboto Condensed Light] \setmainfontfallback[Lucida] [%range={0x00000-0xFFFFFF},% If you want to ...


3

Let's start with the easy part first: How to handle title translation and author. The ConTeXt way is to specify them as part of \starthead, e.g., \startpoem [title={First Poem}] [ translation={Primier Poema}, author={Daniel Lyons}, ] ... \stoppoem For this, we specify: \definehead [poem] [section] [alternative=poemtitle] ...



Top 50 recent answers are included