Changes

Jump to navigation Jump to search
489 bytes added ,  11:05, 9 February 2021
m
category Old Content
Page is focused on the old [[Mark_II|Mark II]] ConTeXt version, though <tt>\show...< /tt> commands are still the same. Work-in-progress page on current [[Inside ConTeXtLMTX]] | version is [[VisualsDebugging]] >.
  There's a whole lot of commands that help you analyzing and debugging your ConTeXt documents. Most of them start with <{{cmd>|show...</cmd> }} or <{{cmd>|trace...</cmd>}}. While <{{cmd>|showsomething</cmd> }} is a command that immediately inserts something, <{{cmd>|tracesomethingtrue</cmd> }} or ...<tt>false</tt> is a switch that influences the behaviour of some other commands. You can check the setting with <{{cmd>|iftrace...</cmd>}}. In the following we leave out the boolean value (true or false).
==Unordered==
<{{cmd>|tracefiles</cmd> }} : ?
<{{cmd>|tracepositions</cmd> }} : ?
<{{cmd>|traceposstring</cmd> }} : ?
<{{cmd>|traceboxplacement</cmd> }} : ?
<{{cmd>|traceotr</cmd> }} : output routine?
{{cmd|showboxes}} : show boxes
==[[Layout]]==
<{{cmd>|showlayout</cmd> }} : add four pages that show margins, layout sizes etc. {{cmd|showsetups}} : typeset a list of all defined sizes (variables) and their values {{cmd|showmakeup}} : show some otherwise invisible markup {{cmd|showframe}} : show frames of text area, layers, boxes etc. {{cmd|showlayoutcomponents}} : To allow Acrobat Reader users (among others?) to make layers visible/invisible at will, add this command at the start of your file. ===Show attributes of visual elements=== <texcode>\usemodule [setups] \starttext
<cmd>showsetups</cmd> : typeset a list of all defined sizes (variables) and their values% \setuphead [..,..=..,..]\showrootvalues [head]
<cmd>showmakeup</cmd> : show some otherwise invisible markup% \setuphead [chapter] [..,..=..,..]\showinstancevalues [head] [chapter]
<cmd>showframe\stoptext</cmdtexcode> : show frames of text area, layers, boxes etc.
===Grid, Layers and Column Sets===
<{{cmd>|tracelayers</cmd> }} : show boxes of layers
<{{cmd>|tracecolumnset</cmd> }} : ?
<{{cmd>|tracetextareas</cmd> }} : ?
<{{cmd>|showgrid</cmd> }} : make line grid visible
<{{cmd>|tracegridsnapping</cmd> }} : ?
===[[Tables Overview|Tables]]===
<{{cmd>|tracetables</cmd> }} : ?
<{{cmd>|traceTABLE</cmd> }} : ?
<{{cmd>|tracetabulate</cmd> }} : ?
==[[Math]]==
<{{cmd>|tracemathtrue</cmd> }} : show the layout boxes for left, middle, or right-aligned formulas.
<{{cmd>|tracemathcommand</cmd> }} : ?
<{{cmd>|tracemathcollection</cmd> }} : ?
<{{cmd>|tracemathsymbol</cmd>}}''{name of math symbol}'' : show the command (name of symbol) and the symbol itself
<texcode>
</context>
<{{cmd>|tracemathcharacter</cmd> }} : ?
==[[Bookmarks]] and [[References]]==
<{{cmd>|tracebookmarks</cmd> }} : ?
<{{cmd>|tracelinenotes</cmd> }} : ?
<{{cmd>|tracereferences</cmd> }} : ?
<{{cmd>|tracelabels</cmd> }} : ?
==[[Fonts]] and Type==
<{{cmd>|showbodyfont</cmd> }} : actual bodyfont family with all variants
<context>
</context>
<{{cmd>|showbodyfontenvironment</cmd> }} : draws a table that shows which point sizes match the relative sizes
<context>
</context>
<{{cmd>|showsymbolset</cmd>}}[''symbolset name''] : shows all the symbols within a given symbol set
<texcode>
</context>
<{{cmd>|showcharacters</cmd> }} : list of available chars of actual bodyfont encoding (approx. 4 pages, MkII only)
<context>
</context>
<{{cmd>|showmathcharacters</cmd> }} : list of all the available math (non-alphabetical) characters available in math, now including all the AMS characters. MkII only
<context>
</context>
<{{cmd>|showaccents</cmd> }} : shows A-Z and a-z with all available accents, MkII only
<context>
</context>
<{{cmd>|showstruts</cmd> }} : display struts (invisible placeholders for proper minimum line heights)
''(Make a better, slightly more complex example.)''
<{{cmd>|showfontstrip</cmd> }} : the current typeface combination, with roman, sans, math, and teletype families visualised, with x-heights
<context>
</context>
<{{cmd>|tracefonthandling</cmd> }} :
<{{cmd>|tracechinese</cmd> }} : ?
<{{cmd>|tracedfontname</cmd>}}''{Font Name}'' : Chain of synonyms for the given font name
<texcode>
</context>
<{{cmd>|tracedfontencoding</cmd> }} : ?
==[[Colors]] and Graphics==
===Colors===
<{{cmd>|showcolor</cmd> }} : see [[ColorsColor]]
<{{cmd>|showcolorgroup</cmd> }} : ?
<{{cmd>|showpalet</cmd> }} : ?
<{{cmd>|tracedgreymode</cmd> }} : ?
<{{cmd>|tracedgreycolormode</cmd> }} : ?
<{{cmd>|tracedrgbcolormode</cmd> }} : ?
<{{cmd>|tracedcmykcolormode</cmd> }} : ?
<{{cmd>|tracedspotcolormode</cmd> }} : ?
===Figures===
<{{cmd>|showexternalfigures</cmd> }} : ?
<{{cmd>|traceexternalfigures</cmd> }} : ?
<{{cmd>|tracesidefloats</cmd> }} : ?
===Interaction===
<{{cmd>|showfields</cmd> }} : ?
<{{cmd>|tracefields</cmd> }} : ?
<{{cmd>|traceJScode</cmd> }} : trace JavaScript code
{{todo|A lot of commands and switches are still unexplained.}}
 
[[Category:Basics]]
[[Category:Tools]]
[[Category:Layout]]
[[Category:Old Content]]
138

edits

Navigation menu