Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
The several responses to my floundering with the register have been very 
helpful, though I would have to confess that I have ended up 'messing 
with' things (suggested by Hans re the [key]) and getting a satisfactory 
result in almost every case without always understanding why. But I can 
say that I have the 'sorting' issue resolved if it is a main entry, 
including if that entry is surrounded by quote marks or has one part of 
that entry formatted differently (e.g. italics).


But I don't seem able to apply this to subentries! I cannot solve the 
sorting of subentries that have special features (e.g. I might have 
needed italics for part of a subentry, or the subentry is surrounded by 
quote marks).


Here are my two situations (and in each case they appear out of 
alphabetical order in the subentry list):


1. \index{animals+‘special kinds’}: in this case ‘special kinds’ appears 
in the subentry list at the bottom of the list, after one that starts 
with 'v'. I 'messed with' this by adding keys, e.g., \index[Animals] 
etc. but  the item disappeared from the index altogether.


2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 'i' 
rather than after 'p'. Again I tried putting various keys but this did 
not help.


I guess my confusion is this: I assumed that the [key] establishes the 
literal string which determines sort order. That seems to be the case 
for a main entry. How do I get it to work for a subentry?


Julian

On 29/1/22 21:39, Hans Hagen wrote:

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I 
have to understand how, as you say, to 'set the sort entry to the 
unformatted version' which is not clear to me at the moment. I'll 
tackle it on the morrow when I'm thinking more clearly!

there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the 
entry itself is also part of the final sort key


the accumulates sort key is sanitized and after that sorting happens 
in several stages (these can be defined / adapted) according to 
language, taking numbers into account and finally using the unicode 
ordering ...


you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and 
the code seldom changes but of course evolved)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to stop columns from splitting up items in a list?

2022-01-29 Thread Bruce Horrocks via ntg-context


> On 29 Jan 2022, at 14:45, Joel via ntg-context  wrote:
> 
> 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 be split across columns. 
> See the example below:
> 
> \starttext
> \startcolumns[n=3]%
> \startitemize[1]%
>  \item pizza cutter
>  \item a word processor (or notebook paper)
>  \stopitemize%
>  \stopcolumns%
> \stoptext
> 
> In the example, it split the second item across the columns.
> 
> How can I create columns that don't allow the item to split across them?
> 

Have you tried 

\startitemize[columns,three]

instead of \startcolumns?

There are examples in the manual on page 16


The spacing can be adjusted as well if the default is too big.

—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
On 29 Jan 2022, at 21:30, Joel via ntg-context  wrote:
> 
> 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 a new 
> page with lots of space before it or even a new page afterwards? I need it to 
> show up in the order it was called. I think 
> `\setupexternalfigures[location=]` should provide the solution, but cann't 
> figure what is the correct location, I'm not seeing that in the manual 
> anywhere.

Use the force Luke...

e.g.
\placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]}

The location= option is for where on the page (e.g. in a margin, in the main 
text) the picture will go, the actual page it appears on is controlled by 
'here' or 'force' or the default which is to float along until it finds what it 
thinks is a good place.

—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Otared Kavian via ntg-context


> On 29 Jan 2022, at 18:03, Denis Maier via ntg-context  
> wrote:
> 
> IDK, but then it's probably a font issue?
> […]
> This thread is outdated, you can now stack styles.
> 
> \starttext
> 
> text {\italicface text {\boldface text} text} text
> 
> \stoptext
> 
> Wolfgang

However there seems to be an inconsistency, as in the example below: in this 
particular example it is better to use explicitely \bi to have bold italic.

\starttext

text {\italicface text {\boldface text} text} text

text {\it text {\bf text} text} text: here the third instance of text is in 
boldface, but not in italic boldface.

text {\it text {\bi text} text} text

\stoptext

