# Tag Info

2

If you want the page number to appear above a pdf image which fills the entire paper area, you will have to put it into the background. One way to achieve this would be a layer: \definelayer [fullpage] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight] \setlayer [fullpage] [hoffset=0mm,voffset=0mm] ...

0

To follow-up the discussion in the comments of David Carlisle's answer about the unicode-math package: In LaTeX, there are two fonts in math mode: one for letters (variables), usually called math font (better called math letter font); one for words, usually called math text font (better called math word font), and one text font in text mode, usually ...

3

You have to use the the \rawcountervalue command to access the numeric value of the counter and not \convertedcounter (or the old name \getnumber) which prints the formatted representation of the counter. \definecounter[eintraege][way=bytext,prefix=no] \setcounter[eintraege][1] \definecounter[horst][way=bytext,prefix=no] \setcounter[horst][3] \starttext ...

8

The use of math alphabet commands in unicode-math is somewhat broken there are open issues at github which mentions \mathit but \mathrm is the same. You can redefine \mathrm to use the Roman text font as follows: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \setmathfont[range=\mathup]{Latin Modern Roman} ...

3

There are many different ways to change the layout of a certain text block. To change the color of a paragraph you can enclose it in a \startcolor environment. \starttext \input ward \startcolor[orange] \input ward \stopcolor \stoptext To choose a special font for a paragraph you can use the \startfont environment which takes the same argument as the ...

3

This was a bug! It has been fixed in the beta ver: 2015.5.11. If you are using ConTeXt standalone, you can update your distribution and these will work. The fix would also be part of TL2015. In case you are wondering, why such this bug existed, ConTeXt has an experimental feature (motivated by MathML fences). For example, if you want the \lfloor ... ...

0

If your OSFONTDIR environment variable is set correctly, then installing (new) system fonts in modern versions of ConTeXt should be as easy as executing the following command: $mtxrun --script fonts --reload 4 This is fixed in today's beta (ver: 2015.05.09). The labels for \sin, \cos, etc., now use text serif font rather than math upright. 1 Half part intuition, half part RTFM and I am answering myself. Definition that does the trick: \setupcaptions[table][location=top] \setupcaptions[figure][location=bottom] \setupcaptions[way=bysection,prefixsegments=section,headstyle=\bf] 2 My solution might not be exactly what you ask for, but works for me. I divide tables in fractions of \textwidth and \textheight and manually set them for each table. \starttext \bTABLE \setupTABLE[r][1][width=\textwidth,height=0.4\textheight] \setupTABLE[r][2][width=\textwidth,height=0.6\textheight] \bTR \bTD One \eTD \eTR \bTR \bTD Vertically Filled! ... 3 You need to add the fallback for dagger: \unprotect \definefontfallback [pagellaovereuler] [texgyrepagella-math] [0x02020] [\c!check=\v!yes,\c!force=\v!yes] \protect Full working example: \usetypescriptfile[euler] \definetypeface[mainface][rm][serif][palatino] [default] \definetypeface[mainface][ss][sans] [helvetica] [default] ... 0 Self-answer:$x^{\text{†}}\$. :-/

1

If you are willing to mark up the title page separately, here is one possibility. I change the margins of the first page, and set the frames and picture as layers. % To visualize the page areas % Needs to be placed on the top, because it resets the page backgrounds \showframe % Layout for regular pages \setuplayout [ topspace=1cm, ...

4

Let's proceed in steps: 1. Showing file listing The command \typefile displays the file verbatim. So \typefile[xml/book.xml] will display the XML code, but without syntax highlighting. To enable syntax highlighting with \typefile use \typefile[option], where option is either TEX, LUA, or XML. So, to get syntax highlighted XML code, use: ...

3

You shouldn't use @ in command names, when using ConTeXt; but you should be aware of the fact that ConTeXt uses Unicode math, so the standard math code of the hyphen cannot be accessed to with \mathcode. \begingroup \catcode\"=12 \catcode\=12 % added a safe setting for the backquote \gdef\newmcodes{\mathcode\'39\mathcode\*42\mathcode\."613A ...

1

Sure, but with ConTeXt you could do the same. In fact, the first example is just a sum of my mistakes, before I realized, that a TABLE can be used to accomplish what you want. \def\framedbox#1#2 {\hbox to 2em\bgroup \setupframed[height=10cm,width=3cm,framed=off] \framed[width=2cm,align=left]{#1} \egroup} \setupcolumns[n=2,] \starttext \title{\hfil A test} ...

Top 50 recent answers are included