Thank you! --Joel
On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster
wrote:
Joel via ntg-context schrieb am 27.04.2024 um 19:16:
> \starttext
> test\high{1}test\footnote{some text}
> \stoptext
>
> How can I create a superscript number that has e
\starttext
test\high{1}test\footnote{some text}
\stoptext
How can I create a superscript number that has exactly the same formatting as a
footnote, but which won't create a footnote. I tried \high{}, which I believe
should be the way to superscript text, but if you compile this, you can see
2, 2024 at 07:22:24 AM MDT, vm via ntg-context
wrote:
On 22/04/2024 14:38, Joel via ntg-context wrote:
> Is this the correct way to be using the \startpostponing code (see
> example below)?
>
> \starttext
> \input knuth
> \startpostponing
>
Changing location=none to location=text still left me with the bullet points
appearing in a big list at the end of my chapter, but without any messages in
them.
On Monday, April 22, 2024 at 07:54:39 AM MDT, Joel via ntg-context
wrote:
A few years back, I tried using endnotes
A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to
compile. I'm forced to try again (due to some other issue with footnotes), and
instead of compiling to error, it compiles, but the footnote's message ends up
being empty.
Why is it appearing empty? Is there a fix?
ntg-context
wrote:
On 4/22/2024 2:45 AM, Joel via ntg-context wrote:
> I'm three days out from sending my work to an editor, and found some
> serious problem: many footnotes just aren't rendering.
>
> I have a history text that uses ConTeXt-SBL for the citations, as such,
&
I'm three days out from sending my work to an editor, and found some serious
problem: many footnotes just aren't rendering.
I have a history text that uses ConTeXt-SBL for the citations, as such, it has
lots of footnotes. Sometimes the footnotes are just in the main text, but
sometimes also in
I'm about to have a lengthy (2,000+ page) document published. Normally if it
compiles and looks okay, I regard that as meaning no errors appeared, but I've
noticed that sometimes ConTeXt will still compile, even if something isn't
displayed on screen as it should:
(1) I tried placing a table
I have a document with PNG, JPG, and TIFF. When I try using
\externalfigure[filename][frame=on, width=.\textwidth] it displays JPG and
PNG fine, but the TIFF files don't render. Is TIFF not supported in ConTeXt
anymore? --Joel
I have code like this:
\placefigure[here, force]{my caption}{%
\externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%
}%
I need some images to appear in a book. I need them to keep their proper
ratios, but scale up to the maximize the available space.
The
\starttext
\setupheadertexts[Name:~][Date:~__][Date:~__][Name:~]
\setupfootertexts[][pagenumber][][pagenumber]
\input knuth
\stoptext
I used this code to create header texts that prints Name / Date on the
Thank you! The solution worked!
On Friday, March 15, 2024 at 02:30:40 PM MDT, Wolfgang Schuster
wrote:
Joel via ntg-context schrieb am 15.03.2024 um 20:50:
> When I run this code, \at{page}[xyz] is unable to find the cross reference:
>
> \starttext
> %\r
When I run this code, \at{page}[xyz] is unable to find the cross reference:
\starttext%\reference[xyz]{}
\starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|]
\NC \reference[xyz]{} \NC \NC\NR
\stoptabulate
\pagebreak
\at{page}[xyz]
\stoptext
The code does work when I uncomment line
I'm not understanding in a much much larger document how I sold this, as I've
tired placing \dontleavehmode in different places, but no success.
On Wednesday, March 13, 2024 at 04:46:54 PM MDT, Wolfgang Schuster
wrote:
Joel via ntg-context schrieb am 13.03.2024 um 23:27:
> Af
What is an anchor? Does that mean the index needs to me next to some items,
like placed next to some text?
On Wednesday, March 13, 2024 at 04:46:54 PM MDT, Wolfgang Schuster
wrote:
Joel via ntg-context schrieb am 13.03.2024 um 23:27:
> After many hours of trial-and-error, I was a
{turtles}
For reasons I can't understand, the index produces the same [entry not flushed]
error. It seems here happening when contents are input.
My code is so simple, I can't understand what I've typed wrong.
--Joel
On Wednesday, March 13, 2024 at 12:51:56 PM MDT, Joel via ntg-context
wrote
that blank spot?
--Joel
On Wednesday, March 13, 2024 at 07:53:21 AM MDT, Joel via ntg-context
wrote:
I have some custom registers that I use to index some information. When
compiled, it just prints [entry not flushed] instead of printing some of the
page numbers.
I have tens of thousand
I have some custom registers that I use to index some information. When
compiled, it just prints [entry not flushed] instead of printing some of the
page numbers.
I have tens of thousands of lines of code, so have no idea how to break the
problem down to a minimal example. What does [entry not
How to set section title based on section content?
I have a document that has some structures like this:
\starttext
\startsection[title={Animals}]
\event{\input knuth }
\stopsection
\startsection[title={Books}]
\event{\input knuth }
\stopsection
\stoptext
The event macro runs a bunch of
I have an extensive multi-book project. Each book has a nickname, like TB for
"Textbook", "WB 1" for the "Workbook, Vol. 1":
TB -- 01_textbook.texWB 1 -- 03_workbook.texWB 2 -- 04_workbook.texWB 3 --
05_workbook.tex
WB 4 -- 06_workbook.tex
TG -- 08_teachersguide.tex
I have to prove to a
I have a document that uses ~40 different TABLE configurations, each with their
own special requirements, such as these below, and in total, perhaps 2000
tables appear in a file, using one of the configurations.
\setupTABLE[r][1][align=raggedleft]
With the command `\input file`, I can input the entire contents of `file.tex`.
Is there a way to limit it to the first n lines, for instance, something like
`\input[10]` file would only input the first 10 lines from `file.tex` and
ignore the rest of the lines.
--Joel
\input knuth
\input knuth
\input knuth
\input knuth
\stoptext
--Joel
On Saturday, May 20, 2023 at 07:49:45 PM MDT, Joel via ntg-context
wrote:
I have been using \placefigure[here, force] to place some graphics, but its
instead showing other text from the next section
I have been using \placefigure[here, force] to place some graphics, but its
instead showing other text from the next section, then the picture. In testing,
this is causing readers to be confused, as they expect to see a picture, but
its somehow appearing two pages later. I don't care it it
I have a document like this:
\starttext
\index{dogs}
\index{cats}
\index{flowers}
\index{snails}
\index{trees}
\placeindex
\stoptext
As I understand, if you use
I have an index like this:
\starttext
\index{butterflies}\index{horses}\index{cows}
\placeindex
\stoptext
The placeindex will place every index.
Is there a way to say, display an index, but only for a specific single entry,
or specific list of entries, e.g.
\placeindex[horses, cows] (would
I have a document that needs to place some "hidden" data. In other words, there
is an entire \input file with an article, but it doesn't get rendered visibly.
However, the indexes, registers, and bibliography need to still function as if
it were displayed right there on the page.
It should be
I am trying to place a bibliography at the end of the chapter, not the end of
the whole document. I tried various code such as `criteria=bychapter` etc., but
it will only show the entire bibliography for the whole document. How can I
limit the list to the material falling within that chapter?
, Joel via ntg-context
wrote:
I've set a \pagereference in a chapter, and want to print its chapter title
and page number, ex.
"You can find more information in "Fish" on p. 1" (where "Fish" is the title of
the chapter or section).
I've tried looking
I've set a \pagereference in a chapter, and want to print its chapter title and
page number, ex.
"You can find more information in "Fish" on p. 1" (where "Fish" is the title of
the chapter or section).
I've tried looking all through the wiki, thinking this was a basic feature, but
couldn't get
I need to report every chapter that a particular macro appeared. I would do
this by placing `\pagereference[sample]` inside the macro definition, so
whenever it is called, it marks the reference info. But I can't seem to get
references to work with multiple reference locations marked, example:
ok project to great success!
We need to thank Hans for the quick implementation.
Alan
On Fri, 24 Feb 2023 05:43:01 +0000 (UTC)
Joel via ntg-context wrote:
> I am making a textbook and workbook set.
> I have this custom index using this code, in both the textbook and
> workbook:
I have a list like this:
\startitemize[1]\item fish\item eggs\item milk\stopitemize
Is there any command in ConTeXt to make this display the items as a
comma-separated list, like this:
fish, eggs, milk
Or a semi-colon-separated list?
fish; eggs; milk
--Joel
I am making a textbook and workbook set.
I have this custom index using this code, in both the textbook and workbook:
%
\defineregister[learnedshort][compress=yes]
\setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2,
pagenumber=yes, indicator=no]
%
I am creating a template for a 1-page newsletter.
At the top of every page is a huge title, below which is a block with a brief
introduction to the newsletter. The body is just 200-300 words each issue--I
edit it such that all of the content fits on just one-side, one page. Finally,
in the
the citations. The
rest of the text is plain text with no other ConTeXt markup, or at leave hardly
any.
--Joel
On Thursday, January 26, 2023 at 11:44:07 PM MST, Hans Hagen via ntg-context
wrote:
On 1/27/2023 4:22 AM, Joel via ntg-context wrote:
> Assuming I have an input file with an es
Assuming I have an input file with an essay:
\starttext
\input essay
\stoptext
Is there any command to tell ConTeXt to print a specific sentence, e.g. the
first sentence from paragraph 2, or the last sentence from paragraph 1, etc?
--Joel
I setup a custom index like this (see minimum example code below):
The problem is, when I try to create an index entry, using \setcoreidea, but
place \getvalue inside, it won't render, ex.: \setcoreidea{\getvalue{secret1}}
As you can see in this sample code, \setcoreidea will work fine, but when
When I am using the SBL ConTeXt files for citations, if I add a line
`\setupinteraction[state=start` my code starts complaining:
Undefined control sequence \currentbtxloctext
\16>:btx:sbl:cite:inline
#1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup
{btx:sbl:cite:lefttext}\begingroup
I am creating a book that presents readers with a list of recommended materials.
If materials are listed, then its displayed under the \subject{Materials}
heading in a simple itemized list.
I'm using \doifsomething{} to check if any items are listed.
The problem I'm having is, when fed a blank
Thanks so much! It took some work for me to figure out how to make it work,
but it now works great!
--Joel
On Monday, December 5, 2022 at 05:15:49 AM MST, Hans Hagen via ntg-context
wrote:
On 12/4/2022 11:30 PM, Joel via ntg-context wrote:
> I can use this code to display page 5 f
I can use this code to display page 5 from a
PDF:\externalfigure[filename.pdf][page=5]I am making a teacher's guide for a
workbook (workbook.pdf). I need to be able to display on the page all pages of
a particular section.
The teacher's guide uses the same section titles as the workbook, e.g.:
I have some combinations used throughout my document like this:
\starttext
\startcombination[4*2] {%
\framed[width=.25\textwidth, height=.25\textwidth]{}%
}{%
\strut word \\ \thinrule\hairline\hairline%
}%
How can I allow margin text to break across the page breaks?
I have a document with many \inmargin code.
The problem I'm finding is that sometimes I have a lot of items in the margin.
I hope this margin details can break across the page and continue onto the next
page. The problem is instead it
I need to make a section of text in my document narrower, about .\textwidth.
Basically the text has normal alignment and everything, just instead of filling
\textwidth, its compressed so there is a larger white space to the right.
I've tried dozens of things, but cannot get a good solution,
When I place a tabulate environment inside itemize, it indents and the entire
table is shifted to the right about 1/2".
\starttext
\input knuth
\startitemize[n]
\item x
\stopitemize
\startitemize[n]
PM, Joel via ntg-context wrote:
>
> I have a very large document that, when compiled, produces a PDF, but reports
> the error "mtx-context | fatal error: return code: 1".
>
> The PDF can open, but after about 100 pages in, the content starts appearing
> all in the w
I have a very large document that, when compiled, produces a PDF, but reports
the error "mtx-context | fatal error: return code: 1".
The PDF can open, but after about 100 pages in, the content starts appearing
all in the wrong place.
Usually when I compile, it says there is an error, and I
I have a simple tabulate environment like this:
\starttext
\starttabulate[|p(.45\textwidth)|cp(.1\textwidth)|p(.45\textwidth)|]
\NR
\HL
\NC Cause \NC \NC Effect \NC\NR
\HL
\NC \NC \NC
I have code like this which randomly pulls a page from `comic2.pdf` and
displays it, scaled to fit \textwidth, then displays four more random pages
afterwares.
\starttext \dorecurse{5}{
\placefigure[force,
These both work great, but do that for the whole document? Is there a way to
restrict it to only apply the lines to some parts of the file, not every single
paragraph?
Thanks!
--Joel
On Monday, October 10, 2022 at 04:57:07 PM MDT, Max Chernoff
wrote:
Hi Joel,
On Mon, 2022-10-10 at
When I use the code given, it compiles and displays fine. But when I try
replacing \everypar with \EveryPar, it halts during compiling with this
complaint:
"A number should have been here; I inserted '0'. (If you can't figure out why I
needed to see a number, look up 'weird error' in the index
I have some text that is a block quote, but also has line numbering:
\setuplinenumbering[step=3] \starttext
\startblockquote
\startlinenumbering
\input knuth
\stoplinenumbering
\stopblockquote \stoptext
The line numbering is
Hello Max,
It is preferred if the solution is just three lines per paragraph, rather than
some content parallel to the text...I'll be modifying whatever solution to fix
a bunch of other situations (e.g. display a box next to each paragraph).
--Joel
On Monday, October 10, 2022 at 12:24:03
I'd like to add some area for readers to write in the margins of some text.
This would leave three lines, like this to the right of the text.
__
The passage would take up about the left 60% of the text and the margin note
space about 30% of textwidth, so no need to use the
I have some settings like this, which define the part, chapter, and section
titles within a file that contains all of my common settings for all files.
\definepagebreak[chapterpagebreak][yes, right]
\setuphead[part][style=\sse, placehead=yes, expansion=yes]
\setuphead[chapter][style=\sse,
I was using this code for a long time in my document. I have a PDF with 10
pages, and this would randomly display one of those pages:
\ctxlua{math.randomseed( os.time() )}
\getrandomnumber \n {1} {10}
\placefigure[force,
I wrote this macro to display images in my book. It should place the image to
the left, filling ~50% of \textwidth, then the caption is to the right.
\setupcaption[location=right, minwidth=.5\textwidth]
\define[4]\figureis{%
\placefigure{#2, Courtesy #3, photo no.
I have a document with conditionally-generated content.
There are some situations when I need the section title to change according to
the content displayed within that section.
For instance, the 14th section that appears in *every* chapter is either called
"Cause and Effect" if the conditions
I need to display a table of contents, but only displaying chapters.
Here is my minimum working example:
\starttext
\startfrontmatter
\startchapter[title={Contents}]
\placelist[chapter]
\stopchapter
\completecontent
\stopfrontmatter
\startbodymatter
I had https://github.com/jjmccollum/context-sbl this module working fine, but
ran and update, and somehow it deleted my extra files. I can't figure out how I
was able to get it working in the first place--I had just copied all the files
to a folder somewhere.
What is the correct way to install
Adding the brackets + file name also didn't work.
--Joel
On Sunday, May 29, 2022, 11:33:48 AM MDT, Henning Hraban Ramm via
ntg-context wrote:
Did you try \input{file.tex} ?
(Just an idea, didn’t try.)
Hraban
Am 29.05.22 um 18:34 schrieb Joel via ntg-context:
> After a recent upd
After a recent update to ConTeXt, the code no longer seems to allow me to
\input a file within a table:
\starttext
\starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
\HL
\NC {\bf Term} \NC {\bf Definition} \NC\NR
\HL
\input test2.tex %
I have been using \endash, \emdash, and \figuredash in place of the various
types of dashes in my document, \quotation{} around quotes, etc. so basically
the only really punctuation appearing in the tex file are periods, commas,
semi-colons, colons, apostrophes, and question-marks. The problem
I created a chapter title style with a large number telling the chapter number,
and below it the title of the chapter.
It looks like this:
- 1 <--really big chapter
number=== <-- there is a border created by a background image between
these
16:21 schrieb Joel via ntg-context:
> I have a font that already comes with a smallcaps variant.
>
> How do I define it?
>
> I've tried the following, which I think should work from the
> documentation I've seen, but doesn't:
>
>
> \starttypescript[serif]
I have a font that already comes with a smallcaps variant.
How do I define it?
I've tried the following, which I think should work from the documentation I've
seen, but doesn't:
\starttypescript[serif] [garamond]
\definefontsynonym[Serif]
After I ran an update on ConTeXt, my code gets an error:
\starttext
\starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
\HL
\NC {\bf Term} \NC {\bf Definition} \NC\NR
\HL
\input test2.tex
\HL
\stoptabulate
\stoptext
File test2.tex contains "\NC {\bf Term}
I am creating a student workbook. There are ~30 chapters, each containing ~20
activities, called "Activity A", "Activity B", and so on.
The `workbook.tex` itself uses a recurse function, so it prints chapter 1-30.
The reason I use this, is if I need to do a fast test of the code, I can
compile
When I used `\placefigure`, ConTeXt often puts the figure on a completely
different page, my readership of young students is getting confused where the
image is. How can I have all of my `\placefigure` in the entire document appear
exactly where called, even if that means having to place it on
I have several books in a set that have many things I'd like to have linked
together, such as page references, shared indexes, shared glossaries, etc.
One solution I see is putting all the files together, then using a tool like
pdfjam to seperate the pages later, but I'm wondering if ConTeXt
I have a section somewhat like this...I'm replacing the code with something
much simpler, but its basically doing a similar thing, running conditionals to
check which content to place:
\section{Brave Rabbits}
\ifnum\somenumber>3 Print this content about rabbits. \else
I am finishing the final touches on a manuscript, which I hope to send to a
publisher later today and noticed this problem where bold and italic text isn't
rendered at the same time.
I am using the EB Garamond font in my document. I set it up exactly as shown
below. Strangely, bold works,
I am writing a workbook that contains a materials list in front of some craft
activities.
I found that simply displaying a bulleted list can take up lots of space on the
page, so instead put the list in three columns. The problem is, if there is an
item with a somewhat long description, it can
I have about several different types of list that reoccur multiple times in my
documents. Though I tried to keep things simple, by just defining the type when
it appears, strange glitches appear. For instance, I have one that uses the ☞
(pointing hand) logo, and sometimes that randomly appears
I'm spinning this question off another post, as my previous question was very
specific, but it was possibly discovered a more general bug exists?
I'm creating some lecture slides that have footnote citations throughout. The
problem is, the slides themselves already don't have much screen space,
I am adding items to an index simply using `\index{word}`.
There are a few cases where instead of printing just the page number where
`\index{word}` is placed, I need the entire page range for that chapter to be
displayed. For instance, if Chapter 3 spans page 22-50, and I place
`\index{word}`
I am trying to create an in-text list, with parenthesis, but without the period.
If I use this `\startitemize[text, n]`, I get an in-text list, but there are
periods:
There are many kinds of animals at the children's zoo: (1.) rabbits, (2.) pigs,
(3.) sheep, and (4.) dogs.
Strangely when I use
l but is better than not having the index
showing anything.
--Joel
On Tuesday, January 18, 2022, 07:41:15 AM MST, Henning Hraban Ramm via
ntg-context wrote:
Am 18.01.22 um 14:27 schrieb Joel via ntg-context:
> One possible solution I see, since the textbooks and workbooks s
readers which of
the five "page 5's" (for example) the index is referring to. --Joel
On Tuesday, January 18, 2022, 06:19:01 AM MST, Joel via ntg-context
wrote:
I am writing a secondary textbook to be used in public schools. In my state,
the textbooks must adhere to
I am writing a secondary textbook to be used in public schools. In my state,
the textbooks must adhere to standards, such as the Common Core State Standards
(CCSS). It is typical for a textbook to contain an index for teachers to check
where in the textbook which standards are used. I've used
I need to display one article within my book that is in double space, like what
is a basic requirement in US colleges for turning in papers. Basically, I need
readers to have lots of space above the text to be able to write some notes
above every line.
This is a line of text.
% <-- here is the
I created a book that strangely renders with an entirely blank page. There are
tons and tons of macros, in dozens of files defined before the document starts,
but the document itself starts quite simply with a title page set inside
\startfrontmatter. How can I identify what types of preamble
I am a few days from sending a document to a publisher, and using the Society
of Biblical Literature style (via the macro ConTeXt-SBL) as it is very close to
what I need, Chicago (numbers style) citations. One glaring difference I notice
between the two styles is ConTeXt-SBL presents the titles
I created a custom index that displays a list of "Important Dates" appearing in
my book. It lists the year, a short description of what happened, and should
show the page number.
I'm running into two errors though:
First, if the date is the same year, it is sorting alphabetically, example
Is there a way for a macro to check the previous value of #1, the last time
that same macro was called?
Here is a minimum working example, pretending that `\previousvalue` is equal to
#1 from the last time the same macro was called:
\define[1]\mymacro{
\if\previousvalue=#1
\bTD Mesozoic Era\eTD
\eTR
\bTR
\bTD Cenozoic Era \eTD
\eTR
\eTABLE
Willi
> On 8 Jan 2022, at 22:39, Joel via ntg-context wrote:
>
> I created a table that has some cells span multiple rows. This works good
> with cells that span an odd-number of rows, bu
I created a table that has some cells span multiple rows. This works good with
cells that span an odd-number of rows, but when I try to span 4 rows, the text
isn't quite vertically centered. How can I get the cell with the text "Archaeon
Eon" to be a little lower, so it is centered within its
I am using \index{} to populate \placeindex (an index) with items.
I am wondering if there is any syntax that allows one \index{} command to
define more than one entry, for example, something like this:
\index{presidents+Lincoln, Abraham; Lincoln, Abraham}
The result is two appearances in the
I am using the ConTeXt-SBL package for citations. I need to move my footnotes
to the end of each article.
According to the manual, I can suppress the placement of footnotes using two
lines of code. I've added these to my minimal working code, placing
\setupnote[footnote][location=none] in the
I am using the ConTeXt-SBL module to handle the citations in my article. Using
the plain \cite[na2006] command has worked fine.
But there are some situations where I want the footnote to include page number
details. I tried using \cite[extra=2][na2006], but that doesn't seem compatible
with
I could not find any existing solution for using Chicago-Turabian "note" style
in ConTeXt, so I have started my own attempt.
Chicago-Turabian uses footnotes to display the author's details on the same
page, but also uses a bibliography to display an alphabetical list of the
sources again at
92 matches
Mail list logo