Best regards: Otared
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Joel via ntg-context
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 a new page with 
lots of space before it or even a new page afterwards? I need it to show up in 
the order it was called. I think `\setupexternalfigures[location=]` should 
provide the solution, but cann't figure what is the correct location, I'm not 
seeing that in the manual anywhere.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to create multiple PDFs from one TeX file?

2022-01-29 Thread Hans Hagen via ntg-context

On 1/29/2022 3:47 PM, Joel via ntg-context wrote:
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 
can already produce multiple files, or a split in the PDF, already?


I tried this code below, as I hoped it would create two PDFs, but it 
only rendered everything between the first set of `\starttext` and 
`\stoptext`.


--Joel

Minimum example:

\starttext

This is document 1.

\input knuth

\stoptext

\starttext

This is document 2.

\input knuth

\stoptext

context --extras select

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Denis Maier via ntg-context
IDK, but then it's probably a font issue?

Denis

Von: ntg-context  im Auftrag von Wolfgang Schuster 
via ntg-context 
Gesendet: Samstag, 29. Januar 2022 17:57:17
An: mailing list for ConTeXt users; Adam Reviczky via ntg-context
Cc: Wolfgang Schuster; Adam Reviczky
Betreff: Re: [NTG-context] Why isn't bold + italics working together?

Adam Reviczky via ntg-context schrieb am 29.01.2022 um 17:19:
> Hi Joel,
>
> I don't think you can stack those, just use \bi (see:
> https://wiki.contextgarden.net/Font_Switching)
>
> \starttext
> \startitemize
> \item This text has {\bf bold} in it.
> \item This text has {\it italics} in it.
> \item Why doesn't this have {\bi bold and italics} in it?
> \stopitemize
>
> See also: https://www.mail-archive.com/ntg-context@ntg.nl/msg4.html

This thread is outdated, you can now stack styles.

\starttext

text {\italicface text {\boldface text} text} text

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Wolfgang Schuster via ntg-context

Joel via ntg-context schrieb am 29.01.2022 um 15:46:
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, italics works, but when bold and 
italics are together, it only display in italics, it doesn't display a 
bold italic text. I've confirmed the `EBGaramond-BoldItalic.otf` font is 
present and seems just fine. I've also tried by just using the default 
ConTeXt font and the error still appears, also in 
live.contextgarden.net. I tried searching the mailing list, as this 
seems like something that must have come up, but couldn't find any 
question about this.


Why won't it render both?


See Adams answer.


\starttypescript[serif] [garamond]
\definefontsynonym[Serif] [file:~/.fonts/12/EBGaramond-Regular.otf]
\definefontsynonym[SerifBold] [file:~/.fonts/12/EBGaramond-Bold.otf]
\definefontsynonym[SerifItalic] [file:~/.fonts/12/EBGaramond-Italic.otf]
\definefontsynonym[SerifBoldItalic] [file:~/.fonts/12/EBGaramond-BoldItalic.otf]
\stoptypescript


Don't use absolute paths in \definefontsynonym, when you use a local 
folder for your font files set the path with \usefontpath.


 begin snippet
\usefontpath [~/fonts/12/]

\starttypescript [serif] [garamond]
\definefontsynonym [Serif] [file:EBGaramond-Regular.otf]
...
\stoptypescript
 end snippet

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Wolfgang Schuster via ntg-context

Adam Reviczky via ntg-context schrieb am 29.01.2022 um 17:19:

Hi Joel,

I don't think you can stack those, just use \bi (see: 
https://wiki.contextgarden.net/Font_Switching)


\starttext
\startitemize
\item This text has {\bf bold} in it.
\item This text has {\it italics} in it.
\item Why doesn't this have {\bi bold and italics} in it?
\stopitemize

See also: https://www.mail-archive.com/ntg-context@ntg.nl/msg4.html


This thread is outdated, you can now stack styles.

\starttext

text {\italicface text {\boldface text} text} text

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Adam Reviczky via ntg-context
Hi Joel,

