[NTG-context] ConTeXt's equivalent of raisebox

2021-10-10 Thread noib3 via ntg-context
How can I make vertical microadjustments to individual characters in ConTeXt? In LaTeX I would do it with ``` \documentclass{article} \begin{document} \raisebox{-1pt}{f}oo \end{document} ``` however the following doesn't work ``` \starttext \raisebox{-1pt}{f}oo \stoptext ```

[NTG-context] Default values for key-value macros

2021-10-10 Thread noib3 via ntg-context
The way I've been defining key-value macros is to first pass them to Lua, handle the parsing there thanks to `utilities.parsers.settings_to_hash` and then assign the resulting Lua table to ConTeXt variables. This worked fine up to now, but I'm having problems with the following MWE: ```

[NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread noib3 via ntg-context
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL [github] [https://github.com/test] [] [github.com/test] \starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ``` I have attached a screenshot

[NTG-context] ConTeXt's equivalent of standalone class

2021-10-02 Thread noib3 via ntg-context
Coming from LaTeX, when I had some TikZ pictures I wanted to add in my document I would usually keep them on a separate file, I would compile them with the standalone class so that the resulting PDF's size would be limited to exactly the dimensions of the figure. I would then import the compiled

[NTG-context] Different footers for frontmatter and bodymatter

2021-08-18 Thread noib3 via ntg-context
I'd like to have two different footer setups: one for the frontmatter (titlepage and table of contents) where the page number in roman numerals is reported as a single centered footer. Another for the bodymatter where the chapter is on the left footer and the pagenumber is on the right. I can

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
I'm trying to create a new lecture environment starting from the base section. I'd like its title to be `Lecture : ` if a title is provided, and `Lecture ` if it isn't. This title should also be reported in the left footer and in the table of contents. This is the code I have so far: ```