I don't think you can stack those, just use \bi (see:
https://wiki.contextgarden.net/Font_Switching)

\starttext
\startitemize
\item This text has {\bf bold} in it.
\item This text has {\it italics} in it.
\item Why doesn't this have {\bi bold and italics} in it?
\stopitemize

See also: https://www.mail-archive.com/ntg-context@ntg.nl/msg4.html

Adam

On Sat, Jan 29, 2022 at 2:52 PM Joel via ntg-context 
wrote:

> 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, italics works, but when bold and
> italics are together, it only display in italics, it doesn't display a bold
> italic text. I've confirmed the `EBGaramond-BoldItalic.otf` font is present
> and seems just fine. I've also tried by just using the default ConTeXt font
> and the error still appears, also in live.contextgarden.net. I tried
> searching the mailing list, as this seems like something that must have
> come up, but couldn't find any question about this.
>
> Why won't it render both?
>
>
> \starttypescript[serif] [garamond]
> \definefontsynonym[Serif] [file:~/.fonts/12/EBGaramond-Regular.otf]
> \definefontsynonym[SerifBold] [file:~/.fonts/12/EBGaramond-Bold.otf]
> \definefontsynonym[SerifItalic] [file:~/.fonts/12/EBGaramond-Italic.otf]
> \definefontsynonym[SerifBoldItalic]
> [file:~/.fonts/12/EBGaramond-BoldItalic.otf]
> \stoptypescript
> %
> \starttypescript[sans] [garamond]
> \definefontsynonym[Sans] [file:~/.fonts/12/EBGaramond-Regular.otf]
> \definefontsynonym[SansBold] [file:~/.fonts/12/EBGaramond-Bold.otf]
> \definefontsynonym[SansItalic] [file:~/.fonts/12/EBGaramond-Italic.otf]
> \definefontsynonym[SansBoldItalic]
> [file:~/.fonts/12/EBGaramond-BoldItalic.otf]
> \stoptypescript
> %
> \starttypescript[garamond]
> \definetypeface[garamond] [rm][serif][garamond][default]
> \definetypeface[garamond] [ss][sans][garamond][default]
> \definetypeface[garamond] [mm][math][modern][default]
> \stoptypescript
> %
>
> \setupbodyfont[garamond, 12pt]%
>
> \starttext
> \startitemize
> \item This text has {\bf bold} in it.
> \item This text has {\it italics} in it.
> \item Why doesn't this have {\bf\it bold and italics} in it?
> \stopitemize
>
> \stoptext
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to create multiple PDFs from one TeX file?

2022-01-29 Thread Joel via ntg-context
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 can already 
produce multiple files, or a split in the PDF, already?
I tried this code below, as I hoped it would create two PDFs, but it only 
rendered everything between the first set of `\starttext` and `\stoptext`.
--Joel
Minimum example:
\starttext
This is document 1.
\input knuth
\stoptext
\starttext
This is document 2.
\input knuth
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How can I get a section title to change depending on the section content?

2022-01-29 Thread Joel via ntg-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
 Print this stuff about pigeons instead. \fi
Basically the content inside that section can change, either being about 
rabbits or about pigeons. I need the section title to follow that change, the 
problem is the section title appears before this code, so defining some 
variable in the later code won't affect the rendeiring of the section title.
Is there a way I can tell the section title to change as well to match what 
content is inside that section?
\section{\thissectiontitle}
 \ifnum\somenumber>3 Print this content about rabbits.         
\define\thissectiontitle{Brave Rabbits} \else Print this stuff 
about pigeons instead. \define\thissectiontitle{Hungry Pigeons} \fi
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Why isn't bold + italics working together?

2022-01-29 Thread Joel via ntg-context
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, italics works, but when bold and italics are 
together, it only display in italics, it doesn't display a bold italic text. 
I've confirmed the `EBGaramond-BoldItalic.otf` font is present and seems just 
fine. I've also tried by just using the default ConTeXt font and the error 
still appears, also in live.contextgarden.net. I tried searching the mailing 
list, as this seems like something that must have come up, but couldn't find 
any question about this.
Why won't it render both?

\starttypescript[serif] [garamond]\definefontsynonym[Serif] 
[file:~/.fonts/12/EBGaramond-Regular.otf]\definefontsynonym[SerifBold] 
[file:~/.fonts/12/EBGaramond-Bold.otf]\definefontsynonym[SerifItalic] 
[file:~/.fonts/12/EBGaramond-Italic.otf]\definefontsynonym[SerifBoldItalic] 
[file:~/.fonts/12/EBGaramond-BoldItalic.otf]\stoptypescript%\starttypescript[sans]
 [garamond]\definefontsynonym[Sans] 
[file:~/.fonts/12/EBGaramond-Regular.otf]\definefontsynonym[SansBold] 
[file:~/.fonts/12/EBGaramond-Bold.otf]\definefontsynonym[SansItalic] 
[file:~/.fonts/12/EBGaramond-Italic.otf]\definefontsynonym[SansBoldItalic] 
[file:~/.fonts/12/EBGaramond-BoldItalic.otf]\stoptypescript%\starttypescript[garamond]\definetypeface[garamond]
 [rm][serif][garamond][default]\definetypeface[garamond] 
[ss][sans][garamond][default]\definetypeface[garamond] 
[mm][math][modern][default]\stoptypescript%
\setupbodyfont[garamond, 12pt]%
\starttext\startitemize\item This text has {\bf bold} in it.\item This text has 
{\it italics} in it.\item Why doesn't this have {\bf\it bold and italics} in 
it?\stopitemize
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to stop columns from splitting up items in a list?

2022-01-29 Thread Joel via ntg-context
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 be split across columns. See the 
example below:
\starttext    \startcolumns[n=3]%    \startitemize[1]% \item 
pizza cutter \item a word processor (or notebook paper) 
\stopitemize% \stopcolumns%\stoptext
In the example, it split the second item across the columns.
How can I create columns that don't allow the item to split across them?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread Hans Hagen via ntg-context

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I have 
to understand how, as you say, to 'set the sort entry to the unformatted 
version' which is not clear to me at the moment. I'll tackle it on the 
morrow when I'm thinking more clearly!

there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the entry 
itself is also part of the final sort key


the accumulates sort key is sanitized and after that sorting happens in 
several stages (these can be defined / adapted) according to language, 
taking numbers into account and finally using the unicode ordering ...


you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and the 
code seldom changes but of course evolved)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I have 
to understand how, as you say, to 'set the sort entry to the unformatted 
version' which is not clear to me at the moment. I'll tackle it on the 
morrow when I'm thinking more clearly!


Julian


On 29/1/22 20:43, Henning Hraban Ramm via ntg-context wrote:


Am 29.01.22 um 06:23 schrieb jbf via ntg-context:
Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part 
normal? That might be a bit more difficult I think.


If you want to format the page number or the whole entry, you can use 
processors. But if you want to format only parts of the entry, I don’t 
see an other solution than to use formatting in the entry and set the 
sort entry to the unformatted version like:


\index[myindexentry]{{\it my} index entry}

otherwise the name of the used commands/macros is used for the index 
ordering.


Hraban

___ 

If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___ 


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread Henning Hraban Ramm via ntg-context


Am 29.01.22 um 06:23 schrieb jbf via ntg-context:
Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part 
normal? That might be a bit more difficult I think.


If you want to format the page number or the whole entry, you can use 
processors. But if you want to format only parts of the entry, I don’t 
see an other solution than to use formatting in the entry and set the 
sort entry to the unformatted version like:


\index[myindexentry]{{\it my} index entry}

otherwise the name of the used commands/macros is used for the index 
ordering.


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___